Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
issue when using another iframe(s)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rico  
View profile  
 More options Oct 5, 4:46 pm
From: rico <ric...@gmail.com>
Date: Mon, 5 Oct 2009 13:46:32 -0700 (PDT)
Local: Mon, Oct 5 2009 4:46 pm
Subject: issue when using another iframe(s)
Hello,

I'm have issue when implementing another javascript libs that use
their own iframe.

These libs are two jquery plugins :  "ajaxUpload" and the jquery
version of "tinyMCE"

When using both meteor and ajaxUpload, the plugin can't get the
properties or the content of it's iframe :
Permission denied to get property HTMLDocument.readyState or
Permission denied to get property HTMLDocument.body.

I mean I can uploaded a file successfully but response from the server
will never be 'grab' by the lib because of this error.

The same issue occurs while using tinyMCE. if i create a new link from
the editor, then tinyMCE create and open an iframe and i get this
error : Permission denied to get property HTMLDocument.window.tinyMCE.

If i remove meteor, this plugins works well,  while *Meteor works well
in all case* :)

It may be due to  a crosscripting restriction, i don't know what to
do, as as said Meteor works well. All my js script are on the same
domain ( the libs are at http://mydomin.net and Meteor.js are at
http://data.meteor.js).

Hope i was clear enough -_-'.

thanks by advance for any response or advice :)

riccco


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Carter  
View profile  
 More options Oct 5, 4:49 pm
From: Michael Carter <cartermich...@gmail.com>
Date: Mon, 5 Oct 2009 13:49:57 -0700
Local: Mon, Oct 5 2009 4:49 pm
Subject: Re: issue when using another iframe(s)

I suspect that you'll need to find a way to add one more line to the source
of these plugins within the iframe:

document.domain=document.domain

or something similar. Just a wild guess. (I know it seems weird, but try
it... should only take you a few seconds)

-Michael Carter


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rico  
View profile  
 More options Oct 12, 11:33 am
From: rico <ric...@gmail.com>
Date: Mon, 12 Oct 2009 08:33:10 -0700 (PDT)
Local: Mon, Oct 12 2009 11:33 am
Subject: Re: issue when using another iframe(s)
Hello,

@Michael Carter : thanks for response.

You were right, the problem came from the definition of
document.domain before the creation of the meteor iframe in the
meteor.js file.

i found an intersting comment about this :
http://jszen.blogspot.com/2005/03/cross-domain-security-woes.html.

I just add comments at the setting of the document.domain in the
meteor.js and all is o now.

I know the best way would be to fix the document.domain in all the
iframes and the main window too, but it's more painfull to set the
document.domain each time the plugin i used will be updated.

thanks.

riccco


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google