Link to home
Start Free TrialLog in
Avatar of Nika Gudge
Nika GudgeFlag for United States of America

asked on

replacing inline javascript with jquery

im relaxing the inline javascript by jquery.
I have attached two files one is having code with inline javascript.
The other file is having code with the jquery.

I want to verify if the query i have written is correct and would work as expected.
inline-javsacript-replaced-by-jquery
Inline-javascript
Avatar of Member_2_248744
Member_2_248744
Flag of United States of America image

greetings Newton21205 , , , the code in your javascript is way too OLD, and out of date, as you have tests for things that in year 2017, that do not even exist any more -

        else if (navigator.appName=="Netscape"){
            NS6=parseInt(navigator.appVersion)>=5;
            NS4=4>=parseInt(navigator.appVersion);

these tests for "Netscape" are not valid, as "Netscape" no longer exists, , . .

In my view, Your best bet is to abandon that old javascript code, and start over with code that is more current, and corresponds to the HTML and Javascript standards used in browsers today.

Also, you can use non-Jquery, plain javascript to eliminate the "Inline" HTML javascript used.
Avatar of Julian Hansen
Also your code seems incomplete - as you have it it does not make sense. You have script that refers to checkboxes in MainForm but the checkboxes exist outside of any form - there is also "onlick" code wandering about by itself outside of an element.
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nika Gudge

ASKER

done