Hi Guys, I've just installed Aptana with the AIR plugin. Nice program - better than when I previously tried it.
The generated AIR project test file works fine as an AIR app, but modifying it just slightly to have jQuery.1.2.3 used and adding this code (below) to the auto-created 'forApplicationSandbox' js function (removing what was there) in the SampleUI.html file (along with a div id'd as 'foo' and the appropriate airtest.php (which just prints a text message - nothing else!)) - then I get a 'permission denied' error. I also removed the 'alert' in the main.html caller button - in case you were wondering! :) $.ajax({ url: 'http://localhost/airtest.php', success: function(d) { $('#foo').html(d); } }) Got any ideas why this might be happening? This is about the simplest use of jQuery Ajax I can think of, as opposed to the use of 'get or 'load' !! I'd prefer not to be using either of the latter two functions as the web app I'm converting has many instances of $.ajax calls. BTW, I am a very experienced PHP programmer (it's my main job!) with a reasonable knowledge of jQuery and Javascript. Cheers for any help, Dave On Mar 2, 10:20 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > Might be a good time for Rey or someone to do a simple tutorial > > page ;) (I would do one - if I could get it to work!) > > Here's a trivial example: > > <html> > <head> > <script type="text/javascript" src="AIRAliases.js"></script> > <script type="text/javascript" src="AIRIntrospector.js"></script> > <script type="text/javascript" src="jquery-1.2.3.js"></script> > <script type="text/javascript"> > $(function() { > $('body').one('click',function() { > $.get('http://malsup.com/jquery/form/dummy.php', function(r) { > $('#main').html(r); > }); > }); > > $('button').click(function() { > window.nativeWindow.close(); > });}); > > </script> > <style type="text/css">body { background: #ffd }</style> > </head> > <body> > <h1>Hello World</h1> <button>Close</button> > <div id="main"></div> > </body> > </html>