Re-4: Off-Line revlets?

runrev260805 at m-r-d.de runrev260805 at m-r-d.de
Mon Nov 2 17:20:20 EST 2009


Hi,

tried "window.location.hrev" also. In IE8 i get no value back.

I tried the follwoing  html file with javascript inside.
-----
<html><head><title>Test</title>
<script type="text/javascript">

  alert(window.location.href);
  alert(document.location.href);
</script>
</head><body>
</body></html>
-----
Running this html file in IE8 opens both alert windows showing h the correct value.


Only from within the revelt it seems that it does not work in IE8.

I used the following code to test it in my revlet

on openStack
local tURL
do "window.location.href;" in browser
-- do "document.location.href;" in browser
put the result into tURL
answer tURL
end openStack

In IE8 i get an empty answer dialog. In Firefox i get the value displayed

Is this a bug. Should i report this?

Matthias
-------- Original Message --------
Subject: Re: Re-2: Off-Line revlets? (02-Nov-2009 21:13)
From:    Brian Yennie <briany at qldlearning.com>
To:      runrev260805 at m-r-d.de

> Try:
> 
> window.location.href
> 
> I believe this should work for all browsers.
> 
> > Hi,
> >
> > i already tried that solution. It works without problems under  
> > Firefox here under Windows. But under IE8 i get no value back for  
> > "document.location.href;". Maybe due to security settings. I do not  
> > know.
> >
> > But that means, that IE users cannot run the revlet, although it is  
> > started from the "right" website.
> >
> > Regards,
> >
> > Matthias
> >
> > -------- Original Message --------
> > Subject: Re: Off-Line revlets? (02-Nov-2009 20:43)
> > From:    David Coker <davidocoker at gmail.com>
> > To:      runrev260805 at m-r-d.de
> >
> >>
> >>> Is it possible for an end-user to 'salvage' a revlet from
> >>> a browser cache and thereby continue using it, effectively
> >>> as a free-standing program, when not connected to the internet?
> >>
> >>> AND;
> >>
> >>> If this is, at least theoretically possible, is there a way to  
> >>> prevent it?
> >>
> >>
> >> Hello Richmond,
> >> Here is the solution that was given to my similar question a few  
> >> days ago (
> >> Thanks Malte!):
> >>
> >>> this script executes a bit of javascript in the browser. The result
> >>> will then contain the URL your revLet has been launched from and you
> >>> can react accordingly. so you might want to do this on openstack for
> >>> example
> >>
> >> on openStack
> >> local tURL
> >> do "document.location.href;" in browser
> >> put the result into tURL
> >> if tURL <> "path/you/would/expect.html" then
> >> answer "You are using my revlet from an unknown location. Please use
> >> it from my site instead"
> >> -- do a redirect here if you wish or quit
> >> end if
> >> end openStack
> >>
> >>> Hope that sheds some light.
> >>
> >>> All the best,
> >>
> >>> Malte
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution at lists.runrev.com





More information about the use-livecode mailing list