Page 1 of 1

QML\Javascript read status.xml information

Posted: 12 Jan 2014 11:10
by mariusmssj
Hey guys,

I am working on a VLC remote and I am able to send commands to the player via this function:

Code: Select all

function passCommands(command) { var http = new XMLHttpRequest() var url = "http://" + ip + ":" + port + "/requests/status.xml?command=" + command; http.open("POST", url, true); // Send the proper header information along with the request http.setRequestHeader("Authorization", "Basic " + Qt.btoa(username + ":" + password)); http.send(); }
I am still quite new to QML\Javascript so I am having issues of writing a function to read the information from status.xml file. Does anyone have any tips or anything of how I would go about extracting information from the status.xml file?

Thank you :)

Re: QML\Javascript read status.xml information

Posted: 27 Feb 2014 06:53
by andrikaa
How to learn Javascript? I know Html and Css BUT I am a BEGINNER at Javascript. It all looks like scribble to me and I dont understand a thing. I need a book that will teach me Javascript but I learn by doing so just reading wont help me at all. I learned html and css by actually doing the examples and creating a website step by step. I need the same for Javascript. Any good books out there like that? I I need a book that wil teach me with actual exercises.