Re: [Ubuntu-phone] Js variables in QML giving a null output

2013-11-04 Thread Roman Shchekin
Hello. Seems that you are doing this >> Qt.openUrlExternally(" http://www.google.com/a/wa/bestMatchForQueryString?s="; + Js.song + "&a=" + Js.band);10; and this >> var song = inputSong; in separate QML files. Add ".pragma library" at the beginning of your *.js file to share it between *.qml files.

[Ubuntu-phone] Js variables in QML giving a null output

2013-11-03 Thread kurt hodgin
when using this code QML code snippit Qt.openUrlExternally("http://www.google.com/a/wa/bestMatchForQueryString?s="; + Js.song + "&a=" + Js.band);10; JavaScript file var song = inputSong; var band = inputBand; the url puts null in my two variable positions If I get rid of var it says undefi