The forms already have two differents names and ids : they are "sondageform" & "searchform".
The button "Rechercher" is calling this javascript function :
function searchUnite(ObjID) {
objUnitesRequest = new Request();
SaveUniteFromForm(ObjID,tr
alert(curUnite.jsonData.to
objUnitesRequest.httpReque
}
The bug is happening in the other function called SaveUniteFromForm. I'll give you only the beginning because this is something quiete big, but the problem happens at the beginning anyway.
So as you can see in the code above & below, the button calls a javascript function with his button Id as parameter. Then this param is passed to the function SaveUniteFromForm and this function create a new var called Obj which is the HTML element represented by this ID. (The button).
More, as said in the first post, If I remove the "Sondage" form (the other one) than my problem is solved. (just a reminder)
Main Topics
Browse All Topics





by: mudskipperwPosted on 2008-06-24 at 00:17:06ID: 21853052
give your forms with various names and use each notype is under one form which will be unique to any others. then you can have such as otype.valu e); otype.valu e);
alert(document.FormName1.n
alert(document.FormName2.n
more accurate than using getElementByName.