General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 1st, 2002, 03:07 PM
jamal jamal is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: germany
Posts: 5 jamal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to jamal
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="javascriptpenthing('popup.php?link=1')">Link 1</a>
<a href="javascriptpenthing('popup.php?link=2')">Link 2</a>
<a href="javascriptpenthing('popup.php?link=3')">Link 3</a>
<a href="javascriptpenthing('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

Reply With Quote
  #2  
Old October 1st, 2002, 06:54 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
where does the problem actually occur?

Reply With Quote
  #3  
Old October 1st, 2002, 11:35 PM
jamal jamal is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: germany
Posts: 5 jamal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to jamal
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Next and Previous Button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway