470,636 Members | 1,447 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Changeing document.domain to a different domain

Can this be done in https?
If the page I'm on is at 'www.abc.com'
can I:
document.domain='www.def.com'

i get invalid argument if i do that? Is there anyway around this?
Jul 23 '05 #1
2 7488
Ivo
"Cindy Lee" typed> Can this be done in https?
If the page I'm on is at 'www.abc.com'
can I:
document.domain='www.def.com'

i get invalid argument if i do that? Is there anyway around this?


The document.domain branch in the DOM tree is read-only, sorry. What are you
trying to do anyway?

Overcome cross-domain security restrictions?
Good luck then, please enlighten us when you find a way.

Move to a page in that other domain? Then use simply
location.href="https://www.def.com/";
or
location.replace("https://www.def.com/");

AFAIK, javascript on a secure https page is no different from javascript on
an ordinary http.
HTH
Ivo
Jul 23 '05 #2
I'm just trying to resize my iframe. when i try to get a document size in
my javascript. It gives me access denied.
resizingfunction(){
.....
var oFrame = document.all("dynamicFrame");//access denied
.....
}
<iframe name=dynamicFrame src=https://.....

"Ivo" <no@thank.you> wrote in message
news:40***********************@news.wanadoo.nl...
"Cindy Lee" typed> Can this be done in https?
If the page I'm on is at 'www.abc.com'
can I:
document.domain='www.def.com'

i get invalid argument if i do that? Is there anyway around this?
The document.domain branch in the DOM tree is read-only, sorry. What are

you trying to do anyway?

Overcome cross-domain security restrictions?
Good luck then, please enlighten us when you find a way.

Move to a page in that other domain? Then use simply
location.href="https://www.def.com/";
or
location.replace("https://www.def.com/");

AFAIK, javascript on a secure https page is no different from javascript on an ordinary http.
HTH
Ivo

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by RavieR | last post: by
3 posts views Thread by kam bansal | last post: by
1 post views Thread by milindsj | last post: by
1 post views Thread by missoula | last post: by
1 post views Thread by Reinhold Mannsberger | last post: by
1 post views Thread by wild_bunch | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.