Passing a Variable from php -> Javascript function
Posted: Tue Aug 07, 2007 11:32 pm
Hi all,
Just wondering if it is possible to do the following, and if so any hints on how to go about it would be appreciated.
Im developing a photogallery which is part of a cms.
I use php to retrieve the image name from a db after its been uploaded.
rather than refresh the entire page, I want the gallery to display in the manner of a site I worked on some time ago using javascript
http://www.colourcosmetica.com/gallery/2004expo.html#
anyway I call the javascript function no worries from inside php using onclick but the variable never seems to be passed.
Is this possible to do or do I need start taking Ajax tutes to get the result I want (groan)
thanks in advance
cheers!
Just wondering if it is possible to do the following, and if so any hints on how to go about it would be appreciated.
Im developing a photogallery which is part of a cms.
I use php to retrieve the image name from a db after its been uploaded.
rather than refresh the entire page, I want the gallery to display in the manner of a site I worked on some time ago using javascript
http://www.colourcosmetica.com/gallery/2004expo.html#
anyway I call the javascript function no worries from inside php using onclick but the variable never seems to be passed.
Is this possible to do or do I need start taking Ajax tutes to get the result I want (groan)
thanks in advance
cheers!