This content has been marked as final. Show 3 replies
quote:This question gets asked about once a week. You can find my latest answer here and a little searching will dig up more opinions.
Originally posted by: pravinpatil23
But can you please explain me when do I exactly use Flex Or HTML+JS Or Flash.
Can AIR applications(developed using HTML+Js) invoke a web service running on a different server
An AIR application isn't hosted on a server, so all web servers are "foreign" to your AIR application. An AIR app does get downloaded from a server, most of the time, but it doesn't maintain some kind of special connection to that server.
Because of this, there are no cross-domain restrictions in AIR like you have in a regular web browser.
Can AIR application(developed using HTML+Js) detect the connectivity of USB drive
AIR does not allow low-level system access, and has very little in the way of platform-specific capabilities. So, you'd have to use a high-level, platform-agnostic way of checking for the drive, such as by looking around to see what files are available. Things like USB insert notifications are way outside the scope of AIR.
I want the data from Servlet to send back to HTML page where I can display it on the same HTML page where user entered his details.
That question isn't on-topic here. Ask on a forum dealing with JSP servlets.
So simply because I add an AIR package around a collection of webpages - why would this end up blocking out server communications? Or is that the limitation of AIR - once it's packaged it's a standalone - self-contained collection sealed off from the rest of the world? And if that is the case - then how do you explain the Adobe Media Player [AMP] ? When I've played with that I have never actually downloaded ALL of the content that it displays - yet I can access and interact with it as I want to? It has to be pulling that content from someplace - right?
Probably an Internet hosted Server don't you think?
This is just my opinion on the fly and I claim to be no expert by any means as I am slowly getting into developing content for AIR - but your comments seem rather definitive and they could use some elaboration_ I am really curious_
I think you misunderstood what I wrote. Because an AIR app isn't tied to a server, it has no restrictions on which servers it can contact. Compare a Flex or Flash application, which can only contact the server it came from, unless the author arranges to get a crossdomain.xml file placed on the other server. This is a security feature, to prevent an untrusted Flash applet from scraping data from servers behind a firewall and relaying it to the host site.
Similar restrictions are being added to plain old web browsers to prevent similar cross-site scripting attacks in JS. Above and beyond what browser vendors are adding, you can tighten things down still further with addons like NoScript for Firefox, which these days does a lot more than disable JS.