in reply to On Line Book - Exploring Programming Language Architecture in Perl - Updated

I really enjoyed browsing your book the first time you mentioned it here. It's a real shame that you felt the need to involve javascript in the mix. Now when I follow your link, and click html, I get a blank screen :(


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: On Line Book - Exploring Programming Language Architecture in Perl - Updated

Replies are listed 'Best First'.
Re^2: On Line Book - Exploring Programming Language Architecture in Perl - Updated
by billh (Pilgrim) on Mar 17, 2008 at 21:38 UTC
    I'm really sorry about that.
    The js was added for a valid (imo) reason - to make the display of footnotes unobtrusive and natural; the behavior degrades to a plain link if it is disabled.
    Maybe you have an older js implementation enabled?
    edit - should have mentioned, the js only controls the display of the footnotes.
    Bill H
    perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'

      With or without JS enabled, when I click the link bottom-left of the title page, it takes me to http://billhails.net/Book/front.html which comes up entirely blank using my preferred browser (Opera). I viewed the source and saw the reference to book.js and attributed the problem to that.

      I just sparked up an (relatively ancient) version of Firefox and the page loads fine there. Looking at the JS, I suspect DOM differences for Opera vs. FireFox.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Hmm, OK, thanks for that. If this breaks Opera, I'd better fix it!
        Bill H
        perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'
        Odd, I just downloaded Opera (for Mac) and browsed to the book. It works fine for me. I'll try with a FreeBSD Opera when I get to work tomorrow morning.
        Bill H
        perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'
Re^2: On Line Book - Exploring Programming Language Architecture in Perl - Updated
by billh (Pilgrim) on Mar 18, 2008 at 22:25 UTC
    I believe I've fixed it, at least the Opera that I tested that was hanging no longer does so. Problem wasn't the javascript per se, it was the script tag that has to be in the form <script ...></script> e.g. <script .../> won't cut it for older browsers.
    Bill H
    perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'