Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-14 21:02:22

firago
Member
Registered: 2005-01-03
Posts: 54

Need help with a javascript

I known next to nothing about javascript, but would really like to make a javascript that does the following; fetch the date of the most recent article of an rss feed, and then change the class of an object depending on how many days ago that most recent article was published .

So if you know any helpful javascript message boards/forums where somebody could help me make this script happen, or if you know any good websites/books which would teach me the javascript techniques needed to make this scripts, could you please leave a reply.

Thank you ahead of time for your help.

Offline

#2 2006-05-16 19:50:16

firago
Member
Registered: 2005-01-03
Posts: 54

Re: Need help with a javascript

Does anybody know any good javascript resources?

Offline

#3 2006-05-17 14:27:06

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

Re: Need help with a javascript

somehow your description sounds like you need php AND js to me… Maybe I’m wrong

Last edited by colak (2006-05-17 14:28:17)


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

Offline

#4 2006-05-17 17:36:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Need help with a javascript

Might be able to use AJAX?

Offline

#5 2006-05-18 17:58:15

firago
Member
Registered: 2005-01-03
Posts: 54

Re: Need help with a javascript

Sorry Colak, yes i do need to use php for the date part, as for changing the class and fetching the feeds, i will need js. So anybody know of any good js resources?

Offline

#6 2006-05-24 00:40:36

firago
Member
Registered: 2005-01-03
Posts: 54

Re: Need help with a javascript

Mary, I have heard that the XMLHttpRequest object is what I should use spepcifically, but I have no idea how to and need some help doing this.

Offline

#7 2006-05-24 23:59:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Need help with a javascript

Mary, I have heard that the XMLHttpRequest object is what I should use spepcifically, but I have no idea how to and need some help doing this.

xactly, commonly known as “ajax” (Asynchronous JavaScript + XML), for short. Here’s a big list of ajax resources, some of which are basic tutorials to help you get started. Since you want to handle feeds, which are xml, I would think it would be easy once you learn how it works. :)

Offline

Board footer

Powered by FluxBB