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

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"})'
  • Comment on Re^4: On Line Book - Exploring Programming Language Architecture in Perl - Updated
  • Download Code

Replies are listed 'Best First'.
Re^5: On Line Book - Exploring Programming Language Architecture in Perl - Updated
by BrowserUk (Patriarch) on Mar 17, 2008 at 23:48 UTC

    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.
        I just tried it on an old FreeBSD Opera and saw the blank screen. I guess I have to fix if it breaks IE (I use any of Firefox, Safari and Konqueror without any problems.)
        Maybe I need to add a php browser detect to conditionally include the JavaScript. Or maybe I just need to fix the JavaScript.
        Bill H
        perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'