Archive for the 'DHTML' Category
4.3.07 mod_proxy and internet explorer problems category: DHTML, UNIX
2
comm

If you have seen this error appear in your Apache logs:
(104)Connection reset by peer: proxy: prefetch request body failed to 10.0.0.2:80 (10.0.0.2) from 10.0.0.2 ()
.. or any error related to what appears to be your mod_proxy declarations failing - as we have - I have discovered two things that will help prevent this issue. This [...]

3.21.07 Send Native JSON Javascript Objects Back to CFAJAX category: Coldfusion Development, DHTML
0
comm

Every CFAJAX example I’ve seen thus far has only shown the transmission of simple datatypes from Javascript to a CFAJAX handler Coldfusion file. I wanted to go a step further and bring a completely native Javascript JSON object into Coldfusion.
Make sure you have the newest implementations of the following:

json.js version ‘2007-01-10′ or later from http://www.json.org/js.html [...]

12.1.06 Simple JavaScript Form Field onKeyDown Regular Expression Wrapper category: DHTML
4
comm

UPDATED —-
This is the final version I’ve been using in the live environment - streamlined and simple for use in windows, mac - IE, FireFox, Safari.
/* onKeyPress validation function */
function validVal(event, keyRE) {
    if (    ( typeof(event.keyCode) != ‘undefined’ && event.keyCode > 0 && String.fromCharCode(event.keyCode).search(keyRE) != (-1) ) ||
        [...]

11.10.06 Add a “Please Wait” message to your AJAX application category: DHTML
4
comm

Flash and the whole R.I.A. movement has brought with it the expectation, by the end user, that they need to know what the application is doing. As an AJAX developer you understand that you can have numerous synchronous requests running at the same time - and as a conventional application developer you understand that you [...]

9.22.06 Flash & JavaScript dollarFormat function category: DHTML, Flash Development
0
comm

A quick function that was put together to parse strings/numbers (float as well) into a US Dollar formatted string:

trace(this.dollarFormat(“.004″));   // outputs “$0.00″
trace(this.dollarFormat(“.005″));   // outputs “$0.01″
trace(this.dollarFormat(“.014″));   // outputs “$0.01″
trace(this.dollarFormat(“.015″));   // outputs “$0.02″
trace(this.dollarFormat(“.019″));   // outputs “$0.02″
trace(this.dollarFormat(“000.123″));    // outputs “$0.12″
trace(this.dollarFormat(“1.234″))// outputs “$1.23″
trace(this.dollarFormat(“12″));     // outputs “$12.00″
trace(this.dollarFormat(“123″));    // outputs “$123.00″
trace(this.dollarFormat(“1234″));   // outputs “$1,234.00″
trace(this.dollarFormat(“12345″))// outputs “$12,345.00″
trace(this.dollarFormat(“123456″))// outputs “$123,456.00″
trace(this.dollarFormat(“123457″))// outputs “$123,457.00″
trace(this.dollarFormat(“1234578″));    // outputs “$1,234,578.00″
trace(this.dollarFormat(“12345789″));   // outputs “$12,345,789.00″
Newer Posts
1.334s