Search Results

There are 10 item(s) tagged with the keyword "javascript".

  • Displaying: 1 - 10 of 10
1. cfform creates javascript variables for HTML elements

 

Hi all,

This post is about JavaScript and ColdFusion. Few days ago, I caught an issue in HTML form post data.

I received [object HTMLInputElement] as form HTML form data. Later I figured out that when my JavaScript variable propertyID is assigned with correct numeric value, then there is no problem. I tried to find where I declared this JavaScript variable.

Tags: JavaScript, ColdFusion
By Vikas Patel
2. Show tooltip when input element get focus

Hello Friends,

Recently I am working on one of the project, and inside it we want functionality to show a hint tooltip box (show information related to that field) when that input element get focus.

I use clueTip (a jQuery tooltip plugin) to show hint tooltip box.

Tags: jQuery, JavaScript, html
By Mahavir Dhruv
3. Decode HTML code with jQuery

In one of the project, we are storing all form fields in json string format (i.e. {"name":"myname", "email":"may@xyz.com", "address":"myaddressdetail"}) in the database table. To avoid the JSON parsing error due to any special characters while retrieving data from database and deserialize the json string, I convert all special characters in the fields value with their HTML-escaped equivalents (by using coldfusion HTMLEditFormat() function). Till this it's works fine but I found the issue with the HTML-escaped equivalents code when I am going to retrieve data with AJAX and placed value to appropriate input field. At here I want to convert the HTML-escaped equivalents code to appropriate special character (i.e. & needs to be converted into & sign).

 
Tags: html, javascript, jQuery
By Nirav
4. Understanding event handler and parallel processing

Hi,

These days I am trying to play with browser’s local database. I get very much interesting experience while assigning a value to variable.

I used the following code in JavaScript (Only works in Firefox) ...

Tags: JavaScript
By Vikas
5. Javascript and Numbers

Hello

Once I wonder that why the I got the 10 value in my javascript variable x in the following example.

var x = 1 + 011;

After, googling some times I got that it was a radix param issue [More].

While parsing into the number javascript assumes the following ...

Tags: JavaScript
6. innerHTML vs appendChild

 

Today I was testing my code, and I found interesting stuff on innerHTML and appendChild method.

I was trying to add new elements to the div.

First, I was creating element by calling DOM method (document.createElement()) and then I append it to my div by calling appendChild() method of the HTML div element.

 

Tags: DOM, HTML, JavaScript
By Vikas
7. Place Scripts at the Bottom of Your Page

Placing JavaScripts at the bottom of the page is a good way to makeother things of the page download faster. Keep in mind — the most important goal is to make the page load as speedily as achievable for the user. As soon as load script statement is encountered the browser tries to download and becomes unresponsive until the whole file has been loaded. Therefore, the user will have to wait longer before noticing some development or rendering in the page. If you have JavaScript ...

Tags: JavaScript
8. how to prevent your site from being framed

If you do not want that someone links your web site within a frame, the following javascript code will enable you to prevent your web site from being framed.

Add the following code to your <body> tag:

<body onLoad="if (self != top) top.location = self.location">

Tags: JavaScript
9. jQuery code and syntax guidelines for improved code performance

f you want to publish your jQuery plugins following jQuery core code writing guidelines is a good idea. Here are some of the guidelines ...

Tags: JavaScript, jQuery
10. Correct Method to check if a Javascript function is Exists or not

Hi everyone,

Sometime you might want to call a function in Javascript but check whether the function exists or not before calling it. You can test if a function exists in Javascript by simply testing for the name of it in an if() condition.

But Note that you can't test for the function name by itself.
This will work but if the function doesn't exist the Javascript will error out ...

Tags: HTML, JavaScript, jQuery
  • Displaying: 1 - 10 of 10

Didn't find what you were looking for? Refine your search and try again.