[weblet] How can a webLet communicate with the hosting html page?

splash21 rev at splash21.com
Mon Jul 6 19:23:22 EDT 2009


Notes.
If the session time out, you'll have to refresh the page.
Press the button to submit text - not the enter/return key.  I've 
(hopefully) trapped the return key, but if the page form is submitted 
you'll probably just get an error.

splash21 wrote:
> Where there's a will, there's a way....
> This example is pretty basic and I've only tested it on Firefox/Vista.
>
> http://splash21.on-rev.com/revlet/
>
> You can send text from the web page to the revlet.  Communication can 
> flow the other way as well.
>
> I saved the test revlet stack with a variable containing a string of 
> 'X' characters in the openStack script.
> The .rev file is not embedded on the HTML page - instead there's a 
> .irev file embedded.  The .irev file opens the real revlet file as 
> binary, replaces the string of X's with the user's session key and 
> spits the resulting binary file out to the browser.  This gets 
> downloaded as the revlet which now contains the session key and can 
> now communicate with the web page.
>
> It may seem like a total hack of a workaround, but it's simple - and 
> it seems to work.  Hope some of you guys find it useful!
>
> JC
>
>
> Robert M. wrote:
>> The webLets showed in the webinar are autistic : they only seem to 
>> work as a
>> confined world with no interaction with the rest of the page.
>>
>> 1) Is it possible to send them parameters, perhaps via a user  tag 
>> within
>> the object tag??
>>
>> I hope they're not autistic, oh god I pray!
>>
>> 2) is there a way to have one weblet communicate with another on the 
>> same
>> page???
>> Thanks... trying to figure out how to use weblets in my site design...   
>
>
> _______________________________________________
> 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
>
>





More information about the use-livecode mailing list