473,803 Members | 3,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7595
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.replac e("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.
resizingfunctio n(){
.....
var oFrame = document.all("d ynamicFrame");//access denied
.....
}
<iframe name=dynamicFra me src=https://.....

"Ivo" <no@thank.you > wrote in message
news:40******** *************** @news.wanadoo.n l...
"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.replac e("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
2379
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 works. If i create a mdb file from a workstation which is a the domain of the SQL Server and then i run it a my non-domain workstation i have error
3
45325
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 come back, can I see the cookie that "www.another.com" created from my domain??? Any thoughts? ~Kam (^8*
4
1974
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 me to help him out. My idea is this: Use the CNN Top Stories RSS feed to harvest keywords, then use a random keyword from this harvest to search Google, get links from the result, look through random links here and get links to images, then load...
1
1858
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. I am having problems in accessing the cookie. The second application in which i am supposed to get the cookie is getting null. Let me know if someone has any idea. Thanks in advance.
1
11894
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 domain is trusted, but I can't seem to connect to it. This is driving me crazy. Hard coding a DC name works, but I don't want to hard code things in my code:
1
3653
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 ---- window.open("childpage.htm", "_blank"); // calling a local pag ---- My client page (childpage.htm) does
2
2580
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 each domain I want to redirect the checkout process to a different domain. I have two or three session variables that contain sensitive data that I don't want to pass across the address line or session cookie. Any thoughts on how I can pass the...
3
3887
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 the web app (myAp.com, me@myAp.com) and the second one is of a different domain (me@OtherDomain.com). Why would the 2nd address fail? here's the error msg Mailbox unavailable. The server response was: not local host OtherDomain.com, not a...
1
1263
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 iframe)? tried parent.document.getDocumentbyId.width=100px but this only works from the same domain on two different domains I get message "access denied" thanx..
0
1345
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 Remote desktop and login to that db server and open SQL server from there using windows authentication (used while logging into the DB server). Now I want to connect to that DB from my system which is in a different domain and I'm trying to...
0
9565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.