473,394 Members | 2,168 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,394 software developers and data experts.

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 7584
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RavieR | last post by:
Hi all, it happen to me a strange problem: i have a mdb file (in Access 2K) with SQL Server 2K linked tables who runs on a workstation which is on a different domain that the SQL Server. It...
3
by: kam bansal | last post by:
Hi all, Can javascript read a cookie from a different domain? Meaning, if my html page is running on "www.mydomain.com" and I goto another domain "www.another.com" to do some work, and then I...
4
by: DanielEKFA | last post by:
Hey hey :) Having a lot of problems with this. I'm helping my brother out with this art school web page. He has a big wish to have random images from the web shown in the background, and asked...
1
by: milindsj | last post by:
Hello, I have a application hosted on tomcat. I use a jsp to set a cookie say channelid. Now I am redirecting this page to some other appliaction which is hosted in tomcat on some other machine....
1
by: missoula | last post by:
Hello- I can connect to my own domain fine with the following: entry = new DirectoryEntry("LDAP://RootDSE"); However, I am trying to get information out of AD for another domain. This...
1
by: Reinhold Mannsberger | last post by:
Hello I want to pass data from one page to another, more specifically I want to pass data from a child page to a parent page My parent page (parentpage.htm) does ----...
2
by: Bishop | last post by:
Here is my situation. I'm building a web based store that will use the same code base for every store using host headers to determine which data to display. To prevent purchasing a SSL Cert for...
3
by: moondaddy | last post by:
I have some code in a web app (asp.net 2.0) and am trying to send an email to 2 different recipients. The first one works and the second one fails. the first email address is of the same domain as...
1
by: wild_bunch | last post by:
hi you guys I have a page A (must be client side only) which has an Iframe in which I open page B from different domain how can I send a message from B to A(for instance to resize the above...
0
by: singmalay | last post by:
Hi, I am using vbscript (adodb) to connect to a SQL DB that is situated in a different domain with windows authentication configured of that domain. For example if I want to login to the DB I use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.