This is the jQuery inside code for load function:
load: function( url, params, callback, ifModified ) {
 [...]
       // Default to a GET request
       var type = "GET";

       if ( params )
           // If it's a function
           if ( jQuery.isFunction( params ) ) {
               [...]

           // Otherwise, build a param string
           } else {
               params = jQuery.param( params );
               type = "POST";
           }
      [...]

So, if you are sending params like {key:value} then , the ajax request will
use POST call, in PHP debug your $_POST array:
var_dump($_POST)

GET is by default if you don't send params.


duggoff escribió:
Thanks. I did the following with your function in a file named
ajaxdebug.php:

$('#debug').load("ajaxdebug.php",{Title:'NewCourse'});

I get this: Array ( )

However, when I roll my own ajax using a select that calls a custom js
function that calls ajaxdebug.php, it shows the following:

Array ( [Title] => Golf Camp ) with "Golf Camp" replaced by whatever I
select.

So it seems that .load is not sending anything to the $_GET array
regardless of what I put in the name/value pair. Hmmmm.....

Doug Gough

On Apr 18, 2:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:



--
Best Regards,
José Francisco Rives Lirola <sevir1ATgmail.com>

SeViR CW · Computer Design
http://www.sevir.org
Murcia - Spain

Reply via email to