Code Monkey home page Code Monkey logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Can you provide a specific example?

JavaScript is interpreted, and as such, if the code is changed the behaviour 
should
change too. But I haven't tried.

Original comment by [email protected] on 22 Jun 2009 at 10:22

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
You can try this code:

<SCRIPT LANGUAGE="JavaScript">
function openWindows() {
var nextURL = "http://www.google.com";
var inventoryView = window.open
(nextURL,'',"toolbar=0,status=0,scrollbars=1,resizable=1,width=650,height=500");
}
</SCRIPT>

<A HREF="javascript:openWindows();">TEST</A>

try to change the website, or one of the parameter the javascript will continue 
to 
open the same page in the same size.

Original comment by [email protected] on 22 Jun 2009 at 3:09

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Well, yes, it continues to open Google. I suppose that although the text of the
script is changed, it isn't reparsed and the function remains the same. I don't 
know
if the reparsing can be forced, but I will look what can be done.

Original comment by [email protected] on 24 Jun 2009 at 11:13

  • Changed state: Accepted

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Issue 27 has been merged into this issue.

Original comment by [email protected] on 19 Jan 2010 at 11:14

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Having same issue cannot change javascript please add me to email list

Original comment by [email protected] on 9 Mar 2010 at 1:13

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
ccciabarra, if you have starred the issue you will receive an e-mail when it is 
updated.

Original comment by [email protected] on 17 Mar 2010 at 10:49

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Tried version 0.12.2 on FFox8 - still no luck with JavaScript. I need to mock 
some javascript functions in order to proceed with Selenium automated testing 
of large web project.

Original comment by [email protected] on 18 Nov 2011 at 6:01

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
I still don't know how to solve it, sorry :(

Original comment by [email protected] on 18 Nov 2011 at 11:10

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
I've got a functional (but long) workaround in Issue 75

Instead of altering existing functions in the HTML, re-define the complete 
function with your changes. 

Original comment by mpheyse%[email protected] on 14 Jul 2012 at 7:22

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Good news! I have found a way to solve this, different from mpheyse's solution, 
and it will be included in next release. It doesn't solve issue 75, though, but 
I will work on that later.

Original comment by [email protected] on 11 Nov 2012 at 4:46

  • Changed state: Started

from foxreplace.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
Fixed in r163. The solution has been to replace each changed script node (or 
each script node in HTML) with a newly created one with the changed code. I 
have left it as an option disabled by default, so it doesn't bother users that 
don't want to change scripts. Also, by the moment it applies only to scripts in 
the body, as the rest the substitutions, but the solution will work when I 
allow substitutions in the head.

The fix will be included in the next release. If you encounter any problem with 
this new option, please create a new bug report.

Original comment by [email protected] on 11 Nov 2012 at 11:29

  • Changed state: Fixed

from foxreplace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.