How to Iterate on a JSON Array
JSON, short for JavaScript Object Notation, makes the Web a more productive place by enabling computers to exchange data efficiently. Simply create a JSON array consisting of keys and values, and send...
View ArticleHow to Deselect All From a Multiselect in JQuery
Multi-select boxes are made using almost the same code as drop-down selection boxes, the only programming difference being the addition of a "multiple" attribute. The form element created by this code...
View ArticleHow to Make a DIV Expand to the Left
Most Web designs constrict themselves to a limited amount of horizontal space on the browser screen, typically around 950 to 960 pixels. Sidebars take up some of this space as well. When you want to...
View ArticleWhat Does Return False Mean in Javascript?
JavaScript functions carry out various kinds of Web page processing. When a Web page calls a JavaScript function, this causes the code within the function to execute. A function can optionally receive...
View ArticleHow to Convert a String to JSON
Computers and humans often cannot understand the same language. Computers read binary numbers, and humans understand text. JSON, a text-based protocol, consists of text data that anyone can comprehend....
View ArticleHow to Bind in GridView Using JavaScript
The ASP.NET GridView loads all of its columns and rows when the server loads the page in the user's browser. Using the JavaScript Ajax language, you can change and bind more data to the GridView rows....
View ArticleHow to Install jQuery With Dreamweaver
The jQuery JavaScript library performs many complex yet common scripting tasks automatically and quickly, saving website developers and designers time and effort. The jQuery source files sit outside...
View ArticleHow to Synchronize Scrolling in jQuery
Many developers use jQuery because it allows them to place exciting visual effects on their Web pages. It can also help you keep your div elements synchronized. An HTML div is a useful container that...
View ArticleHow to Make an iframe Transparent in HTML
One way to show site visitors an interesting Web page object is hide it. HTML opacity effects, supported by all modern browsers, allow developers to control the transparency of objects appearing on a...
View ArticleWhat Is Cross-Site Scripting?
Cross-site scripting, or XSS, is a method of injecting malicious code and links into an otherwise safe website's code. XSS is one of the most commonly used hacking techniques. While Web browsers have...
View ArticleHow to Fill a Table Cell With JavaScript
Manipulating HTML tables requires JavaScript. The HTML Document Object Model, or DOM, gives developers the ability to use JavaScript to change the "innerHTML" property of any element on a Web page...
View ArticleHow to Countdown With a Dreamweaver Clock
To add a countdown timer in Dreamweaver, you must add some JavaScript code to the Web page. Dreamweaver has a JavaScript insertion window that helps you insert a block of JavaScript code without...
View ArticleHow to Redirect the Parent Window to a New URL After Clicking on a Child...
The "windows.opener" class contains the parent window for an iframe or the window in which you opened a secondary dialog box. You use this class to redirect the parent window of a child window. You...
View ArticleHow to Share on Facebook With JavaScript
A Facebook "Share" button on your website lets users share your pages with their Facebook friends. Facebook provides you with the code to add the button to your Web pages, so you do not need to create...
View ArticleHow to Determine When a Scrollbar Has Reached the Bottom Using JavaScript
You don't normally see anything as big as a ticker-tape parade when your scroll bar reaches the bottom of a document on a Web page, but it is possible for JavaScript developers to tell when you scroll...
View ArticleHow to Make a Button Visible in JavaScript
The JavaScript document object model, or DOM, allows Web developers to locate, access and manipulate Web page object attributes. Once JavaScript is used to properly identify an object reference,...
View ArticleCan I Delete JS Files?
If you are responsible for a website, you may find many different types of files stored on your server. JavaScript files have the ".js" extension. Whether or not you can delete JavaScript files depends...
View ArticleCallback Functions in JavaScript
In JavaScript, programmers can define units of code including variables and functions. JavaScript functions can also receive parameters, with the code calling a function passing these parameters either...
View ArticleHow to Loop Through Select Options
When you create website forms in HTML pages, you can include "select" elements with a drop-down list of options for users to choose from. You may need to access the details of these option elements...
View ArticleHow to Change the SRC of an Embed Tag in JavaScript
The “<embed>” tag embeds media on a Web page. These tags are most often used to embed music and videos. HTML tags are, by themselves, static and unchanging. A little JavaScript -- a programming...
View Article