Welcome to the Indigo Rose Software discussion forums! You will need to sign up for a forum account and login before you can post. Need help? View the Forum FAQ.
Sure, that tree menhu is javascript, it can be easily inserted directly into your AMS project wia a web browser object. Try it out, you'll see it's pretty easy...
It works great but I cant link to anather page in AMS.
I have testing many combinations in the HTML file ex:
<a href="#Page.Jump("page2")">Link</a>
<a href="#page2">Link</a>
Sure, that tree menhu is javascript, it can be easily inserted directly into your AMS project wia a web browser object. Try it out, you'll see it's pretty easy...
Well you just need to get the "URL" property from the web browser OnNavigateFinish and then use that info to guide your page jumps using IF statements.
So I need to "write" cod for every link in AMS? Very hard if I have about 100 links in my html file.
If I write something like this in "On navigate complete", its work but hard to do if I need to do it on every link.
%myURL% = WebBrowserObject[WebBrowser1].GetProperty ("URL")
%myURL% = String.Right ("%myURL%", 5)
IF (%myURL% = "Page2")
Page.Jump ("Page 2")
END IF
Is there any easyer way?
Well you just need to get the "URL" property from the web browser OnNavigateFinish and then use that info to guide your page jumps using IF statements.
If your code will always reference the Page as PageX you should be able to create a loop to check all 100 possible pages.
%Ctr% = 1
%myURL% = WebBrowserObject[WebBrowser1].GetProperty ("URL")
%myURL% = String.Right ("%myURL%", 5)
While (%Ctr% <= 100)
IF (%myURL% = "Page%Ctr%")
Page.Jump ("Page %Ctr%")
END IF
%Ctr% = Evaluate(%Ctr% + 1)
End
Not exact code, but hopefully it should give you an idea.
I don't like to write cod(e) when I can have the program do it for me.
Comment