Posts Tagged "HTML"

Capitalize the sentence in Javascript!

Capitalize the sentence in Javascript! <script type="text/javascript" language="javascript">// <![CDATA[ String.prototype.capitalize = function(){ return this.replace( /(^|s)([a-z])/g , function(m,p1,p2){ return p1+p2.toUpperCase(); } ); }; function capWords() { var inputString = document.form1.instring; // The input text field var outputString = document.form1.outstring; // The output text field outputString.value = inputString.value.capitalize(); } // ]]></script> Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation using PHP, XML, MySQL and SQL Server. Experience of working on Apache, Linux projects, Javascript, Ajax, Putty,…

Read More

Show password in normal text of password box on check.

How we can show the password box’s text in normal text if the box is password control box in HTML using JavaScript. Copy and paste the following code & you can type the password into the box provided and you will see the text as encrypted of password box is changed to normal readable text.   Password Show password Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation using PHP, XML, MySQL and SQL Server….

Read More

Expanding the Mailto tag

Expanding the Mailto: tag Introduction The Mailto tag is used as a way to include an email address on a web page which can be clicked on thus opening the visitors default email client with the email address pre-filled. The mailto code can e expanded to include multiple email addresses, email addresses to CC and BCC, the email subject and even a message body. Mailto: Tag The following is the basic mailto tag: <a href=”mailto:name@abc.com”>Mailme!</a> Which would result in: Mailme!…

Read More

How to validate ‘target=_blank’ in anchor tag with W3C Compatibility

While the apply ‘_blank’ value to a native link’s attribute ‘target’ that will give you not validated for W3C, the solution is to handle the click on the link and open it in a new window. Please note this alternative methods are absolutely SEO friendly and W3C valid. The code for the solution is: <script type=”text/javascript”> $(document).ready(function(){ $(‘A[rel=”_blank”]’).click(function(){ window.open($(this).attr(‘href’)); return false; }); }); </script> <a href=”http://www.shashidharkumar.com/shashidharkumar/index.html” rev=”solution-02″ rel=”_blank”>Shashidhar Kumar</a> Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client…

Read More

Default page name for technology used in Internet

Following are the detault pages for website of technology based : 1) HTML Based default pages : a) index.htm b) index.html c) default.htm 2) PHP Based default pages : a) index.php 3) SHTML Based default pages : a) index.shtml 4) Classic ASP Based default pages : a) index.asp b) default.asp 5) .Net(Framework) Based default pages : a) index.aspx b) default.aspx 6) Coldfusion Based default pages : a) index.cfm 7) CGI/Perl Based default pages : a) index.pl b) default.pl Shashi Dhar…

Read More

HTML Version 5

Worries over internet privacy have spurred lawsuits, conspiracy theories and consumer anxiety as marketers and others invent new ways to track computer users on the web. But the alarmists have not seen anything yet. In the next few years, a powerful new suite of capabilities will become available to web developers that could give marketers and advertisers access to many more details about computer user’s online activities. Nearly everyone who uses the internet will face the privacy risks that come…

Read More

Add HTML Control with JavaScript

This chapter explains how to display add HTML control dynamically through JavaScript. Click for Demo : Add HTML Control Download the script : Add HTML Control Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation using PHP, XML, MySQL and SQL Server. Experience of working on Apache, Linux projects, Javascript, Ajax, Putty, FTP, Remote Connection, XML parsing, Mod-Rewriting, Payment Gateways and shipping modules, Trouble shooting and Manual Testing. https://www.shashidharkumar.in

Read More

HTML & JavaScript Loader

In this program just change the source of  iframe and your loading.gif will show upto that time when page will not upload finally. For Demo Click Here Download Script Click Here Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation using PHP, XML, MySQL and SQL Server. Experience of working on Apache, Linux projects, Javascript, Ajax, Putty, FTP, Remote Connection, XML parsing, Mod-Rewriting, Payment Gateways and shipping modules, Trouble shooting and Manual Testing. https://www.shashidharkumar.in

Read More

Convert xml to html

This chapter explains how to display XML data as HTML. In the example below, we loop through an XML file (test.xml), and display each element as an HTML table row: <script type=”text/javascript”> var xmlDoc; if (window.XMLHttpRequest) { xmlDoc=new window.XMLHttpRequest(); xmlDoc.open(“GET”,”test.xml”,false); xmlDoc.send(“”); xmlDoc=xmlDoc.responseXML; } // IE 5 and IE 6 else if (ActiveXObject(“Microsoft.XMLDOM”)) { xmlDoc=new ActiveXObject(“Microsoft.XMLDOM”); xmlDoc.async=false; xmlDoc.load(“test.xml”); } document.write(“<table>”); var x=xmlDoc.getElementsByTagName(“TEST”); for (i=0;i<x.length;i++) { document.write(“<tr><td><b>”); document.write(x[i].getElementsByTagName(“SNIPPET”)[0].childNodes[0].nodeValue); document.write(“</b></td></tr><tr><td>”); document.write(x[i].getElementsByTagName(“NAME”)[0].childNodes[0].nodeValue); document.write(“</td></tr><tr><td>”); document.write(x[i].getElementsByTagName(“EMAIL”)[0].childNodes[0].nodeValue); document.write(“</td></tr><tr><td>”); document.write(x[i].getElementsByTagName(“WEBSITE”)[0].childNodes[0].nodeValue); document.write(“</td></tr><tr><td>”); document.write(x[i].getElementsByTagName(“LICENSE”)[0].childNodes[0].nodeValue); document.write(“</td></tr>”); } document.write(“</table>”); </script> * We…

Read More