Page 1 of 1
need a favour - quick test with Firefox
Posted: Sat Jan 17, 2009 3:57 pm
by itp
I support a site with some buggy javascipt code which I know I will have to fix eventually. One user has reported this problem with Firefox browser:
"I cannot enter any values except for the default values"
I do not know which version of Firefox. If you have Firefox on your PC, can you test this site and let me know if you have the problem reported and what version of browser. I use version 2.0.0.20 and I do not have this issue. He identifed "Kidney" section as having issues.
http://tinyurl.com/7tosoo
thanks!
Re: need a favour - quick test with Firefox
Posted: Sat Jan 17, 2009 4:11 pm
by califdon
There does seem to be a problem with being unable to select anything from the dropdown lists. I'm using FF 3.0.5.
I couldn't view the source code on the pop-up windows, so I couldn't see what's going wrong.
Re: need a favour - quick test with Firefox
Posted: Sat Jan 17, 2009 4:52 pm
by itp
There does seem to be a problem with being unable to select anything from the dropdown lists.
Interesting, on version 2.0.0.20, I can select drop-down element, but drop down returns to default after submit. The "selected" isn't being added to selected item....
I think I found the error. It looks like Firefox tightened up validation of Javscript.
Code: Select all
// bad code
echo "<script>combo_nod_sc.setSelected(\"".$sc."\");</script>\n";
// good code
echo "<script>combo_nod_sc.setSelectedItems(\"".$sc."\");</script>\n";
I changed the first one- noda mestatases, can you see if it works now?
Re: need a favour - quick test with Firefox
Posted: Sat Jan 17, 2009 5:44 pm
by califdon
Tried it again, still seems to be the same. It's possible I'm still seeing the cached version, although I reloaded on the first page. But the way you are creating the smaller windows, I have no way to "reload". But reloading the main page would seem to assure that the dynamic pages are newly created. Yes, the list is there, but you just can't select it. Again, I have no way of examining the source code for those windows.
Re: need a favour - quick test with Firefox
Posted: Sat Jan 17, 2009 7:20 pm
by Chris Corbyn
~itp, now that you know it's FF3 related install FF3 and go from there, it'd be a lot simpler and faster

Re: need a favour - quick test with Firefox
Posted: Sun Jan 18, 2009 8:14 am
by itp
I upgraded.
Odd that behavior is so different between IE and Firefox.
IE ignores undefined javascipt functions. Firefox disables all functions that use undefined functions.
Re: need a favour - quick test with Firefox
Posted: Sun Jan 18, 2009 4:13 pm
by Chris Corbyn
I wouldn't have thought this would be the case. I'm pretty sure a pure ECMAScript engine fatal errors on undefined function invocations so IE should do that regardless. Is it not more likely that some condition in your code means IE doesn't execute that method?
Here's what happens in Rhino - Mozilla's command-line ECMAScript engine:
[js]var bad = undefined; bad(); print("This never happens");[/js]
Code: Select all
java -jar js.jar -f test.js
js: uncaught JavaScript runtime exception: TypeError: bad is not a function, it is undefined.