www.webdeveloper.com
Results 1 to 4 of 4

Thread: Loading files from server to webpage?

  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Loading files from server to webpage?

    Hi,

    I am making a video uploader and i have used php to upload the files from the user's computer to the server but how can i use javascript to automatically refresh an iframe where i want the uploaded file to be displayed?

    So when the user uploads a file, the javascript automatically refreshes the iframe and displays the uploaded file from the server in the iframe?

    Thanks to anyone who responds in advance.

    Hamza

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,265
    Use a form with a target to your iframe... Then the php upload file is able to refresh the iframe with the new video.

  3. #3
    Join Date
    Apr 2012
    Posts
    2

    Naming the iframe doesn't work

    I created an iframe called "uploadframe" and targeted the iframe "uploadframe" and nothing happened!?

  4. #4
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,265
    See for example this page about AJAX upload. Your php.file has obviously (after having saved the file) to return the iframe content.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles