Click here to Skip to main content
16,011,120 members
Home / Discussions / Web Development
   

Web Development

 
QuestionSearch functionality Pin
Illegal Operation18-Sep-05 22:58
Illegal Operation18-Sep-05 22:58 
AnswerRe: Search functionality Pin
xaphod19-Sep-05 10:40
xaphod19-Sep-05 10:40 
Questionaccessing USB Pin
karmendra_js18-Sep-05 19:48
karmendra_js18-Sep-05 19:48 
AnswerRe: accessing USB Pin
Anonymous22-Sep-05 8:20
Anonymous22-Sep-05 8:20 
QuestiongetElementByID with array not finding string Pin
xaphod18-Sep-05 9:42
xaphod18-Sep-05 9:42 
AnswerRe: getElementByID with array not finding string Pin
Guffa18-Sep-05 9:49
Guffa18-Sep-05 9:49 
GeneralRe: getElementByID with array not finding string Pin
xaphod18-Sep-05 10:57
xaphod18-Sep-05 10:57 
GeneralRe: getElementByID with array not finding string Pin
Guffa18-Sep-05 12:10
Guffa18-Sep-05 12:10 
xaphod wrote:
Btw, seems like there is no difference in those two coding techniques for indexOf, they both work, but yours is more good looking!

Are you kidding? My code works, the other doesn't.

The expression '|' != -1 will always evalute to the value true, as the string '|' always will be different from the number -1. As the indexOf method uses a string parameter, the boolean value true will be converted to the string 'true'. The call response.indexOf('|' != -1) therefore does exactly the same as response.indexOf('true'). Unless the string response starts with the letters 'true', the call will always return a non-zero value.

---
b { font-weight: normal; }

GeneralRe: getElementByID with array not finding string Pin
xaphod18-Sep-05 12:54
xaphod18-Sep-05 12:54 
Questiondns and web hosting ! Pin
microuser_200017-Sep-05 9:05
microuser_200017-Sep-05 9:05 
AnswerRe: dns and web hosting ! Pin
enjoycrack18-Sep-05 19:54
enjoycrack18-Sep-05 19:54 
Questionform action Pin
namespaceuser17-Sep-05 3:02
namespaceuser17-Sep-05 3:02 
AnswerRe: form action Pin
Guffa17-Sep-05 3:26
Guffa17-Sep-05 3:26 
GeneralRe: form action Pin
namespaceuser17-Sep-05 3:47
namespaceuser17-Sep-05 3:47 
GeneralRe: form action Pin
Guffa17-Sep-05 4:00
Guffa17-Sep-05 4:00 
GeneralRe: form action Pin
namespaceuser17-Sep-05 7:27
namespaceuser17-Sep-05 7:27 
AnswerRe: form action Pin
Guffa17-Sep-05 7:47
Guffa17-Sep-05 7:47 
GeneralRe: form action Pin
namespaceuser17-Sep-05 11:39
namespaceuser17-Sep-05 11:39 
GeneralRe: form action Pin
Guffa17-Sep-05 12:44
Guffa17-Sep-05 12:44 
GeneralRe: form action Pin
namespaceuser17-Sep-05 13:38
namespaceuser17-Sep-05 13:38 
GeneralRe: form action Pin
Guffa17-Sep-05 22:39
Guffa17-Sep-05 22:39 
AnswerRe: form action Pin
namespaceuser19-Sep-05 13:51
namespaceuser19-Sep-05 13:51 
QuestionCopy and Paste Pin
cleanDeltawater16-Sep-05 8:55
cleanDeltawater16-Sep-05 8:55 
QuestionPrinting files in javascript Pin
Gktony16-Sep-05 5:24
Gktony16-Sep-05 5:24 
AnswerRe: Printing files in javascript Pin
Turtle Hand16-Sep-05 9:26
Turtle Hand16-Sep-05 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.