Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Sat May 25, 2013 9:23 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Login form
Author Message
 Post subject: Login form
PostPosted: Thu Feb 17, 2011 2:31 pm 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
hello,

i can't figure it out, i do exactly what's described in the tutorial, but it does not work.
When i try to login it redirects my to a dropbox (i'm using DropBox) page saying:"error, can not find page". Even when i typed it wrong, and i've set the wrong-password-page to google.co.uk.

i don't get it

please help. :|


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Thu Feb 17, 2011 3:10 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Hi,

if it says page not found found it means that the path specified under

window.open('/sitename/'+username+'.html','_blank');

is wrong. Of course if you use Dropbox to host your site the above path is not right. The path I wrote applies if using a normal host or MobileMe.

I never used Dropbox to host a site nor do I think it's a good so I don't know what the URL of a page is on Dropbox but if you tell me the URL of your page I may be able to help you to adapt the path for it to work.

And if you set

else{
window.location.href ="/sitename/error.html";
}

to

else{
window.location.href ="google.co.uk";
}

then it doesn't work because it has to be http://google.co.uk

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Thu Feb 17, 2011 9:44 pm 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
my site is: http://www.nicholasfitzhugh.tk

if it helps


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Thu Feb 17, 2011 10:34 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
http://www.nicholasfitzhugh.tk/ is just a WebForward with cloaking/masking which means it does not allow you to use relative or absolute paths as in the code. Instead you have to use http://dl.dropbox.com/u/10230420/Person ... skyld.html

Hence

window.open('http://dl.dropbox.com/u/10230420/Personlig/sitename/'+username+'.html','_blank');

or similar.

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Fri Feb 18, 2011 2:55 pm 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
Thnaks i'll try that:)


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Fri Feb 18, 2011 7:17 pm 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
it worked, but i do have one question.
is there a way to make it so that it doesn't open a new window, but remains in the same?


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Fri Feb 18, 2011 10:20 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Instead of _blank in the line above type _top _parent or _self probably the first or the second will do it for you.

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Sat Feb 19, 2011 11:10 am 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
hi,

tried it, and _self opened the login form in a new window, and _top_parent just opened the right page, but in a different window.
just to get this straight. Did you mean:
if(usercode == "encrypted usercode" && passcode == "encrypted passcode"){
window.open('http://dl.dropbox.com/u/....html','_self') or
if(usercode == "encrypted usercode" && passcode == "encrypted passcode"){
window.open('http://dl.dropbox.com/u/....html','_top_parent')?

thanks for the help so far :D :)


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Sun Feb 20, 2011 1:48 am 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Sorry, looks like I was wrong. Looks like it only works opening in a new window.

Sorry,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Login form
Author Message
 Post subject: Re: Login form
PostPosted: Sun Feb 20, 2011 1:04 pm 
Offline

Joined: Thu Feb 17, 2011 2:25 pm
Posts: 6
Location: Denmark
thanx anyway! :D :D

nice website :!: :) :)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield