[jQuery] Re: some javascript function on "some.html" won't work

2007-08-21 Thread Michael Lo
Thanks for all you help I found the problem is use $.get Instead of .load and call the function on call back will wrok but base on we include .js on the top level html for example we have two html(1.html,2.html) and two .js(1.js,2.js) if we do thing on 1.html like following 1.html if w

[jQuery] Re: some javascript function on "some.html" won't work

2007-08-19 Thread Wizzud
What does "some.html" look like? You imply that it can be run in its own right, ie that it is a full document. IF you are trying to inject a full document into the DOM under the 'somediv' DIV then it would not be surprising if some functionality failed. Michael Lo wrote: > > Dear all: > > can

[jQuery] Re: some javascript function on "some.html" won't work

2007-08-19 Thread Matt Stith
you might be looking for $("#somediv"), $("somediv") is looking for , while $("#somediv") is looking for . Check out http://docs.jquery.com/DOM/Traversing/Selectors for some info on selectors On 8/19/07, Michael Lo <[EMAIL PROTECTED]> wrote: > > Dear all: > > can some one help > why sometime i lo