But I did that by using the example code given on docs site

http://docs.jquery.com/Ajax

 $.ajax({
   type: "POST",
   url: "some.php",
   data: "name=John&location=Boston",
   success: function(msg){
     alert( "Data Saved: " + msg );
   }
 });



On Jun 16, 8:24 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Your $.ajax example is not correct. This line:
>
>     data:"url="+url,num="+num,
>
> does not make sense and I'm surprised it's not throwing an error.  Try
> changing it to:
>
>     data:{url:url,num:num},
>
> Mike
>
> On 6/16/07, joomlafreak <[EMAIL PROTECTED]> wrote:
>
>
>
> > I wonder if this is normal
>
> > I am sending a url to server in query string.
>
> > If I use $.get, like this
> > $.get(queryfile,{url:url,num:num},function(output){
> > ...
> > });
>
> > the url is encoded as it is sent. BUT if I use
> > $.ajax({
> > type:"GET",
> > url:queryfile,
> > data:"url="+url,num="+num,
> > success:function(output){
> > ....
> > }
> > })
>
> > the url as it is sent is not encoded.
>
> > Am doing something basic wrong here??

Reply via email to