Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
149
rated 0 times [  156] [ 7]  / answers: 1 / hits: 24038  / 15 Years ago, sun, november 8, 2009, 12:00:00

i got a got a little embedded system that can be controlled via a webinterface.



the page looks like:



...
<a href=javascript:foo(bar)>foo</a>
...


is there a way to call this function just by http? like



http://<the-devices-ip>:80/javascipt:foo(bar) //wrong


thank you


More From » javascript

 Answers
45

<a href=javascript:foo(bar)>foo</a> represents the calling of a function, not the call to a url. There is no direct mapping between a url and a JavaScript function.


[#98361] Wednesday, November 4, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jerome

Total Points: 592
Total Questions: 98
Total Answers: 101

Location: Tonga
Member since Tue, Nov 30, 2021
3 Years ago
jerome questions
Thu, Jan 27, 22, 00:00, 2 Years ago
Fri, Oct 22, 21, 00:00, 3 Years ago
Sat, Sep 19, 20, 00:00, 4 Years ago
Fri, Sep 6, 19, 00:00, 5 Years ago
;