htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Does this work in asp.net????


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


MikeR
New User

Jun 4, 2004, 10:34 AM

Post #1 of 7 (3210 views)
Shortcut
Does this work in asp.net???? Can't Post

I've worked on implementing awesome tool into an asp.net project and long story short, my code works great in an .html page but does not work in an .aspx page. I continuously receive a JavaScript error, document.all[..] is null or not an object. Any ideas?

Thanks,
Mike


jeffd
Novice

Jun 10, 2004, 9:34 AM

Post #2 of 7 (3127 views)
Shortcut
Re: [MikeR] Does this work in asp.net???? [In reply to] Can't Post

Sorry I can't help you with your specific error, but I can assure you that it does work in .NET. I'm running it without a problem.

-Jeff


larsoncc
Novice

Jun 10, 2004, 10:35 AM

Post #3 of 7 (3122 views)
Shortcut
Re: [MikeR] Does this work in asp.net???? [In reply to] Can't Post

Have you tried the RegisterStartupScript function?


killkolor
New User

Jun 22, 2004, 12:57 PM

Post #4 of 7 (3026 views)
Shortcut
Re: [MikeR] Does this work in asp.net???? [In reply to] Can't Post

If you still wonder...

It works perfect. The problem in your case is most probably that you forgot to add 'defer' to your script tag.

<script language="javascript" defer>editor_generate('instanceName');</script>

cheers


JCollum
Novice

Oct 4, 2004, 10:13 PM

Post #5 of 7 (2626 views)
Shortcut
Re: [killkolor] Does this work in asp.net???? [In reply to] Can't Post

The thread below discusses this error. I managed to fix this error without using the defer tag (not sure what that does).

http://www.interactivetools.com/forum/gforum.cgi?post=33452;t=search_engine


mikejfinch
New User

Oct 13, 2004, 6:07 PM

Post #6 of 7 (2532 views)
Shortcut
Re: [MikeR] Does this work in asp.net???? [In reply to] Can't Post

Hi

I've always found its bad practice to use the document.all anyway. It far better and more efficient to use the document.getElementById.

Just a thought

Mike


Tigerman
New User

Dec 11, 2004, 6:25 PM

Post #7 of 7 (2202 views)
Shortcut
Re: [mikejfinch] Does this work in asp.net???? [In reply to] Can't Post

FYI The defer on the <script> tag makes the browser load the page before it executes the script. This ensures that the textarea are visible before the editor replaces them..

 
 
 


Search for (options)