
Originally Posted by
jscheuer1
That's valid and will pass two queries to index.php - is that what you want?
I remember the linkjax function, I think I wrote it. If it needs other code to parse the URL for its query (its 'n' parameter), adding another query could break that, depending upon how that is being done (there are ways to do it that will work). The code in your post doesn't show this part at all, so I'm not sure if this is even an issue.
Another potential problem would be if you were trying to pass a URL with its own query string as part of a query string of another page. This too can be done but, I'm thinking this is not what you are asking.
I'm thinking that you may just want to pass a second parameter all the way through to the new page whose content is being loaded via Ajax. If this is the case, can't the URL of the page you are loading be there already, with its query string, in the li on the 'top' page that your sel= query is activating?
In short, I'm not sure what the problem is, could you be more specific, provide a link, show all of the code?
Thank you for your quick response. i posted some code here and explained a little what i mean.
HTML Code:
[INDEX.PHP] [NO TABS!]
<script type="text/javascript">
startajaxtabs("maintab")
function linkjax(h, a, n){
ajaxpage(h,a,document.getElementById('maintab').getElementsByTagName('li')[n].firstChild);
}
</script>
<div align="center">
Klik <a href="javascript:linkjax('nightlife.php?sel=1&ID=1', 'ajaxcontentarea', 1)">hier</a>
</div>
[AGENDA/INDEX.PHP] [TAB 0]
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea"><img src="images/2do2day.jpg" /></a></li>
<li><a href="agenda/nightlife.php" rel="ajaxcontentarea"><img src="images/nightlife.jpg" /></a></li>
<li><a href="agenda/events.php" rel="ajaxcontentarea"><img src="images/events.jpg" /></a></li>
<li><a href="agenda/expos.php" rel="ajaxcontentarea"><img src="images/expos.jpg" /></a></li>
<li><a href="agenda/theater.php" rel="ajaxcontentarea"><img src="images/theater.jpg" /></a></li>
<li><a href="agenda/muziek.php" rel="ajaxcontentarea"><img src="images/muziek.jpg" /></a></li>
<li><a href="agenda/filmhuis.php" rel="ajaxcontentarea"><img src="images/filmhuis.jpg" /></a></li>
<li><a href="agenda/bios.php" rel="ajaxcontentarea"><img src="images/bios.jpg" /></a></li>
</ul>
[AGENDA/NIGHTLIFE.PHP] [TAB 1] & [AGENDA/INDEX.PHP?SEL=1]
All articles
[AGENDA/NIGHTLIFE.PHP?ID=1] [TAB 1]
One article
I want to link from:
[INDEX.PHP]
To
[AGENDA/NIGHTLIFE.PHP?ID=1] [TAB 1]
One article
--------------------------------------------
I think the link must be something like this:
<a href="javascript:linkjax('nightlife.php?sel=1&ID=1', 'ajaxcontentarea', 1)">hier</a>
But I don’t know how to do it with javascript there must be a new function that can get and link to the sel (selected tab) & the ID of the page on the same time.
Bookmarks