revWeb Question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
revWeb Question
How do I make my revLet load a new web page?
Here's my scenario:
I made some fancy interface and compiled it as a revLet. My revLet is embedded into index.html. I added a button control and opened up the script editor for that new button control. I typed on mouseUp then I pressed the Return button. I stare blankly at space as I don't know what script I should use to navigate to another HTML web page in my server. I want that button control to navigate to done.html when clicked but I don't know what code to use for it.
Here's my scenario:
I made some fancy interface and compiled it as a revLet. My revLet is embedded into index.html. I added a button control and opened up the script editor for that new button control. I typed on mouseUp then I pressed the Return button. I stare blankly at space as I don't know what script I should use to navigate to another HTML web page in my server. I want that button control to navigate to done.html when clicked but I don't know what code to use for it.
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
AFAIK, there will be nodirect interaction between revlet and containing web page in the first iteration of the revWeb browser plug-in - but it's being looked at for a future release.
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
Thank you for the information and awww that's too bad because I was thinking of remaking my website and instead of having flash, I'm gonna use revLets.Janschenkel wrote:AFAIK, there will be nodirect interaction between revlet and containing web page in the first iteration of the revWeb browser plug-in - but it's being looked at for a future release.
Jan Schenkel.
That would be ridiculous not to say absurd if this BASIC and essential feature will not go into the plugin!AFAIK, there will be nodirect interaction between revlet and containing web page in the first iteration of the revWeb browser plug-in...
Web content that cannot even change the page it is on?
C'mon Rev, tell us that's not true!
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
I wonder if this capability was present in Flash 1.0 or got added a few versions later? Let's be honest here, the revWeb browser plugin is in its first incarnation, and I'd rather see them solve the 'native windows' and 'modal dialog' limitations than embark on a mission to allow interaction with the containing page.
Give them some time, and I'm sure it will come to fruition.
Jan Schenkel.
Give them some time, and I'm sure it will come to fruition.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
revWeb Question
Actually a similar topic was discussed a while ago in theKlaus wrote: But I think that at least navigating to another page (not more and not less!) should make it into version 1!
Runrev mail user list under the subject: Revlet goURL
posted by Jacqueline Landman Gay on Monday Aug 10
http://mail.runrev.com/pipermail/use-re ... 27034.html
Reading this post in the forum left me a strange sense of
Deja-vu. Where i have seen the answer to this question?
Of course... in the mail list.
This is the proof that someone in Runrev should think in a way
to unify the messages in forums and mail list. In this way,
everything that you post in the forum is published in the
mail list and viceversa. Actually, i would like to download
and read offline all post from these forums, but i do not see
this option anywhere.
The answers posted to this topic were:
This works fine for me in a revlet:
revgourl "http://www.apple.com"
though it does open in a different tab in Firefox. Tested on XP.
(Richard Miller)
The docs say revGoUrl is deprecated:
The revGoURL command is deprecated and should not be used
in new code.
To open a url from within a stack, use the launch url command instead.
(Phil Davis)
It does work, as long as you don't have the NoScript Firefox
extension installed. NoScript apparently thinks it's a
cross-scripting attempt and blocks it. When it isn't installed,
revGoURL works.
The down side is that both methods open in a new tab.
I'd rather it acted like a regular link.
Come to think of it, it's a browser preference that determines
how the browser will respond when getting a request from
another application.
The default headers that Rev sends identify it as an external app.
Is there a header I can use that will make the browser think
it's an internal link instead?
(Jacqueline Landman Gay)
I was going to mention browser preferences as well, but also there
is the HTML target attribute: _self, _blank, _parent, _top.
If you're using an anchor form of linking, then you might try
"_self" or "_top":
<a href="http//www.runrev.html" target="_self">RunRev</a>
(Scott Rossi)