Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 221485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:02:16+00:00 2026-05-11T19:02:16+00:00

$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

  • 0
$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";
            }
            }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:02:17+00:00Added an answer on May 11, 2026 at 7:02 pm

    check this

    event.result.loginsuccess.name[0] == null
    

    why?

    because when you call a child directly on XML it always returns as XMLList so we should check that if XMLList has any child. The [0] (first index) tries to return the first child if exists othwerwise returns null

    in your example it should be :

    if(event.result.name[0])
    {
    ...
    }
    

    because the name is an element not attribute, if name was attribute then it should be

    if(event.result.@name[0])
    {
    ...
    }
    

    i hope it helps

    EDIT

    pls try this way

    if(keyword.text == "") 
    { 
    
    Alert.show("Please enter the search term");
        } else if(!XML(event.result).name[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";
                    }
                    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SELECT Files.URL, Files.MD5, Files.Thumbnail, Files.Title, CONVERT(DATE, AttributeData.Keyword) AS DateUpdated, Attributes.Name AS DateType, Metadata.metadata FROM
I want want my output like this when I search a keyword like programming
I'm playing with the Output keyword in SQL Serer 2005 Express. I've written the
output of passenger-memory-stats ----- Passenger processes ----- PID VMSize Private Name ------------------------------- 28572 207.4
My output for my table in HTML has several columns such as userid, name,
I tried to colorize in rebol an url like this content: http://domain.com/test.php?keyword=hdhdf&hdhd=sdcfsv&sbcfsv=sdncfd&sncfsdv=dncsv&cnsv=dshdkd&scsv=12334&DXV=D&SWJDJJDFDJQKKKKKKKKKKKK&DFG=V&DJJF=DJVNVV&DJFFFFFFFFFF=33333 rule-keyword-0: [to
I want to use ps -ef | grep keyword to determine the pid of
I need to analyze a log for specific output and if a certain keyword
I want to redirect the output of a sed command into a .txt file
I want to make a system for URL matching. It will work in this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.