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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer using iFrames to view folder contents

    Hi There,
    Good day to all geeks !
    Kindly check and advice the following.

    I am using the below code to read and disply folder contents to html.

    Code:
     
    <script type="text/javascript">
    function callcontents(foldername)
    {
    	parent.document.getElementById('Bottom').src = 'bott.php?FolerName=' + foldername
    }
    </script>
    Code:
    <div>
    <a href="javascript:void(0);" target="iFrame1" onClick="callcontents('public_html/folder1'); return false"'>Click to View Folder 1 Contents</a>
    </div>
    the script is working fine.
    its not in oder, i need to know how to sort ascending order, desc or by modified order of all files.

    Kindly advice
    Thanks with anticipation

    Regards
    KARTHIK

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Have a look at the Javascript sort() method.

    http://www.w3schools.com/jsref/jsref_sort.asp




    "Possession of the ball is now nine-tenths of the law". - Football commentator.


  •  

    Tags for this Thread

    Posting Permissions

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