Ok i want to send a complete url to a php file which also consists parameters suppose url is like folder/test.php?parm1=19&parm2=119¶m3=345.
What iam doing is putting it like this following is pesudocode
var urlParameter="urlparameter="+(above url)
$.ajax({
type: "POST",
url: "some.php",
data:urlParameter ,
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
now in some.php when i will access the urlParameter i will not get my complete url i will only get
folder/test.php?parm1=19
for making complete complete url i have to get the param2 value and param3 and then again form url again this work fine but is there is a better way to send complete url with parameters in jquery?
Sure, you can do this: