Posts

Showing posts with the label JavaScript

Online Base64 Encode and Decode

Image
In my previous post, I have shared the basic introduction of base64 encode and decode and it uses. I have also shared the code How you can base64 encode and decode a string in C#, Java, and Object-c . I have built a simple java script based tool,  which online converts the string to Base64 encode and base64 decode. At the end of this post will get the source code of this tool and the code snippet  to share this tool on your own site.

jQuery Form Validation Sample Example

Image
jQuery is JavaScript library containing a lot of important and usable function which facilitate our Application. Java script is client side language and which run on client browser. In most of web application we have to validate user input before submitting to Server. You can validate user input on Client side using Java script or jQuery and on Server Side  using server side programming language like PHP, Asp.net , Java and etc.But when you validate input to server side then first request send to server with all user Inputs, then it check whether  these input are correct or not the return to client to display error.

Host JavaScript and CSS files for Blogger and How to use Google Code?

Image
Blogger and web designer know how much we should care about coding assets, JavaScript files  and css etc where to host it ? and manage it. Now in present user experience is more important if user feel bad experience form UI then it will effect site visit and ranking. There are many  widget JavaScript and  CSS script that makes you site better. But most off time we have to Upload or host some of these script file to a hosting server.

Java Script TRIM, LTRIM and RTRIM Function

Image
Today I will show you how to make TRIM Function in Java Script . From this tutorial you can easily write RTRIM and LTRIM function. This Function is very useful you can also make you own TRIM function to filtering user input, Preventing Basic SQL Injection and verify or correct user input.

Remove all empty tags from XML in Java, C#

Image
Today I will show you how to remove all empty tags from XML File or a string Variable that contains  XML data, in both languages C# and Java. In My Previous tutorial,  I show how to Remove Empty Lines from  a string or from XML Data, After removing empty tags from XML there will be Empty Line in XML data besides these tags. So you must go through this tutorial as well. In this tutorial Again I will Use Regex Expression to identify empty tags from XML string or File and  replace these empty lines with my respective tags or string  or left them empty.

Remove Empty Lines from String or XML

Image
To day I will show you How to Remove Empty Lines from string variable or  string Variable containing XML Data . This Code will Work on Both C# and Java Language. In Code I use Reg-ex Expression  To Detect or Find empty lines from String and Replace any other Character , join with Previous line or Else ..