Announcement

Collapse
No announcement yet.

web browser object links

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

  • web browser object links

    Quick question: can you link pages (ie, page1, page3) in AMS from a web browser object? If so, how? Thanks.
    Regards,

    -Ron

    Music | Video | Pictures

  • #2
    Re: web browser object links

    Yes you can. Basically you can control anything with a web object by using HTML links such as #pagejump or #exit and parsing the PAGE URL for that value on the finish navigate state.

    If you check out the HTML jukebox I posted yesterday it contains a perfect sample of this in action... Feel free to use or alter the code from the jukebox in anyway you like.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: web browser object links

      Um, Corey? I downloaded your app, and if you select an mp3 folder, it works fantastic. However, try hitting 'cancel' from the "browse files dialogue box" (warning: don't have anything running you need to save), press OK, then hitting cancel again; it crashed my system. Kept opening the preview. Just thought you should know.

      I do get the gist on WBO links though, thanks! [img]/ubbthreads/images/icons/smile.gif[/img]

      I'll be back if I have anything further.
      Regards,

      -Ron

      Music | Video | Pictures

      Comment


      • #4
        Re: web browser object links

        I'm sure it has something to do with this - maybe an else statement?

        IF (%count% <0)
        %result%......
        Regards,

        -Ron

        Music | Video | Pictures

        Comment


        • #5
          Re: web browser object links

          OK, got the html links working from within the browser object, no problem. But now, when it navigates to a page (page3), it renders my original buttons across the top for page navigation useless. If I go to the page using page.jump from (within ams) page1 to page3, navigation is fine. But when I go to page3 from the web object and try to return to page1 using ams page.jump, page1 flashes for a split second and stays at page3? Am I getting into something too deep here?
          Regards,

          -Ron

          Music | Video | Pictures

          Comment


          • #6
            Re: web browser object links

            Check if there's any actions on Page 1's onShow or OnInitialize events, it's been a long time since I made that project so I can't recall but it sounds like that's it...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: web browser object links

              ***Check if there's any actions on Page 1's onShow or OnInitialize events***

              I do/did, but it doesn't make a difference. I'll see if I can slim it down, so one of you can take a look at it and tell me what I'm doing wrong, thanks.
              Regards,

              -Ron

              Music | Video | Pictures

              Comment


              • #8
                Re: web browser object links

                Test Browser Object

                Here's a sample of what I'm talking about. If you go to page 3 using the browser object, I can't get back to page1. If you navigate from page1 - Page.Jump, it works great. I'll have several links doing this, so if you could just tell me what to add or whatever, I'll be in the clear. Thanks for looking.
                Regards,

                -Ron

                Music | Video | Pictures

                Comment


                • #9
                  Re: web browser object links

                  Hmmmm, that project contains a single page with no web object on it... ???

                  I would reccomend starting from scratch.

                  1. Create an html page with two links, one named page1 linked to #1 and one named page 2 linked to #2, i.e. <a href="#1">page1</a>
                  2. name this file links.html and put it in your distribution folder.
                  3. Create a web object, point it at this file.
                  4. in the web object's On Navigate complete event put a web object get property action to get the url then use a string get delimited string action set to # (or string right) to get that last character into a variable, i.e. %myPage% = 1. Add a page jump action set to go to %myPage% (or whatever variable you choose).
                  5. Duplicate this page, name page1 "1" and page2 "2".

                  That's it, you're done, it'll work fine...

                  Corey Milner
                  Creative Director, Indigo Rose Software

                  Comment


                  • #10
                    Re: web browser object links

                    Shoot, my bad, sorry about that. The file is good now, don't know what I did.

                    Anyway, your last suggetion is exactly how I did it, and it's not working. When you get a chance, can you check it again? Appreciate all your help so far!

                    Test.zip
                    Regards,

                    -Ron

                    Music | Video | Pictures

                    Comment


                    • #11
                      Re: web browser object links

                      It doesn't appear so, for example at first glance I see you didn't put quotes around your web links and you also didn't use "#1" you used "test.htm#1". So give it another shot, being careful to read and follow the instructions exactly, and you should be fine... [img]/ubbthreads/images/icons/smile.gif[/img]

                      Corey Milner
                      Creative Director, Indigo Rose Software

                      Comment


                      • #12
                        Re: web browser object links

                        With all due respect, I didn't ask how to link to another web object. The page it jumps to does not have a web object on it. If you preview the test project (without belittling - the smiley doesn't help), the page url works fine and I appreciate the initial help on that. I whipped that sample together in about 5 minutes; sorry for the minor syntax issue, but the link does work and THAT"s not my problem. It's getting back to the start page within the application that the problem lies. Any help on that would be great.
                        Regards,

                        -Ron

                        Music | Video | Pictures

                        Comment


                        • #13
                          Re: web browser object links

                          Hi Ron. The instructions I posted they pertain directly to, "activating a page jump in your AMS app via a link in a web object" which is what I thought you asked for. If that isn't what you are trying to do then please clarify your question and I'll see what I can offer. If it is what you are trying to do then you should find the simple 4-5 step instruction I posted above to work quite well...

                          Here's the basic concept. If you can detect an event you can use it to trigger any action. So the gist of the thing I was sharing is that you can use a web link in a web object to communicate data to any other part of your application via the URL string, that data can then be reacted to by your application in any way you like, i.e. to trigger a page jump or any other action(s)...

                          Corey Milner
                          Creative Director, Indigo Rose Software

                          Comment


                          • #14
                            Re: web browser object links

                            Yes Corey, that was my original question (guess I should've started another thread?) and you helped by pointing me to that jukebox thing, and I gathered much info from that, appreciate it again.

                            Now. When it jumps to a page (another generic page within the app) using a link within a browser object, it renders my original links at the top useless (or so it seems, trying to get back to page1 [which has the browser object] using Page.Jump. These are simple Page.Jumps from text buttons. However, if I Page.Jump from within the app (not a web object), the original buttons work fine. In that sample, the start page loads. Select page 3 "outside" the web object. Works good, you can go back to page1 via the text button - no problem. Now hit the web object link and go to page 3, won't go back to page 1. I'm sorry if I'm not explaining in the proper lingo, but this is what I have.

                            Thanks for your patience.
                            Regards,

                            -Ron

                            Music | Video | Pictures

                            Comment


                            • #15
                              Re: web browser object links

                              Try adding a web object refresh action to the page 1 onSHOW event...

                              Corey Milner
                              Creative Director, Indigo Rose Software

                              Comment

                              Working...
                              X