Page 1 of 1

Module and Ajax

Posted: Fri Nov 05, 2010 3:59 pm
by chrishvmp
Hi Guys,

New player here, just started using CMSMS this week. I'm trying to develop a new module, wich will use Ajax in the frontend (end-user) website. I've searched for a couple of hours for the past few days, but the documentation isn't really great, and the module tutorial doesn't explain a thing about Ajax.

Is there any developer out there who implemented Ajax in his (or her..) module? I just want to know.. If i make a ajax request, to what file do i need to point it to? There's just no answer in google :-(

Thanks in advance!

Re: Module and Ajax

Posted: Fri Nov 05, 2010 4:12 pm
by calguy1000
Ajax is quite simple in CMSMS.

a:  Use the CreateLink method to create a URL to the page that you want...
    (if you specify inline=false the page really won't matter, and no tag will be required on the page)
    I usually just pass in $returnid for that anyway.s
   
b:  Add showtemplate=false to the URL
c:  You may have to erase the amp; stuff out of teh url.
d:  use your normal jquery post stuff.