I'm not implementing the sandbox explicitly, so whatever that ends up being. This is an internal only app so I wasn't as worried about security as I normally would be.
_____ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack Killpatrick Sent: Friday, May 02, 2008 1:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: looking for simple AIR-jquery ajax example Thanks Andy. Is this living in the AIR application sandbox or the non-application sandbox? I need to do some sandboxing on my app, because I want to use some native AIR stuff, but ideally have my sandboxed js be pretty much the same as the js that is used in my standard (non-AIR) web app, so I'm trying to figure out a good design approach (for organizing the code). - Jack Andy Matthews wrote: Sure thing...here's a method I'm using to log a user in from my app: submitLogin: function (u,p) { /* * submits login credentials to the server for verification */ $.ajax({ url: URL + '&method=authenticate', cache: false, data:{ username: Base64.encode(u), password: Base64.encode(p) }, datatype: 'xml', success: function(data){ $(data).find("string").each(function() { // store a reference to the first index in the returned array, // the only index at this point. var userInfo = eval($(this).text())[0]; // determine if the user has a valid login if (userInfo.isValidLogin) { // they do have a valid login, so we fire the valid login event // fire the submitLoginDataReturned event, // listened for by core.js. Return the userInfo object $(document).trigger('submitLoginDataValid',userInfo); } else { // their login is incorrect, so throw the invalid login event $(document).trigger('submitLoginDataInvalid',userInfo); } }); } }) } _____ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Web Specialist Sent: Friday, May 02, 2008 12:28 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: looking for simple AIR-jquery ajax example Andy, I'll very happy if you could send that code samples to me. Marco Antonio On Fri, May 2, 2008 at 2:20 PM, Andy Matthews <[EMAIL PROTECTED]> wrote: Jack... There's absolutely no difference in making an AJAX call via traditional browser based app vs an AIR app. I just completed a sort of one-way messaging app written in HTML/jQuery and it couldn't have been easier. Hit me up offlist and I'll be happy to provide code samples. andy -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack Killpatrick Sent: Friday, May 02, 2008 12:17 PM To: jquery-en@googlegroups.com Subject: [jQuery] looking for simple AIR-jquery ajax example Hi All, I'm looking for a code example (or tutorial or working app with source) that shows how to use jquery-fired ajax calls in an Adobe AIR application, preferably showing how to do things in the Application Sandbox and the Non-Application sandbox. To clarify, I'm not looking for examples of how to use the AIR-native functions to make AJAX calls, I want examples using jquery's implementation (I have an app with a lot of jquery in it that I want to port to AIR). Any recommendations? TIA, Jack