Getting a blogging system into Firefox + IE

Discussion in 'JavaScript' started by Charybdis, Sep 30, 2009.

  1. #1
    Why won't my javascript code work?
    Refer to the: load_posts() section of it.

    The problem is that the nested code in the XML file will not work in Internet Explorer, but it does work in Firefox.
    IE: <post> Blablabla <b>Something here</b> </post>

    Everything after: "Blablabla " will not run in IE. Basically the start of the nested tag: "<b>"
    Can't find a way to get it working in IE, but it does work in Firefox.

    Refer to the: load_posts() function, thats the main key point in the blogging system.

    PS: I get no errors.

    JS Code:
    http://pastebin.com/m2ec254b6
    XML Code:
    http://pastebin.com/m9c19417
     
    Last edited: Sep 30, 2009
    Charybdis, Sep 30, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    hrm.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <blog><post title="Test 1">fgfg <b>ssss</b>s ss w</post><post title="Second Test">test fgfgf</post></blog>
    have you tried escaping xml entnities within?

    try replacing <b> with &lt;b&gt; etc - else the parser treats the string as data and then finds a new node midway.
     
    dimitar christoff, Oct 2, 2009 IP
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Or if you want it to remain bold, replace it with something like ['b]text['/b]
    and then change it back before displaying it.
     
    camjohnson95, Oct 2, 2009 IP
  4. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I put the ' marks to prevent the forum from converting it.
     
    camjohnson95, Oct 2, 2009 IP
  5. w3bmast3r

    w3bmast3r Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    this is an ongoing problem i'm affraid I found this same problem with java in careerone and let them know and they said its the new update in IE plus firefox is also having some issues.

    Sorry I've got no help on this one
     
    w3bmast3r, Oct 7, 2009 IP