Tutorialstream.com Forum Index
 FAQ   Search   Members   Usergroups   Register   Profile   Log in to check your private messages   Log in 

Log in
Username:    Password:      Log me on automatically each visit    
Javascript within html not repeating...

 
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design
View previous topic :: View next topic  
Author Message
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 23, 2006 8:39 pm    Post subject: Javascript within html not repeating... Reply with quote

Hi all,

I have a row in my page which is a repeat region.
I have a countdown timer written in javascript placed within the row.

Upon preview, everything in that row is repeated correctly, but the countdown timer appears only on the first row. What am I doing wrong?
("Hello Fed" in advance!)
Back to top
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Mon Jan 23, 2006 8:53 pm    Post subject: Reply with quote

uhm...what if I said I didn't understand ANYTHING ? Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 23, 2006 9:11 pm    Post subject: Reply with quote

hmmm...ok I'll reiterate...

I have a php web page I'm working with.
It displays a row of data for each of a users widgets.
I am using dreamweaver's "repeat region" behavior to display all of the rows.

Part of the data to be displayed is a timer which counts down the time a user has left until he/she should renew the widget.

I used a javascript script for the countdown timer.

My problem is this...the timer displays only on the first row. If there are multiple widgets, the timer only displays for the first widget.

I need a timer to be displayed for each widget the user has.
Back to top
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Mon Jan 23, 2006 9:27 pm    Post subject: Reply with quote

uhm...I never used the dreamweaver repeat region and I am actualy using html-kit as editor ( http://www.chami.com/html-kit/ thumbs up!!! )
I think I really can't help you on this issue as I'm not getting what you have and what is happening...btw can't you put there a counter for each row?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 23, 2006 10:56 pm    Post subject: Reply with quote

Dreamweaver just enters a code to replicate the rows based on number of records in the database.

For some reason, the javascript within the row to be replicated is not being replicated. I'm not sure why.

I checked out the html kit...I'll try it some time, but I don't think it will help me with this problem!!
Back to top
View user's profile Send private message
Fed
Site Admin


Joined: 12 Aug 2005
Posts: 176

PostPosted: Mon Jan 23, 2006 11:11 pm    Post subject: Reply with quote

tom fallow wrote:

I checked out the html kit...I'll try it some time, but I don't think it will help me with this problem!!


well surely html-kit won't help you solve this issue
can't you edit the javascript manually to make it work?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tom fallow



Joined: 30 Dec 2005
Posts: 27
Location: PA

PostPosted: Mon Jan 23, 2006 11:55 pm    Post subject: Reply with quote

I tried many times to edit the code. After hours of unsuccesful attempts, I've decided to go with a php countdown timer. It will do the job fine, although I'd much rather use a live counter on the page.

Thanks Fed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Tutorialstream.com Forum Index -> Web Design All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB SEO URLs V2 - Icons by Mark James

Powered by phpBB © 2001, 2005 phpBB Group