Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2002
    Location
    Hamburg, Germany
    Posts
    61

    Link between 2 webobjects

    Hi short n simple question...

    is it possible to make html-links between 2 active webobjects like in framesets?

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

  3. #3
    Join Date
    Oct 2002
    Location
    Hamburg, Germany
    Posts
    61
    "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>

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Example attached. Look in the browser1 "On Navigate Complete" event for actions.

    Corey Milner
    Creative Director, Indigo Rose Software
    Attached Files

  5. #5
    Join Date
    Oct 2002
    Location
    Hamburg, Germany
    Posts
    61
    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

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

  7. #7
    Join Date
    Oct 2002
    Location
    Hamburg, Germany
    Posts
    61
    Thanx Corey... i dig it !

  8. #8
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts