jquery Programming Glossary: startpageselected
How to access a variable set within an Ajax call http://stackoverflow.com/questions/5820902/how-to-access-a-variable-set-within-an-ajax-call is not accessible from outside the function so to say. var startPageSelected '' function getSavedStartPage .post webroot 'home get_saved_startpage.. .post webroot 'home get_saved_startpage ' function data startPageSelected .parseJSON data alert startPageSelected alert 1 function something.. ' function data startPageSelected .parseJSON data alert startPageSelected alert 1 function something alert startPageSelected alert 2 So..
How to access a variable set within an Ajax call http://stackoverflow.com/questions/5820902/how-to-access-a-variable-set-within-an-ajax-call some PHP code via Ajax. The problem is that the variable is not accessible from outside the function so to say. var startPageSelected '' function getSavedStartPage .post webroot 'home get_saved_startpage ' function data startPageSelected .parseJSON data.. so to say. var startPageSelected '' function getSavedStartPage .post webroot 'home get_saved_startpage ' function data startPageSelected .parseJSON data alert startPageSelected alert 1 function something alert startPageSelected alert 2 So when I call getSavedStartPage.. getSavedStartPage .post webroot 'home get_saved_startpage ' function data startPageSelected .parseJSON data alert startPageSelected alert 1 function something alert startPageSelected alert 2 So when I call getSavedStartPage the alert 1 gives me the correct..
|