PDA

View Full Version : Web object On_Navigate URL


Tipperton
06-13-2005, 03:06 PM
For my project I don't want the web object to do certain navigations but to trap those with On_Navigate. If I 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
06-13-2005, 04:00 PM
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