need a favour - quick test with Firefox

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
itp
Forum Commoner
Posts: 67
Joined: Fri Jun 15, 2007 6:50 am

need a favour - quick test with Firefox

Post 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!
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: need a favour - quick test with Firefox

Post 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.
itp
Forum Commoner
Posts: 67
Joined: Fri Jun 15, 2007 6:50 am

Re: need a favour - quick test with Firefox

Post 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?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: need a favour - quick test with Firefox

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: need a favour - quick test with Firefox

Post 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 :)
itp
Forum Commoner
Posts: 67
Joined: Fri Jun 15, 2007 6:50 am

Re: need a favour - quick test with Firefox

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: need a favour - quick test with Firefox

Post 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.
Post Reply