PDA

View Full Version : Resolved Ajax Tabs Content Script load unix timestamp on tab



passt
10-08-2010, 07:58 PM
1) Script Title: Ajax Tabs Content Script (v 2.2)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem:
see it here (http://www.dynamicdrive.com/forums/showthread.php?t=24096) that ajax cant load javascript, so i write a php file to get url parameters, and hope it can load on tabs.
the php file:
<?php
echo $_SERVER["QUERY_STRING"]."<br>";
?>
<?php
$id = $_SERVER["QUERY_STRING"];
?>
<a href="http://www.site.com/index.php?id=<?php echo $id;?>">a link here</a>

it can get the url parameters in the externalpage.html fine, but it add a "&current unix timestamp" string after the parameters the php file got. so it cant work in tabs.

http://i55.tinypic.com/14kjucl.png
works in single externalpage

http://i55.tinypic.com/a1r4oj.png
cant work in tabs

can anyone help? thx!

jscheuer1
10-09-2010, 02:46 AM
Use $_GET instead.

passt
10-09-2010, 07:17 AM
Use $_GET instead.

it works!!
thank you for your help!
:):)