Copy link to clipboard
Copied
Hi
I am trying to pass a variable to a current page with out refreshing the page is this possible?
So when I do: ome.php?var=2000 to the webpage ome.php.
This is done without refreshing the page just that the variable is passed. Maybe with jquery.
Is it possible?
Copy link to clipboard
Copied
you're trying to pass a variable to an html page using php? if yes and you're using jquery, check the ajax events.
Copy link to clipboard
Copied
It is certainly possible with simple javascript. No need for jquery. But for PHP to process it, the page would have to be refreshed. In your form fields you can use the onBlur event.
Copy link to clipboard
Copied
Hi
So I have this link:
<a href="Video.php?vid='.$vidfield.'"><img src="'.$vidthumb.'" width="180" height="105" align=center /></a>
Video.php has $vidid=$_GET['vid'];
Then using flashvar the $vidid is passed to videoplayer that is on Video.php. In order to use flasvars I need to know which
link was actually clicked.But clicking link refreshs page making playing video not dynamic.
But as you said : for PHP to process it, the page would have to be refreshed.
How can I use onBlur event in my code to stop refresh. Just started read onBlur event.
Thanks.