does the document in the other window also have a "jq13" object? If
not you have to use the one in your main window and pass the other
window's document as context:

jq13(myRef.document).ready(function(){
   // grab the document in a jq object
   var self = this.parentWindow.jq13(this);
   self.find("div.buttons#deny").click(function(event){
        alert("lala");
   });
});

Not tested, might not work but you get the idea.

On May 31, 3:38 pm, kaspar <kaspar...@gmail.com> wrote:
> Hello
> I'm trying to make Twitter OAuth  and getting "Permission denied to
> get property"
>
> here is the code
>
>         jq13("#open-oauth-button").click(function(event){
>                 TwitterService.getAuthUrl(function(url){
>                         var myRef = window.open(url,'mywin',
>                         
> 'left=20,top=20,width=1000,height=400,toolbar=0,resizable=0');
>
>                         jq13(myRef.document).ready(function(){
>
>                                 
> myRef.jq13("div.buttons#deny").click(function(event){
>                                         alert("lala");
>                                 });
>
>                         });
>                 });
>         });
>
> is it possible to create event listeners on dom from different
> domain ?

Reply via email to