|
Posted by eruhk on 05/30/06 18:33
hi, i'm new to this newsgroup and php/web development in general.
there's something seemingly simple i'm trying to accomplish, but i'm
having trouble predicting the behavior of php, particularly having it
interface with javascript, which i am required to use to some extent.
basically i have a java applet embedded in the page which receives
commands via javascript. the purpose of this applet is to perform a sort
of multi-frame animation. there is a file on the server which in each
line contains the file to be loaded next in the animation. so, what i
would like is to have a button (which functionally should load the next
frame, i'll call it '>') that, when clicked, calls a php function to
read the next line from the file on the server, parse it, and feed that
information into a javascript function call.
so: do i want to make php call a javascript function every time this
button is clicked (something i've had trouble getting to work), or, is
it possible to call a php function that reads the file and returns the
information? or is there something else i'm missing?
thanks in advance for any help.
Navigation:
[Reply to this message]
|