Web object On_Navigate URL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Tipperton
    Forum Member
    • Oct 2003
    • 26

    Web object On_Navigate URL

    For my project I don't want the web object to do certain navigations but to trap those with On_Navigate. If I code
    Code:
    <a href="#Introduction">
    I'd like to have e_URL = "#Introduction" but instead I get the whole current URL with the "#Introduction" tacked on at the end.

    Is there a way to do the href so that I don't get the whole URL but just what I put in?
  • yosik
    Indigo Rose Customer
    • Jun 2002
    • 1858

    #2
    Tipperton,
    The following should help you:

    e_url= Web.GetURL("Web1");
    Ttl_length = String.Length(e_url);
    Pos = String.Find(e_url, "#", 1, false);
    Remain = Ttl_length - Pos;
    Your_href = String.Right(e_url, Remain);

    Good luck
    Yossi

    Comment

    Working...
    X