[jQuery] url encoding for GET
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??