Click to See Complete Forum and Search --> : javascript text editor


khurley
04-08-2003, 10:30 AM
Hey guys -

I have a page where I collect information in a FORM and then submit it to my Java server. The server returns with a response in a text editable control.

The problem is that the editable control contains enough text to make viewing the response irritating unless the control is stretched out pretty big (about as big as the page).

(see the attached bitmap screenshot)

THen - the problem is that there are 2 sets of scroll bars - one for the editable control and one for the Browser!!!

Double scroll bars SUCK!!!

Any ideas on how to improve the design would be helpful.

Kevin

viravan
04-08-2003, 02:06 PM
Have you tried to put the server's response in a textarea within a page that fits in browser's display area for a screen of say 800x600?

:)

V.V.

khurley
04-08-2003, 02:15 PM
Do you mean - make the textarea the same size as the browser window?

Possibly make the Browser "thin" with no address bar or menu?

I was thinking - making it a non-modal "pop-up" browser window.

Any other ideas?

Thanks,
Kevin

viravan
04-08-2003, 02:24 PM
If all you have on the page is the textarea, you'll have to make sure that the textarea smaller than the browser window (i.e., you have to take into consideration the window's decorations). For example, assuming that the browser window is 800x600, I would make the textarea 700x500 or less -- you'll have to figure that out yourself what looks best.

:)

V.V.

khurley
04-08-2003, 02:58 PM
That still brings me back to the problem of having two verticle scroll bars...in the case that I have more xml or text than browser real estate.

Any suggestions on how to do away wsith multiple scroll bars.?

Kevin

viravan
04-08-2003, 03:11 PM
If you use the window.open function, you can try to suppress the display of the browser's scrollbars by adding the following parameter:

scrollbars=no

Caveat: this parameter may be browser specific.

Dave Clark, the moderator of this forum, has a demo sript that put the text in a textarea without scrollbars -- scrolling is done with the mouse motion events. I don't have the exact link to the page but maybe he will swing by a provide you with one or you can search the forum for something like "navigation".


:)

V.V.