Several random notes from the presentation. Track down David for his presentation materials. Lots of detailed examples.
Things to remember
You can’t change code until it’s rendered.
The code you see isn’t always what your browser sees.
And of course – Firefox and IE render differently.
Seeing what your browser sees:
Surround the section with <div> tags
Give it a unique ID.
Add script: <script>alert(document.getElementByID(assigned id).innerHTML);</script>
Add new content
Add <div id=“someid1”></div> to your code where the new content is to appear
document.getElementbyID(‘someid1’).innerHTML=your new content
Modify existing content
The smaller the section you modify, the better.
Making changes to Content
Identify a unique marker in the text
Use search and replace to change the text
Regular Expressions highly recommended
What about System Generated pages?
Add <div id="someid"> to toplogo
Add </div> to botlogo
Put your script in botlogo
Identify unique markers on the page so your script can identify it.
This script will appear on every page of the catalog. You need to find a way to trigger or not trigger the script according to what you want to do.
Add new content – Dynamic RSS feed page, Printer friendly export book page
Modify existing content – View patron record, preferred searches
Do not hang too many lights on the tree!
May break your modifications
Your modifications may break the page