PDA

View Full Version : This AJAX Javascript not working on N770


Insane in the Membrane
05-24-2007, 10:47 PM
Hi there,

I was following what this guy did at http://www.captain.at/howto-ajax-permission-denied-xmlhttprequest.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/forums/showthread.php?t=6478

Please help, thanks

aleksandyr
05-24-2007, 11:00 PM
change alert(...) to alert(e) and try again. Let me know what error's actually being thrown. :)

Insane in the Membrane
05-25-2007, 01:36 AM
Hi, thanks for replying. The error thrown is :

"[Error:
name: ReferenceError
message : netscape
]
"

Insane in the Membrane
05-26-2007, 03:40 AM
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