Now that you've tried all of that, do you want to know what the real problem is?
Here it comes...
You need to pass "evalScripts: true" in the options to Ajax.Updater...!
Yay!
-E
On 5/23/07, muskokee <[EMAIL PROTECTED]> wrote:
>
> will keep plugging away. Sheri :)
>
> On May 23, 2:59 pm, "Mark Holton" <[EMAIL PROTECTED]> wrote:
> > I think you might want to check the logic in your server side code, or the
> > flow of your app.
> >
> > On 5/23/07, muskokee <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > LOL!
> >
> > > I wonder why it doesn't work then? Does the script have to be placed
> > > *after* the element?
> >
> > > On May 23, 2:55 pm, "Mark Holton" <[EMAIL PROTECTED]> wrote:
> > > > No, "just set it and forget it", as Ron Popeil might say...
> >
> > > > On 5/23/07, muskokee <[EMAIL PROTECTED]> wrote:
> >
> > > > > Thanks Mark!
> >
> > > > > Do I have to clear the value first? before assigning a new value?
> >
> > > > > Sheri
> >
> > > > > On May 23, 2:28 pm, "Mark Holton" <[EMAIL PROTECTED]> wrote:
> > > > > > $('type').value = 'green';
> >
> > > > > > the $('type') is a shortcut to Javascript's document.GetElementByID
> > > > > ('type')
> > > > > > You can use properties .value, .innerHTML with these for setting
> > > values
> > > > > and
> > > > > > populating DIV's etc.
> > > > > > Enjoy!
> >
> > > > > > On 5/23/07, muskokee <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Hi everyone,
> >
> > > > > > > I have looked through a variety of documentation sources but have
> > > come
> > > > > > > up empty handed. I can get the value of a input field within a
> > > form
> > > > > > > but I am not sure how to replace it successfully. It is a hidden
> > > > > > > variable that I want to change dynamically:
> >
> > > > > > > <input type="hidden" id="type" name="color" value="white" />
> >
> > > > > > > to
> >
> > > > > > > <input type="hidden" id="type" name="color" value="green" />
> >
> > > > > > > I am using the "insertion" function to insert a link that connects
> > > to
> > > > > > > an ajax.updater function from where i would like to initiate the
> > > value
> > > > > > > change of the html input.
> >
> > > > > > > Any help would be appreciated. I am VERY javascript green, but am
> > > > > > > learning more every time i mess up ;)
> >
> > > > > > > Sheri
>
>
> >
>
--
Eric Ryan Harrison
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---