Click here to Skip to main content
15,892,072 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Javascript Password Generator Pin
Bradml20-Mar-07 22:50
Bradml20-Mar-07 22:50 
GeneralRe: Javascript Password Generator Pin
fryguy.ca21-Mar-07 10:40
fryguy.ca21-Mar-07 10:40 
GeneralRe: Javascript Password Generator Pin
Bradml22-Mar-07 13:13
Bradml22-Mar-07 13:13 
QuestionIIS ASP Encrypt Utility Pin
Vasudevan Deepak Kumar20-Mar-07 12:55
Vasudevan Deepak Kumar20-Mar-07 12:55 
QuestionC++ dll accessed by COld Fusion Pin
LCI20-Mar-07 8:08
LCI20-Mar-07 8:08 
QuestiongSoap dime attachments Pin
abac_mefisto20-Mar-07 5:23
abac_mefisto20-Mar-07 5:23 
QuestionJavascript, innerHTML and Firefox Pin
JoiSteingrims20-Mar-07 5:14
JoiSteingrims20-Mar-07 5:14 
AnswerRe: Javascript, innerHTML and Firefox Pin
Guffa20-Mar-07 10:07
Guffa20-Mar-07 10:07 
You may have problems if links reload the page when you click on them. Use the onclick event in the links instead, and return false from it to prevent the link to be activated:

<a href="add" onclick="ruPanelMultiAdd('Department');return false;">[+]</a>

(The value in the href property is not used.)

I see another problem with your code also. When you copy the html code of the select element, you will get more than one element with the same id, which is not allowed.

Also, you are replacing all the html code in the div element when you add or remove items. That means that you remove all the elements and then add new elements that are identical, but still they are not the same elements. You might consider it an error that the new elements doesn't get the same state as the old elements, but someone else might consider it an error if they do.

You can use the appendChild and removeChild methods of the div element to add and remove elements inside it. That way you won't be replacing all the elements in it.

---
single minded; short sighted; long gone;

AnswerRe: Javascript, innerHTML and Firefox Pin
JoiSteingrims21-Mar-07 13:19
JoiSteingrims21-Mar-07 13:19 
QuestionStarting Application Pin
Navneet Hegde20-Mar-07 3:03
Navneet Hegde20-Mar-07 3:03 
AnswerRe: Starting Application Pin
Laxman Auti21-Mar-07 5:56
Laxman Auti21-Mar-07 5:56 
QuestionWindows Authentication Pin
nclauder20-Mar-07 2:48
nclauder20-Mar-07 2:48 
JokeRe: Windows Authentication Pin
Laxman Auti21-Mar-07 5:58
Laxman Auti21-Mar-07 5:58 
GeneralRe: Windows Authentication Pin
nclauder21-Mar-07 21:43
nclauder21-Mar-07 21:43 
GeneralRe: Windows Authentication Pin
Laxman Auti21-Mar-07 22:03
Laxman Auti21-Mar-07 22:03 
GeneralRe: Windows Authentication Pin
nclauder21-Mar-07 23:26
nclauder21-Mar-07 23:26 
Questioncalling session["id"] from javascript Pin
haytham_mohammad20-Mar-07 0:27
haytham_mohammad20-Mar-07 0:27 
AnswerRe: calling session["id"] from javascript Pin
WoutL20-Mar-07 0:51
WoutL20-Mar-07 0:51 
GeneralRe: calling session["id"] from javascript Pin
haytham_mohammad20-Mar-07 11:46
haytham_mohammad20-Mar-07 11:46 
GeneralRe: calling session["id"] from javascript Pin
WoutL20-Mar-07 21:49
WoutL20-Mar-07 21:49 
AnswerRe: calling session["id"] from javascript Pin
Vasudevan Deepak Kumar20-Mar-07 6:20
Vasudevan Deepak Kumar20-Mar-07 6:20 
GeneralRe: calling session["id"] from javascript Pin
haytham_mohammad20-Mar-07 11:48
haytham_mohammad20-Mar-07 11:48 
AnswerRe: calling session["id"] from javascript Pin
RichardGrimmer22-Mar-07 6:18
RichardGrimmer22-Mar-07 6:18 
QuestionDraw dynamic Line Polyline polygon on firefox Pin
AnhTin19-Mar-07 17:33
AnhTin19-Mar-07 17:33 
QuestionTargetting Tabs instead of Window Pin
Vasudevan Deepak Kumar19-Mar-07 11:20
Vasudevan Deepak Kumar19-Mar-07 11:20 

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.