Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to make my music don't refresh if i go to another page

  1. #1
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default How to make my music don't refresh if i go to another page

    How to make my music don't refresh if i go to another page?

    I developing this page using php, and for the music i'm using flash.

    this is the project

    thx in advanced
    _____________________

    David Demetrius // davejob
    _____________________

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Hi davelf. I have seen a couple of threads with this issue before, but haven't seen a really good solution yet. Only way I can think of getting the music playing continuously when changing pages, is to have the new pages in a frame. Well, maybe you could load the new content with ajax or scroll animate it in a div. As far as i know you can't change the url. Making the whole site in flash could also do it.
    It would be interesting if someone had a smarter solution though.

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    watch.

    basically, the entire site is on a single page, and content is shown/hidden via jQuery. If there's too much content for a single page, you can use ajax in a similar fashion: reload the main content area rather than actually going to the new page. Since you don't actually go anywhere, the music doesn't stop.

  4. The Following User Says Thank You to traq For This Useful Post:

    davelf (07-01-2010)

  5. #4
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    Quote Originally Posted by azoomer View Post
    Hi davelf. I have seen a couple of threads with this issue before, but haven't seen a really good solution yet. Only way I can think of getting the music playing continuously when changing pages, is to have the new pages in a frame. Well, maybe you could load the new content with ajax or scroll animate it in a div. As far as i know you can't change the url. Making the whole site in flash could also do it.
    It would be interesting if someone had a smarter solution though.
    yup, i agree with that. I don't see any solution or source code to fix this problem too.
    About your solution:
    1. use iframe, i don't really like to use frame, it's just not compatible and fit with my design, i don't think this is for me.
    2. make the whole page into flash, ya that could work out but, that's why i put this thread in HTML, cause i ask for HTML solution, not flash.
    3. Ajax, this is what i thinking about.
    Thx anyway
    _____________________

    David Demetrius // davejob
    _____________________

  6. #5
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    Quote Originally Posted by traq View Post
    watch.

    basically, the entire site is on a single page, and content is shown/hidden via jQuery. If there's too much content for a single page, you can use ajax in a similar fashion: reload the main content area rather than actually going to the new page. Since you don't actually go anywhere, the music doesn't stop.
    Thx traq, i never see a page like this before. They have a single URL for everypage, even they don't refresh?
    i've already seen the video, and for my level it's too difficult to understand, so still hope someone will give an example or hard code to solve this.
    _____________________

    David Demetrius // davejob
    _____________________

  7. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It IS complex. You are using everything backwards-- trying to not refresh one small part while refreshing everything else.

    One very simple option that may be best if the other ways are too complex or don't work is to just use a popup. Have a "pop out" button on your music player, that creates a new window, then they can browse any page while keeping the popup available for the player.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #7
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    yes, it's quite complex. I understand the concept, but the execution is beyond me at present. And there is quite a bit of code in that demo that's unrelated to the continuously playing music.

  9. #8
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    Quote Originally Posted by djr33 View Post
    It IS complex. You are using everything backwards-- trying to not refresh one small part while refreshing everything else.

    One very simple option that may be best if the other ways are too complex or don't work is to just use a popup. Have a "pop out" button on your music player, that creates a new window, then they can browse any page while keeping the popup available for the player.
    last time i develop a page where, user don't need to refresh, i use the dynamicdrive script, and it work the music don't need to refresh / start over and over again.

    here is my work

    But after i finish develop that page, i got some problem:
    1. It take to long waiting time to load all of the content.
    2. I can't redirect or send a URL to my client to a single page (ex. portfolio, about, myservices, etc), because everything is in a single page.

    So i don't think to make a page like that again, and Traq give a wonderful example, from what i see in the video, they fix all of my problem. But once again it's really complex.

    And about your solution here, pop up?

    What does it mean?

    so i make a separate page to put my music code there?

    Thx to both of you..
    _____________________

    David Demetrius // davejob
    _____________________

  10. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yes, you would make one page (many pages) with your website, and a separate page with the music player.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  11. #10
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default Another Solutions

    Hi, continue the last discussion, after trial and error for a week. I try a new solution.

    I'm using iframe to make that music stay on it;s position (not refreshing)

    i combine it with php, so this the big picture:

    1. i make a music.html, i put my music flash there

    2. i call that music.html and put it into a new page called music.php
    Code:
    <iframe src="music.html" width="100%" height="40" frameborder="0"></iframe>
    3. and i call music.php in my index.php

    How come the music.php don't show anything?
    Is there any problem if i use the iframe in php?

    Thx very much....
    _____________________

    David Demetrius // davejob
    _____________________

Bookmarks

Posting Permissions

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