javascript

php: javascript delete confirmation via dialog box and html link

April 5, 2012
By

Here is a script for presenting a dialog box asking if you really do want to confirm Deleting, and if yes, to goto the proper web page to delete the record with the id: echo’ Delete‘;” “; Of course this could also be done embedded into the html as:

Read more »

javascript: calculate months between particular late and today

March 3, 2012
By

function monthDiff(d1, d2) { var months; months = (d2.getFullYear() – d1.getFullYear()) * 12; months -= d1.getMonth() ; months += d2.getMonth(); return months; } var curDate = “2010-11-4″; var myDate = curDate.split(“-”); var datePr = monthDiff( new Date(myDate), // November 4th, 2008 new Date() // March 12th, 2010 );

Read more »

javascript: copy to clipboard button – only in IE

February 29, 2012
By

From http://www.htmlgoodies.com/beyond/javascript/article.php/3458851/Click-Its-Copied.htm3730763 I’ve seen this effect used in a couple of places. It’s a really neat look so I thought a tutorial would be in order. I grabbed some blips of code and played with it to set it up so that it’s an easy grab from a tutorial. You can alter this and...

Read more »

javascript: incr font size

January 19, 2012
By

The following script can be used to allow visitors to increase or decrease the size of text on your page. This can be useful for visitors who have trouble reading smaller text and allows them to increase it to something they can view more easily. This script will change the font size of any...

Read more »

ajax: javascript to remote php to update

November 22, 2011
By
ajax: javascript to remote php to update

Here is a code to update a section after looking up info, using AJAX: // the following will save changes to the table function makePOSTRequest(url, parameters, divarea) { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,… http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType(‘text/xml’); } } else if (window.ActiveXObject) { // IE...

Read more »

javascript: Changing the display to show or hide on elements using the id

November 20, 2011
By

// the following will show or hide edit sections in table // do this by show/hide sections by their tagnames with “name…” function showHide (thisname) { var tr=document.getElementsByTagName(‘th’) for (i=0;i

Read more »

Objective-J

September 10, 2011
By

A new way to program, but is it going to take off? Dunno yet. http://cappuccino.org/learn/

Read more »

objective-j: Mockingbird mock up web app

September 10, 2011
By

https://gomockingbird.com/mockingbird/

Read more »

javascript: iPhone box image manipulation

September 10, 2011
By

Here is how to click, draw, throw, rotate, and scale images on the iPhone, using javascript: http://www.midemos.com/demos/iphone/touch/?/iphone/touch/

Read more »

javascript: change destination location in form

September 6, 2011
By

function reload(form) { var val=form.start_dt.value; //alert (“You have selected ” + val); self.location=’index5-printout.php?HD=’ + val; //val = “12/9/2005″; //self.location=’RVM.php?cat=’ + val ; }

Read more »