[jQuery] Closing thickbox in cross domain
Hi All, We have a requirement where we are opening a thickbox when user clicks on the button which is running on particular domain. The i want to close the thickbox when user clicks on the button which is inside it (the page is from another domain). I tried to close it using window.top.tb_remove(); tb_remove(); however i am getting permission denied error. Does anybody know how do i resolve this? Thanks, Baby
[jQuery] Re: is it possible to convert html data in json format?
Hi, We are also converting HTML file into JSON object. Here is the sample: ({"result" : ""}); Is it possible? Regards, Baby On Mar 7, 1:17 pm, sure wrote: > Hi james, > Thanks for your quick reply. Here is my code. > > HTML CODE > -- > > > TopLeft > TopRight > > > BottomLeft > BottomMiddle > BottomRight > > > > Required JSON Look like > > { > attributes:{afid:"affiliateid",chid:"channelid",layoutid:"layoutid"}, > containers:[ > { > > data:{position:"topleft1",id:"divid",style:"inline-style- > data",class:"classname",width:"width",height:"height"}, > contains:{ > widgets:[ > {widgetid:"id",others:"other > details about widget"}, > {widgetid:"id",others:"other > details about widget"} > ] > } > }, > { > data: > {position:"topleft2",id:"divid",class:"classname",style:"inline-style- > data",width:"width",height:"height"}, > contains:{ > widgets:[ > {widgetid:"id",others:"other > details about widget"}, > {widgetid:"id",others:"other > details about widget"} > ] > } > } > > ] > > } > > Please tell me, how to do this. If there is any plug in related to > this, please let me know. > > with Regards > sure. > > On Mar 7, 11:30 am, James wrote: > > > That depends. Provide more specific information. How would the initial > > HTML and the final JSON look like? > > > On Mar 6, 6:42 pm, sure wrote: > > > > Hi all, > > > I am not a expert in jquery. Please let me know , Is it > > > possible to covert html data in json format. If any one knows how to > > > do this, please let me know . > > > > with Regards > > > sure.
[jQuery] Re: Cross domain call using JQuery
Hi, Thanks for your suggestion. I have gone though this flicker example and it is perfectly. flicker example is also working fine when i integrate this code in my application however, when i try to call my struts application url, it is not working. do i need to do any configuration for this? Once again Thanks for you quick response. On Mar 4, 9:42 pm, mkmanning wrote: > You don't have to go any further than the > docs:http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback > Run the flickr example and you'll see how JSONP works. In a nutshell, > to get around crossdomain security issues, the getJSON call creates a > script tag whose URL is the getJSON url, and the content of that > script tag from the remote server is the callback function wrapping > the JSON data. > > You can also use getScript to achieve the same end: > > Here's the flickr script with a callback function called 'foo' (look > at in a browser, and then change the callback param to see how it > wraps the payload in a function of that name): > > http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmo... > > As long as there's a function called 'foo', loading that script will > call it: > function foo(data){ > $.each(data.items, function(i,item){ > $("").attr("src", item.media.m).appendTo("#images"); > if ( i == 3 ) return false; > }); > > } > > On Mar 4, 6:23 am, MorningZ wrote: > > >http://www.ibm.com/developerworks/library/wa-aj-jsonp1/ > > > On Mar 4, 5:53 am, baby wrote: > > > > Hi, > > > > We are developing an application where it needs to make a call to > > > other web site. I am getting security exception when i tried to call > > > it using JSON. > > > > Could you please guide us? > > > > Thanks.
[jQuery] Cross domain call using JQuery
Hi, We are developing an application where it needs to make a call to other web site. I am getting security exception when i tried to call it using JSON. Could you please guide us? Thanks.