ajax
Error "Access to restricted URI denied" when making AJAX cal
jQuery as of version 1.2 has a new dataType setting that works around this problem. It can only be used with the .ajax function, not .get or .post.
Example syntax
$.ajax({ type: 'GET', url: stats_counter_url, data: { 'action':'impression', 'venueid':venueid, 'pn':pn, 'filter':filter, 'ads':ads}, dataType: 'json', jsonp:'jsonp_callback', success: function(data) { alert(data); }, });
Full error: Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" …
The problem is caused because you are trying to do a cross domain AJAX call and there are security blocks against this.
Client side scripting
Client-side scripting describes programming that is added into a web page to interact with page and browser objects. It differs from server-side scripting because it is executed on each user's computer instead of on the originating web server. JavaScript is the most common scripting language; VBScript is also used but only works on Windows browsers. Client-side scripting is becoming a sophisticated arena paving the way for advanced functionality.
- Login or register to post comments
- Read more
- Add new comment
Safari-Like Search Inputs
By default search inputs are notoriously ugly. Just look at what they are: a plain text input. But Apple had the great idea to make a search widget for Safari that looks like this:

This is probably nothing new, it's been around for quite a while, but the code used to create the field (input type "search" instead of "text") does not validate and only works in Safari. So what happens when you like the search field and what to use it on other browsers?
- NickC's blog
- Login or register to post comments
- Read more
