Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Group info
Members: 4733
Language: English
Group categories: Not categorized
More group info »
Recent pages and files
ie-7-and-f    

Folks,

 

Prototype 1.5.1 seams to have a problem with the $F() utility in IE 7

 

Code:

 

myElem = $(\\47citeForm\\47).getElements();

sBook = $F(myElem[0]); 

sChap = $F(myElem[1]);

sVerse = $F(myElem[2]);

eBook = $F(myElem[3]);

eChap = $F(myElem[4]);
eVerse = $F(myElem[5]); 


this code works in firefox2.0  but 


returns:


I hate to add special browser code, Has anyone incluntered this problem and now did you solve it


Thanks

 

 

Version: 
3 messages about this page
Mar 12 2008 by dmgens
This is another example of the fuzzy name space separation in IE 7.
It isn't the $F() that wasn't working but rather the fact that the
function was using a name that was used in another function and the
javascript engine confused the two. Firefox doesn't do that, solution
define all vars inside a function
Mar 12 2008 by Jonas Rosenqvist
Have your set the ID attribute of the form elements? Might be that
firefox automatically sets a random ID and IE doesnt, $F needs the id
to be set otherwise throws that error.
Mar 10 2008 by dmgens
Click on http://groups.google.com/group/rubyonrails-spinoffs/web/ie-7-and-f
- or copy & paste it into your browser's address bar if that doesn't
work.
Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google