Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Input Array problems - Gecko

    I've written a script to order news post made by a php script. Each news post is a div with the title, some options etc, in it and a hidden field, containing the post's id. All hidden fields together form an array named "order" (<input type="hidden" name ="order[]" value="POST_ID" />)

    I use the DOM (notably removeChild and insertBefore) to move the div's and their content around on the page. The idea was that upon posting, the "order" array would resemble the visually ordered list. From there on I could change the order of the news posts serverside.

    This works nicely in IE, but in Gecko browsers however, it does not! Every time I move a div, visually it works, but the relevant "order" entry is moved to the end of the array! Is there anything I can do about this? I'd like the script to be crossbrowser compatible!

  • #2
    New to the CF scene
    Join Date
    Sep 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    NM I figured out a workaround!

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    IE and Moz have different approaches about the childNodes length (Moz consider textNode as a childeNode even if it is empty).
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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