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);
-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
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.
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
-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