in reply to Re: webperl: fetching data over the web
in thread webperl: fetching data over the web

The "democode" pages always display STDERR if there is any output there. It also helps to watch the JavaScript console in your browser. I'm not sure what's blocking the page - I unfortunately can't reproduce that on my end with the third example code you showed in the root node.

Replies are listed 'Best First'.
Re^3: webperl: fetching data over the web
by LanX (Saint) on Nov 08, 2018 at 15:33 UTC
    The zip file from your webpage didn't include a democode directory.

    That's why I copied and hacked webperl_demo.html.

    (edit: cloning the frame structure of the former didn't work instantly)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Ah, I see - the democode stuff is in the repo, and it'll also be part of the next release. webperl_demo.html uses Perl.makeOutputTextarea(id), which merges STDOUT and STDERR (which I just added to the documentation, thanks :-) ).

        OK I'm back online. :)

        I created the following page called weblib_demo.html inside the deflated zip-dir (webperl_prebuilt_v0.07-beta.zip) from your webpage:

        It shows the alert box from JS but the Perl execution blocks the tab till I get a "Tab crashed" message (in German) after a minute or so.

        Reproducible in FF and chrome.

        I'm suspecting it has to do with error handling of the deprecation warning.

        I tried to copy the democode directory directly from github, but calling demo.html creates an endless loop of "Perl initializing" and "ended" messages.

        I suppose the webperl versions are not compatible and I need to clone the whole github rep.

        That's the messages I get on the console

        I think creating a new zip including the "democode" stuff would be helpful for causal tests.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice