SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: HTML variables

  1. #1
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML variables

    Hi All,

    Is there any way to access the components in a row with a variable.
    For ex: I have a page called, page1, and in that page i have i have a table called table1, and in the first column i have check boxes, and if i need to get the state of the check boxes, is it possible to do it in a loop,
    like
    for i= 1 .. 5
    page1.HtmlTable("#1").HtmlColumn("#1).HtmlCheckBox ("#@i").GetState()

    if i use the above loop i get a run time error stating that ....HtmlCheckBox("#@i") not found.

    Does anyone know a way around. Please do let me know
    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTML variables

    Hi,

    Have you tried,
    for i= 1 .. 5
    page1.HtmlTable("#1").HtmlColumn("#1).HtmlCheckBox ("#{i}").GetState()?

    John.

    ------------------

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com

  3. #3
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTML variables

    Hi John

    Thanks for your suggestion. Your suggestion worked well.

    Regards

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:27 AM.

Copyright BetaSoft Inc.