| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 6:05 am Post subject: Ping Brandon - browser element help? |
|
|
Heya Brandon,
Can ya give me a hand with a little project I'm staring here?
I'm simply trying to use the browser element and an html text edit box as a plain text editor... Why? cuz I want the spell checking ability. My problem is that I can't figure out how to get the html edit box to resize with the browser element.
I tried checking some of your older stuff with the vdsdom50, but i'm a bit lost on that.
Can you help me out on this one please?
Thanks,
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jun 11, 2014 4:20 pm Post subject: |
|
|
Plain text?
| Code: |
<textarea style="width:100%;height:100%"></textarea>
|
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:26 pm Post subject: |
|
|
Well this idea down the pipes... Seems the browser object doesn't inherit the spell checking from IE. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:31 pm Post subject: |
|
|
the 100% works on the width but the height is not working at all. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jun 11, 2014 4:33 pm Post subject: |
|
|
Spell checking doesn't inherit? That's odd. I just did a spell check test in IE, didn't think to make a full blown script just yet.
The height thing works in whatever IE version is in Windows 8.1, but you're right, I didn't think about older systems at all just yet.
Are we moving away from this / scrapping? |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jun 11, 2014 4:35 pm Post subject: |
|
|
Yeah, hta file doesn't inherit the spell check feature either ;p
Must be a plugin integrated directly into Internet Exploder. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:37 pm Post subject: |
|
|
And yes, thanks, just plain text is what was looking for.
Here's all I planned on doing:
| Code: |
EXTERNAL VDSBRW60.DLL
#DEFINE COMMAND,BROWSER
#DEFINE FUNCTION,BROWSER
DIALOG CREATE,New Dialog,-1,0,761,478,RESIZABLE
DIALOG ADD,BROWSER,BROWSER1,0,0,@dlgpos(,w),@dlgpos(,h),@path(%0)test.html
DIALOG ADD,MENU,&File,&Open|&Save|-|E&xit
DIALOG SHOW
:EVENTLOOP
WAIT EVENT
GOTO @event()
:EXITMENU
:CLOSE
EXIT
:RESIZE
DIALOG SETPOS,BROWSER1,,,@dlgpos(,w),@dlgpos(,h)
GOTO EVENTLOOP
:OPENMENU
GOTO EVENTLOOP
:SAVEMENU
GOTO EVENTLOOP |
and then the html:
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>TEST</title>
</head>
<body>
<!-- textarea cols="60" rows="20" name="EDITORFIELD"></textarea -->
<textarea style="width:100%; height:100%";></textarea>
</body></html> |
But since the spell checking doesn't work in the browser object, I'm thinking of just using "-app" param on Chrome to launch the html with text area, but need to know how to get the height to work.
Thanks a bunch for what you have done on this already,
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jun 11, 2014 4:43 pm Post subject: |
|
|
<textarea style="width:100%;height:100%"></textarea>
Works on my chrome...
You sure it's not working? |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:44 pm Post subject: |
|
|
lemme try again _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:48 pm Post subject: |
|
|
This just isn't my day.
Tried in:
Internet Explorer 11
width works but not height
Safari (last windows version)
width works but not height
Opera 12.17
width works but not height
and of course Chrome 35.something
width works but not height
I'm on Win7 32 bit. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:52 pm Post subject: |
|
|
On all of the browsers the with works fine, even resizing the windows it still works, but I only get two rows on all of them.
 _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 4:56 pm Post subject: |
|
|
ya know what though, if two rows is all I get, then that'll just have to do. I just wanted to have a quick handy little text area to either type or paste into to check spelling. Heck, I can probably just use column and row properties to set static size and then just resize the chrome app window to fit it. Chrome saves these app window settings. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 6:00 pm Post subject: |
|
|
Solved the height problem... Silly me, I had an html 4 declaration at the top of the page!
 _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2014 6:11 pm Post subject: |
|
|
Would have been nice if the browser object would retain the spell checking ability though.. I could have made a note pad out of it. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jun 11, 2014 6:19 pm Post subject: |
|
|
Glad I could help
I've done some work with VDS/Chrome as well, but there's really no get/set functions for page content ;p |
|
| Back to top |
|
 |
|