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

World: r3wp

[Plugin-2] Browser Plugins

Maxim
27-Jan-2007
[1857]
stupid questions... does current plugin allow us to access files 
and save out?  (using file browser or not)
Maxim
28-Jan-2007
[1858x3]
anyon can tell me how I can fix a web page containing a rebol plugin, 
so it detects the vertical size properly?
do-browser "document.getElementById('REBOL').offsetHeight" in firefox 
returns 19 !!
sorry, DAMN CTRL-S reset again:

do-browser "document.getElementById('REBOL').offsetHeight"

in IE returns proper height, in firefox 2.x I get 19
Oldes
28-Jan-2007
[1861]
try to use just .height
Chris
28-Jan-2007
[1862]
Use Firebug to inspect which DOM properties give you the correct 
height...
Maxim
6-Feb-2007
[1863x3]
talking about saving files in the plugin... I did a simple (very) 
test... 

rebol [] write %test.txt "test"
ran that in the browser and then did a full disk search and I never 
found One file named test.txt  :-(
reading seems to be ok... but not writing.
Volker
6-Feb-2007
[1866x2]
try a    alert mold what-dir
there is no linux-plugin :(
Maxim
6-Feb-2007
[1868x2]
IIRC It was argued, that it would be too easy to make DOS attacks 
... 
ex: 


loop 100000 [loop 10000000 [write/append %dos-attack.txt "1234567890"]
(talking about file writing)
Volker
6-Feb-2007
[1870]
hmm.  did not explore that far.
Maxim
6-Feb-2007
[1871x2]
but if the plugin had a properties page, we could allow some scripts 
domains or ip addresses specific rights.  all set to off by default. 
 and all prefs values encrypted when saved of sent to registry, so 
that no virii or other nasty can allow its site to run unhindered.
This would be in the intent where people develop internal apps and 
deploy them through the intranet... in such cases file access would 
be acceptible.
Volker
6-Feb-2007
[1873x2]
Yes, and simply restrict the filesize. Or  better use an virtual 
filesystem, like a  zip.
thought that door was left open in the beta
Maxim
6-Feb-2007
[1875x2]
me too.
but so far I am getting no results... and unless someone steps in 
to explain to me how I can write stuff out (read as gives me an example 
snippets which works on their machine)... I won't continue trying.... 
I've got other things to tackle first...


and obviously in normal web dev, the server is the file store, so 
you'd speak to it using http get and post... so as long as you have 
access to adding hooks on the server too, you can work out a virtual 
disk system through your web server... more safe too.
Volker
6-Feb-2007
[1877x2]
yes,butmore slow too.
hmm, through javascript you could use browser-cache.
Maxim
6-Feb-2007
[1879]
you can access the cache through javascript?  write and read?
Volker
6-Feb-2007
[1880]
you can call javascript and  get back a string AFAIK.
Maxim
6-Feb-2007
[1881]
do you know if we can properly resize the plugin size using javascript? 
or will in not refresh?
Volker
6-Feb-2007
[1882x2]
i hope that still works. Andi hope  javascript can read/write thru 
net. Or  only with ajax&callback?
do not know. I  guess Chris knows.
Maxim
6-Feb-2007
[1884]
Chris?
Volker
6-Feb-2007
[1885]
But byreloading a div?
Maxim
6-Feb-2007
[1886]
I thought by setting the object's size properties through the DOM... 
I haven't tried.
Volker
6-Feb-2007
[1887x2]
Our designer. Played a lot with the plugin IIRC.
Havent tried too, so i dont know.
Oldes
6-Feb-2007
[1889x2]
Maxim, you can save files from plugin, I'm using it.
The files are here: c:\Documents and Settings\your_user_name\Local 
Settings\Temp\REBOL\Plugin\
Rebolek
6-Feb-2007
[1891]
Maxim, Local Settings is hidden folder and that's why you haven't 
found the file I think.
Maxim
6-Feb-2007
[1892]
aha !!  thanks!
Terry
26-Feb-2007
[1893]
Hmm, every demo I've tried using a fresh install has issues of some 
type or another.. trying to decide if this this is alpha, or beta 
at best?
Oldes
26-Feb-2007
[1894]
I would say, that current plugin is still in alpha version
Maxim
26-Feb-2007
[1895]
has anyone succeeded in embeding the plug within a div which is persistent 
 or resident in some way (like in another frame, or something) so 
that browsing the same page twice actually just shows the previously 
launched plugin (so as to not have to actually restart it everytime...) 
???


I guess this is not just rebol pluging related, as the same effect 
would be desired for a flash based plugin too.
Oldes
26-Feb-2007
[1896]
I'm not sure if understand what do you want. If you want to leave 
page and come back without stopping plugin inside the page - it's 
not possible
Maxim
26-Feb-2007
[1897x2]
is there a way to store web content in another frame and swap it 
on demand?
Its been a long time since I've played with javascript... so I'm 
not only rusty, I'm shut. ;-)
Izkata
26-Feb-2007
[1899]
Hmm....  You could probably just store it in a string and swap it 
in and out of a DIV tag.  Usually much easier than messing with frames.....
Chris
26-Feb-2007
[1900]
Yep, just use -- document.getElementById('mydiv').innerHTML = mystring;
Maxim
9-Mar-2007
[1901]
is the proxy issue something that can be patched via mezz or is this 
really something that has to be done within the binary/
Pekr
9-Mar-2007
[1902]
no, it can't imo ...
Maxim
9-Mar-2007
[1903]
I hope that Carl sees all this nonsense and that he understands, 
that unless he can employ 10 full time programmers... he has to make 
all of this open source and relinkeable like python. (even if the 
core interpreter is closed)  99% of bugs are not related to it.
Pekr
9-Mar-2007
[1904]
hmm, actually I re-read my private exchange with Josh, and it seems 
Rebol detects proxy itself, if manual proxy config is set.
Maxim
9-Mar-2007
[1905]
yet more hope in R3
Pekr
9-Mar-2007
[1906]
Maybe the trouble was, that plug-in tried to connect before such 
code was applied during boot, dunno ...