r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Plugin-2] Browser Plugins

Maxim
18-Jun-2007
[1967]
hi guys, I can't find ANY example of calling javascript within the 
plugin !    can any one just give an example where I get some values 
from the DOM (I'd like to retrive the current URL from which the 
plugin was called, so I can talk to the server... a tool I built 
needs to be setup for each site... (without changing the code... 
its compressed.)
Henrik
18-Jun-2007
[1968x2]
maxim, I made this a long time ago, shortly after the first plugin 
came out:

http://hmkdesign.dk/dom/curvyclean.html

http://hmkdesign.dk/dom/<-- all files can be seen here
nothing is finished, but you can at least see some DOM calls somewhere 
in there :-)
Maxim
18-Jun-2007
[1970x3]
thanks  : -)
a ha... do-browser  :-)
henrik, I don't seem to be able to retrieve values from javascript... 
how do I get values FROM do-brower .... do you know?
Henrik
18-Jun-2007
[1973]
hmm... I'm not sure about that. I don't think I got that far.
Maxim
18-Jun-2007
[1974x2]
a ha... just figured it out... simply put the variable as the last 
thing in the script:

rebol []




view layout [ button "test" [view/new layout compose [vtext (do-browser 
{var url = document.location.href; url})]]]
the above will show a small page which has a button... click on it 
and the current URL is poped up in a new window  :-)

yippee!
Henrik
18-Jun-2007
[1976]
yes, javascript is quite amazing
Chris
18-Jun-2007
[1977]
I think this is for an older version of the plugin: http://www.ross-gill.com/r/tile-test/
 Need to look into bringing it up to date...
amacleod
7-Apr-2008
[1978]
I was playing around with some of the Demos for the plugin. They 
were working fine and then I got hte request to download the active-x 
component. I downloadred thing perhaps I had an older version installed 
but now the plugin is not working. I get a REBOL/VIEWdll window with 
"Show on face in closed window." printed inside. Anyone?
amacleod
17-Apr-2008
[1979]
I downloaded version 7 of he cab file. All the demos point to version 
5. 

You should not need to go serach for a new version and manulaly delete 
old versions.


The docs also state that if there are version #'s in hte rebol head 
of the app the plugin will aluto update the cashed version if a new 
version is pointed to. I can't get this to work. Is this working?
Gregg
17-Apr-2008
[1980]
I haven't tried using anything past v5. We got it stable and then 
just left it alone.
amacleod
3-Sep-2008
[1981]
I just discovered Tim Wylie's Wrapper for the rebol plugin. It works 
for FireFox3 Google's Chrome and Opera. It allows you to have multiple 
rebol apps running in seperate draggable windows inside the browser 
window. I tried it on opera mini and although the "dock and Application 
laucher windows show and app windows open the apps do not seem to 
run. I'm not sure how the wrapper works if its on the server side 
or client side. It worked on a fresh install of opera without me 
downloading the plugin dll (but it may have been there from a previous 
experiment.) 
Anyone know if opera mini could run this?
This could be a great way to get rebol apps on my mobile phone
BrianH
3-Sep-2008
[1982]
You would need a rebol dll for the operating system and hardware 
of your phone. If it is not running Linux you may be out of luck, 
and if it is you would need to request a build. The WinCE build of 
REBOL is an old port of /Core for the handheld pc version of WinCE 
with no support for onscreen keyboards or Smartphone edition, and 
there is no build for Symbian.
amacleod
3-Sep-2008
[1983x2]
I was able to use it on my linux box with firefox. I know there is 
know plugin for linux firefox and I do not have any form of the plugin 
on that machine.
My mistake. The front end ran but rebol apps do not on the linux 
box...never mind
Graham
9-Oct-2008
[1985x12]
What is the status of the plugin ?  Does it work for FF 3?   IE 7? 
Chrome ?
IE 7 works.
FF3 gives this error
Firefox could not install the file at 

http://www.rebol.com/plugin/rebol-mozb2.xpi

because: Install script not found
-204
>> exists? http://www.rebol.com/plugin/rebol-mozb2.xpi
connecting to: www.rebol.com
== true
I am thinking of building something that will allow me to annotate 
faxes
If I use the paint program in the library ... as a plugin
I guess my plugin code will have to pass the image as a parameter 
to the code so that it loads the image.
So, I'll have to dynamically generate the plugin code.  Sound right?
the fax is on a remote site and will be converted to png by imagemagick
Anyone know how to pass parameters to the plugin?
<PARAM NAME="Args" VALUE="?"> ? Command-line arguments passed to 
the script (available in system/options/args).
http://www.rebol.net/plugin/tests/plugin-guide.html
What I am doing now is storing the image in the webapp public area. 
 I think create the embed object with a parameter pointing to the 
image.  the embed object loads the paint program and then loads the 
image as the parameter.
Terry
9-Oct-2008
[1997]
that's quite the mashup
Graham
9-Oct-2008
[1998x2]
It's working ...
I can paint on an image that is stored in the Cheyenne webapp
Terry
9-Oct-2008
[2000]
How do you define webapp?
Graham
9-Oct-2008
[2001]
That's the term Cheyenne uses for a password protected area of the 
webspace
Terry
9-Oct-2008
[2002x2]
ahh..
did you need a password to draw on it?
Graham
9-Oct-2008
[2004x2]
let me do a quick video
http://screencast.com/t/ICQzmG4FP5
Terry
9-Oct-2008
[2006]
ok
Graham
9-Oct-2008
[2007]
the paint is a bit sluggish :(
Terry
9-Oct-2008
[2008]
Why faxes? Do they not have internet in NZ?
Graham
9-Oct-2008
[2009x2]
It's for the USA.  Not for me
Oh, and Canada
Terry
9-Oct-2008
[2011]
Still
Graham
9-Oct-2008
[2012]
Most docs in the USA and Canada get prescription requests by fax 
from the pharmacy
Terry
9-Oct-2008
[2013]
That industry is as bad as government when it comes to IT
Graham
9-Oct-2008
[2014]
I don't recall the plugin being this sluggish
Terry
9-Oct-2008
[2015]
Chrome?
Graham
9-Oct-2008
[2016]
IE