Comments (11)
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.
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.
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.
Issue 27 has been merged into this issue.
Original comment by [email protected]
on 19 Jan 2010 at 11:14
from foxreplace.
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.
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.
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.
I still don't know how to solve it, sorry :(
Original comment by [email protected]
on 18 Nov 2011 at 11:10
from foxreplace.
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.
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.
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)
- Regular expressionss with matching groups HOT 2
- Document how to access the Plugin HOT 1
- Adding Colors to Changes HOT 4
- Keyboard shortcuts no longer work with 2.6.0 HOT 2
- URL replacements do not work anymore after the latest update
- Older version HOT 2
- fox replace having issue replacing word starting with period "." and doesn't replace them HOT 3
- In Discord browser tabs, replacements only happen for me. HOT 1
- When using the function replace option, the p1, p2, …, pN and group parameters don't work HOT 1
- Where does FoxReplace store the Substitution Lists HOT 1
- Is it possible to delete a line ? HOT 2
- Detach the New Entry line, and sorting entries? HOT 1
- Option to only replace inside the <body> tag? HOT 1
- Add a delay option for auto-replace on page load HOT 1
- Is there support for escape sequences \U \F \L in FoxReplace? HOT 2
- UI and UX improvements HOT 1
- Is it possible to handle TypeError:p2 is undefined and process conditional statements with Output type: Function? HOT 3
- Home-End buttons do not work in the Substitutions entries' fields. HOT 1
- Regex for the asian languages does not work, e.g. (?<!\p{Han}) or (?!\p{Lo}) HOT 5
- Please, make support for the Unicode character class escape
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foxreplace.