[Proto-Scripty] order matters? cannot get handle to div (null)

2009-01-21 Thread theG
When I hardcode a form into a div and try to get a handle on it via $ ('') it works. When I include the txt dynamically via an AJAX update() it doesnt: --JS function doUpdate(id, url) { new Ajax.Updater(id, url); } doUpdate('search', 'search'); doUpdate('menu', 'me

[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread theG
True, but i was following some example in the book called "Practical prototype and script.aculo.us" (Dupont). I'll give both a go. On Jan 22, 4:46 pm, disccomp wrote: > Would it be easier to add something like: > > onClick="doSearch();" > > To: >   value="Go!"/> --~--~-~--~~

[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread theG
jax/options > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Jan 21, 11:42 pm, theG wrote: > > > > > When I hardcode a form into a div and try to get a handle on it via $ > > (&