Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-02-03 20:14:59

yummycarp
New member
Registered: 2005-03-15
Posts: 3

insert of javascript src stmnt gets interpreted

Guys,

If I insert a javascript block with a src=blah.js, it gets interpreted and extra code is added into the contents each time you toggle back and forth from html mode to source mode.  Any ideas if I can paste in code like that without it getting interpreted/altered.

<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=1127076;
var sc_invisible=0;
var sc_partition=10;
var sc_security="60c64444";
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c11.statcounter.com/counter.php?sc_project=1127076&java=0&security=60c64444&invisible=0" alt="javascript hit counter" border="0"></a> </noscript>
<!-- End of StatCounter Code -->

Thanks.

Offline

#2 2006-02-05 20:58:48

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: insert of javascript src stmnt gets interpreted

I thought script code didn´t work at all

Offline

#3 2006-02-06 04:35:04

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: insert of javascript src stmnt gets interpreted

The browser will be doing that, not much we can do to stop it.  Script in Xinha (or any online HTML editor) will be limited at best.


James Sleeman

Offline

#4 2006-02-23 10:16:26

zebby
New member
Registered: 2006-02-23
Posts: 1

Re: insert of javascript src stmnt gets interpreted

I have detected the same problem today.

but now it seems like there is a solution.

the javascript code ist only executed in IE
Firefox doenst do anything with javascript code in the textarea.

i've tried to replace <script> tag and comment the javascript code in the textarea
but IE still gives no javascript error nor submits the form.

who can figure out the solution for IE to solve this problem.

greets zebby

Offline

#5 2006-02-23 23:29:16

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: insert of javascript src stmnt gets interpreted

http://xinha.python-hosting.com/ticket/685 could be your solution. It stops javascript from executing in the editor.

Offline

Board footer

Powered by FluxBB