Notice: This is a discussion thread for comments about the SitePoint article, How To Store Adobe AIR Application Preferences Using JavaScript.
Great article. Just one question - why did you choose xml and not sqlite database? Don't you think using a sqlite database is a more stable way of storing the preferences?
I am trying to put together a Adobe Air Application that is basically a RSS feeder for my blog (custom made). I have the Air application all design and coded on the front end in terms of how it looks. My problem now is that I dont know how to get that XML document to my Air application using jQuery. Im still a beginner at jQuery (and JS in general).
I'm currently facing a weird issue with the onchange event. I have a web application where each blur event makes a call the webserver to store the value of the textfield. I only want to trigger that ajax call when something has changed, so i track the onchange event on each textfield to set a flag if something has changed.
The onchange event always fires to first time when i click outside of a textfield even if i didn't change anything in the field.
I narrowed it down to the following: A prefilled textfield always fires the onchange-event the first time you leave the textfield. An initially empty textfield does not fire the onchange event.
I am creating an on-line survey. I want the user to have a list of choices of say 10 items that are radio buttons. They need to rank their preference. They click on preference 1, that option is removed from the top list (choices) and appears below in a list called 'Your preferences', you keep looping until all of your preferences are made. Does this make sense?
how to go about populating empty fields from a drop down list of different options. Eg. A user selects from a HUGE choice from the drop down list, and this fills their preferences 1-4. If 1 is full, then it populates 2 if another choice is clicked, and so on.
- the third text input in the form is requesting for the user's favorite color. I need it to validate the data to either be a defined color or a hexadecimal value and then turn the background into that color upon submission. However, it's not validating correctly... When a correct value is entered it works fine, it's the error message for an invalid entry that's not appearing.
- I need to save all of the user's input into a cookie which will automatically load their preferences the next time they visit the site(time of day message, first & last name and bg color).
MY PROBLEM: OK, if you load this up into your browser, you can see I have two lines of text that show/hide themselves by clicking on the other line. I know how to set the cookie name and the two different values ("show_hide_cookie=line1", "show_hide_cookie=line2") and I can see that they are there when I view my browser's cookies. But I've spent hours trying to figure out the javascript code to get it to read the cookie and remember the preferences. Right now of course, if you click on the first line and then refresh your browser, it resets the second line back to the first line.
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.
Can someone give me the code to show or hide a field based on the status of another field (in this case a checkbox). The actual application is Adobe Acrobat.
How can I detect whether Adobe Acrobat Reader (any version) is installed using javascript? I am able to detect the installation using IE 5+/NS7 on Windows. But unable to detect on IE/NS on Mac 10.3.3
Notice: This is a discussion thread for comments about the SitePoint article, A New Window on HTML-Based Adobe AIR Apps.Contest ended early? After submitting the quiz, it says it's over already - not supposed to expire until the 5th, right?
How do I create a countdown timer to be used in adobe flash? I have the site planned out using Flash now I cant get the timer to work. it should start at 0 and go to 60 seconds.
I have a submenu that expands over the adobe pdf reader addon/plugin. See this basic exampleI need to make it so that the menu stays above the plugin. Currently, parts of it are cut off.After some research I came across the idea of placing an iframe below the submenu to force it to stay on top. As the topic suggests this is called an "iframe shim" and I have been some what successful. See this basic example one submenu is shown on page load because i plan to take screen shots of it) The only problem is that it doesn't work in opera. I have tested it in chrome and firefox and they are working. I can't test it in ie8 at the moment because the plugin for some reason just won't work on the page, however i have tested the approach before and it did work in ie
I just downloaded the new Adobe Edge program for creating HTML5 websites. I was trying out a proof of concept for something I wanted to do on a site with a simple circle shape (will eventually be a soccer ball) rolling across the screen when clicked. The animation looks great, but it happens when the page loads, not when the image is clicked.
First off, sorry if this is the wrong section. Adobe Forms isnt exactly Web Development, but its the only place I could find to post about javascript. If this isnt the correct section, Now, onto the question (please note, I am inexperienced with javascript). I have an Adobe form with a default text like this I have javascript that looks like this, so that when tabbing into the field, it skips past the default text:
function SetEnd (text) { if (text.createTextRange) { var FieldRange = text.createTextRange(); FieldRange.moveStart('character', text.value.length); FieldRange.collapse(); FieldRange.select(); } } SetEnd(this);
I was wondering if there is a way to make it so the default text cant be changed at all. Even better would be an alternative way of having the default text there but not "part" of the field, but at the same time, not being able to type over it either.
I'm using Adobe Spry for some transitional effects, based on this script: http:[url]....The page I'm working on is located here: http:[url].....As you see, on page load the first item is shown ("Giovanni Pappalardo - Nullafacente"), and then the other records are shown when clicking on each thumbnails
My questions are:1. Is there a way to hide, on page load, that first item, and showing it ONLY if relative thumbnail is clicked? I tried to apply some "display: none", but I get stuck on JavaScript part, since nothing seem to work... (honestly my JS skills are very poor)
2. While doing transitions between a record and another there's a moment in which full image still hasn't loaded (and so there's a white placeholder); is there a way to avoid that, i.e. preloading images?
I have a client which would like to use Adobe Contribute to maintain their website, and the website requires popup windows (for larger images) or a lightbox feature. The problem is how do I make images popup into new windows, without toolbars, etc. I would prefer lightbox than popup windows, if possible. How I can do this, so the client can add more images, as they maintain their website? For anyone that hasn't used Contribute, you can only edit <a href="page.htm"> and nothing else for the links, so it means onclick can't be added to <a href="page.htm">. The only way to add a link is to click on a button in the tools.
I have a file that generates web galleries in Adobe Lightroom. They are generated depending on which files are selected and the metadata in those files.
Basically it is a series of pages of thumbnails called index.html index_1.html index_2.html etc.
Then a set of pages for each individual image.
An example can be seen here: [url](the page navigation links are not great, but I have addressed that, they're at the bottom >> )
Currently if a user clicks on a photo there is a 'return to thumbnails button at the top, but this always takes them to /index.html
So the user could be at a picture after browsing to /index_39.html and still get returned to /index
Is there any way I can use history.go to find the last instance of index.html Or index_x.html (where x is any number) and take them back to that instead?
I need to develope a multilanguage application in javascript: is there some particular library, or do you have some pointer to guidelines to follows: the messages should if possible be keeped in a separate file, one for language. Is there some standard format?
I having taken on a large project (set by myself), and I can never seem to plan out my functions, classes, variables etc... in a format that's easy to read, and follow.
Would anyone know of some kind of application which will allow me to "prototype" my application first? I am sure such a thing exists, I just don't know what I am looking for. I think I am after something along the lines of Microsoft Visio, but a bit simpler.
I know this sounds so stupid, but it's a project that I am working on. I need to develop an application where people can upload a picture of themself and then it will add a wig to their picture over their hair.I just don't know how the code scans the uploaded photo and finds where to add the wig to the picture. The program will be really simple. No choice of wigs there is just one wig and as soon as the picture is uploaded the wig should be added and then displayed.
Is there any way to debug javascript in a web application? When I develop JSP pages, and it has the javascript code in it. The problem is the debugger in Java IDE (WSAD in my case) can only debug Java code but not Javascript code.
I am developing a web application in asp.net. In this application, i would like to disable all other tool bar other than menu bar. If you know more about the same. Please guide me to proceed further?
Note: It should work for all major browser such as IE, netscape, Mazilla, opera....
I am using ASP to make an application. What I want right now - is to make the self updating list of the users online - based on thier cookies. In my opinion all seems to be writen well with it's logic, but computer thinks otherwise. I use application("loged") to store the cookies of all users. Code:
Ineed to pass two variable in a querystring from one application (in PHP) to another (in ASP.NET). It's a one way transfer...That is I need to encrypt it in PHP and decrypt it in ASP.NET (c#). The data will be anywhere from 5 - 15 characters..only letters and numbers.