How to open a folder located in server from client side using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malathib
    New Member
    • Mar 2009
    • 23

    How to open a folder located in server from client side using javascript

    Hi,

    In my web application, in one of the screen when the user clicks on one link, it has to open a folder that was located in server in client side.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    When you say "open folder", do you mean you want them to be able to view the contents of that folder? Is this supposed to happen without a page reload?

    Comment

    • malathib
      New Member
      • Mar 2009
      • 23

      #3
      Yes, it should happen with out page reload. Its just like , when i click on a link it should open a folder immediately.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        In that case, use Ajax. Have a look at the following link to get started:
        Another very common task in modern websites and applications is making network requests to retrieve individual data items from the server to update sections of a webpage without having to load an entire new page. This seemingly small detail has had a huge impact on the performance and behavior of sites, so in this article, we'll explain the concept and look at technologies that make it possible: in particular, the Fetch API.

        Basically, you'll need to use some server-side code to open the folder and show whatever needs to be displayed and use JavaScript code to make the request to retrieve it.

        Comment

        Working...