freespace 0 Newbie Poster

Hello all,
I've recently started learning html and have started looking at javascript.

I have read javascript examples online and these download run with-out trouble.

My problem is that when i put this code into a page i wrote and then try to open it with explorer, explorer blocks any javascript from running and i have to click on the "information bar" and click on "Allow Blocked Content" before the script works.

I am puzzled as this does not occur with the examples on the tutorial sites. These are basic examples like below

<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Java Write</title>
</head>
<body>
My first text with JavaScript:  
<script type="text/javascript">
document.write("<h4>Hello world!</h4>")
</script>
</body>
</html>

My question thens:

Why does explorer block my code but it does not block similar code from other sites?

How do i make my site work as intended ?

Thanks for your time.

Kind Regards,
Freespace

freespace 0 Newbie Poster

m_ChatText += char(13) + char(10); might not work as expected.
the compiler sees char(13) + char(10) like 13 + 10 = 23

So its like writing m_ChatText += char(23);

freespace 0 Newbie Poster

Mdos uses one character to represent a newline ascii character number 10.
Windows app's however use two characters to represent a newline, ascii characters numbers 13 and 10.

In a multline control to get a newline you have to use char(13) followed by char(10)

freespace 0 Newbie Poster

Hello, i persume its a console app your working on. By putting

system("pause");

or

cin.get();

so you can see what on-screen. Place either one at any point you want your program to stop and wait for a return key press by you.

Not sure what context you mean word wrap in, maybe if we could see some or your code.

freespace 0 Newbie Poster

Thanks asharma,
your advice of changing boot sequence worked a treat with my presario with a like problem.