Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 9342

call a Perl function in an html page

$
0
0
> Hi - Is it possible to call a Perl routine onclick of a button in the

Now you'd expect a clear NO! But there's always an exception to this
answer: you can install Perl on Windows and as part of this it would
install PerlScript.

http://docs.activestate.com/activepe...ml#client_side

But that's likely not what you wanted to hear :-).

> basic.html page? I know I can do a JS, but I'm 0.0 in JS. All I want is
> to send a POST to an host (no return expected, just need to do the POST,
> that will trigger a pin code to be displayed on the host and that code
> should be captured through the JS prompt)


There's no way around JS. And you'll likely have to implement a handler
for this in your plugin, too, because JS usually can't reach out to
servers other than the one where it was loaded from for security reasons.

So you'll need:

- a JS snippet calling LMS
- a page handler in your LMS plugin calling the remote server

--

Michael

Viewing all articles
Browse latest Browse all 9342

Trending Articles