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 6118767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:28:29+00:00 2026-05-23T15:28:29+00:00

Within JSP files, I have some pretty complicated Javascript. On a production machine, we’re

  • 0

Within JSP files, I have some pretty complicated Javascript. On a production machine, we’re seeing a very weird bug that we have not been able to understand. We have never been able to replicate it in a local or development environment. It might be related to the javascript, but I haven’t found a good way to do this: use my browser to visit the page (on the production website) and then use browser tools to edit the javascript that runs on that page, including on reloads of the page.

I’m always able to do this to tweak CSS etc, but as these questions point out, it’s not obvious how to tweak JS client-side:

  • Best way to capture JavaScript errors in production?
  • How do you edit Javascript in the browser?
  • How to edit JavaScript in Firebug?
  • How can I edit a js file sent by the server before it gets to my browser?
  • How to replace Javascript of production website with local Javascript?
  • with firefox w/firebug, how can I write javascript in the browser and use the .js file objects also?

However, those answers don’t help me because:

  • “Execute JS” (Firefox addon) doesn’t seem to work (doesn’t do more than the console in Chrome already can do),
  • “Charles” might work if I’d used separated js files, but my javascript is embedded in JSP

It seems like How to modify javascript code on the fly in browser in debugging mode? is the closest thing to what I’m talking about, but that guy isn’t able to talk about what he did because it was for his employer.

Thanks for your help!
Ryan

  • 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-05-23T15:28:29+00:00Added an answer on May 23, 2026 at 3:28 pm

    The problem with editing JavaScript like you can CSS and HTML is that there is no clean way to propagate the changes. JavaScript can modify the DOM, send Ajax requests, and dynamically modify existing objects and functions at runtime. So, once you have loaded a page with JavaScript, it might be completely different after the JavaScript has run. The browser would have to keep track of every modification your JavaScript code performs so that when you edit the JS, it rolls back the changes to a clean page.

    But, you can modify JavaScript dynamically in a few other ways:

    • JavaScript injections in the URL bar: javascript: alert (1);
    • Via a JavaScript console (there’s one built into Firefox, Chrome, and newer versions of IE)
    • If you want to modify the JavaScript files as they are served to your browser (i.e. grabbing them in transit and modifying them), then I can’t offer much help. I would suggest using a debugging proxy like Fiddler

    The first two options are great because you can modify any JavaScript variables and functions currently in scope. However, you won’t be able to modify the code and run it with a "just-served" page, like you can with the third option.

    Other than that, as far as I know, there is no edit-and-run JavaScript editor in the browser. Hope this helps,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any tools to assist with the internationalization of Strings within JSP files?
I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the
in web.xml i set my welcome file to a jsp within web.xml <welcome-file>WEB-INF/index.jsp</welcome-file> inside
There is an actual running Java ServerPages (JSP) application within a *NIX box which
Is there a pure-Java equivalent to <jsp:forward page=... /> that I can use within
I know you can use the <jsp:useBean> tag to instantiate objects within JSPs without
Within an application, I've got Secret Keys uses to calculate a hash for an
Within Ruby on Rails applications database.yml is a plain text file that stores database
Within c#, I need to be able to Connect to a remote system, specifying
Within SQL Server Integration Services (SSIS) there is the ability to setup a connection

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.