Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Javascript is not executed

  • 7 replies
  • 2 have this problem
  • 6 views
  • Last reply by smorele

more options

Via PHP the following code is being generated:

<meta http-equiv="content-type" content="text/html; charset=utf-8"> <script language="javascript"> window.location.assign('/mgv/login/login.php?call_id=49a778c018de10e7b12d545e6e64e39d'); </script>

This coding is executed by all other browsers as well as the predecessor version of Quantum. Only FF Quantum executes this coding only after pressing F5 (Reload).

Thanks Dirk

Via PHP the following code is being generated: <html><head> <meta http-equiv='content-type' content='text/html; charset=utf-8'> </head><body> <script language='javascript'> window.location.assign('/mgv/login/login.php?call_id=49a778c018de10e7b12d545e6e64e39d'); </script></body></html> This coding is executed by all other browsers as well as the predecessor version of Quantum. Only FF Quantum executes this coding only after pressing F5 (Reload). Thanks Dirk

All Replies (7)

more options

Consider running your pages through the people in charge of making the rules on code.

HTML https://validator.w3.org/

CSS https://jigsaw.w3.org/css-validator/

and https://validator.w3.org/i18n-checker/

and http://mobile.css-validator.org/

See what happens after you correct your code, Firefox is looking at things a little literally as of late.

Please let us know if this solved your issue or if need further assistance.

more options

As mentioned the browser executes this code after pressing F5, therefore the browser is able to execute it without problems.

more options

Hello, do you have an error in your console?

more options

Unfortunately there is no error displayed in the web console...

more options

If I create an HTML with your content, redirect seems to work (except the browser looks for a file in "/mgv/login/login.php" but it's normal)

Can you try to create an HTML like I did with your content, and add you protocol + domain name in addition to PHP path? Because I cannot access the PHP file, I want to remove some possible issues.

In all cases, the window.location.assign() function is well supported with all browser, I do not think your problem is related to.
more options

The script is being executed in a protected area. I need to create an example which can be accessed from extern. So please give me time... I just recognized that Firefox executes this single javascript statement when I add a simple "alert" statement after the location.assign... Additional information: I replaced the javascript command with

window.setTimeout("top.location.assign('$loadurl')",$delayms);

With delayms = 0.001 the browser doesn't execute the command. With delayms = 0.01 he browser executes the command. Strange!

It seems to be a FF bug.

Modified by Snoopy906

more options

Can you try to replace window.location.assign('/mgv/login/login.php?call_id=49a778c018de10e7b12d545e6e64e39d'); by window.location.href = '/mgv/login/login.php?call_id=49a778c018de10e7b12d545e6e64e39d';

and tell us if it helps?