Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Putting Java into a poorly created wysiwyg
Old 01-20-2009, 08:57 PM Putting Java into a poorly created wysiwyg
sepple's Avatar
Super Talker

Posts: 147
Trades: 0
Hey everyone,

I need some help, I am trying to call a variable in a wysiwyg editor but obviously it will not work. I need a way to get around it so I can print some variables on the page.

Everytime I post this:
Code:
<script type="text/javascript">
var firstname;
firstname="Hege";
document.write(firstname);
document.write("<br />");
firstname="Tove";
document.write(firstname);
</script>
It changes it to this:
Code:
<script type="text/javascript"><![CDATA[
var firstname;
firstname="Hege";
document.write(firstname);
document.write("<br />");
firstname="Tove";
document.write(firstname);
]]></script>
Is there a way that I can get around this? Any help would be appreciated.

Thanks,
Stephen
__________________
Thanks
Stephen
sepple is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 06:43 AM Re: Putting Java into a poorly created wysiwyg
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
put it in an external file and link it in.

Your editor seems to be working in "XHTML mode"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-21-2009, 01:53 PM Re: Putting Java into a poorly created wysiwyg
sepple's Avatar
Super Talker

Posts: 147
Trades: 0
What is a good way to link a file in without using php or java?
__________________
Thanks
Stephen
sepple is offline
Reply With Quote
View Public Profile
 
Old 01-21-2009, 02:56 PM Re: Putting Java into a poorly created wysiwyg
sepple's Avatar
Super Talker

Posts: 147
Trades: 0
Nevermind, figured it out.

Thanks
__________________
Thanks
Stephen
sepple is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Putting Java into a poorly created wysiwyg
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19202 seconds with 12 queries