On Wed, Aug 19, 2009 at 4:45 AM, km <[email protected]> wrote:

> So I use full url for the target script ie .,
> http://localhost:8080/~user/target_script<http://localhost:8080/%7Euser/target_script>and
>  i get the table returned from the runtime target_script.
> all  works fine. but after the table gets displayed on the index.html page,
> the source html does not show the injected table.


Do you mean when you do view source? That only shows what was originally
sent to the browser. You'll need something like Firebug to view a dynamic
source tree.


> I would like to process the table after it got injected into the index.html
> file.
> Could someone suggest me if anything wrong ?


You can use $.get instead of .load(), but then you'd have to add the
returned table yourself. That's what load does for you. Using either method,
you can pass a function as a final argument to do the processing as soon as
the response comes back:

http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype

http://docs.jquery.com/Ajax/load#urldatacallback

In the case of .load(), you'd want to modify the contents of $(this), as
that's where it put the table that got returned.

- Richard

Reply via email to