Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on May 2007
#1
Hi there,

I was following what this guy did at http://www.captain.at/howto-ajax-per...ttprequest.php to get around the AJAX security restriction imposed by default by Opera and Firefox.

It works on a normal Firefox or Opera browser, but not on the default browser on my N770 (version 3.2006.49-2)

In the code, I would do :

try {
netscape.security.PrivilegeManager.enablePrivilege ("UniversalBrowserRead");
} catch (e) {
alert("Permission UniversalBrowserRead denied.");
}

When I try running that code on my N770, I get the "Permission UniversalBrowserRead denied" message

All I need to for my AJAX app is to be able to connect to a server running locally on the machine. I have tested the same server code(written in Python) and AJAX app on a desktop and it runs perfectly fine.

Anyone has gotten AJAX working for a local app on the N770?

I have tried to install the Minimo but ran into that x11-common dependency problem and I posted what I have done so far to try that resolve that here : http://www.internettablettalk.com/fo...ead.php?t=6478

Please help, thanks
 
Posts: 474 | Thanked: 30 times | Joined on Jan 2006
#2
change alert(...) to alert(e) and try again. Let me know what error's actually being thrown.
 
Posts: 4 | Thanked: 0 times | Joined on May 2007
#3
Hi, thanks for replying. The error thrown is :

"[Error:
name: ReferenceError
message : netscape
]
"
 
Posts: 4 | Thanked: 0 times | Joined on May 2007
#4
I guess if there is an Opera Equivalent of enabling the UniversalBrowserRead privilege for Firefox, that will be great to know : http://favo.dbk2008.com/jsr/x586468.htm
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:36.