javascript fails in Firefox with Ubuntu 10.10

Asked by Earl Porter

A javascript that worked in the Firefox that came with 8.04 now fails in the Firefox that comes with 10.10.
It works in Safari, Chromium and Firefox on a Mac and in Windows 7 IE4.
If the script is invoked after clearing the cache it works for two or three times but fails from then on.
The script is trying to display an alert box but when it fails the box appears but no data is in it.
The javascript is generated from a PHP file and is invoked by the following code:

<?php
.
.
$msg = "Some error message";
confirm($msg);

function confirm($msg)
{
  echo "<script type=\"text/javascript\">alert(\"".$msg."\"); </script>";
}

?>

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could try the mozilla ppa to get a later version (or even firefox 4). Could also try Chromium in Ubuntu

Can you help with this problem?

Provide an answer of your own, or ask Earl Porter for more information if necessary.

To post a message you must log in.