QML\Javascript read status.xml information

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
mariusmssj
New Cone
New Cone
Posts: 4
Joined: 12 Jan 2014 11:00

QML\Javascript read status.xml information

Postby mariusmssj » 12 Jan 2014 11:10

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 :)

andrikaa
New Cone
New Cone
Posts: 1
Joined: 12 Feb 2014 12:22

Re: QML\Javascript read status.xml information

Postby andrikaa » 27 Feb 2014 06:53

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.
meals ideas ~ meal ideas ~ vegetarian recipes


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 0 guests