Re: SV: FORM login, would like error page same as login page

2007-11-16 Thread Ognjen Blagojevic
Hi Christopher, Christopher Schultz wrote: Please post the code that checks for this parameter. Here is the code: function getUrlParameter(name) { name = name.replace(/[\[]/,\\\[).replace(/[\]]/,\\\]); var regexS = [\\?] + name + =([^#]*); var regex = new RegExp(regexS);

Re: SV: FORM login, would like error page same as login page

2007-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ognjen, Ognjen Blagojevic wrote: var results = regex.exec(window.location.href); Yeah, that's certainly not going to work when a server-side forward. I'm glad you found another solution! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG

SV: FORM login, would like error page same as login page

2007-11-15 Thread Wilhelmsen Tor Iver
So, I created login.html, with username and password fields, and if parameter err=1 is passed, then the error message is displayed. How do you pick up the parameter in the HTML? Using JavaScript? Remember *.html resources are usually not parsed server-side in any way.

Re: SV: FORM login, would like error page same as login page

2007-11-15 Thread Ognjen Blagojevic
Wilhelmsen Tor Iver wrote: So, I created login.html, with username and password fields, and if parameter err=1 is passed, then the error message is displayed. How do you pick up the parameter in the HTML? Using JavaScript? Remember *.html resources are usually not parsed server-side in any

Re: SV: FORM login, would like error page same as login page

2007-11-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ognjen, Ognjen Blagojevic wrote: Wilhelmsen Tor Iver wrote: Yes, I'm using JavaScript. I beleive that JavaSrcipt it is okay, because when I try the page alone (/login.html?err=1), it works just fine. Please post the code that checks for this