Same Origin Policy In IE !

May 21, 2006

I m searching for the equivalent of :

try {

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

(that works for mozilla based browsers) in Internet Explorer.
The code above asks to the user to trust the script, so extends
privileges such as same origin policy.

I have a page on local disk with 2 frames : A is a local page, B is on
a server (for example http://www.google.com). I want A to access B
properties (for example parent.B.location.reload() ); on Firefox it
works perfectly (of course only after the consense of the user i.e me),
but in IE I get a "Permission denied error".

View 4 Replies


ADVERTISEMENT

Specfic Override To The Same-origin Policy

Nov 5, 2007

I am trying find a way to create a specfic override to the same-origin policy between 2 frames so that I can use javascript find out the current url of frame2 from frame1.

I have read that I will need a digitally signed activex control for IE6/7 and I am not sure what is needed for other browsers.

I need this to be secure in that the override will:

- only allow frame1 (when loaded from mydomain.com) to find the current url of frame 2
- not work when frame2 is https

If this is possible does anyone know why I should not do this? If I use this in my app am I going to shoot myself in the foot?

View 4 Replies View Related

Overcome Same Origin Policy For Iframe?

Jan 13, 2009

I'm working on a project where I need to build a "web browser" within my web application. Using the iframe, I can't capture the current url and the DOM of the web page that the user is surfing. I realized that this has to do with the same origin policy guarding iframe.

I have the following 2 questions:

- Does anyone have any workable solution to overcome this issue?

- Is there any alternative to iframe so that I can let users to surf web pages within my web application? Or at the server side, I can do something?

View 6 Replies View Related

JQuery :: "Access Is Denied" AJAX Error, Same Origin Policy Protection With Form.js .ajaxForm()?

Jan 28, 2011

I'm having a problem with same origin policy protection using JQuery 1.4.4 and the jquery.form.js AJAX plug-in. I have an AJAX contact form which works fine so long as visitors preface URL's they type in with "www". But if they navigate directly to a URL on my site (not using www), the URL resolves OK but the URL doesn't match what I use in my AJAX form. In Chrome, this results in a console error:

[Code]...

View 2 Replies View Related

Scale Broken In IE7 When Using Origin Argument

Mar 19, 2010

I've been trying to show a div using jQuery's show function with the scale effect. My code works fine in Firefox. When I test it in IE7, it breaks. I narrowed it down to either the origin argument of the scale effect, or the time argument of the show function (which seems unlikely). Like this:

Works in IE7, italics added to show commented code better:

Code:
$(document).ready(function() {
$("#hover").hover(
function() {$("#content_show").show("scale",{percent: 100, direction: 'vertical'});},//, origin: ['center','center']},500);},

[Code]....

Also, not as important, but what is the syntax of the origin property? What values can I use in it?

View 2 Replies View Related

JQuery :: AJAX Call Fails On Same Origin Domain?

Aug 1, 2010

I'm doing a JSONP query of a Wordpress database. Example call:[URL].. This code returns the expected data when executed on my local server. It also returns the expected data when I upload it to one of my remote servers. But it fails when run from the root of the domain it's calling, [URL]... no data is returned. (Behavior is the same for latest versions of Firefox, Safari, Chrome.)

I think there's something really simple going wrong here but don't know what it is. The only clue I have is provided by Firefox: When run successfully, all of the GET's appear in the JS subpanel of NET. The failed calls, launched from the domain containing the database, are listed in the XHR subpanel with a status of "301 Moved Permanently".

View 4 Replies View Related

JQuery :: Microsoft Runtime Error - Invalid Origin

Jan 2, 2012

Error while running the JScript

Microsoft JScript runtime error: Invalid origin: [url]

View 2 Replies View Related

Change Hidden Input's Name Based On Country Of Origin?

Sep 3, 2009

I'm trying, so far unsuccessful to make a function to change the name of a hidden input based upon the country of the user, i have some php code that determines there country of origin of the user fine. I then have a small java script function to change the name of the hidden input depending on the country of origin.

The php variable that holds the country of origin is $country; that variable then needs to be assigned to x in my java script function. $country is equal to AU if your in Australia and US if your in America.[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved