473,969 Members | 29,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9559


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************ **********@l41g 2000cwc.googleg roups.com>,
"Lefteris" <le******@aquan et.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******@aquan et.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
1888
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 free forum domain On de second domain i don't have any control and i can't put any new webpages on that site.
16
7844
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_mth_hn_2uck.asp var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); xmlDoc.async = false; xmlDoc.resolveExternals = false;
2
742
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 is changed to allow data access across domains. Has anybody found a way, so the browser default-settings does not need to be changed. Thanx Steve
0
1551
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 provider of XML development tools for advanced XML data integration, and Raining Data Corporation (NASDAQ: RDTA), a leading provider of reliable data management solutions, today announced a new partnership to accelerate and make easier development of...
1
2737
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 databases: this access db, and a remote MySQL server. The MySQL tables are linked in the access db. What I have done so far is created an On Open event for a report that does the following: * prompt user for the date range * get which sources were...
2
6104
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 of unemployed/number of labour force Right now, these are the tables I have: source A unemployed (number) source A labour force (number)
9
3324
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 >people moving from power user to developer, but now I suggest you browse >it, >too. It strongly emphasizes ADO, which knowledgeable Microsoft insiders no >longer recommend, and the Access ADP client to SQL Server. He writes well, >and is a good...
11
2594
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
8311
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(); $_SESSION = "hello"; ?>
0
10344
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10156
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
11802
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...
0
11397
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
11551
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
10064
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...
0
7595
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
6399
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...
3
3747
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.