[jQuery] Re: how to load and change the external HTML fragment with AJAX

2008-07-05 Thread xasima
Thanks for all ! The latest change from 'filter' to 'find' in callback function helps me to resolve the problem. Would you please give me an answer on very similar question. I want to load the document once time only and do the several filtering and injecting of the fragment of this document. I n

[jQuery] Re: how to load and change the external HTML fragment with AJAX

2008-07-03 Thread Richard D. Worth
Inside the load callback, change $(this).filter(".price").addClass("bold"); to $(this).find(".price").addClass("bold"); or $(".price", this).addClass("bold"); - Richard On Thu, Jul 3, 2008 at 5:33 PM, xasima <[EMAIL PROTECTED]> wrote: > > Hi, I want to load a fragment of external html docum

[jQuery] Re: how to load and change the external HTML fragment with AJAX

2008-07-03 Thread spicyj
Can you post a webpage with a simple example? Thanks! xasima wrote: > Hi, I want to load a fragment of external html document > (external.html#embeddedContent) with the help of AJAX call, embed > (inject) this into my HTML document (main.html#placeToInject), and > change this embedded fragment