Web Design Tutorials and Articles

By Chrysanthus - About Me - E-mail this page - Add to My Favorites - Add to Blog List - See other blogs in Computers & Internet

Wednesday, April 8, 2009

Statements and the JavaScript Eval Function

Mastering the JavaScript eval function – Part II Introduction In the previous part of the series, we saw how the JavaScript literals and the function constructor are used as arguments for the JavaScript top level eval() function. We concluded, that with the exception of the string literal, the eval() function will take a JavaScript literal as argument and return the executable code of the literal. The returned executable code is not seen in the script when you display the code of the web page.... Sign in to see full entry.

Right Operand and the JavaScript eval Function

Mastering the JavaScript eval Function – Part I Introduction This is what is in the JavaScript 1.5 specification about the eval() function: The argument of the eval function is a string. If the string represents an expression, eval evaluates the expression. If the argument represents one or more JavaScript statements, eval performs the statements. Do not call eval to evaluate an arithmetic expression; JavaScript evaluates arithmetic expressions automatically. If you construct an arithmetic... Sign in to see full entry.

Make many Web Pages communicate with Server

Introduction With Ajax, you can make many web pages of a session communicate with a server. What you do is, you have a particular script file in the server, and then in each of the web pages of the session, you have an Ajax function or Ajax Chain. Each Ajax function or chain in each of the web pages, calls that particular script at the server, sending some ID of its page. The script at the server uses the ID to send the response corresponding to the page. The Ajax or Ajax Chain can send the ID... Sign in to see full entry.

Extra Features in JavaScript String Regular Expressions

JavaScript String Regular Expressions – Part 8 Introduction This is the eighth and last part of my series, JavaScript String Regular Expressions. We have learned a lot about regular expressions in JavaScript. What we have learned would solve many of our problems. However, there will come a time when you would want to do more in regex. So this last part of the series is to give you those extra features. Sub String followed by another The official way of writing javascript is “JavaScript”. You... Sign in to see full entry.

Using JavaScript String Regular Expressions

JavaScript String Regular Expressions – Part 7 Introduction This is the seventh part of my series, JavaScript String Regular Expressions. We have seen some uses of regex in JavaScript. We know how to verify if a regex is found in a subject string. We know how to find the position of matched regex in the subject string. Note that the subject string can be a whole page of text. In this part of the series, we shall learn two important features titled “Search and Replace” and “The Split Operation”.... Sign in to see full entry.

Headlines (What is this?)