473,396 Members | 1,786 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,396 software developers and data experts.

Access to data sources across domains

Hi,

I am trying to write a simple application in javascript that
automatically fills the fields of a form in a page at another domain.
I display the foreign domain page on a frame and have the javascript
code in the parent (where the frameset is defined).
I have set the "Access to data sources across domains" to "enable" in
my security settings for the local intranet. The main frame page and
the javascript is on the intranet. I even have enabled access to data
sources across domain at the "Internet" zone.
I still get the "Access Denied" javascript error when I try to access
an element at the page at the foreign domain.
Any clue on how to overcome this would be most appreciated.

Thank you in advance,
Lefteris

Jul 23 '05 #1
4 9495


Lefteris wrote:

I am trying to write a simple application in javascript that
automatically fills the fields of a form in a page at another domain.
I display the foreign domain page on a frame and have the javascript
code in the parent (where the frameset is defined).
I have set the "Access to data sources across domains" to "enable" in
my security settings for the local intranet. The main frame page and
the javascript is on the intranet. I even have enabled access to data
sources across domain at the "Internet" zone.
I still get the "Access Denied" javascript error when I try to access
an element at the page at the foreign domain.
Any clue on how to overcome this would be most appreciated.


I think the data source access preference is meant for data binding, XML
access etc but not for cross domain frame scripting.
If you want that for IE on Windows, you wouldn't use IE itself but a so
called HTML application (.hta file) where you could your user interface
with HTML and script but the file is treated as an application so that
script doesn't have the usual restrictions the browser imposes.
This means you write .hta file on your local file system.
If you would want other to use those .htas then you could put in a web
server but the user then would need to download and trust and run it
like a normal application.
Search msdn.microsoft.com for HTA/HTML application to find out more.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Thank's a lot for dropping some light. Was wondering if I could create
dynamic HTA/HTML applications as values to use in the forms are read
from a db. Maybe I could write an HTA that would read the data from a
remote server (?).
Another option I'm thinking of is: Could I use XML to automatically
fill-in and submit a form on a foreign domain on a different frame?
tnx in advance,
Lefteris

Jul 23 '05 #3
In article <11**********************@l41g2000cwc.googlegroups .com>,
"Lefteris" <le******@aquanet.gr> wrote:
Hi,

I am trying to write a simple application in javascript that
automatically fills the fields of a form in a page at another domain.
I display the foreign domain page on a frame and have the javascript
code in the parent (where the frameset is defined).


I am not sure about this, but I think anyone can submit data to a url.
Here is my idea:

Get a copy of the forum from your remote server on you local server.
Modify the forum to be like you want it. Just submit it to the other
domain.

If the user must signon the to the remote server then forget this idea.

Robert
Jul 23 '05 #4
rf
"Lefteris" <le******@aquanet.gr> wrote
Thank's a lot for dropping some light. Was wondering if I could create
dynamic HTA/HTML applications as values to use in the forms are read
from a db. Maybe I could write an HTA that would read the data from a
remote server (?).
Another option I'm thinking of is: Could I use XML to automatically
fill-in and submit a form on a foreign domain on a different frame?
tnx in advance,
Lefteris


You don't need all of these hoops to "fill in the fields of a form on
another page", which you will never be able to do if it is cross-domain.
Javascript simply does not work cross-domain for security reasons.

All you need to do is to replicate the form on *your* page.

Find any page out there that includes a [normal] google search on it. Look
at the source. You will find a form almost identical to the one used on
googles page.

You also neatly avoid having to make your page dependent on javascript,
unless, as you say, the data is coming from a database.

Of course this won't work either if the form processer checks the referer to
make sure the form came from *their* page but if this is the case they they
must have a very good reason for doing so, a reason you should not be trying
to circumvent?
Jul 23 '05 #5

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

Similar topics

2
by: Keon | last post by:
Hoi Is it possible to use cookies between different domains? For my site I use 2 domains; the first for my global site with ASP en HTML the second is for my forum located on "hyperboards" a...
16
by: sinna | last post by:
Hi! I'm new in JavaScript, and tried out some examples. If found an XML example at MSDN MSXML 4.0 DOM which is:...
2
by: googleboy | last post by:
I have created a html-page with formelements that via a javascript get their data from an iframe that calls a external XLM-page. The solution works in MS Explorer, but only if the browser security...
0
by: Stylus Studio | last post by:
Stylus Studio 6 XML Enterprise Edition Now Integrates with TigerLogic XDMS XQuery and Native XML Database Bedford, MA, -- Stylus Studio ( http://www.stylusstudio.com ), the industry-leading...
1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
2
by: brian kaufmann | last post by:
I'd appreciate your ideas on this. I need to make the calculation for unemployment rate for three different data sources (A,B,C) for many countries and age groupings: unemployment rate = number...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
11
by: Chad | last post by:
Hi Is it possible to substitute an alternative data source (eg MySQL or SQL Server) into an existing MS-Access application?
3
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4. I have two domains -- www.mydomain1.com and www.mydomain2.com. Both point to the same IP address. I have two pages on that IP -- first.php <?php session_start();...
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:
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
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
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
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...
0
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...
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.