Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-25-2008, 05:10 AM   PM User | #1
CoLL1eR
New to the CF scene

 
Join Date: Apr 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
CoLL1eR is an unknown quantity at this point
Question about innerHTML

Say I need to change "Members: 4389" to "Members: 32894" but the 4389 number is consistently changing due to new members, how can I have innerHTML keep the members number at 32894 if the members changes to 4389

Do you understand, or do I need to explain more?

Thank you
CoLL1eR is offline   Reply With Quote
Old 04-25-2008, 05:18 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
How is the number of members generated?,,,through variables?..

If you want to keep 32894, why not just hand code 32894
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Old 04-25-2008, 05:19 AM   PM User | #3
CoLL1eR
New to the CF scene

 
Join Date: Apr 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
CoLL1eR is an unknown quantity at this point
Its PHPBB, I want to change the members from 4389, to 32894.
Would it better easier to update via the database?
CoLL1eR is offline   Reply With Quote
Old 04-25-2008, 05:23 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
I'm confused (nothing new about it)

....If you'll need to update the DB, then update...since you want to keep 32894 at all times, but then..I think it's much easier to hand code that number (IMO)

...If 32894 is a variable...affected by the number of your members...then don't use that variable

Hope makes sense
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Users who have thanked rangana for this post:
CoLL1eR (04-25-2008)
Old 04-25-2008, 05:48 AM   PM User | #5
CoLL1eR
New to the CF scene

 
Join Date: Apr 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
CoLL1eR is an unknown quantity at this point
Yeah it does, thanks. :]
CoLL1eR is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:36 AM.


Advertisement
Log in to turn off these ads.