Ajax Demo/Template
- Started
- Last post
- 9 Responses
- dbloc
Any good demos, templates out there for loading all content of website into a div.
I'd like to also be able to go 2 directories deep with the url
- prophetone0
maybe helpful...
http://stackoverflow.com/questio…- stack overflow is the bombprophetone
- need every page to have a distinct url thoughdbloc
- prophetone0
pretty basic, but i've used this a few times and it works like a charm
http://www.dynamicdrive.com/dyna…
- dbloc0
this looks promising, but I need it to go 2 levels deep.
- prophetone0
perhaps two levels deep = iframed + target="_top"
- hahaha such a dumbass... i meant target="_self"prophetone
- trying not to use frames honestlydbloc
- not sure how you're going to drive down within content that's embedded without iframingprophetone
- hopefully someone can prove me wrong, would love to see it in actionprophetone
- unless the links within the target site call the same ajax tag as well and self load?...prophetone
- mikotondria30
I'm intrigued as to exactly what the brief is here ?
I've done similar things but used file_get_contents on the domain page, and no divs or tags..
What ys doin ?
- dbloc0
So if I want click on a link that is within portfolio that is called print
I need it to load the content on that same page in a div called contentI also need the url to change to
/portfolio/print/also,
when someone goes directly to /portfolio/print
it needs to load the index file and load the print page in the content div
- i_was0
if you want urls without the fragment part (#) you'll have to use htaccess .
- << htaccess, yes.
Or do some url sniffing on the page and retrieve whatever portion via file_get_contents etcmikotondria3
- << htaccess, yes.
- uan0
- BabySnakes0
Id say time to learn you some Backbone.js
http://backbonetutorials.com/