← Back to team overview

ubuntu-phone team mailing list archive

Js variables in QML giving a null output

 

 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 undefined instead of null and goes to a
different page, I know losing var makes it global but i'm not sure if that
helps. The variables are connected to two different text boxes, for know
one button shows the web page like the code above. the other shows the pure
output thats how i see if it says null or undefined.

Follow ups