0

I am trying to write a javascript function that can perform a HTTP Get request EXTERNAL TO A BROWSER. The javascript file will need to be executed in a windows program (Isadora). The reason is because I need to send data to www.google-analytics.com from the windows program (Isadora). Is this possible? And how can it be done?

Code examples would be greatly greatly appreciated.

  • You can use curl read http://curl.haxx.se/docs/httpscripting.html – Cyril Cherian Nov 02 '15 at 04:18
  • @Cyril, nowadays programmer goes with scripts rather than learning the basics I suppose. :/ – bentinata Nov 02 '15 at 04:26
  • @Cyril I have looked through that document before, but was unable to find a working solution. which specific lines of code are you referring to? (Bear in mind that I have no curl, and minimal javascript experience. Thank you ;) – C McKenzie Nov 02 '15 at 04:31
  • Ok I have least experience of windows programming but i am sure you can do curl something like this http://stackoverflow.com/questions/2710748/run-curl-commands-from-windows-console – Cyril Cherian Nov 02 '15 at 04:34
  • You can also use [wget](https://www.gnu.org/software/wget/) – Ziki Nov 02 '15 at 04:50
  • Check the forum for Isadora, imo. – James Nov 02 '15 at 04:51
  • Thanks for your replies Cyril, but what I'm really after is a code example that is known to work. I looked at your link for curl, but it doesn't seem to have any connection to javascript. – C McKenzie Nov 02 '15 at 05:02
  • @Ziki Thanks for your reply Ziki. I have already downloaded wget, but was unable to figure out how to use it in a javascript file. Would you be so kind as to share your knowledge to answer my original question? – C McKenzie Nov 02 '15 at 05:08
  • @James I have looked in the isadora forum and the javascript function is only used for basic input manipulation etc. I'm trying to use the javascript file as a trigger for sending an event to google analytics. – C McKenzie Nov 02 '15 at 05:09
  • Take a look at this: [execute-shell-command-in-javascript](http://stackoverflow.com/questions/1880198/how-to-execute-shell-command-in-javascript), then simply use wget or whatever else. – Ziki Nov 02 '15 at 05:12
  • I'm not convinced Isadora supports Javascript for that use. [This page](http://www.dusxproductions.com/blog/web-apis-in-isadora-part-1/) might help. – James Nov 02 '15 at 05:12

0 Answers0