VULAB-105: RASCAL JavaScript should not use embedded handlers in the HTML markup, and should use "vulab" namespace instead of globals.

Metadata

Source
VULAB-105
Type
Bug
Priority
Major
Status
Closed
Resolution
Won't Fix
Assignee
David Makalsky
Reporter
Colin Clark
Created
2008-12-01T16:22:17.000-0500
Updated
2008-12-01T18:00:26.000-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. RASCAL

Description

I'd suggest you move your JavaScript code out of onclick handlers in the HTML and into your rascal.js file, binding event handlers unobtrusively. A toolkit like jQuery
will simplify this for you a lot. I'd also suggest you keep the functions in rascal.js out of the global namespace to avoid collisions. All easy fixes, and there's tons of documentation in the Fluid wiki to help you with it:

http://wiki.fluidproject.org/display/fluid/DHTML+Developer+Checklist
http://wiki.fluidproject.org/display/fluid/Fearless+JavaScript+Workshop

Comments

  • Jess Mitchell commented 2008-12-01T16:23:49.000-0500

    vulab9

  • David Makalsky commented 2008-12-01T18:00:26.000-0500

    Fixing in VULAB-108