Tag Archive | "javascript"

Escaping Characters in JavaScript

Wednesday, July 1, 2009

Comments Off on Escaping Characters in JavaScript

Some characters can not be represented in a string in JavaScript, other characters might have a specific meaning in JavaScript. Here is a list of common escape sequences: \' Single Quote \n Newline \" Double Quote \t Tab \\ Backslash \b Backspace \f Form feed \r Carriage return To use, simply insert them into your […]

Continue reading...

Parsing URLs in Javascript

Sunday, June 28, 2009

Comments Off on Parsing URLs in Javascript

Javascript does not have a built in method for parsing a url (to get the individual parts that make up a url). Here is a link to a great little function that does all you need, called parseURI. It uses regex to quickly break apart a url into source, protocol, authority, userInfo, user , password, […]

Continue reading...

Full Page Refresh in Firefox

Saturday, June 27, 2009

Comments Off on Full Page Refresh in Firefox

Hold down Control Key, Click Refresh Button or Control-F5 The keyboard shortcut is a bit of a hand stretch so I stick with the control key and mouse click. How does this help? Doing a full page refresh will go back to the web server to get the latest version of the page you are […]

Continue reading...

Navigating a JSON object in Javascript

Friday, June 26, 2009

Comments Off on Navigating a JSON object in Javascript

The Scenario: You are working with a web service that returns JSON. You’ve used your javascript library to convert the string into a JSON object. Now you need to access the data in the object using javascript. Here are some examples: JSON Property Types The properties of a JSON object are going to be of […]

Continue reading...

View, Browse, and Edit JSON Objects Visually

Saturday, June 20, 2009

Comments Off on View, Browse, and Edit JSON Objects Visually

Here are some helper applications that let you view, browse and edit JSON objects. When I am first working with a web service that returns JSON, I like a quick overview of what it includes. Having a navigable treeview helps find the properties that you need and get them quickly integrated into your code. Here […]

Continue reading...