| View previous topic :: View next topic |
| Author |
Message |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 23, 2006 8:39 pm Post subject: Javascript within html not repeating... |
|
|
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 |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Mon Jan 23, 2006 8:53 pm Post subject: |
|
|
uhm...what if I said I didn't understand ANYTHING ?  |
|
| Back to top |
|
 |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 23, 2006 9:11 pm Post subject: |
|
|
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 |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Mon Jan 23, 2006 9:27 pm Post subject: |
|
|
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 |
|
 |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 23, 2006 10:56 pm Post subject: |
|
|
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 |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Mon Jan 23, 2006 11:11 pm Post subject: |
|
|
| 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 |
|
 |
tom fallow
Joined: 30 Dec 2005 Posts: 27 Location: PA
|
Posted: Mon Jan 23, 2006 11:55 pm Post subject: |
|
|
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 |
|
 |
|