Getting An Error "ns_error_unknown_protocol
im getting an error 'ns_error_unknown_protocol' when i run this code in firefox.whats the problem with my code?i run this in google chrome,but it runs without any problem.it doesnt
Solution 1:
Firefox is showing that error because it does not now how to handle itms-services:// protocol.
Goto about:config in Firefox and search for network.protocol-handler if you can see any setting for network.protocol-handler.external.itms-services then only Firefox can handle your request.
Change self.location.href = data.address to self.location = data.address as href is used for HTTP.
Solution 2:
The error message ns_error_unknown_protocol is basically saying is the browser does not know how to handle your custom protocol itms-services://.
I thinking it has to do with the href setting.
Try changing it to
self.location = data.address;
Post a Comment for "Getting An Error "ns_error_unknown_protocol"