Announcement

Collapse
No announcement yet.

Controlling AMS From a Web-Browser Object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HAZ
    replied
    Re: Controlling AMS From a Web-Browser Object

    any ideas? this is still frustrating the development of this interface...

    thanks!

    --HAZ

    Leave a comment:


  • HAZ
    replied
    Re: Controlling AMS From a Web-Browser Object

    Quick follow-up question...

    I have a number of named anchors within a regular html page that simply jump a user down the page (exactly like a simple FAQ).

    They work perfectly.

    I also have a button for minimizing the window (#mini) and it works perfectly. This button is in a frame (the window is split top / down with a basic navigation bar at the top and the content in the bottom).

    If I enter the page and click on the named anchors I navigate perfectly. However, when I click on the named anchors AFTER clicking on the minimize button I jump TO the target anchor AND minimize... odd :confused:

    Any suggestions? Should I somehow be refreshing the page AFTER I come back from the minimize (how??)... very very odd.

    Thank you for any insight =)

    --HAZ

    Leave a comment:


  • Corey
    replied
    Re: Controlling AMS From a Web-Browser Object

    Cool! :

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • cyberwebwerks
    replied
    Re: Controlling AMS From a Web-Browser Object

    i got it !

    Leave a comment:


  • cyberwebwerks
    replied
    Re: Controlling AMS From a Web-Browser Object

    think i found it

    Leave a comment:


  • cyberwebwerks
    replied
    Re: Controlling AMS From a Web-Browser Object

    i think where i get lost is i cant find in ams where it defines what to do when the link #s is clicked. what does each step do ?

    Leave a comment:


  • cyberwebwerks
    replied
    Re: Controlling AMS From a Web-Browser Object

    I'm still lost. ,Whats wrong with this ?

    <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>%html%</Variable>
    <Value>&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&am p;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;BR&amp;gt; &amp;lt;FONT FACE="VERDANA" size="2"&amp;gt;&amp;lt;a href="html.html#x"&amp;gt;&amp;lt;CENTER&amp;gt;Cl ick Here to Select MP3 Folder&amp;lt;/CENTER&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
    XXXXXXXX&amp;lt;/FONT&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;</Value>
    <Evaluate>0</Evaluate>
    </Action>
    <Action name="Replace">
    <Type>60</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%myCode%</Variable>
    <SearchIn>%html%</SearchIn>
    <SearchFor>XXXXXXXX</SearchFor>
    <ReplaceWith/>
    <CaseSensitive>1</CaseSensitive>
    </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>%mycode% = "#close"</Condition>
    </Action>
    <Action name="Exit">
    <Type>2</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </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>

    Leave a comment:


  • Corey
    replied
    Re: Controlling AMS From a Web-Browser Object

    Yes absolutely, try it again with the basic principles in mind which are:

    1. add an html page with a web link which contains a named anchor, i.e. #top, #email, #exit, or whatever.

    2. Whenever the web browser object containing the html page navigates (link is clicked) detect the new URL and parse it to get just that last string, i.e. we do this be splitting the string with # as the delimiter, i.e. top, email, exit, or whatever.

    3. Using IF statements detect and attach the correct reaction actions for the given clicks, i.e. the web link #email triggers an email function whereas #exit triggers an APPLICATION > EXIT action, etc...

    Really simple stuff, pick through the project again in earnest and then ifyou still don;t see it, just let me know where it stops making sense to you and I'll see if I can explain it better.

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • cyberwebwerks
    replied
    Re: Controlling AMS From a Web-Browser Object

    I've looked at the code and I don't understand it. Basically I want a link within a web browser object to perform a series of commands within ams. Any chance you could help just a bit more ?

    Leave a comment:


  • Corey
    replied
    Re: Controlling AMS From a Web-Browser Object

    Hmmm, really, eh? Cool anomaly, I like stuff like that, I'll have to use that 'm' thing as a shortcut to making a minimize button sometime.

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • HAZ
    replied
    Re: Controlling AMS From a Web-Browser Object

    that worked like a charm!

    that example covers a whole wack of really powerful code (now I want to think of new applications just so I can incorporate it!).

    I did have one minor snafu when I tried using #m as the URL and tied it to window.minimize - it would open the browser and immediately minimize... changing it to any other variable solved it so I'm 100% happy.

    thanks once again for the FANTASTIC example


    Best regards,

    --HAZ

    Leave a comment:


  • Corey
    replied
    Re: Controlling AMS From a Web-Browser Object

    Not an official one yet but soon. We've just been doing so much, it's all just sort of coming together at once. You know how it is, takes time to do good things.

    Although we have now re-activated uploads to the forum so it's very easy to swap projects, etc. now. Hopefully that sample will do the trick, keep us posted...

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • HAZ
    replied
    Re: Controlling AMS From a Web-Browser Object

    good grief!

    that's A LOT of VERY useful information!

    That looks like it should answer just about any question I'll have on using the browser to control the interface --- thanks!

    I'll digest this for a little while and see if I can put it into action.

    thank you for the very fast response =)


    (btw... is there a project exchange where I could have / should have looked for this first?)


    thanks again!

    --HAZ

    Leave a comment:


  • Corey
    replied
    Re: Controlling AMS From a Web-Browser Object

    Hi HAZ, check this out... http://www.indigorose.com/temp_web/html_jukebox.zip then let me know if you still need help...

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • HAZ
    started a topic Controlling AMS From a Web-Browser Object

    Controlling AMS From a Web-Browser Object

    Hello all,

    I am trying to control some basic functions from a web object. I am trying to re-use as much existing web content as I can...

    For instance, I have moved the minimize and exit buttons INSIDE of the web object. How do I go about "passing" the respective commands to the AMS interface?

    Any help would be greatly appreciated

    best regards,

    --HAZ
Working...
X
😀
🥰
🤢
😎
😡
👍
👎