rdno
asked on
Help me stopping interdev interfering with my javascript/asp/html
Hello I have slight problem with interdev which cost me 30 works of hour already.
The problem is that I have an asp file which generates javascript for a cross-browsing application. In each browser the generated scripts are slightly different.
When I open this file with interdev it automatically changes my javascripts.
It replaces f.e. " to ", < to >
pieces of script like:
var foo;
for (foo, foo < 10, foo++) {
if (foo == 5) {
alert("foo")
}
}
is replaced in something like:
var foo;for (foo, foo > 10, foo++) {if (foo ="=" "5") { alert "foo") }}
Please help me stop this evil IDE from doing this!
The problem is that I have an asp file which generates javascript for a cross-browsing application. In each browser the generated scripts are slightly different.
When I open this file with interdev it automatically changes my javascripts.
It replaces f.e. " to ", < to >
pieces of script like:
var foo;
for (foo, foo < 10, foo++) {
if (foo == 5) {
alert("foo")
}
}
is replaced in something like:
var foo;for (foo, foo > 10, foo++) {if (foo ="=" "5") { alert "foo") }}
Please help me stop this evil IDE from doing this!
ASKER
yes,
I have tried to change script in <%="<scr" & "ipt language=""javascript"">"% >
but even that did not work unfortunatly it didn't work!
I have tried to change script in <%="<scr" & "ipt language=""javascript"">"%
but even that did not work unfortunatly it didn't work!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Its not VI doing this. If you think its that evil then use notepad.
If you copy-paste text into VI, it will do this translation UNLESS you use the Edit/Paste-As-HTML menu option, in which case it is inserted unchanged.
If you copy-paste text into VI, it will do this translation UNLESS you use the Edit/Paste-As-HTML menu option, in which case it is inserted unchanged.
When you paste your JavaScript in VI, like from a web page or MSDN Help, right click the HTML Editor in VI and don't select the simple paste but go down a little furthur and select Paste-As-HTML.
This won't give you another type of code for characters, just the JavaScript as it's seen in an HTML page.
I've had this problem.
This won't give you another type of code for characters, just the JavaScript as it's seen in an HTML page.
I've had this problem.
Is the script between
<script language=javascipt>
</script>
tags?
Can you show me the page?