GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Apr-2004, 04:24
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough

HTML Area


Hi, I just downloaded the "HTMLArea", And I'm using it with my MFC aplication to do the basic editing.. However, there is some problem with the editor. It doesn't accept "enter" key.. This means I cant go into new line when I press enter. Why?? I'm not familiar with HTML or JavaScript, So is there someone know how to fix this???

The strange this is that it accept enter keys when I pressed tab to set focus on the page, and then pressing enter is ok.. Can someone help me here??

I have one more Q. Did u try the link I gave above, tru inserting image. and it will popup a insertimage dlg. My Q is how to change this dlg so that i can browse the disk for image file?? Is this possible in HTML??

All your help is highly appreciated!..Thankx.
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #2  
Old 20-Apr-2004, 04:34
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
Here is the code for the first Q if it could help..

HTML Code:
<html><head><title>htmlArea Example</title> <style type="text/css"><!-- body, td { font-family: arial; font-size: x-small; } a { color: #0000BB; text-decoration: none; } a:hover { color: #FF0000; text-decoration: underline; } .headline { font-family: arial black, arial; font-size: 28px; letter-spacing: -1px; } .headline2{ font-family: verdana, arial; font-size: 12px; } .subhead { font-family: arial, arial; font-size: 18px; font-weight: bold; font-style: italic; } .backtotop { font-family: arial, arial; font-size: xx-small; } .code { background-color: #EEEEEE; font-family: Courier New; font-size: x-small; margin: 5px 0px 5px 0px; padding: 5px; border: black 1px dotted; } font { font-family: arial black, arial; font-size: 28px; letter-spacing: -1px; } --></style> <script language="Javascript1.2"><!-- // load htmlarea _editor_url = ""; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } // --></script> </head> <body> <a name="top"></a> <form method=POST action=""> <textarea name="yourFieldNameHere" style="width:680; height:250"> </textarea><br> <b>Example "InsertHTML" links: </b> &nbsp; <a href="javascript:editor_insertHTML('yourFieldNameHere','<font style=\'background-color: yellow\'>','</font>',1);">Highlight selected Text</a> -<a href="javascript:editor_insertHTML'yourFieldNameHere',':)');">Insert Smiley</a> <a href="javascript:alert(editor_getHTML('yourFieldNameHere'));">getHTML</a> <a href="javascript:editor_setHTML('yourFieldNameHere','<b>Hello World</b>!!');">setHTML</a> <script language="javascript1.2"> editor_generate('yourFieldNameHere'); </script> </form> </body></html>
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a search engine and handling HTML entities. JdS Web Design Forum 2 27-Mar-2004 17:21
Parsing to HTML document in C++. markov C++ Forum 5 21-Jan-2004 08:38
orlando area? Kaina Open Discussion Forum 0 27-Dec-2003 14:04
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 10:16
html to php tenaki Web Design Forum 17 28-Oct-2003 17:18

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:12.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.