Hey there,
rconnor a écrit :
> It's in the onload event of my page
>
> Simply says loadmessagebody(document.forms[0].docid.value)
This won't work outside of IE, btw, since this is not DOM-based (your
"docid" property, which is name- or id-derived).
You might want to change your loadmessagebody to no arguments, then get
the value from its code like this:
var value = $F('docid');
(Assuming your form field has an id attribute with value 'docid'. The
name field won't cut it).
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---