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

Home Posts Topics Members FAQ

3+ concurrent connections and parent.function ()

6 New Member
I have a need to have three plus frames with concurrent connections to a web server, and all of them able to communicate with the parent page.

To overcome the 2 concurrent connections limit I used CNAMEs for each of the frames, but now parent.function () doesnt work because the browser considers the CNAMEs to be different sites and gives a permissions error.

Is this a Catch22? Is there a cross public browser way around it?

TIA

Zom.
Sep 25 '07 #1
3 1534
dmjpro
2,476 Top Contributor
I have a need to have three plus frames with concurrent connections to a web server, and all of them able to communicate with the parent page.

To overcome the 2 concurrent connections limit I used CNAMEs for each of the frames, but now parent.function () doesnt work because the browser considers the CNAMEs to be different sites and gives a permissions error.

Is this a Catch22? Is there a cross public browser way around it?

TIA

Zom.
Look if a Browser have multiple sites in one window using multiple frames.
Then communicate with each frame can't be done for security reason.
I mean JavaScript does not support Cross-Site scripting.

Post here your code.
And what you trying to do let me know us.

Kind regards,
Dmjpro.
Sep 25 '07 #2
zom
6 New Member
Thanks for the reply dmjpro.

There is about 13000 lines of PHP script with this issue as a very small part of it so forgive me if I dont post code.

Have a look at http://irmp.at/demo to see a simple top level of the implementation.

I know why the problem is happening. I am asking if there is a (clever or otherwise) way around it.

My application is not actually cross site. It is only one site using a number of CNAMEs that all point to the same IP address. The CNAMEs make javascript think it is cross site when it is not.

Is there perhaps some way of authoritatively telling JS that the sub-domains are really not different sites because they all have the same base domain?

From what you say, probably not.

Cheers,

Zom.
Sep 26 '07 #3
zom
6 New Member
Never mind dmjpro.

I found a way around my problem by using CNAMEs on the second and later instances after the parent communications was no longer needed.

Cheers,

Zom.
Sep 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4095
by: Sebastian | last post by:
Hi all ! Does someone know how many concurrent connections 2005 Express can accommodate ? The limit on MSDE was 5 before performance drops considerably. Thanks for your help. Sebastian
11
5446
by: Durai | last post by:
Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres support the concurrent access to update database? I got the following errors: test=# ERROR: deadlock detected ERROR: deadlock detected ERROR: deadlock detected .....
1
2889
by: Krysa | last post by:
Access 2K, DAO, split front end and back end; back end on server. Regarding max of 255 concurrent users. Is it really users, or connections? How would a user have more than one connection to same back end? If I keep a bound form open (hidden) to maintain a persistent connection, in what circumstances would another connection be created? How do I count the number of connections to a back end? Inquiring minds want to know, will be very...
2
2492
by: Steven Blair | last post by:
Hi, I have Server application which handles a single conenction froma client. I want this program to accept concurrent connections. Anyone help me out ? I am using a TcpListener object. I thought that this would accept concurrent connections, but apparently not, sicne I have my server running and connect using 2 sessions of telnet and only seems to register one connection.
9
2804
by: stephen | last post by:
Hello, I am using ASP.NET as a streaming engine for mp3 and ogg files over HTTP. Basically, the asp.net page sets it's mime content type to audio/mp3 and i write out the file to the stream. We will be having anywhere from 50 to 300 users streaming at once (as well as standard asp.net web pages served). We will be using IIS6, and was wondering if we needed to increase the number of worker threads in machine.config to handle this, or if it is...
3
2464
by: Animesh | last post by:
Hi All, I have a lexical analyzer in flex/bison associated with a lot of custom C function calls linking to external programs which uses quite a lot of global variables and data structures. The program is quite complex and does a lot of Natural Language Processing. The program needs to initialize a few databases from files every time it launches and needs to load them in the memory. I am currently thinking of a design where I could...
3
2142
by: em | last post by:
hi, i can't make more than two concurrent requests to a php script - i mean when i make say 20 simultaneous requests then two first execute but 18 remaining are waiting for them, then the next two scripts are handled and so on. why only two? how to change that? it's not session locking for sure - i use session_write_close, and actually i stripped down my script so that now has just some slow-down loop. it's php 4.2 and apache 2, linux...
1
1699
by: Jay Douglas | last post by:
Sorry for the cross post but I was hoping between developers and systems ppl I can get answer to this question. I've searched; found issues similar to mine but the solutions are not working. My situation: I have an ASP.net web app running on Server 2003 (Server 1) that calls a service on a different Server 2003 (Server 2) via HTTP. Problem:
0
1397
by: contactme | last post by:
Hi, Is it possible to open concurrent connections using Net::IMAP::Simple library ? My IMAP server allows 4 connections per ip, so I am having following problems while using Net::IMAP::Simple and Net::IMAP::Simple::SSL libraries: 1) The method new returns a valid connection even on 5th try, though the login fails as it looks like IMAP->login somehow knows that 5th object is not valid..Is it possible ? 2) Somtime, the script fails at the...
0
8776
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
9310
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
9236
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
9182
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
6031
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
4550
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
3261
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
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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.