[EMAIL PROTECTED] wrote:
> http://www.testarea.istl.com/page-example.html
>
> ...
> 'tagName' is null or not an object
>
> Take a look at the checkPrice() function. i think I may have a problem
> with my if statement, however I'm completely stuck. I've used another
> third party function to check the radio groups have values, if so I
> then assume them to be checked....
> ...
>
Hello Carpetfrog,
I wasn't able to get the error in FF2 or IE7. There is only one
instance of tagName in your script. In its use, you are assuming it is
a string, which it may not be. Try a quick test to see if tagName is
defined or if it is a string.
-- Ken Snyder
function $RF(el, radioGroup) {
if($(el).type == 'radio') {
var el = $(el).form;
var radioGroup = $(el).name;
} else if (!($(el).tagName && $(el).tagName.toLowerCase() == 'form')) {
return false;
}
return $F($(el).getInputs('radio', radioGroup).find(
function(re) {return re.checked;}
));
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---