SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can I get URL in frameset

    I had a webpage using Frameset, there are two frames, left and right, they are declared as "SystemMenu" and "RightFrame". In SystemMenu frame, I had some links whose content will be shown on "RightFrame",What I want to do is to verify that the rightFrame's URL is exactly what I want it to be. For example, after I click "change password", the url of RightFrame should be "http://ddd.bbb.ccc/changepassword.html". The problem is that I do not know how can I get the URL from "RightFrame".

    Anybody can help.

    Thanks


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

  2. #2
    Junior Member
    Join Date
    Mar 2003
    Location
    Grodno, Belarus
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how can I get URL in frameset

    What about
    string sLocation = RightFrame.GetLocation()?

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

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how can I get URL in frameset

    No,it does not work, it return with "http://ddd.bbb.ccc" instead of "http://ddd.bbb.ccc/changepassword.html"




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

  4. #4
    Junior Member
    Join Date
    Mar 2003
    Location
    Grodno, Belarus
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how can I get URL in frameset

    As a way:
    Open "View Source" notepad window and get it's caption (will look like 'changepassword.html - Notepad'):
    [-] window MainWin wFoo
    [ ] tag "#1"
    [ ]
    [-] main()
    [ ]
    [ ] RECT Rect
    [ ] Rect = wMainWindow.RightFrame.GetRect (TRUE)
    [ ] integer x = Rect.xPos + Rect.xSize / 2
    [ ] integer y = Rect.yPos + Rect.ySize / 2
    [ ] Desktop.Click (2, x, y)
    [ ] sleep(2)
    [ ] Desktop.TypeKeys("v")
    [ ]
    [ ] sleep(5)
    [ ]
    [ ] string sCaption = wFoo.GetCaption()


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

 

 

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.