ugakebet 4 Posted March 9, 2014 Report Share Posted March 9, 2014 I'm surprised that i don't know about this (guess i must have forgotten about it) Can someone point out what I'm doing wrong here? if($search page("No ideas were returned for your query") OR $search page("You must enter at least one keyword, category, or web site")) { then { alert(1) increment(#row) clear list(%list1) } basically, the ELSE statement should start since none of those 2 texts exist, however the ALERT 1 is always generated? What's wrong? If I try single search (rather than multiple - search for only No ideas were returned for your query') then the ELSE goes through rather than the THEN - which is what is supposed to happen Quote Link to post Share on other sites
blumi40 222 Posted March 9, 2014 Report Share Posted March 9, 2014 try if($exist becausesome messages still on the site even if u dont see it so there is in a hidden htmlelement.so the exists function can do like <div style="display:none">No ideas were returned for your query</div>what means if display:none everything is fine on some sites there is also the posibilty that this message is generated by a javascript which meansthe message is still on the site but not showing as a hidden div....even with sites like hotmail it is tricky to find the rigth needle to get what u wantbut maybe that give u an idea how to deal with greetz Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.