Log in

View Full Version : Ajax Navigation?



Recursion
15-04-2007, 07:46 PM
Hello,

How do I do AJAX Navigation?

Also Thanks sygon for the free coding, I am keeping the coded by bit on the layout ;)

Thanks
Tom

Mentor
15-04-2007, 08:07 PM
That would depend on what you mean by ajax navigation o.0

Recursion
15-04-2007, 08:09 PM
Click a link in Navigation and it changes the content page, like iFrames but not using iFrames :P

ScottDiamond
15-04-2007, 08:10 PM
AJAX frames?

Recursion
15-04-2007, 08:10 PM
AJAX frames?

Yes, I think :S

ScottDiamond
15-04-2007, 08:13 PM
I think they are very hard btw.

Recursion
15-04-2007, 08:15 PM
I did it before but everytime you clicked the link again it just added more and more white space to in the content area just above the writing..

But ive lost that code XD

ScottDiamond
15-04-2007, 08:18 PM
So basically you never done it before? :P

Not classed as done it if it never worked. ;)

CFairweather
15-04-2007, 08:23 PM
<a onclick="dopage('PAGENAME.php', 'content')"style="cursor: pointer">LINK HERE</a> All i know is thats the code to make the thing you click on open in the content box :P

Mentor
15-04-2007, 08:23 PM
youd need to write your own, just make an ajax request to the page you want to load, it sends back the html, put the html returned in to a div's innerHTML and ya done.

Splinter
15-04-2007, 08:33 PM
All you need to do is request the page you want and then display it using ajax its just afew lines of code...

Recursion
15-04-2007, 08:33 PM
So basically you never done it before? :P

Not classed as done it if it never worked. ;)

It was almost there!!



youd need to write your own, just make an ajax request to the page you want to load, it sends back the html, put the html returned in to a div's innerHTML and ya done.


:O Huh? :S



<a onclick="dopage('PAGENAME.php', 'content')"style="cursor: pointer">LINK HERE</a> All i know is thats the code to make the thing you click on open in the content box :P


Ill try it ;)

Mentor
15-04-2007, 08:40 PM
It was almost there!!



:O Huh? :S



Ill try it ;)

that wont work as it missed out the function that actually does the loading, (which i described the workings of in my post). all that does is call a none existent function

Recursion
16-04-2007, 07:41 AM
Can't someone just give me the codes roflmfao...

paradox
16-04-2007, 07:47 AM
they're pretty hard tbh

redtom
16-04-2007, 07:53 AM
Can't someone just give me the codes roflmfao...

People don't want to give it out on a habbo forum because it will mean a mass of habbo sites switching from Iframes to ajax using there code, habbo sites what use ajax are diffrent unlike all the ones using iframes.

Recursion
16-04-2007, 08:07 AM
Can someone PM me then?

Mr Macro
16-04-2007, 01:02 PM
EDIT: Actually ill keep it to my self.

Recursion
16-04-2007, 01:45 PM
EDIT: Actually ill keep it to my self.

Your and idiot then :| but anyway your too late "/

F32
16-04-2007, 05:46 PM
It's actually called AJAX loading as it externally loads a page, whether it be .php or .html into a specified div.

You can find it on DynamicDrive.

[:

ScottDiamond
16-04-2007, 06:09 PM
Your and idiot then :| but anyway your too late "/

His choice if he wants to give it out.

Want to hide these adverts? Register an account for free!