[jQuery] A simple problem with jQuery post method
Hi evry1,
i am quite new to Jquery so perhaps my question might be very
simple....
my working code looks like this ...
function letsJQuery() {
//$.post("http://xx.xx.xx.com/test.php", { title: "jonny" } );
}
this code sends the value jonny and sends to the php file present in a
remote web server and my php file in tern stores this value to mysql
table
But this is not what i want, my desired code is , this code runs
inside a userscript and captures the page titles ...
-------------------------------------------------------------------------------------------
var page_title = document.title; //user script variable to save
page title
function letsJQuery() {
$.pagetitle; // jQuery variable
pagetitle = page_title; // passes the userscript variable
to the jQuery variable
$.post("http://xx.xx.xx.com/test.php", { title:
pagetitle } ); .//here is the problem the variable does not send
anything
}
-----------------------------------------------------------------
When i run this code the variable sends empty values .....plz
help ...tell m how to pass the value content in the variable to send
to php using post method...is there any working methods...plz help
me.....