I'm working on a PHP script that uses jQuery for Ajax and some other
functionality. My script is a plugin for a CMS. I'm trying to send an
Ajax query to my script so it can return some HTML. In order to talk
with my script though, it has to use a URL something like this:

http://www.domain.com/cp/index.php?par1=val1&par2=val2&par3=val3

The CMS' control panel needs those parameters to know where to send
the request, but it also checks for a specific POST variable and
redirects you if it can't find it. My module also needs a few POST
variables in order to run correctly.

My jQuery code looks like this:

---
$('#selector').load(link, { special: var, str: string, existing:
existing_str }, rebind);
---

'link' would be the example URL above
'special' is the specific POST variable the CP needs to let the query
through
'str' & 'existing' are for my module
'rebind' is the callback function

The parameters I pass to the .load function get encoded and turned
into a long GET string though, I believe because of the parameters
already in the URL. Is it possible for me to send those parameters
with POST as well as have the parameters in the URL that the CP needs?

I'm new to jQuery, so I could be missing something obvious. Any help
would be appreciated.

Thanks.

Reply via email to