• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Building an App with jQuery and JAXER
 

Building an App with jQuery and JAXER

on

  • 2,030 views

Don Albrecht presented this talk at the March 2009 JS.Chi() JavaScript meetup

Don Albrecht presented this talk at the March 2009 JS.Chi() JavaScript meetup

Statistics

Views

Total Views
2,030
Views on SlideShare
1,974
Embed Views
56

Actions

Likes
0
Downloads
9
Comments
1

4 Embeds 56

http://javascriptchicago.com 34
http://javascriptmeetup.com 16
http://www.slideshare.net 5
http://test.javascriptmvc.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • You are returning another id than you are inserting..
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Building an App with jQuery and JAXER Building an App with jQuery and JAXER Presentation Transcript

    • Building an App with jQuery & Jaxer Javascript to do it all... Don Albrecht dalbrecht@getcollc.com
    • How It Works Don Albrecht dalbrecht@getcollc.com
    • What is Jaxer Jaxer Core Jaxer Framework ● ● Server-side browser JS based ● ● environment Marshalling ● (Spider-Monkey) Access to server ● Useful Server ● libraries. Extensions Don Albrecht dalbrecht@getcollc.com
    • Why Jaxer Improve perceived performance by migrating ● some progressive enhancement to the server Prevent replication of code between front end ● and back end. Mash ups ● Aspects ● Don Albrecht dalbrecht@getcollc.com
    • Running Code Normal Markup passes through un-executed. ● Add the runat=”” attribute to script tags. ● runat=”server” : server only – runat=”both” : code available on both client and – server. Don Albrecht dalbrecht@getcollc.com
    • Proxy Server side functions can be proxied to the ● client side. Function x() {} x.proxy=true; ● When x is called on the client, a synchronous ● call is made to the server where x is executed and it's response is returned as json. Don Albrecht dalbrecht@getcollc.com
    • Setting Up The Database <script runat=”server” type=”text/javascript”> var sql = quot;CREATE TABLE IF NOT EXISTS users quot;+ quot;(user_id INTEGER NOT NULLquot; + quot;, username VARCHAR(45)quot; + quot;, password VARCHAR(45)quot; + quot;); quot;; Jaxer.DB.execute(sql); </script> Don Albrecht dalbrecht@getcollc.com
    • Registering A User <script src=quot;lib/md5.jsquot; type=quot;text/javascriptquot; runat=quot;serverquot;></script> <script src=quot;lib/jquery/jquery-1.3.2.min.jsquot; type=quot;text/javascriptquot; runat=quot;bothquot;></script> <script type=”text/javascript” runat=”server”> function createLogin( username, password){ var passhash = hex_md5( password ); var userId = createId(); var resultset = Jaxer.DB.execute(quot;Insert Into users (user_id, username, password) VALUES( ?, ?, ? );quot; , [createId(), username, passhash]); return userId; } createLogin.proxy = true; </script> Don Albrecht dalbrecht@getcollc.com
    • Code.... Don Albrecht dalbrecht@getcollc.com
    • Code & Slides Available At: AjaxBestiary.com Don Albrecht dalbrecht@getcollc.com