Solved

jquery script modification question

Posted on 2013-12-04
3
308 Views
Last Modified: 2013-12-08
I'm working on a wordpress site that's running a plugin that uses a purpose built jquery script stored in the plugin folder.  This means that when the plugin is updated any edits I make to that script will be overriden.

Basically its a form field validation script and I want to add a few lines to it.

How can I override the plugin script with a new one that will survive plugin updates?..

I was thinking of creating a new script to include the old stuff and my changes and registering it & enqueueing properly from functions.php

before I do I thought I'd check with the experts to see if there is a well known solution that works better.

thanks
0
Comment
Question by:tf2012
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39696441
The danger you have in doing that is that an update the original might be to remain compatible with new releases of other components.  Your custom version; lacking those updates may break as a result, or break something else.  You also need to consider that some updates are to fix security holes and you could be left exposed.

So you just need to proceed with caution knowing that you might need to patch your version in the future.

Cd&
0
 
LVL 1

Author Closing Comment

by:tf2012
ID: 39704310
ok great thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 71
Is it obvious to anyone what on earth has happened to these page layouts - wordpress, css 5 25
SQL to JSON 14 40
Secure log in 'box' 4 14
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question