SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    problem with edit box

    Hi,
    I have a edit box.
    when i enter 2 in the edit box and click add button.
    its adding 2 edit boxes.
    now i need to enter data in the 2 edit boxes
    similarly if i enter 4, i need to enter data in the 4 edit boxes.
    so it all depends on the number which i enter in the 1st edit box.
    iam stuck up with the implementation.
    As i need to write a code so that if even i enter 10 in the 1st edit and click add button, i should be able to enter the data in the 10 edit boxes which gets populated.
    Any help will be really appreciated.
    Regards;
    Vijay

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Toronto, Canada
    Posts
    362
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: problem with edit box

    Use Childobjects on the webedit object you are talking about..Something like this

    <font class="small">Code:</font><hr /><pre>numofedits=5
    Browser(Br).Page(Pg).WebEdit(xyz).Set numofedits
    Browser(Br).Page(Pg).WebButton("Add").Click
    Browser(Br).Page(Pg).Sync
    Set WebEditObjs= Browser(Br).Page(Pg).ChildObjects(xyz)

    For i=0 to WebEditObjs.Count-1
    WebEditObjs(i).Set "Test"
    Next </pre><hr />

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 10:37 AM.

Copyright BetaSoft Inc.