javascript

My fade in goes to all opaque for it goes to transparent

So, I'm trying to fade in a transparent div, kinda like hulu does when you click dim lights... here is what i have: //show the bg new Effect.Appear('darkBackgroundLayer', {duration: 0.3}); then when my pop up is initialized // create the div for background dimming if($('darkBackgroundLayer')){ Element.remove('darkBackground...

Speed up a web service for auto complete and avoid too many method calls.

So I've got my jquery autocomplete 'working,' but its a little fidgety since I call the webservice method each time a keydown() fires so I get lots of methods hanging and sometimes to get the "auto" to work I have to type it out and backspace a bit because i'm assuming it got its return value a little slow. I've limited the query results...

Preventing closure compiler from renaming certain variables

I have a javascript file with a global object that must not be renamed (_gat from the Google Analytics async tracker). This object must not be renamed by the Google Closure Compiler as Google Analytics looks for a variable with this specific name. I've looked into the Javascript Doc notations that are mentioned: http://code.google.com/...

Execute system commands via actionscript on Flash Media Server?

When writing an ActionScript application on Flash Media Server 3.5, is it possible to execute local (unix) system commands within the actionscript itself? The uses of actionscript, being primarily used client side where people are quick to respond "No, that's impossible, it's a security risk for flash", make it difficult to search for q...

Javascript File Drop

Is there a way to get the absolute file path of a drop event using Javascript, or should I use another technology? If so, I can do the same with folders? ...

Trying to call JS Code that is passed back from AJAX call....

Okay, so I have an javascript function that retrieves some HTML... function updateQuestions(i){ var url = 'getQuestions.php?sys=' + i; if (receiveReq.readyState == 4 || receiveReq.readyState == 0) { receiveReq.open("GET", url, true); receiveReq.onreadystatechange = handleQuestionsUpdate; receiveReq.send(...

How do I create a chromeless window?

We used to be able to use javascript in IE to produce a chromeless window...no buttons, scrollbars or even the standard edges of the browser window. My question: Is there any way to accomplish this type of window look from the web with today's browsers? ...

Legitimate uses of the Function constructor

As repeatedly said, it is considered bad practice to use the Function constructor (also see the ECMAScript Language Specification, 5th edition, § 15.3.2.1): new Function ([arg1[, arg2[, … argN]],] functionBody) (where all arguments are strings containing argument names and the last (or only) string contains the function body). To rec...

How can I see included JavaScript sources?

I am trying to script a web page using GreaseMonkey. (I am using Firebug for help in development.) The page has a small amount of JavaScript code, but that code pulls in other JS files from the site. Are the entire collection of JS files stored somewhere on the client side (i.e. on the filesystem somewhere) so that I can view them? O...

Array.sort Sorting Stability in Different Browsers

What is the stability of Array.sort in different browsers. I know that the ECMA Script specification does not specify which algorithm to use, nor does it specify whether the sort should be stable. I've found this information for Firefox at https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort which s...

jQuery > Update inline script on form submission

I am using the ChemDoodle Web Components to display molecules on a web page. Basically, I can just insert the following script in my page and it will create an HTML5 canvas element to display the molecule. <script> var transform1 = new TransformCanvas('transform1', 200, 200, true); transform1.specs.bonds_useJMOLColors = true; ...

Show an ASP.NET Validation Summary in a jQuery UI Modal Message

I've made an ASP.NET web form that uses the standard ASP.NET validation. I'd like to make the error summary show up in a jQuery UI Modal Message as well as below the actual form. Is it possible to execute the script if the validation finds an error? ...

Processing data from an AJAX request

I have a PHP API I'm working with that outputs everything as JSON. I need to call one of the API methods and parse it out using an AJAX request. I am using jQuery (though it shouldn't matter). When I make the request it errors out with a "parsererror" as the textStatus and a "Syntax Error: invalid label" when I make the request. Simpl...

Syncing JS+PHP time

Since the Date constructor is based on your PC's timezone and server-side is obviously dependent on the server's time settings... What procedures can I do to ensure that the timestamps I generate are consistent on both ends? I have a jQuery datepicker setup and I do a lot of work, I also have my own datepicker that's generated from ser...

dijit.TitlePane with scroll ?

IS there any way to have scroll bar in a dijit.TitlePane ...

How do I use google API within perl CGI script?

The google API example shows that you should have the javascript within the head tag but I am using perl module CGI and in there they suggest that you use "print header;" instead of writting out your headers explicitly. So if I want to use the perl CGI module and the google API javascript what is the correct way to do this? I tried w...

Dump methods and attributes of object

Hi, I am using a third party library that provide some callbacks for a widget, but I'm not sure what the callback parameter objects are (no docs on them). Is there a way to just dump all the attributes of an object in javascript, then print them using alert(), maybe? I just want to see what methods and attributes they contain, Thanks ...

What are the wysiwyg editors that have proven to be reliable at large scale?

I recently heard that jWYSIWYG editor isn't a reliable editor for a large scale website. Are there other WYSIWYG editors that have proven to be reliable on a large scale? Thanks, Walker ...

iPhone/iPad Safari Javascript performance

Do anyone know how to improve response time of panning (using one finger gesture) handled using JavaScript in Safari on iPad/iPhone ...

Embedding Flash & Quicktime Via JavaScript

I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF(). I want to be able to, alternatively, load a .mov file into the same div, in the event that this is the file found instead of the .swf. Is there a close equivalent to swfobject.embedSWF for the purposes of embedding a .mov file? If not,...