473,734 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about "same origin policy"

Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes from http://www.mydomain.com/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains. I'm still pretty new to
javascript and I am wondering if there is a way around this so I can
load from my hard drive. I was looking into document.domain , but I am
not sure what I would set it to in this case or if it would even work.
Any thoughts or suggestions would be greatly appreciated.

May 13 '07 #1
7 1821
ASM
fu*********@gma il.com a écrit :
Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes from http://www.mydomain.com/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains.
Do you works with a PC ?
Do you works with Windows ?
Do you works with Windows XP ?
Do you works with Windows XP SP2 ?

Yes ?

Try with this line in your files :

<!-- saved from url(0013)about: internet -->
http://support.microsoft.com/kb/883866/

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
May 13 '07 #2
On May 13, 12:33 pm, ASM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
wrote:
funktacu...@gma il.com a écrit :
Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes fromhttp://www.mydomain.co m/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains.

Do you works with a PC ?
Do you works with Windows ?
Do you works with Windows XP ?
Do you works with Windows XP SP2 ?

Yes ?

Try with this line in your files :

<!-- saved from url(0013)about: internet -->

http://support.microsoft.com/kb/883866/

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
That appears to be related to some sort of MS Acess issue, the problem
I am having seems to be some sort of cross domain issue. The error I
get when I run it locally is "Error: uncaught exception: Permission
denied to get property Window.processX ML". Am I missing something?

May 13 '07 #3
fu*********@gma il.com said the following on 5/13/2007 3:07 PM:
On May 13, 12:33 pm, ASM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
wrote:
>funktacu...@gm ail.com a écrit :
>>Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes fromhttp://www.mydomain.co m/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains.
Do you works with a PC ?
Do you works with Windows ?
Do you works with Windows XP ?
Do you works with Windows XP SP2 ?

Yes ?

Try with this line in your files :

<!-- saved from url(0013)about: internet -->

http://support.microsoft.com/kb/883866/

That appears to be related to some sort of MS Acess issue,
Yes, and is the wrong KB article to link to. Search the c.l.j archives
for "Mark of the web" and you can read all about it. It won't solve your
problem though.
the problem I am having seems to be some sort of cross domain issue.
Yes, as the original page is on a server, the second page is on a
different domain (the local file system).
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 13 '07 #4
ASM
Randy Webb a écrit :
fu*********@gma il.com said the following on 5/13/2007 3:07 PM:
>On May 13, 12:33 pm, ASM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
wrote:
>>funktacu...@g mail.com a écrit :

Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes
fromhttp://www.mydomain.co m/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains.

Do you works with Windows XP SP2 ?
Yes ?
Try with this line in your files :

<!-- saved from url(0013)about: internet -->

Search the c.l.j archives
for "Mark of the web" and you can read all about it. It won't solve your
problem though.
>the problem I am having seems to be some sort of cross domain issue.

Yes, as the original page is on a server, the second page is on a
different domain (the local file system).
We cannot more open in an iframe a file coming from another domain than
this of main page ?
In local my main page can by JS script open Google in its iframe
(Firefox 2.0.0.3)
In same situation I've understood IE Win XPSP2 won't it without that
famous mark. Isn't it the case ?

If it is to open a local file from a server, I hope that it is still
forbidden, even with a "mark" whatever it is.

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
May 13 '07 #5
ASM said the following on 5/13/2007 7:06 PM:
Randy Webb a écrit :
>fu*********@gma il.com said the following on 5/13/2007 3:07 PM:
>>On May 13, 12:33 pm, ASM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
wrote:
funktacu...@ gmail.com a écrit :

Hi-
I have script that works fine when I run it from a server, but I need
to be able to load the page and have it work from my hard drive.
However, it seems the when the url changes
fromhttp://www.mydomain.co m/default.html
to file:///D:/folder_name/default.html that the browser thinks the
frames are coming from different domains.

Do you works with Windows XP SP2 ?
Yes ?
Try with this line in your files :

<!-- saved from url(0013)about: internet -->

Search the c.l.j archives for "Mark of the web" and you can read all
about it. It won't solve your problem though.
>>the problem I am having seems to be some sort of cross domain issue.

Yes, as the original page is on a server, the second page is on a
different domain (the local file system).

We cannot more open in an iframe a file coming from another domain than
this of main page ?
You can open it, you just can't interact with it.
In local my main page can by JS script open Google in its iframe
(Firefox 2.0.0.3)
It is the opposite. Try opening a local page from a server page.
In same situation I've understood IE Win XPSP2 won't it without that
famous mark. Isn't it the case ?
No. You can open any page in the IFrame with IE, you just can't interact
with it.
If it is to open a local file from a server, I hope that it is still
forbidden, even with a "mark" whatever it is.
Yes, that is what is trying to be done and it is forbidden without a
"rape my computer" security setting.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 13 '07 #6
ASM
Randy Webb a écrit :
ASM said the following on 5/13/2007 7:06 PM:
>In local my main page can by JS script open Google in its iframe
In same situation I've understood IE Win XPSP2 won't it without that
famous MS "Mark of the web". Isn't it the case ?

No. You can open any page in the IFrame with IE, you just can't interact
with it.
Hope,
but I did mean *open "with JS script"*
And I heard IE would display a warning message in this case,
as I could understand here :
<http://groups.google.f r/group/comp.lang.javas cript/browse_thread/thread/d4e777791c1d049 e/b79f8bb5dff6755 e?lnk=st&q=&rnu m=1&hl=en#b79f8 bb5dff6755e>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
May 14 '07 #7
ASM said the following on 5/13/2007 7:58 PM:
Randy Webb a écrit :
>ASM said the following on 5/13/2007 7:06 PM:
>>In local my main page can by JS script open Google in its iframe In
same situation I've understood IE Win XPSP2 won't it without that
famous MS "Mark of the web". Isn't it the case ?

No. You can open any page in the IFrame with IE, you just can't
interact with it.

Hope,
but I did mean *open "with JS script"*
And I heard IE would display a warning message in this case,
as I could understand here :
<http://groups.google.f r/group/comp.lang.javas cript/browse_thread/thread/d4e777791c1d049 e/b79f8bb5dff6755 e?lnk=st&q=&rnu m=1&hl=en#b79f8 bb5dff6755e>
The MOTW is one solution to that problem. The other, now, is to allow
Active Content to run from CD\Local Drive. One has security implications
allowing script to run locally, the other has the implied notion it is
running locally when it isn't. Six of one, half a dozen of the other.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 14 '07 #8

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

Similar topics

3
10054
by: Dave Hammond | last post by:
Hi All, This one is a bit bizarre. My understanding of "Access is denied" with respect to window.moveTo is that it results from a request which would move a portion of the window off screen. The window in question is 480 high by 1000 wide. The screen dimensions are 1024x768. The move request is to 10,10, which would put the max right coordinate of the window at 1010 and the max bottom coordinate at 490. Both coordinates are...
6
1388
by: PaulR | last post by:
We have seen this a lot, but have just experienced the opposite to what we have always seen previously, so this has prompted me to ask a high level - why do we get this behaviour? If we re-write queries in the following pattern (simplified) select ... from table1 t1 inner join table2 t2 on (t1.pk = t2.fk) inner join table3 t3 on (t3.fk = t2.pk)
3
2370
by: Dmitri Shvetsov | last post by:
Hi, Maybe somebody knows why it's happening? I wrote a C# Windows Application working with the remote database through a DataSet. It works cool from my computer but when I gave this application to my friend who (and only him) has to work with the database tables to edit them he began receiving the following message every time when a new window opens:
0
2336
by: matt.delvecchio | last post by:
hey all, recently i was getting this error in my apps: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
1
25105
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code I isolated. I set signed.applets.codebase_principal_support true and seemed to get the UniversalBrowserRead permission but then the open still failed with the same old "Permission denied to call method XMLHttpRequest.open" error. Can someone tell...
19
4136
by: glchin | last post by:
Does a compiler guarantee that the variable w below is placed on an eight-byte aligned address? void myFunction( long iFreq ) { const double w = two_pi * iFreq; ... ... }
3
2319
by: Willy | last post by:
I have a website that uses querystrings on a certain page to show multiple contents. I have created mapped pages to hide the gory details of these querystrings. So instead of details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj the client sees products.aspx I also use these "mapped" pages in my sitemap file. This site is multilingual so I have buttons on the page to switch languages.
9
27423
AmberJain
by: AmberJain | last post by:
Hello, What is the difference between --------> 1. clrscr(); // defined in various header files 2. system("cls"); //available in stdio.h in bloodshed dev c++ Well, if there are no differences, then can we use them interchangebly?
2
2163
by: sabbadin12 | last post by:
Hi, I'm going to work on an application that uses a postgreSQL database so that it can uses SQLServer 2005. I think I solved most problems on the programming side, but I still have some doubts on the DB side regarding how to handle the creation of the db schema on sqlserver and how to handle the every day dba work. 1) should I try to use an ER tool like Embarcadero and have its logical model be the master copy ? (i did some tests, it...
0
8783
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
9458
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9248
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
9187
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
6040
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();...
0
4555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3266
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
2
2734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2184
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.