Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am working on a implemented project about "ONLINE MOCK TEST" and its designed in html,java script ,and the question file is designed in xml and xslt .
i want to make changes in that file to learn how it is designed but i found an problem while i make any changes in the xslt functions ,only alert box is working ,and if i make any changes to it or add new code its affect the whole project

C#
function fnSubmit(action)
                {

                    for(i=0;i<document.QuizForm.question.length;i++)
                    {
                        if(document.QuizForm.question[i].checked==true)
                        {

                            selectedAnswer=document.QuizForm.question[i].value;
                          break;
                        }

                    }



                    if(action!='SUBMIT')
                    {

                        window.parent.frames[0].save(selectedAnswer, action);
                        document.QuizForm.submit();

                    }
                    else
                    {

                        //window.parent.frames[0].save(selectedAnswer, action);
                        location.href = 'FeedBack.html';

                    }
                }
        function hi()
        {

          for(i=0;i<document.QuizForm.question.length;i++)
                    {
                        if(document.QuizForm.question[i].checked==true)
                        {
                            selectedAnswer=document.QuizForm.question[i].value;


              document.write("ans is : " +selectedAnswer);
              break;
                        }
                    }

        }

this is the sample code where i make changes
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900