SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Click() method and javascript popups

    I finally solved the problem that was driving me crazy for the longest time.

    Clicking on an HtmlImage that uses javascript to pop up a browser window with no url bar, no toolbar, no menu.. using the Click() method would work the first time around but not after that, causing an error that looked like
    *** Error: 'Window [HtmlImage]#9' not found.

    A workaround that *works*:
    LIST regions = wWindow.hHtmlImage.GetRegionList()
    wWindow.hHtmlImage.ClickRegion(regions[1])

    My button always has one region so I know always to click on the first one. If you don't know what region to click on, do a
    ListPrint (wWindow.iImage.GetRegionList())
    and hopefully you can figure it out.
    I think this was caused by the javascript/region (same thing) changing after the button has been clicked.

    I will try to get this documented by Segue as it's quite annoying and unintuitive. Also if anyone has questions on javascript popup windows, I think I've been through enough trouble with them to be able to save you some time.

    Cheers,
    Nir Gilboa.
    Asset Sciences.
    assetplanner.com

  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Click() method and javascript popups

    Update:

    Sometimes with the DOM extension and the GetRegionList command including the optional boolean for full path is neccessary.
    This does not work in all cases, it seems. Sometimes GetRegionList(true) will work and sometime GetRegionList() will.

 

 

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 04:20 PM.

Copyright BetaSoft Inc.