in reply to Re^2: On Line Book - Exploring Programming Language Architecture in Perl - Updated
in thread On Line Book - Exploring Programming Language Architecture in Perl - Updated

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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^3: On Line Book - Exploring Programming Language Architecture in Perl - Updated

Replies are listed 'Best First'.
Re^4: On Line Book - Exploring Programming Language Architecture in Perl - Updated
by billh (Pilgrim) on Mar 17, 2008 at 22:08 UTC
    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"})'
Re^4: On Line Book - Exploring Programming Language Architecture in Perl - Updated
by billh (Pilgrim) on Mar 17, 2008 at 22:19 UTC
    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"})'

      Maybe it's a problem limited to the version of Opera I use, v8.51, though I get the same effects with v6.06 which I keep around for historical reasons. I tried v9 but didn't like it so I reverted.

      If I save the source to a local file and comment out the script tag, it loads and displays. If I copy the contents of book.js and embed them within the local html file, it loads and displays. But if I copy the js to a local file and reference from the local html, I get the blank screen again.

      It's probably a browser/version specific bug, and so not worth your while persuing.


      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.
        The link works for me in Firefox 2.0.0 but not in IE 7.0.5

        UPDATE

        Now working in IE7 too.