Advanced Search

Results 1 to 5 of 5

Thread: IE textarea / FF Different Textarea , how to hanle?!

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question IE textarea / FF Different Textarea , how to hanle?!

    Hi all savvy HTML Experts!

    I thought I might be able to find here some nice help from the community!
    I have an FBML page.

    I want to have a TextArea box according to the Browser.

    If IE ---> Use TextArea_A

    Else ( all the rest FF ofcurse and the smaller once ) ---> Use TextArea_B


    You got the point what I'm trying to achieve right?! different textarea box according to the browser..


    So does anyone know a way around this ?

    Thanks A TON in advance!
    ~HappyPuppy

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Code:
    <!--[if IE]>
    Texta
    <![endif]-->
    
    <![if !IE]>
    textb
    <![endif]>

    http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nope, doesn't work. this is what I have

    <!--[if IE]>
    TEST,TEST, TEST, TEST
    <![endif]-->

    <![if !IE]>
    <textarea id="" cols="25" rows="5">Our text here</textarea>
    <![endif]>

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,484
    Thanks
    4
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    FBML is facebook mark up language and doesn't recognize (or deletes) MLs it won't use. For the listing see here.

    The short answer is you can't do it. The long answer says you can but would need some serious study and probably isn't worth it just for FaceBook.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    11,797
    Thanks
    227
    Thanked 657 Times in 645 Posts

    Default

    The better approach here, I think, is to explain what you are trying to accomplish. Using different code for different browsers should ONLY be a last resort and if you want to fix this page, the better way to do it is to find a way to avoid two versions of the code-- then it will probably work on facebook.
    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية

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
  •