Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9097413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:06:35+00:00 2026-06-17T00:06:35+00:00

I use a php framework (Yii) for my code which includes jquery.js in each

  • 0

I use a php framework (Yii) for my code which includes jquery.js in each html form automatically for its validating functions. And i can’t do anything about it.

Here is the problem:

I get a piece of html, including the form and the jquery.js file, by ajax to show in a placeholder.
I already have a jquery.js in the page. So the second one comes in, and all other jquery plugins stop working and I should initiate them again!
I need to filter out the second jquery.js from my ajax return data.
How should i do it?

jQuery.ajax({
  type: "GET",
  url: $params.url,
  data: $data,
  dataType: $dataType,
  success: function(data){
    // data includes jquery.js code
    callback(data);
  }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:06:36+00:00Added an answer on June 17, 2026 at 12:06 am

    What about using a callback function with something like the following:

    callback(data.replace(/<script.+script>/, ""));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm use Yii PHP framework but i cant write this code, what's the true
I use subversion to manage my yii website (php framework) and have separate backend
I have a webservice written in Yii (php framework). I use C# and Visual
With Yii php framework, I use inheritance. In my AbstractModel, I have this method:
I wish to use a PHP Framework such as Yii, however, it seems to
I am working in Yii-php framework. I am creating function which will retrive weather
I'm not really debating which PHP framework to use as much as I'm trying
I'm use Yii Framework. I have a named anchor <a name=projet>projet</a> in about.php page.
For class, I would like a to use PHP MVC framework very similar to
I'm using this PHP framework for use with Shopify's API Can anyone help me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.