Antville Project

denied permission in colorpicker.skin

yesterday i found out that the browsers do not allow the colorpicker pop-up window to use a function in its parent window (parseColor) at antville.org and thus prevents the colorpicker from working.

i read across some google results regarding mozilla's security model for javascript and tried out

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite")

but without a signed script this does not seem to work. (a signed script cannot be the solution, can it?)

i assume the problem arises from the different domains of the site which is loading the colorpicker (xyz.antville.org) and the colorpicker scripts which are "located" at www.antville.org. reason: the colorpicker works locally and at helma.org.

i rather don't want to put the colorpicker scripts into the site's domain because this would mean redundant download of one and the same functions for each site.

does anyone have an idea or a solution for this?

comment    

 
kris, November 11, 2002 at 11:35:19 AM CET

Re: dundant download

this would mean redundant download of one and the same functions for each site.

Even if it is redundant, it's neglectable. The colour picker is only available for administrators, innit? I don't think anyone uses the admin sections of two or more antville sites at the same time very often.

link  


... comment
 
nex, November 17, 2002 at 9:03:52 PM CET

Re: denied permission in colorpicker.skin

solution: never ever use javascript. there are solutions that don't need client side scripting at all and are still convenient to use.

for example, you could use three images showing gradients that represent the respective red, green and blue settings. the gradients show at each position what the resulting colour would be if you set that value to that position. for example, if the current colour is black, then the image representing the red setting would be a gradient from black (0% red) to red (100% red). if the current colour is yellow (#FFFF00), the image representing the red setting would be a gradient from green (0% red) to yellow (100% red). if the user now clicks on the middle of the gradient (50% red), the browser tells the server where the user clicked through the wonder of the imagemap and the server generates and sends back a new page with new gradients.

this would work with pretty much any browser with which setting colours makes sense (you wouldn't want to use a colour picker with lynx or on a monochrome display), regardless of security settings and regardless if javascript or anything else is turned on. you can still have text boxes for numeric values for those last three people whose browsers don't support imagemaps.

another possible solution could involve a java applet.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8706 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
May 2025
SunMonTueWedThuFriSat
123
45678910
11121314151617
18192021222324
25262728293031
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher