V@no.
05-24-2003, 11:20 PM
Hi! that's me again, with some wierdo questions :rolleyes: :D
I have asked before simular question, but I think it's better ask again with less confusing information ;)
so, here it goes:
I'm trying combine PHP and JavaScript work together interactivly. Yes, I know those two languages are work differently and cant be put under same line, but I already succeed with one task, I can use JavaScript to send back to the server users actions and receive the result without page refreshing, by using <img src="">
for example, http://come.no-ip.com click at "Album" button under images. It will execute .php file, add the image into database, and incase it was successfull return new image location in header('Location: newimage.gif');.
it done by using:
onClick="this.src='script.php';"
so, it works well with images...now, how about for example dropdown form?
how can I tell JS to execute a .php file? when I change option? or if I click a button, without refreshing whole page?
does it make any sence?
thx for any info ;)
I have asked before simular question, but I think it's better ask again with less confusing information ;)
so, here it goes:
I'm trying combine PHP and JavaScript work together interactivly. Yes, I know those two languages are work differently and cant be put under same line, but I already succeed with one task, I can use JavaScript to send back to the server users actions and receive the result without page refreshing, by using <img src="">
for example, http://come.no-ip.com click at "Album" button under images. It will execute .php file, add the image into database, and incase it was successfull return new image location in header('Location: newimage.gif');.
it done by using:
onClick="this.src='script.php';"
so, it works well with images...now, how about for example dropdown form?
how can I tell JS to execute a .php file? when I change option? or if I click a button, without refreshing whole page?
does it make any sence?
thx for any info ;)