473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

cross domain scripting problem in IE6 (not IE7)

Hi
We have a website that has just had some SSL changes made to it.
Specifically the iframe src was changed to 'javascript:new String("")'
as about:blank prompts a message about "mixed content on pages'

Now we get a message "Access is denied" when accessing anything in an
iframe using
TopDocument().frames["iframe_theID']

TopDocument() is top.window.document (I think its the equivilent)

This is in IE6, this same code works in IE7. This is also only off one
machine, when installed on another machine it seems to work. Begs the
question what happens when it goes to customers (yes, some still have
IE6)

Any ideas?
Sep 22 '08 #1
4 3811
co**********@googlemail.com writes:
Hi
We have a website that has just had some SSL changes made to it.
Specifically the iframe src was changed to 'javascript:new String("")'
as about:blank prompts a message about "mixed content on pages'
Ugh.
Now we get a message "Access is denied" when accessing anything in an
iframe using
TopDocument().frames["iframe_theID']

TopDocument() is top.window.document (I think its the equivilent)
It's probably not.
This is in IE6, this same code works in IE7. This is also only off one
machine, when installed on another machine it seems to work. Begs the
question what happens when it goes to customers (yes, some still have
IE6)
Any particular reason you don't initialize the iframe with a blank page
hosted on the same server as the rest of the page?

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Sep 22 '08 #2
On 22 Sep, 17:44, Joost Diepenmaat <jo...@zeekat.nlwrote:
codefragm...@googlemail.com writes:
Hi
* We have a website that has just had some SSL changes made to it.
Specifically the iframe src was changed to 'javascript:new String("")'
as about:blank prompts a message about "mixed content on pages'

Ugh.
Now we get a message "Access is denied" when accessing anything in an
iframe using
TopDocument().frames["iframe_theID']
TopDocument() is top.window.document (I think its the equivilent)

It's probably not.
This is in IE6, this same code works in IE7. This is also only off one
machine, when installed on another machine it seems to work. Begs the
question what happens when it goes to customers (yes, some still have
IE6)

Any particular reason you don't initialize the iframe with a blank page
hosted on the same server as the rest of the page?

--
Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/

Assuming I have a blank page at the root of my website/virtual
directory, I don't know how my website has been deployed, and the
iframe is being created from some nested url do you have some example
javascript?

Sep 23 '08 #3
co**********@googlemail.com writes:
On 22 Sep, 17:44, Joost Diepenmaat <jo...@zeekat.nlwrote:
>codefragm...@googlemail.com writes:
Hi
Â* We have a website that has just had some SSL changes made to it.
Specifically the iframe src was changed to 'javascript:new String("")'
as about:blank prompts a message about "mixed content on pages'

Ugh.
[ ... ]
Assuming I have a blank page at the root of my website/virtual
directory, I don't know how my website has been deployed, and the
iframe is being created from some nested url do you have some example
javascript?
Assuming your initial html file is in the same "directory":

<iframe src="blank_page.html"></iframe>
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Sep 23 '08 #4
Assuming I have a blank page at the root of my website/virtual
directory, I don't know how my website has been deployed, and the
iframe is being created from some nested url do you have some example
javascript?

Assuming your initial html file is in the same "directory":

<iframe src="blank_page.html"></iframe>
It won't be in the majority of cases, i.e. we use lots of iframes on
many different pages for various reasons. The problem I have is that
the url for my site might be
http://machine:port/Base (website)

or

http://machine:port/vdname/Base (virtual directory)

location only seems to give you address up to the port while vdname
(virtual directory name) is unknown.

Also the webpages (70+) are all in various folders so the iframe is
likely to be on a page somewhere in a folder but not at the root. I
don't want to put blank.html files in every folder.

This is asp.net so I can use that to get the url but I -believe- (may
not be true) that the folder asp.net shows you may not be the real
one, due to some kind of mapping?

thanks for the reply
Sep 23 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Charles Crume | last post by:
Hello; My index.htm page (www.charlescrumesoftware.com for those interested in looking) contains 3 frames (left = content, top right = logo, bottom right = navigation). This domain name is...
7
by: CJD | last post by:
Hello, I want to create a server-side object that tracks the clicks of a user while they do a task in a browser. The tasks would take place on external web sites. Since there does not seem to be...
25
by: VA | last post by:
This has come up before but I am not sure if the latest versions of IE and FF change the answer. A script running on a webpage served up by http://foo.something.com should be able to do...
4
by: Jacob JKW | last post by:
Having read the CLJ FAQ and having done extensive Googling, I do understand that in in general cross-domain iframe scripting is not permitted. One issue I have not seen directly addressed, however,...
3
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and...
1
by: torsten.reiners | last post by:
Hi, We try to implement a "web-application" where we have to access a general web-site -- loaded into a frame -- from another frame using JavaScript. We know that there are security issues...
0
by: KZSteele | last post by:
(repost/edit from html forum) hello - i am using VBA within a microsoft access project to automate internet explorer. what i am doing is reading data from various frames of my company's web...
1
dmjpro
by: dmjpro | last post by:
Basically we know that JavaScript does not support cross domain scripting. But today i heard that Google does support cross domain scripting. Is that true ..if true then please explain.
28
dmjpro
by: dmjpro | last post by:
Is it possible to do Cross Domain Scripting in JavaScript. Basically i need to access some elements of an application from another application ..Is it possible to do using JavaScript? Please Help!
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.