Hi, I'm embedding a flash file from an external domain and there is some JSON data in the page I would like to use in the movie. Whats the best method to get these variables without passing them on as a flashvars (I don't have control of the page it's embedded in).
My only idea is to enable script access to 'always' and then get the ful...
Trying to extract variable names from paths (variable is preceded with : ,optionally enclosed by ()), the number of variables may vary
"foo/bar/:firstVar/:(secondVar)foo2/:thirdVar"
Expected output should be:
['firstVar', 'secondVar', 'thirdVar']
Tried something like
"foo/bar/:firstVar/:(secondVar)foo2/:thirdVar".match(/\:([^/:]\w+...
My program has essentially 3 steps:
1) Query Geocoder object for some Coordinates and store them in a Collection
2) Send the results to my main module for plotting on a map
3) Plot them on a google map widget
I have created a Requestor class for the purpose of handling the Geocoding -- this class has a getResults() function that returns...
While testing JavaScript code in Firefox 3.5 I sometimes get the following error:
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
I've tried Googling it, but all I can find are solutions to specific problems in other people's code (ie. "if you do this differently then the error will not occur"). But what I'd lik...
Hi there,
I have a div that I want to trigger a function when I click on it (easy enough using onclick) that shows child divs that have been hidden. I also want to make it so that when you click anywhere else on the document after the child divs have been shown, it will hide the child divs.
I am not sure of the best way to approach thi...
I have these dynamically added file inputs, that I then use a jQuery 'Ajax' file upload plug-in with. I'd like the upload to start once the input value has been 'changed'. However, Internet Explorer doesn't seem to respect the onchange event like other browsers. How can I do this?
Here is, more or else, the code that is affected:
var h...
I've been given a task to convert a simple spreadsheet to a HTML form to be used on a website, that is going to do some calculations using JavaScript. This would be no problem at all except I know nothing about financial functions, and I've ran into FV (Future Value).
This is the spreadsheet:
B3 = 100
B4 = 10
B5 = B4*12
B6 = 12
B7 = 3
...
Hi!
Total newbie. Thanks in advance. Here goes:
I'm trying to transform an XML document using an XSL stylesheet, and the XSL stylesheet links to a CSS file. When I open the XML file from my computer in a browser (Chrome), the data is displayed properly following the XSL and CSS files. I also have javascript math functions inside the X...
This is for a dialog in a Firefox extension. How can I make the following code work, so that when the listener callback is called, it can reference external function onSave2(). I keep getting function onSave2() is not defined. Also, I noticed that when confirm is called I get this:
Error: Component returned failure code: 0x80004005 (...
Hey guys,
Really appreciate any help someone might be able to offer!
I've been trying to set up a JQuery Ajax call to a web service, and the little debugging I've done so far shows that the web service will return parameters and from the client side I've use the alert function to show that data is going to the data string, but then I ...
I want to write a user script that runs some custom JS on each <input type="password"> field that gets loaded. I could register an event handler on document load to look for all input fields and run the JS on them, but that means firstly that the JS won't run on input fields that subsequently get added by other JS, and secondly it won't ...
From my recent question, I use KeyPress event for detecting '@' character in rich text editor. By the way, I just found that KeyPress event in other browser like Firefox 3.5 and Google Chrome 4 do not return any position in this event.
For clarify, my position is a distance from top or left of screen. In this case, it should be distance...
How would you combine OpenID with a RESTful web service?
The personal project I'm working on is using the RPX SaaS to do OpenID. The key result of this is URL describing the logged in user. The app itself is heavily Javascript and I'm planning on using a REST api to communicate with the backend for database persistence and spatial proce...
For convenient notification purposes, not secure information purposes:
I have javascript polling for new information while logged in. I want it to stop while logged out. What is the best way to let javascript know about the logged-in/logged out status?
Run a javascript function on login, and one on logout (which might get skipped if ...
How can I do with jQuery so that a mousemove event is active only if the left mouse button is being kept pressed, and as soon as the button gets released the mousemove event stops?
...
Possible Duplicate:
jQuery: a question on events
How can I do with jQuery so that a mousemove event is active only if the left mouse button is being kept pressed, and as soon as the button gets released the mousemove event stops? All that is to be done within the div element.
...
I'm trying to write a somewhat generic method for retrieving data either from the browser cache if it's available, or a JSON request if it's not. Right now, all I want to do is be able to give my data.get method an id, and return the correct results. This works perfectly fine - console logs the new object being retrieved via JSON the fir...
I want to integrate (php) a audio player which supports both mozilla and internet explorer, with a player image on the webpage that should contain all the functionalities forward, rewind, pause, volume...
...
I know there has been several discussions on JavaScript chart/graphics libraries, and there is many out there. What I need is one that can:
Zooming and panning
Data point manipulation (like when click on a data point, highlight other data points within the data series with the same certain parameter of the clicked one)
Dynamically chan...
How to style from elements unobtrusively in all browsers including IE6
...