dlowery
09-19-2002, 11:44 PM
The situation:
A page that is a template for a photo gallery.
Elements
1. A JavaScript menu system that allows the user to select from a number of categories. The choice reduces to a 'category code' that goes to ...
2. Dynamic Photo Display generated by PHP script. Thumbnails are displayed on the page and a click on an image pops-up a new window with the full-sized image. This works great, thanks to PHP and Internet resources.
3. The passing mechanism: at the moment I am trying to use a query string in the menu system to call a small PHP page. There, the single 'category code' string is processed into an image directory identifier and a title string for the category to be displayed.
JS: onclick="director.php?goal=bonus01"; // this is a demo string
I know the director.php script works because a couple of debugging echo statements produced the correct evaluations.
THE PROBLEM is, I don't know how to get this info back to the calling page so it can process the data and produce the table cells to show the thumbnails. Once the director.php file does its job, things come to a halt.
Yup, I'm a newbie and brainwashed in structured programming techniques. <sigh!>
Just Arrived in my flustered brain: Can I call a PHP function in the JS menu script (instead of the URL query string)??
Any ideas?
dlowery
A page that is a template for a photo gallery.
Elements
1. A JavaScript menu system that allows the user to select from a number of categories. The choice reduces to a 'category code' that goes to ...
2. Dynamic Photo Display generated by PHP script. Thumbnails are displayed on the page and a click on an image pops-up a new window with the full-sized image. This works great, thanks to PHP and Internet resources.
3. The passing mechanism: at the moment I am trying to use a query string in the menu system to call a small PHP page. There, the single 'category code' string is processed into an image directory identifier and a title string for the category to be displayed.
JS: onclick="director.php?goal=bonus01"; // this is a demo string
I know the director.php script works because a couple of debugging echo statements produced the correct evaluations.
THE PROBLEM is, I don't know how to get this info back to the calling page so it can process the data and produce the table cells to show the thumbnails. Once the director.php file does its job, things come to a halt.
Yup, I'm a newbie and brainwashed in structured programming techniques. <sigh!>
Just Arrived in my flustered brain: Can I call a PHP function in the JS menu script (instead of the URL query string)??
Any ideas?
dlowery