AJAX Pages: Embedded Javascript

by Joshua Porter  |   2 Comments

This has the potential to be very popular: a project called Ajax pages has just been released, with the intent to allow people to embed Javascript code in HTML like we do with PHP, ASP, and JSP.

It’s not server-side, though, from what I can tell. It’s simply a way to manipulate things client-side in a familiar way.

Here’s an example:

<html>
<body>
<% var hello = "Hello World"; %>
<%=hello%>
</body>
</html>

Check out the tutorial to see how it works.

Comments ( 2 Responses so far )

1.  Jeff Watkins on September 15th, 2005 (Comment) #

Yeah, I’d run across this before, but I’m still not certain what the point is. Now if this were a server environment on par with JSP — but without the memory requirements — I’d jump on it in a heartbeat. After all, I *love* Javascript.

Maybe I’m just crazy, but I don’t find the DOM that difficult to manipulate. Especially if you use shortcuts like the $() notation.

2.  Justin Meyer on December 30th, 2007 (Comment) #

You should check out EJS. It’s pretty much the same thing, but it includes rails-like html helpers, some built in AJAX functionality, and debugging support. It’s got a nice walkthrough and screencast showing how to use it.

Add Your Comment

Accepted tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Preview...

If your comment contains links, or if it is your destiny, your comment may not show up immediately. I'll approve it as soon as I can. (I delete dozens of comment spams per day)

Get updated when someone posts a comment: Comment Feed


ABOUT

Bokardo is the blog of Joshua Porter, a web designer/developer, researcher, and writer. I live in Newburyport, MA, USA.

WHAT IS SOCIAL DESIGN?

Social design is design that focuses on the social lives of users. It deals with the activities, behaviors, and motivations of people who work and play together through software interfaces. It is built on the observation that many of the decisions we make are greatly affected by those we surround ourselves with in our social lives: our family, friends, and colleagues. Exploring our motivations and how to design interfaces to support them is what the Bokardo blog is all about.

Designing for the Social Web

Building a social web site or application? I wrote a book just for you!

designing for the social web

Find out more or order from Peachpit or Amazon

Upcoming Speaking Events