Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-25 20:39:03

tripdragon
Member
Registered: 2005-07-22
Posts: 19

How can one build a XMLHttpRequest Ajax content loading site?

Lets say we all jump onto the ajax bandwagon for displaying articles without a new page load. And later use moofx to animate it all…
Kay so I have this block of code that in a normal page will display the article
<txp:article_custom id=“article-id-number” />
And I want to use the XMLHttpRequest power to draw that to the current page into a <div> box ….

Are there any plugins for this yet ??

Like this
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

And a great example http://www.download.com/

Last edited by tripdragon (2005-12-25 21:08:54)

Offline

#2 2005-12-25 23:41:36

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: How can one build a XMLHttpRequest Ajax content loading site?

tripdragon wrote:
Lets say we all jump onto the ajax bandwagon for displaying articles without a new page load.

No “we” don’t. That would be totally unaccessible, impossible to index, to search externally, to link to, and so on. Seems like a very, very, very bad idea.

Offline

#3 2005-12-26 02:47:31

tripdragon
Member
Registered: 2005-07-22
Posts: 19

Re: How can one build a XMLHttpRequest Ajax content loading site?

why ?? it is all databased so it would be searchable,,

Gee that sure is not stopping the multitude of sites useing it and working just fine with it

Last edited by tripdragon (2005-12-26 02:51:40)

Offline

#4 2005-12-26 04:03:46

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: How can one build a XMLHttpRequest Ajax content loading site?

tripdragon wrote:
why ?? it is all databased so it would be searchable,,

Externally searchable”. URI have intrinseque value beside all of that.

Gee that sure is not stopping the multitude of sites useing it and working just fine with it

Fine ? I’m waiting to see one. Got any url ?

Edit: download.com don’t use this feature as far as I can tell. Each ressource and content seems to have its own (ugly but still) URI.

Last edited by Jeremie (2005-12-26 04:05:43)

Offline

#5 2005-12-27 17:47:40

tripdragon
Member
Registered: 2005-07-22
Posts: 19

Re: How can one build a XMLHttpRequest Ajax content loading site?

Sheesh… It was just a question.. either if it is a good idea for you or not,… Anyone else >???

Offline

#6 2005-12-27 18:27:28

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: How can one build a XMLHttpRequest Ajax content loading site?

tripdragon,

I’ll leave it up to for addressing any usability concerns. In regards to your question though, have you had a chance to check out the live archive plugin? It doesn’t do exactly what you want, but it might be a good staging ground.

Offline

#7 2005-12-27 20:37:01

titox
New Member
Registered: 2005-01-28
Posts: 3

Re: How can one build a XMLHttpRequest Ajax content loading site?

Hi there,

You can find an example of Ajax requests on a TXP powered site on http://icebeat.bitacoras.com . It’s an spanish site, if you don’t understand the languaje you just have to press Weblog About Categorias links on the right top to see the effect in action.

Offline

#8 2005-12-27 21:34:22

tripdragon
Member
Registered: 2005-07-22
Posts: 19

Re: How can one build a XMLHttpRequest Ajax content loading site?

> titox wrote:

> Hi there,

You can find an example of Ajax requests on a TXP powered site on http://icebeat.bitacoras.com . It’s an spanish site, if you don’t understand the languaje you just have to press Weblog About Categorias links on the right top to see the effect in action.

OOO ! thats what i want ! hacky hacky.. :D thank you, If I figure it out I will post results , otherwise if someone can help it would be much appreciated.

Offline

#9 2005-12-28 08:29:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: How can one build a XMLHttpRequest Ajax content loading site?

I agree with Jeremie that XMLHttpRequest for a site with multiple entries might not be a good idea as it might not be indexed properly by the search engines… Having said that, gmail indexes ok. What I would love to see is a tutorial demonstrating a proper integration between txp and an ajax powered forum. (ok not really the request in this thread but it is somewhat related:)

Last edited by colak (2005-12-28 08:30:16)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2006-02-11 02:30:13

tripdragon
Member
Registered: 2005-07-22
Posts: 19

Re: How can one build a XMLHttpRequest Ajax content loading site?

i am confused on this
the front page is indexed fine, the other ajax pulled in pages would be searchable still withj the textpattern search database.. dont see the problem

would be nice to get a tutorial on this instead of hate :D

Offline

#11 2006-02-11 04:06:19

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: How can one build a XMLHttpRequest Ajax content loading site?

It’s not really that hard. First thing is to find an ajax library you like. I find prototype a pleasure to use, and it’s what powers all the Ruby on Rails ajax stuff. “Dojo Toolkit”: is supposed to be pretty good too but I haven’t used it.

Anyway using prototype what you would do is first setup your txp site so that all sections other the frontpage use pages that are very plain without the template around it (probably just the article form).

You would setup all your links to have an onclick event (or do it dynamically with something like behavior) that would basically call an Ajax.Updater() function which will update the area in the home page that you designate,let’s call it placeholder.

The Updater function will basically hit your url (/section/article) and grab the returning html. It will then replace the contents of placeholder with what is returned by the url.

You could in theory setup your site to be perfectly crawlable by a non javascript aware search engine bot and still have all the ajax eye candy for an Ajax aware client.

A good reference for prototype

Last edited by hakjoon (2006-02-11 04:07:25)


Shoving is the answer – pusher robot

Offline

#12 2006-02-12 01:34:51

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: How can one build a XMLHttpRequest Ajax content loading site?

tripdragon: people aren’t saying that Textpattern’s own search function won’t be able to search your site. They’re saying that if you try to do an all-in-one-page site that never sends users to a different actual URL, then search engines like Google, Yahoo and MSN will never know that there’s any more to your site than the default content of the front page, so people searching on Google, for example, would never see one of your articles as a search result. In order for external search engines to index your site, there must be links to the articles on their own pages, with each article having a unique URL.


You cooin’ with my bird?

Offline

Board footer

Powered by FluxBB