- Create Account

Combining with php

Forums > HTMLHttpRequest > Combining with php
Author
Message

1) Amrit Group: Members
Posts: 9 Joined: 18 Dec 2007 Location: Sweden IP: 90.224.--.--
Hi there Angus.

Trying to get a link that looks like this to get loaded correctly...
<a class="loadinto-targetScroll" href="<?php $sess->purl(URL . "?page=shop/index");?>"><?php echo $home_title ?></a>

But ofcourse I only get the whole page loaded into the container, and thus creating a "site-in-site" look. ;)

Either  it's real easy to get around, or else it's damn near impossible.
I like the things that are near impossible. :D

Have  a great weekend.
Amrit

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Yep. You will need to create a PHP page that returns only the content you need to insert in the document. By default the script will insert the content between <body></body> from the returned document into the current document.

I'd suggest appending ?ajax=1 or similar to your URLs perhaps, and not writing out the header/footer templates? Anyway, should be a challenge!

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.