1) trance31Group: Members Posts: 5Joined: 22 Apr 2008Location: NetherlandsIP: 213.134.--.--
Posted:
First things First Htlmhttprequest is a great script thanks.
But now mine question. When google comes aloung the spider find a couple of html files. And show up in google. When i click this link it goes to the page without the mainpage and css. mainpage and css is togther the complete page the links on the mainpage change the content on the page. Is it posible that if you click on a link in google it loads the mainpage and css and i hope the good content of the link?????
2) trance31Group: Members Posts: 5Joined: 22 Apr 2008Location: NetherlandsIP: 213.134.--.--
So if you directly go to open the testpage it goes strait a way to index3.htm. But i want that it goes to index3 and opend test.html in the content div. How can i do that?????
3) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.173.--.--
and in index3.htm put a small script that checks the page location for the 'load=....' parameter and loads that file in if found.
However, this script is designed more for loading small pieces of content on demand into a page rather than as a frameset replacement. Why not use something like PHP and server-side includes to pull your navigation/CSS into each page, and have each page its own PHP file? I do something like that on my own site currently and it works well.
Good luck - Angus.
4) trance31Group: Members Posts: 5Joined: 22 Apr 2008Location: NetherlandsIP: 213.134.--.--
Posted:
Thanks Angus for your answer. I'am a real htlm man, i really don't understand PHP. I did read and try it out, but there is no light going to burn. So i still stick in html. i understand that i could do this with something like.
<?php include("path-to-file/file.html") ?>
But i realy like your script and it saves a lot of KB on load. I would try tho find the script i will need on the index page. And it will be hard to find. But thanks man. Thanks for ansering my question.
5) trance31Group: Members Posts: 5Joined: 22 Apr 2008Location: NetherlandsIP: 213.134.--.--
Posted:
I have looked all day for the script that would loads the file into the indexpage. But i have nothing found. I have put window.location.href = 'index3.htm?load=' + location.href; on the sub page, and i see that it gives the index and test page as result. But now i must find a script for the index page that it loads the test page on the indexpage at div="content"
Can someone help me or can someone tell me how to look in google because i have look all day. And everything i find is for iframe. Help please.
6) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 202.137.--.--
Posted:
OK, I can't write your whole site for you for free sorry :).
Seriously though, the PHP include is the best solution to this problem, and the fastest (you only have to request 1 HTML file instead of 2). Just use that!
- Angus.
7) trance31Group: Members Posts: 5Joined: 22 Apr 2008Location: NetherlandsIP: 213.134.--.--
Posted:
I Know Angus but that was also not the meaning. I had hoped you wanted too :-) ;-) (No, that was a joke Angus) But thanks again for the Script and your help.