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
JavaScriptjQuery

Avatar of undefined
Last Comment
Nika Gudge
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Nika Gudge
Nika Gudge
Flag of United States of America image

ASKER

done
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo