AJAX :: Not Working When Run From Desktop Machine?
Sep 5, 2010
i followed my first AJAX tutorial on the web: [URL]
the AJAX is working fine on the site itself, but when i download the source codes provided with the tutorial, it won't run from my machine. i checked this with several tutorials and all same. i.e. no results when run from the desktop machine.
in Gmail (I've noticed it in other services too..)after you log in, progress bar appears. What does it do? Uploads all the JS(containing ajax) files into client's machine? or what?
Notice: This is a discussion thread for comments about the SitePoint article, Take Your CSS to the Desktop with Adobe AIR!.
The only book that covers Adobe AIR with AJAX (html, javascript) is Larry Ullman's Adobe AIR (Adobe Integrated Runtime) with Ajax: Visual QuickPro Guide
All the other books cover Flex (MXML) and Flash (Actionscript) and expect you to know those things first.
You'll see I'm a gamer as well as a web/desktop developer and I have built so many application in both technologies.
But yesterday I was amused by something I saw. I like to play this Combat Arms game from Nexon a very well developed FPS online action game, scince I downloaded the update I noticed that when I double click on the game icon it actually open a browser where I login (in the past I log in from the game itself) when I login I press a button IN THE SITE where it says "START GAME" and the game automatically starts.
now the question is "HOW THE HECK DID THEY DO THAT?" [code]...
It's not something that's ever really come up before, but I'm re-creating a desktop application as a web-app and I'm coming across a number of places where:1. A select box may be pre-filled with data from a database, and2. Changing that select box affects the rest of the page.I'm looking for a neat way to perform an action that could happen when the page loads, and/or when the select changes. Knowing my luck it's something stupidly easy.For example, some code that is currently in progress:
switch($('option:selected',$transaction).text()){ // On Load case 'Comparable': case 'For Sale / To Let': $.each($priceFields, function(){
I just came across following demo application: [URL] I have a few questions about this:What is the right approach to start a project, which have heavy use of JS? how to choose which library is best, or one should develop his own library specific to requirements to keep the file size smaller?
My HTML page loads and alerts an XML document on another machine. If I request the page by machine name or localhost there is no problem. If i request by IP access denied error occurs.
I think this is because of that only the documents on same machine can be loaded. Is there any way to load xml documents from another machine?
I am writing some numerical math programs in Javascript (translating from C++) and am seeking your advice regarding machine constants.
C++ offers the <cfloatlibrary for accessing machine constants such as DBL_MIN and DBL_EPSILON. Does Javascript offer comparable values? If not, can you suggest a method (brute force or otherwise) for calculating these values myself (in Javascript)?
I've been searching for a script that creates a desktop shortcut for a URL. The script must work for all versions of Windows and Mac. I haven't found anything useful in my research yet. I know it sounds pretty basic but I am not sure where the limitations are when jQuery and the clients' browser interact with the OS.
Does anybody know if there has been any groundbreaking on this subject with jQuery?
I am working on getting my tumblr blog on my web site and there's a feature in the template that I would like to use on my site but after going through lots of sites offering tools, I couldn't find one the same.
this is my blog [URL] when hovering over a photo, you see the zoom button, clicking it makes the picture bigger and fades the background out.
Anyone know where I can get a script to do this? Has anyone used one of these? Do they automatically work on all images on the page without extra code on each image?
This code works to insert a MySQL record to a Database using AJAX. It works fine on IE, but it's not working on FF or Chrome. When I test it on FF/Chrome, i just get the text "Just a second..." and it doesn't advance from there.
I'm trying to make a slot machine effect in JS - i had an ajax example but was far too complicated to manipulate to communicate with my server so im working from ground up.
The way ive done it is simple html and a submit button.
But i want the submit button to first create a "rolling through the images" affect like a slot machine does - then stop left to right in that order (basically like a slot machine does).
Now this is beyond what i know in JS but i then also want it to know the result of the images store them into an array and push it to my PHP so i can process it on my server.
I have a js file embedded into additional files to make up the extension.
I want to run a single executable file, but I can't figure out what the relative path is. The path must remain relative, because the user will set the directory.
The js code like so:
runthefile: function(){
const path = "calc.exe"
var file = Components .classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile)
file.initWithPath(path) file.launch() }
However, it doesn't seem to run calc.exe no matter where I put it. Code:
I need to find the information about Client machine by using Javascript : Information like : How much Avaliable sapce on clinet's machine ? Need to find RAM size . Operation System. Can we have any built in Active X control to get all these values ?
is possible with JavaScript to drag and drop a .jpg from your desktop to a small square box on you website. On drop the picture has to upload the file and store it on the server.
i want to open filedialog on client machine in javascript (in jsp page) ,Following is the code i have written but it is not working
var Frame = new java.awt.Frame(); var fd = new java.awt.FileDialog(Frame, "Browse File",java.awt.FileDialog.SAVE); fd.toFront(); fd.show(); var getDirectory = new java.awt.FileDialog(Frame); [Code]...
i need a way to visually shuffle through a bunch of names and pick one at random. i found some code for a javascript slot machine and hacked at it.
the result is attached.
when you click on the logo, it's supposed to display 25 names then stop on the last one. instead, it just display undefined. i'm not exactly sure why, but i think that the spinem function can't access the array of names.
I want to make an extensive browser/fileupload script inspired on windows Explorer... A server side listing of the files and directories with the home directory specified in the script and a listing of the clients files. The server side part can be found on http://vegeta.evilkalah.be ... The idea now is to make it possible to upload or download (maybe drag and drop) files from on side to the other. I don't know how I best make the client side. So on this part any help is welcome...
I'm about to start a project where the application is one used on a publicly accessed machine. It could be like, say, a ticket purchasing application in a kiosk machine; or maybe touch-screen app that tells grocery shoppers which aisle has coffee, etc.
So my question is, can javascript (or some other language?) be used to open a window without any controls (toolbars, menubars, titlebars, frame, etc) so that the user can't close the application (or resize, change, etc.)?
I've written a slideshow script which loads and displays a series of >1Mb images from the local machine. Each image is loaded twice - once to get the dimensions and once to be shown on the screen, so it can be dynamically resized by another script.
This script runs without problems in Opera and Internet Explorer, no matter how many times it's executed. However, after it runs a couple dozen times in Firefox, the width and height attributes of the image start returning 0. It seems like the loading has slowed down considerably and the script starts skipping to the next line without waiting for it to finish.
I've tried adding the line while(!image.complete), which works, but invariably causes Firefox to display a message saying the script is causing Firefox to run slowly, and asking if I want to abort.
Is there a way I can flush earlier images from the cache, or somehow free up resources so the script will continue to run as quickly as it does at the start?