dinger2121
Programmer
Hello,
I am creating some sites using php with jquery. On each page, I have a php variable that determines what the site id is.
I then have a jquery script defined which will load a section of the page at the load (contained within a div tag) and then refresh that same piece every few seconds. This portion of the page is loaded by calling a second included php script. I would like this second script which is called by the jquery function to return specific data based upon the site id variable defined in the page.
This site id variable is not making it into the second script that is called by the jquery. I define the variable on the first line of the page. Does anyone know how I can get this variable to go through?
I had considered making a hidden field which contains the site id that jquery can then retrieve, but I still don't know how to pass it into the second script which renders the site specific data.
hope that makes sense.
Thanks for any help.
carl
MCSD, MCTS:MOSS
I am creating some sites using php with jquery. On each page, I have a php variable that determines what the site id is.
I then have a jquery script defined which will load a section of the page at the load (contained within a div tag) and then refresh that same piece every few seconds. This portion of the page is loaded by calling a second included php script. I would like this second script which is called by the jquery function to return specific data based upon the site id variable defined in the page.
This site id variable is not making it into the second script that is called by the jquery. I define the variable on the first line of the page. Does anyone know how I can get this variable to go through?
I had considered making a hidden field which contains the site id that jquery can then retrieve, but I still don't know how to pass it into the second script which renders the site specific data.
hope that makes sense.
Thanks for any help.
carl
MCSD, MCTS:MOSS