[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread kaspar
waseem sabjee thank you for replay I think there would be the same restriction of different domains On Jun 1, 7:34 pm, waseem sabjee waseemsab...@gmail.com wrote: $.ajax({ URL :www.myurl.com success: function(html) { var my id = $(#myid, html); alert(myid); }); }); On Mon, Jun 1,

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread kaspar
This restriction calls Same origin policy http://en.wikipedia.org/wiki/Same_origin_policy On Jun 1, 7:34 pm, waseem sabjee waseemsab...@gmail.com wrote: $.ajax({ URL :www.myurl.com success: function(html) { var my id = $(#myid, html); alert(myid); }); }); On Mon, Jun 1, 2009 at 7:51 AM,

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread waseem sabjee
I currently use that cod on a few sties. it works perfectly. On Tue, Jun 2, 2009 at 3:58 PM, kaspar kaspar...@gmail.com wrote: This restriction calls Same origin policy http://en.wikipedia.org/wiki/Same_origin_policy On Jun 1, 7:34 pm, waseem sabjee waseemsab...@gmail.com wrote: $.ajax({

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread Ricardo
Right, you won't be able to circumvent that. Thinking of it, it's not feasible to use OAuth via javascript. One, because of these cross-domain issues, two, because you would expose your secret to the browser. You should probably do the authentication server-side and pass only what's necessary to

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread waseem sabjee
That data I transfer was non-sensitive data, but yeah...I am looking for a better way. On Tue, Jun 2, 2009 at 8:24 PM, Ricardo ricardob...@gmail.com wrote: I guess you're using local pages on IE, otherwise same origin policy applies. On Jun 2, 1:08 pm, waseem sabjee waseemsab...@gmail.com

[jQuery] Re: accessing dom from different domain ?

2009-06-01 Thread waseem sabjee
$.ajax({ URL : www.myurl.com success: function(html) { var my id = $(#myid, html); alert(myid); }); }); On Mon, Jun 1, 2009 at 7:51 AM, kaspar kaspar...@gmail.com wrote: Ricardo , thank you for replay but I'm getting the same exception Permission denied to get property

[jQuery] Re: accessing dom from different domain ?

2009-05-31 Thread Ricardo
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);

[jQuery] Re: accessing dom from different domain ?

2009-05-31 Thread kaspar
Ricardo , thank you for replay but I'm getting the same exception Permission denied to get property jq13(#open-oauth-button).click(function(event){ TwitterService.getAuthUrl(function(url){ var myRef = window.open(url,'mywin',