hi Sameri,
> I am trying to use ajax in jquery to load a thtml file into a div. can
> anyone help me out with this and if it is not possible can u give me
> another solution for that.
you can't load a thtml file, but you can load the contents of a
cakephp url (a rendered thtml file!).
something like:
$("#target-div-id").load("/cakeinstall/pages/my_page");
that will load in "/cakeinstall/pages/my_page" into a div with an id
of "target-div-id"
you might want to use the request handler to determine if it was an
AJAX request, so you can render the page without the default layout.
hth
jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---