Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
Or do i have to call the ready fuction again ? On 2/27/07, Scottus <[EMAIL PROTECTED]> wrote: > they were orginally in the ready function and didn't work. > > or is the ready function suppose to reset after a dynamic change of the dom. > it is possible that I didn't have the code in the ready f

Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
they were orginally in the ready function and didn't work. or is the ready function suppose to reset after a dynamic change of the dom. it is possible that I didn't have the code in the ready function but I thought i did. On 2/27/07, Brice Burgess <[EMAIL PROTECTED]> wrote: > Scottus wrote: > >

Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Brice Burgess
Scottus wrote: > thanks you answer didn't exactly answer my question but it got me thinking > in the correct way. IE i needed to reload the script AFTER the new > html/dom is added. So I put script tag and fuctions at the bottom of > the page i was loading into the div. And it was all good. >

Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
thanks you answer didn't exactly answer my question but it got me thinking in the correct way. IE i needed to reload the script AFTER the new html/dom is added. So I put script tag and fuctions at the bottom of the page i was loading into the div. And it was all good. thanks On 2/27/07, Brice Bu

Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Brice Burgess
Scottus wrote: > Now I have a script in the header, > > > $("div#newcode").click(function(){alert('this works');}); > Scottus; For starters; There is never a need to use to scope a selector when selecting by the ID. All it does is decrease performance of the selector. E.g. $("div#newcode")..

[jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
I was playing with a script that had used innerhtml or .load() to fill in a div tag. The code placed inside the tag was "the is info placed in the orginal tag Please click me" Now I have a script in the header, $("div#newcode").click(function(){alert('this works');}); of course this alert