$output .="<keyword>".$_POST['keyword']."</keyword><name>".$row['url']."</name><occur>".$row['occurrences']."</occur><queryTime>".(substr($end_time-$start_time,0,5))."</queryTime>";
}
I want to check in Flex, if the value of name is null or not. I tried for these, but i am not getting any alert when the node value is empty.
event.result.attribute("name").value < 0
event.result.attribute("name").length < 0
event.result.loginsuccess.name = ""
Can anyone Help me out, Here is my flex code below.
if(keyword.text == "")
{
Alert.show("Please enter the search term");
} else if(event.result.attribute("name").length < 0) {
Alert.show("No search Results"); }
else {
subtitle.text = "Search results for " + event.result.loginsuccess.keyword[0];
query.text = "query executed in " + event.result.loginsuccess.queryTime[0] + " Seconds";
}
}