View Single Post
Old 11-22-2010, 08:30 AM   #6
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Liza Daly's example (linked by charleski above) is a great place to start.

Two important things to note:
  • Inline scripts do not work in iBooks. You must write your script in a separate file and embed it using
    Code:
    <script type="text/javascript" src="script.js"></script>
  • Scripts aren't allowed to access remote files.
Also, I think I recall that you're limited to embedding ONE javascript file in your html. But I could be wrong about that.
jharker is offline   Reply With Quote