View Full Version : Link between 2 webobjects
Sneeze
10-26-2003, 07:58 AM
Hi short n simple question...
is it possible to make html-links between 2 active webobjects like in framesets?
Corey
10-26-2003, 10:35 AM
Yep, just use named anchor links, i.e. #homepage and then get the URL property from the web object with the link (On Navigate Complete) and then use an IF statement to determine what the link was, i.e. #homepage or whatever and attach the appropriate actions... Know what I mean?
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Sneeze
10-26-2003, 01:06 PM
"Know what I mean?"
Not realy...
i try your tip with "this" but it change the site only in "Link Webobject" :(
<IR_ACTIONS_LIST>
<Action name="Set Value">
<Type>6</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%Seite2%</Variable>
<Value>seite2.htm#seite2</Value>
<Evaluate>0</Evaluate>
</Action>
<Action name="IF">
<Type>200</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Condition>%Seite2%=TRUE</Condition>
</Action>
<Action name="Navigate To">
<Type>42</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<WebObjectName>WebBrowser2</WebObjectName>
<URL>DATA\seite2.htm</URL>
</Action>
<Action name="END IF">
<Type>201</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
</Action>
</IR_ACTIONS_LIST>
Corey
10-26-2003, 01:56 PM
Example attached. Look in the browser1 "On Navigate Complete" event for actions.
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Sneeze
10-26-2003, 04:29 PM
again...special thanks to you corey
in my second try after my reply to your fist post i realized the %property%Webbrowser Get Property URL. And i thought i was near a solution but your "Property-String" with # and 1 ...
I dig never in my life ;)
"I think" i have understand the # in it but why is there the "1" ?
Sneeze
Corey
10-26-2003, 05:15 PM
You can name the links anything you like, the key concept here is that you are detecting them and using them to trigger action(s).
In this case I chose #1 and #2 but they could be anything, the main thing is that that have to match up with what you put in your IF statement, i.e.:
IF %Variable% = 1
works for the link #1 whereas you would use:
IF %Variable% = redhat
for the link #redhat, etc...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Sneeze
10-26-2003, 07:37 PM
Thanx Corey... i dig it ! :)
Corey
10-26-2003, 07:48 PM
Coolness. :) Now you can activate any action or series of actions with any web link. Such power, such power... :)
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.