Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Problem with div tag

  1. #1
    Join Date
    May 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with div tag

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you are using contenteditable, that is IE only. It may be supported in some other browsers, but I doubt it is in FF.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes I'm using Contenteditable=True. And its not working in firefox. IS there a way to fix this?


    Thanks,
    MehulMistry

  4. #4
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Check this site you can get solution from here.
    http://www.w3.org/

    CREAT

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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/dynamici...itor/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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    May 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  7. #7
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    From memory, I think it's designMode="on"
    So, just add that after contentEditable="true"
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  8. #8
    Join Date
    May 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    NO peter even designMode="on" won't work. that is also not supported.



    Thanks,
    MehulMistry

  9. #9
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try www.fckeditor.net for a cross browser, cross language, expandable HTML WYSIWYG editor. It has plug-ins too.

  10. #10
    Join Date
    Feb 2007
    Posts
    145
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    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) for some ideas of how you might be able to fix it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •