strange variable behavior when meeting if condition


HOME ยป Coding

Hello Everyone:) i'm writing a JS code which reads an XML file and extract required info from it, I want to find the name of a selected item, this is my code: Code: --------- function initialize() { ct = $('menu').children().length; for(cati=0;cati

Related to : strange variable behavior when meeting if condition
strange variable behavior when meeting if condition - ?
Coding
i'm writing a JS code which reads an XML file and extract required info from it, I want to find the name of a selected item, this is my code:function initialize(){ct=$('menu').children().length;for(cati=0;cati<=ct-1;cati++){cats[cati]=$('menu').children().eq(cati).prop('nodeName');}var selecteditem = $(".selected").text();for(j=0;j<=cats.length;j++){if(selecteditem == realnames[j]){ selecteditem = cats[j]; }}$("#gallery").empty();alert($('menu').find(selectedite
strange variable behavior when meeting if condition |
Coding
Hello Everyone:) i'm writing a JS code which reads an XML file and extract required info from it, I want to find the name of a selected item, this is my code: Code: --------- function initialize() { ct = $('menu').children().length; for(cati=0;cati
strange variable behavior when meeting if condition
Coding
Hello Everyone:) i'm writing a JS code which reads an XML file and extract required info from it, I want to find the name of a selected item, this is my code: Code: --------- function initialize() { ct = $('menu').children().length; for(cati=0;cati
strange variable behavior :-
Coding
strange variable behavior
 
Can someone explain to me how to manipulte a variable that I get in flash trough ASP.
I have an ASP script that loads a variable: tempVoiceId = "can"
loadVariablesNum("../../getvoiceid.asp?nocache="+random(65000), 0, "POST");
In Flash I have a dynamic text so I can see that the variable is received.
I also have code that checks the variable and then acts accordingly.
The problem:
Flash read the variable properly because the text displays it.
However, dont seems to be able to manipulate it afterwards.
I have the following code:

strange variable behavior
Coding
strange variable behavior
 
Can someone explain to me how to manipulte a variable that I get in flash through ASP.
I have an ASP script that loads a variable: tempVoiceId = "can"
ActionScript Code:
// loading the variableloadVariablesNum("../../getvoiceid.asp?nocache="+random(65000), 0, "POST");  // cause I don't want it to cache//In Flash I have a dynamic text so I can see that the variable is received. and it does load.

strange behavior with an variable
Coding
strange behavior with an variable
 
I have an script, that set this variable
private var eventT:String = MouseEvent.CLICK;
Later i call removeEventListener like this:
obj.removeEventListener(eventT, someHandler);
When i test , i receive an error, something about passing null parameters to removeEventListener.
I put an breakpoint at line when is call removeEventListener, and i run in debug mode. I see that variable "eventT" point to corect value "click" of type string. So this variable don't have null value.
Where can be the problem?


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .