|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Next and Previous Button
can anyone please tell me why this is not working.
The HTML file that creates and links to the JavaScript popup window: ==============index.html===================== <html> <head> <script language="javascript"> function openthing(url) { window.open(""+url+"","windowname","width=280,height=150, screenX=340,left=340,screenY=180,top=180,resizable =no, toolbar=no,status=no,menubar=no,scrollbars=no"); } </script> </head> <body> <a href="javascript penthing('popup.php?link=1')">Link 1</a><a href="javascript penthing('popup.php?link=2')">Link 2</a><a href="javascript penthing('popup.php?link=3')">Link 3</a><a href="javascript penthing('popup.php?link=4')">Link 4</a></body> </html> ============================================= The PHP/HTML popup file that takes the "link" string, prints data, and places relative links at the bottom (previous and next): ==============popup.php====================== <? /* "$QUERY_STRING" is the number after the question mark in the links above */ $QUERY_STRING = $link; ?> <html> <head> </head> <body> <? if ($link == "1") {print ("Information for Link number one");} elseif ($link == "2") {print ("Information for Link number two");} elseif ($link == "3") {print ("Information for Link number three");} elseif ($link == "4") {print ("Information for Link number four");} else {print ("Sorry, you did not pass a query value");} ?> <p> <? if ($link == "1") {print ("");} else {print ("<b>«</b>");}?> <a href="popup.php?link=<? print ($link-1); ?>"> <? if ($link == "1") {print ("");} else {print ("Previous Link");}?> </a> <b></b> <a href="javascript://" onClick="window.close();">Close window</a> <b></b> <a href="popup.php?link=<? print ($link+1); ?>"> <? if ($link == "4") {print ("");} else {print ("Next Link");}?> </a> <? if ($link == "4") {print ("");} else {print ("<b>»</b>");}?> </p> </body> </html> Please this is very urgent I would like to know why my code is not working. Thanks Jamal |
|
#2
|
|||
|
|||
|
where does the problem actually occur?
|
|
#3
|
|||
|
|||
|
next and previous button
Hi,
You asked me where actually the problem occured? The problem is that everytime I load the index.html which contain the popup.php, I only see the links but when I tried to click on it, i did not receive any reaction from the popup. php file. Please kinldy tell me if i am doing wrongly or something. thanks jamal |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Next and Previous Button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|