![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've got 5 pages that are pretty identical except for the center box... same height/width/everything. And it just occured to me that I could use AJAX to load this content instead of using PHP includes on several PHP pages (to clone the identical content). Could someone point me towards a basic tutorial on how to call data without reloading the page? I'm essentially swapping two divs for two other divs each time I click a new option on the menu. |
#3
| |||
| |||
|
|
I've got 5 pages that are pretty identical except for the center box... same height/width/everything. And it just occured to me that I could use AJAX to load this content instead of using PHP includes on several PHP pages (to clone the identical content). Could someone point me towards a basic tutorial on how to call data without reloading the page? I'm essentially swapping two divs for two other divs each time I click a new option on the menu. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Heya Mike, Here's a link to spry master detail There's also a video tutorial in adobe video workshop. http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsS ample.html |
#6
| |||
| |||
|
|
Nice solution. The content is totally inaccessible. The original poster might want to read this before embarking down the Ajax highway: http://www.projectseven.com/testing/ajax_magic/content_switcher/explain-it.htm |
#7
| |||
| |||
|
|
What precisely do you mean by inaccessible? Are you only referring to the fact that I won't be able to land directly on the contact page, for instance? |
|
Wouldn't that be solvable by creating a backup PHP page for each of the 5 pages specifically for landing purposes? |
|
If it weren't for the animation I'm proposing in thread "Using jquery to animate this (link included)", I wouldn't care as much about the AJAX. But I don't think what I'm looking to accomplish is do-able without it (see said thread). But I could be wrong! No one's touched that post yet. :-S |
#8
| |||
| |||
|
|
What precisely do you mean by inaccessible? |
|
Are you only referring to the fact that I won't be able to land directly on the contact page, for instance? Wouldn't that be solvable by creating a backup PHP page for each of the 5 pages specifically for landing purposes? |
#9
| |||
| |||
|
|
There is a chance you are not clearly understanding what Ajax really is. JQuery is a script library and its animation functions do not require that you also use Ajax. It can be used to simply manipulate content that is already on the page (and therefore accssible to search engines, people with script disabled, and assistive readers for the blind). A common misperception of Ajax is that in the vast majority of cases, the content involved is actually downloaded in total so the same results can be had by loading the page with all the content also loaded (statically or via conventional database query) and then manipulating its position and visibility to shape it any way you want. |
#10
| |||
| |||
|
|
And why not drop the whole AJAX idea and use these 5 flat pages instead? It's still the most reliable and userfriendly way. Of course AJAX has its uses here and there, but usually it's far overestimated and just an overrated hype, which creates more problems than it solves. Make the entire thing work without relying on JS first, then add bells and whistles if necessary. |
![]() |
| Thread Tools | |
| Display Modes | |
| |