Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Its PHPBB, I want to change the members from 4389, to 32894.
    Would it better easier to update via the database?

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • Users who have thanked rangana for this post:

    CoLL1eR (04-25-2008)

  • #5
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yeah it does, thanks. :]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •