bennyandthejetz | any way to call a javascript variable inside qml? | 04:11 |
---|---|---|
mzanetti | hey. anyone knows if it possible yet to open the messages app with a pre filled SMS content and number. So that the user just needs to press "Send" | 15:13 |
popey | Elleo: http://www.omgubuntu.co.uk/2013/11/unofficial-spotify-client-arrives-ubuntu-touch | 16:17 |
ogra_ | mzanetti, i would guess the url-dispatcher is supposed to do that | 16:20 |
mzanetti | ogra_: tried that... doesn't dispatch anything but http[s]:// so far | 16:33 |
ogra_ | well, i guess then waiting is in order :) | 16:33 |
mzanetti | yep | 16:33 |
Elleo | popey: cool, fame at last ;) | 16:35 |
nik90 | Is there a library or documentation for parsing Json in qml? | 17:07 |
nik90 | I have experience with XML in QML. quite easy actually...but I have no experience with Json | 17:08 |
nik90 | Qml's XML ListModel has extensive documentation | 17:08 |
nik90 | anythingn similar for JSON? | 17:08 |
mzanetti | nik90: maybe this helps you: http://bazaar.launchpad.net/~mzanetti/+junk/qmljsonparser/files | 17:15 |
nik90 | mzanetti: would it be possible to stick to javacript? | 17:16 |
tsimpson | nik90: use the JSON module? | 17:17 |
mzanetti | tsimpson: you still can't fetch something from a server | 17:17 |
tsimpson | what do you mean? | 17:18 |
nik90 | tsimpson, mzanetti: I just need something to receive data from rottentomatoes which replies in JSON format | 17:18 |
tsimpson | can't you just fetch data, then parse it? | 17:18 |
nik90 | tsimpson: yeah I am fine with that | 17:19 |
nik90 | tsimpson: just not sure how to parse it | 17:19 |
tsimpson | JSON.parse(data) | 17:19 |
mzanetti | nik90: JSON.parse() | 17:19 |
nik90 | where can I find documentation on this? | 17:19 |
mzanetti | let me know how you fetch it tho | 17:19 |
tsimpson | it's part of ECMAScript | 17:19 |
nik90 | mzanetti: can I fetch it using XMlHttpRequest? | 17:21 |
nik90 | and then parse using Json.parse() | 17:21 |
mzanetti | I don't think so. but I've never really used XMLHttpRequest | 17:22 |
tsimpson | I don't see why not | 17:22 |
tsimpson | just pass the responseText to JSON.parse | 17:22 |
mzanetti | tsimpson: I think I tried that once and the poroblem is that it has all sort of xml stuff in it which would make the parsing fail | 17:23 |
mzanetti | but you might be able to extract the json only from it somehow | 17:23 |
tsimpson | responseText shouldn't contain XML unless the response from the server is XML | 17:25 |
nik90 | I got to go...But I will take a look at your json class, JSON.parse() and then come back later with more questions if necessary | 17:28 |
nik90 | thnx | 17:28 |
nik90 | just a thought | 17:28 |
nik90 | this guy at https://github.com/xqwzts/my-movies/blob/master/JSONListModel/jsonpath.js | 17:29 |
nik90 | uses a external JSON parser | 17:29 |
nik90 | he obtains the data using xmlhttprequest | 17:29 |
tsimpson | nik90: this seems to work http://paste.ubuntu.com/6354270/ | 17:49 |
mzanetti | hmm.. anyone already successfully packaged a click package that ships its own .so files? | 18:18 |
mzanetti | I tried with a wrapper script that exports LD_LIBRARY_PATH before calling the binary. it crashes with "Cannot create application instance" which is the same error as when the --desktop_file_hint arg is missing | 18:19 |
mzanetti | outch... that's it... forgot to pass it through the wrapper script | 18:20 |
mzanetti | stupid me | 18:21 |
billyd | when using this code Qt.openUrlExternally("http://www.songsterr.com/a/wa/bestMatchForQueryString?s=" + Js.song + "&a=" + Js.band);10; the url puts null in my two variable positions | 19:15 |
billyd | do I need to setup javascript on startup? | 19:16 |
=== billyd is now known as ca18det | ||
ca18det | or is that something that cannot be done? am I reading correctly that to declare a variable in qml, so you have to do it in C or JS? | 19:23 |
randomcpp | qt creator (ubuntu sdk edition) has a serious problem when mtp devices (android phone/tablet) are connected, it starts popping dialog and try to connect to those devices (failing repetitively) | 21:39 |
randomcpp | is this a known bug? | 21:40 |
Elleo | randomcpp: as a temporary work around you can disable its automatic attempts to connect to devices in the settings | 21:42 |
randomcpp | Elleo, that would be nice, I'll try to find that option | 21:42 |
sethj | Anyone know what this error is in Qt Creator? | 21:48 |
sethj | Could not determine application identifier. HUD will not work properly. | 21:48 |
sethj | Provide your application identifier in $APP_ID environment variable. | 21:48 |
randomcpp | Elleo, where's that option? | 21:50 |
nik90 | sethj: dont worry about that error | 21:54 |
nik90 | sethj: you are getting that error since the HUD version on the phone is not yet available for the desktop | 21:55 |
nik90 | sethj: rest assured when you run your app on the phone it should work without any issues | 21:55 |
sethj | nik90, ah.. Thanks :) | 21:55 |
sethj | btw, what HUD version does the phone have? | 21:55 |
nik90 | sethj: not sure | 21:56 |
Elleo | randomcpp: I'm afraid I don't have the SDK installed on this machine, so I can't look it up; I just remember noticing it after coming across the same problem | 21:56 |
sethj | nik90, OK | 21:56 |
randomcpp | good night everyone | 21:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!