View Full Version : Problem with div tag
mehulmistry
05-08-2007, 06:27 AM
Hi all,
I have one strange problem with div tag. In my aspx page, I've a added a rich text box(something like what we use to post threads here, but a little more functionality).For that RTB, I've a div tag, where in I allow user to write their data and format it.This works perfect in IE, but in Firefox, the div tag is not editable only. I'm not able to write a single word in it.
Can someone tell me how to rectify this.
Thanks,
MehulMistry
jscheuer1
05-08-2007, 07:14 AM
If you are using contenteditable, that is IE only. It may be supported in some other browsers, but I doubt it is in FF.
mehulmistry
05-08-2007, 10:55 AM
yes I'm using Contenteditable=True. And its not working in firefox. IS there a way to fix this?
Thanks,
MehulMistry
creat
05-08-2007, 11:04 AM
Hi,
Check this site you can get solution from here.
http://www.w3.org/
CREAT
jscheuer1
05-08-2007, 02:53 PM
I don't think there is an easy way no, but there is a way (probably even ways) to allow for an editor type interface in modern browsers without using contenteditable at all. Without seeing your project, I wouldn't know how best to advise you. And if it looks complex, I don't really have the time for that these days, perhaps in a month or so. The w3c site mentioned by creat probably does contain the answers you need if you can find them - it is a huge site.
There also is:
http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
- a "Rich Text Editor (for textareas)" script here on Dynamic Drive that may work out for you or that may give you ideas.
mehulmistry
05-09-2007, 06:12 AM
well thanks Jhon, and indeed the w3 site is huge. Even I'm struggling with my deadline and was able to spent some 20 to 25 min with the site but did't got the answers. I'll see what i can do and will also have a look the dynamic drive script.
Thanks,
MehulMistry
tech_support
05-09-2007, 06:21 AM
From memory, I think it's designMode="on"
So, just add that after contentEditable="true"
mehulmistry
05-09-2007, 12:52 PM
NO peter even designMode="on" won't work. that is also not supported.
Thanks,
MehulMistry
bklurchio
05-09-2007, 01:05 PM
Try www.fckeditor.net for a cross browser, cross language, expandable HTML WYSIWYG editor. It has plug-ins too.
Ryan Fitton
05-09-2007, 02:45 PM
Dunno whats happened, though it looks like it is not supported in FireFox though. Most peaple either use FirFox or Internet Explorer. You culd try W3 (www.w3c.org (http://www.w3c.org)) for some ideas of how you might be able to fix it.
jscheuer1
05-09-2007, 03:16 PM
well thanks Jhon, and indeed the w3 site is huge. Even I'm struggling with my deadline and was able to spent some 20 to 25 min with the site but did't got the answers. I'll see what i can do and will also have a look the dynamic drive script.
Thanks,
MehulMistry
Yes, have a look at the DD script. You might be able to adapt your presentation to use it. That would probably be the quickest solution and you could probably receive help in doing that from several folks here in the forums. If you decide to go that route and need help, post a new thread in the Dynamic Drive Scripts Help section and fill out the information requested there. Add a link to your page as well - that almost always speeds up the process.
I'm not ruling out completely the possibility that something could be relatively easily worked out from your existing markup. We would need a link to your page to tell that.
Consider as well, branching. IE could use your existing setup while FF would be presented with an alternate method, perhaps a conventional form.
tech_support
05-10-2007, 06:41 AM
Can you post us your code? We might be able to edit it then.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.