please helpsantosh.s.sasatte April 19, 2011 at 12:57 PM
in the following js code i have replaced document.all() by document.getElementbyId() but still code doesnot work please help me immediately
code
var signedData = document.all('clsXMLsigning').XMLSign(document.forms[getNetuiTagName("LoginForm",this)][getNetuiTagName("challengeXML",this)].value,"D");
//alert("signedData ::"+signedData);
document.LoginForm.signedData.value = signedData;
//var tmp = document.LoginForm.signedData.value;
//alert("after assigning=" + tmp);
if(signedData ==null || signedData =="" ) {
}
else {
document.LoginForm.submit();
}
}
function CheckAuthType()
{
// Added for Testing
var cabObj =document.all("clsXMLsigning");
Below code needs an erase button to erase the drawing window.
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Question 13.4 -->
<!-- Erase drawing program with onreset. -->
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Simple Drawing Program</title>
<style type = "text/css">
#canvas { width: 400px;
border: 1px solid #999999;
border-collapse: collapse }
td { width: 4px;
height: 4px }
th.key { font-family: arial, helvetica, sans-serif;
font-size: 12px;
border-bottom: 1px solid #999999 }
</style>
<script type = "text/javascript">
<!--
//initialization function to insert cells into the table
function createCanvas ()
{
var side = 100;
var tbody = document.getElementById( "tablebody" );
for ( var i = 0; i < side; i++ )
{
var row = document.createElement( "tr" );
for ( var j = 0; j < side; j++ )
{
var cell = document.createElement( "td" );
cell.onmousemove = processMouseMove;
row.appendChild( cell );
} // end for
tbody.appendChild( row );
} // end for
} // end function createCanvas
// processes the onmousemove event
function processMouseMove( e )
{
// get the event object from IE
if ( !e )
var e = window.event;
// turn the cell blue if the Ctrl key is pressed
if ( e.ctrlKey )
this.style.backgroundColor = "blue";
// turn the cell red if the Shift key is pressed
if ( e.shiftKey )
this.style.backgroundColor = "red";
// turn the cell white if the Alt key is pressed
if ( e.altKey )
this.style.backgroundColor = "white";
} // end function processMouseMove
// -->
</script>
</head>
<body onload = "createCanvas()">
<table id = "canvas" class = "canvas"><tbody id = "tablebody">
<tr><th class = "key" colspan = "100">Hold <tt>ctrl</tt>
to draw blue. Hold <tt>shift</tt> to draw red. Hold <tt>alt</tt> to erase red or blue. </th></tr>
</tbody></table>
<input type = "reset" value = "Reset"/>
</body>
</html>
Below code needs an erase button to erase the drawing window.
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Question 13.4 -->
<!-- Erase drawing program with onreset. -->
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Simple Drawing Program</title>
<style type = "text/css">
#canvas { width: 400px;
border: 1px solid #999999;
border-collapse: collapse }
td { width: 4px;
height: 4px }
th.key { font-family: arial, helvetica, sans-serif;
font-size: 12px;
border-bottom: 1px solid #999999 }
</style>
<script type = "text/javascript">
<!--
//initialization function to insert cells into the table
function createCanvas ()
{
var side = 100;
var tbody = document.getElementById( "tablebody" );
for ( var i = 0; i < side; i++ )
{
var row = document.createElement( "tr" );
for ( var j = 0; j < side; j++ )
{
var cell = document.createElement( "td" );
cell.onmousemove = processMouseMove;
row.appendChild( cell );
} // end for
tbody.appendChild( row );
} // end for
} // end function createCanvas
// processes the onmousemove event
function processMouseMove( e )
{
// get the event object from IE
if ( !e )
var e = window.event;
// turn the cell blue if the Ctrl key is pressed
if ( e.ctrlKey )
this.style.backgroundColor = "blue";
// turn the cell red if the Shift key is pressed
if ( e.shiftKey )
this.style.backgroundColor = "red";
// turn the cell white if the Alt key is pressed
if ( e.altKey )
this.style.backgroundColor = "white";
} // end function processMouseMove
// -->
</script>
</head>
<body onload = "createCanvas()">
<table id = "canvas" class = "canvas"><tbody id = "tablebody">
<tr><th class = "key" colspan = "100">Hold <tt>ctrl</tt>
to draw blue. Hold <tt>shift</tt> to draw red. Hold <tt>alt</tt> to erase red or blue. </th></tr>
</tbody></table>
<input type = "reset" value = "Reset"/>
</body>
</html>
jsp,payroll,javascripti want payroll management system / employee management system poject in "jsp" with jdbc connectivity using ms access or my sql ....give me ready code for creating table in sql April 14, 2012 at 3:01 PM
Hi,
I need a help urgently. I have a created a site where I need to fetch multiple content in another page with ID from multiple links in another page. Can anyone help me out.
three categories represented using radio buttons and subcategories also using radiobuttons when selected particular category of main radiobutton subcategories should enabled and other subcategories radiobuttons should be get disabled. i need javascript code for this .can u help me
please helpsantosh.s.sasatte April 19, 2011 at 12:57 PM
in the following js code i have replaced document.all() by document.getElementbyId() but still code doesnot work please help me immediately code var signedData = document.all('clsXMLsigning').XMLSign(document.forms[getNetuiTagName("LoginForm",this)][getNetuiTagName("challengeXML",this)].value,"D"); //alert("signedData ::"+signedData); document.LoginForm.signedData.value = signedData; //var tmp = document.LoginForm.signedData.value; //alert("after assigning=" + tmp); if(signedData ==null || signedData =="" ) { } else { document.LoginForm.submit(); } } function CheckAuthType() { // Added for Testing var cabObj =document.all("clsXMLsigning");
creating horizontal window type menubar vinoth kumar May 24, 2011 at 3:27 PM
hello i want to know how to create menubar using javascript..... can any one help me
learn and read scriptMohd. Rayeesh Alam October 1, 2011 at 9:18 AM
it is help for me
android web designesra October 31, 2011 at 2:11 PM
iwant to build android electronic libaray
A very good siteDeepinder singh November 28, 2011 at 10:20 PM
I think this is one of the best sites to learn javascript and others but is best to learn advanced javascript
Event HandlingDavid February 21, 2012 at 12:01 PM
Below code needs an erase button to erase the drawing window. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- Question 13.4 --> <!-- Erase drawing program with onreset. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Simple Drawing Program</title> <style type = "text/css"> #canvas { width: 400px; border: 1px solid #999999; border-collapse: collapse } td { width: 4px; height: 4px } th.key { font-family: arial, helvetica, sans-serif; font-size: 12px; border-bottom: 1px solid #999999 } </style> <script type = "text/javascript"> <!-- //initialization function to insert cells into the table function createCanvas () { var side = 100; var tbody = document.getElementById( "tablebody" ); for ( var i = 0; i < side; i++ ) { var row = document.createElement( "tr" ); for ( var j = 0; j < side; j++ ) { var cell = document.createElement( "td" ); cell.onmousemove = processMouseMove; row.appendChild( cell ); } // end for tbody.appendChild( row ); } // end for } // end function createCanvas // processes the onmousemove event function processMouseMove( e ) { // get the event object from IE if ( !e ) var e = window.event; // turn the cell blue if the Ctrl key is pressed if ( e.ctrlKey ) this.style.backgroundColor = "blue"; // turn the cell red if the Shift key is pressed if ( e.shiftKey ) this.style.backgroundColor = "red"; // turn the cell white if the Alt key is pressed if ( e.altKey ) this.style.backgroundColor = "white"; } // end function processMouseMove // --> </script> </head> <body onload = "createCanvas()"> <table id = "canvas" class = "canvas"><tbody id = "tablebody"> <tr><th class = "key" colspan = "100">Hold <tt>ctrl</tt> to draw blue. Hold <tt>shift</tt> to draw red. Hold <tt>alt</tt> to erase red or blue. </th></tr> </tbody></table> <input type = "reset" value = "Reset"/> </body> </html>
Event HandlingDavid February 21, 2012 at 12:01 PM
Below code needs an erase button to erase the drawing window. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- Question 13.4 --> <!-- Erase drawing program with onreset. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Simple Drawing Program</title> <style type = "text/css"> #canvas { width: 400px; border: 1px solid #999999; border-collapse: collapse } td { width: 4px; height: 4px } th.key { font-family: arial, helvetica, sans-serif; font-size: 12px; border-bottom: 1px solid #999999 } </style> <script type = "text/javascript"> <!-- //initialization function to insert cells into the table function createCanvas () { var side = 100; var tbody = document.getElementById( "tablebody" ); for ( var i = 0; i < side; i++ ) { var row = document.createElement( "tr" ); for ( var j = 0; j < side; j++ ) { var cell = document.createElement( "td" ); cell.onmousemove = processMouseMove; row.appendChild( cell ); } // end for tbody.appendChild( row ); } // end for } // end function createCanvas // processes the onmousemove event function processMouseMove( e ) { // get the event object from IE if ( !e ) var e = window.event; // turn the cell blue if the Ctrl key is pressed if ( e.ctrlKey ) this.style.backgroundColor = "blue"; // turn the cell red if the Shift key is pressed if ( e.shiftKey ) this.style.backgroundColor = "red"; // turn the cell white if the Alt key is pressed if ( e.altKey ) this.style.backgroundColor = "white"; } // end function processMouseMove // --> </script> </head> <body onload = "createCanvas()"> <table id = "canvas" class = "canvas"><tbody id = "tablebody"> <tr><th class = "key" colspan = "100">Hold <tt>ctrl</tt> to draw blue. Hold <tt>shift</tt> to draw red. Hold <tt>alt</tt> to erase red or blue. </th></tr> </tbody></table> <input type = "reset" value = "Reset"/> </body> </html>
Hai ra Govind! D.Govinda Rao. April 9, 2012 at 2:55 PM
Hai ra Govind! How are you? How are you studying?
jsp,payroll,javascripti want payroll management system / employee management system poject in "jsp" with jdbc connectivity using ms access or my sql ....give me ready code for creating table in sql April 14, 2012 at 3:01 PM
i want it argent plz
PHPS.Balaji Kumar April 20, 2012 at 9:44 AM
Sir... Will U Please send any PHP Tutorials & practice programms to my mail.. Thanking You Sir...
SORTING THE STRINGShow to sort the Dynamically taking the strings by seperating with spaces April 28, 2012 at 9:49 PM
if u anybody solution of this problem please help me;
thanxvicky May 20, 2012 at 4:20 PM
you all have realy done a great job. It's really good for both learner and professionals. I found it very helpfull. Thanx for that...........
need helpfaizal hussain June 18, 2012 at 10:54 AM
i need onclick and onchange event programs in javascript.Please send those programs on my mail
Nice BlogsAjit Dhanawade July 2, 2012 at 12:33 PM
Hi, This is very useful blogs to help me solve many problem!!!!!! Keep It Up !!!! Thanks Again Ajit Dhanawade
window.locationPratapaditya July 16, 2012 at 8:00 AM
Hi, I need a help urgently. I have a created a site where I need to fetch multiple content in another page with ID from multiple links in another page. Can anyone help me out.
commentsagar October 8, 2012 at 3:26 PM
That's Very Good
JavascriptRukesh Prajapati March 23, 2013 at 12:49 PM
learning javascript for bestl.
javascript code for radiobuttonssirisha August 22, 2012 at 1:01 PM
three categories represented using radio buttons and subcategories also using radiobuttons when selected particular category of main radiobutton subcategories should enabled and other subcategories radiobuttons should be get disabled. i need javascript code for this .can u help me
Post your Comment