SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Dynamic objects - Physical description

    Hi,

    After reading through some posts and experimenting with some statements, I could get the following piece of code working -

    With this piece of code in the script, it selects the checkbox named "coke" even though I do not have in the GUI map.

    So, if I had this in the GUI map the physical description for "coke" would have been like -

    Now, the problem is that on some other page I've a checkbox with the following physical description:

    So, when I try to use the same logic as above with these as well it doesn't work. The problem is I'm unable to declare the object as -

    The following is the error message that is returned -

    I think the problem is that the actual description has part_value: "can:coke" while the newObject statement does not.

    So, how can I indicate " and : in the statement without getting this error?

    Very much appreciate your responses.

    TIA.
    -fP

    ------------------
    GeeksNeed ...
    "Fee"lancer http://www.FEELANCE.com
    Think Differently

    [This message has been edited by firstPerson (edited 04-09-2003).]
    QAwebsite.com
    GeeksNeed ...(Know what geeks need)

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    Hyderabad, India
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic objects - Physical description

    Hi,

    In the declaration of the newObject you are not using the escape character before the doubles quotes..which should also be included in the declaration...
    The declaration of the newObject should be changed as below...

    newObject="{class:check_button,MSW_class:html_chec k_button,html_name:rowsCheck,part_value:contnrArr[1]\":\"brandArr[1]"}";

    Hope this works...

    Regards,
    BNR

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

  3. #3
    Member
    Join Date
    Dec 2002
    Location
    Hyderabad, India
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic objects - Physical description

    Hi,

    I am sorry i identified another mistake in the statement which is

    newObject="{class:check_button,MSW_class:html_chec k_button,html_name:rowsCheck,part_value:contnrArr[1]
    Here the property name is missing..and so the syntax error was coming...
    :brandArr[1]}";

    now it doesn't give any sort of syntax error

    Regards,
    BNR

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

  4. #4
    Member
    Join Date
    Jul 2002
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic objects - Physical description

    Phew..After trying around with various combinations, I got the following solution:

    The above code would now select coke{part_value = "can:coke"} from the list.

    This way I was able to select the object even though I don't have it in the GUI map.

    Thanks to the forum :-)
    Regards,
    -fP

    ------------------
    GeeksNeed ...
    "Fee"lancer
    http://www.FEELANCE.com
    Think Differently
    QAwebsite.com
    GeeksNeed ...(Know what geeks need)

  5. #5
    Member
    Join Date
    Jul 2002
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic objects - Physical description

    Hello Rani,

    Thank you. Incidentally, I was trying various options while you were posting the response and got it working.
    You are right that I missed the escape character but as it turned out colon: does not need the escape [b]\[\b] character. The doublequotes [b]"[\b] required it.
    (See the code I posted above).

    Regards,
    -fP



    ------------------
    GeeksNeed ...
    "Fee"lancer
    http://www.FEELANCE.com
    Think Differently
    QAwebsite.com
    GeeksNeed ...(Know what geeks need)

  6. #6
    Junior Member
    Join Date
    Apr 2003
    Location
    Bangalore,Karnataka,India
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic objects - Physical description

    Hi,

    I went through the responses.
    In your case you guys knew what the part value would be before hand.
    My problem is that I am not sure what the part value is going to be , as it is a random value that was generated to identify the User.
    I your case you knew the different values it could take was some thing like 1)Coke 2) Can etc..
    I am not sure what is going to be the value.
    Thanks anyways

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

 

 

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 10.71%
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 12:09 AM.

Copyright BetaSoft Inc.