Registered Member
|
I just recently upgraded to KDE 4.3.3 and was stunned to discover that none of my javascripts work in Konqueror now in local files. Anytime I try to open a local web page and run a javascript I'm presented with an alert stating "object [DOMException]". If I run them from my server though they work fine. How can I enable javascript in local files in Konqueror and why was it disabled? Considering that many developers develop and test web pages and scripts locally it's essential that Konqueror provide support for javascript within local web pages.
Last edited by linnit on Tue Nov 10, 2009 12:08 am, edited 1 time in total.
|
Registered Member
|
It doesn't appear that I can attach any files to this post so I'll just post the source code below. To test this issue simply save the code below as test.htm and test2.htm. Then open test.htm in Konqueror 4.3.3 and click the test button.
test.htm
test2.htm
|
Registered Member
|
After testing a few more scripts it appears that the cause of this problem is that local ajax requests are now blocked by Konqueror. All of the scripts that I had initially tested included ajax requests which is why they worked from the server but not locally. Is there any way to enable local ajax requests in Konqueror 4.3.3? Most browsers still support local ajax requests such as Firefox, Opera and Chrome. I realize that local ajax requests can present certain security risks but instead of disabling it completely they should have just disabled by default and then provided an option in the javascript settings section where users could re-enable it. Settings > Configure Konqueror > Java and JavaScript > JavaScript tab > Enable local ajax requests
One other option would be to test the domain of the original url and if it was determined that the page making the local ajax request was also a local file then the request could proceed. If it was determined that the request was coming from a non-local domain then it would be blocked. |
Registered Member
|
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]