Displaying page contents without loading new page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnawz
    New Member
    • Nov 2006
    • 64

    Displaying page contents without loading new page

    Dear experts,

    I need some one to tell me how to design a website in php or other scripting technology such that
    when a user clicks on links or an image in the site, information is displayed without loading another page

    The way this site (http://www.dotsavvysfr ica.com) was designed although I know flas was used.
    If anyone knows of a way how to do it, using php, html and javascript, please let me know
  • rpnew
    New Member
    • Aug 2007
    • 189

    #2
    Originally posted by gnawz
    Dear experts,

    I need some one to tell me how to design a website in php or other scripting technology such that
    when a user clicks on links or an image in the site, information is displayed without loading another page

    The way this site (http://www.dotsavvysfr ica.com) was designed although I know flas was used.
    If anyone knows of a way how to do it, using php, html and javascript, please let me know
    Hi,
    First i coudnt open the URL you've provided... Anyways.. if you dont want to load a new page as what you are saying and if you want to make it in only php then what you can do is you can submit the page to itself and according to parameters you can change the page layout. Here you need to reload the page every time you are clicking anything on that page. Another way is if you dont want to reload your page then you can use PHP+Ajax. you'll lots of tutorials on net for PHP and Ajax. Try them and if you have any other questions post it here. Another thing is if you know Flash or something then you can easily do what you want,However i dont have much idea about that :( ..

    Regards,
    RP

    Comment

    • coolsti
      Contributor
      • Mar 2008
      • 310

      #3
      The page that you are referring to is built up with Flash. I have not used this myself, but it is basically an interactive image that is doing all the work. Probably everything is already downloaded in the Flash and is just revealed or hidden according to the rules scripted in Flash.

      To have a page updated in some manner without reloading the entire page, and without using Flash, you need to have some element on the page which can have its content only updated, leaving the rest of the page alone. You can do this, for example, with iframes and javascript, but not in such a fancy manner as the Flash example you refer to.

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Have a look at some html frams tutorials.

        Comment

        • gnawz
          New Member
          • Nov 2006
          • 64

          #5
          "can submit the page to itself and according to parameters you can change the page layout."

          HOW DO I DO THE ABOVE...?!?

          Comment

          • mageswar005
            New Member
            • Mar 2008
            • 72

            #6
            Ajax is the only way to display the content without loading page....

            Comment

            • TheServant
              Recognized Expert Top Contributor
              • Feb 2008
              • 1168

              #7
              Originally posted by mageswar005
              Ajax is the only way to display the content without loading page....
              Javascript can also do it, but it can be done with frames if you don't mind refreshing part of the page rather than all.

              Comment

              • rpnew
                New Member
                • Aug 2007
                • 189

                #8
                Originally posted by gnawz
                "can submit the page to itself and according to parameters you can change the page layout."

                HOW DO I DO THE ABOVE...?!?
                Hi,
                This means what ever the variable you are getting for that page you can hide or show contents accordingly.
                e.g. Like you have one link. On clicking that you want that your pic must be shown then send one variable to same page and just unhide the pic or load the pic on same page.
                All the code would be on same page its just you are manupulating the layout accordingly.

                But i would say Ajax will be easier approach to do what you want..

                Regards,
                RP

                Comment

                • gnawz
                  New Member
                  • Nov 2006
                  • 64

                  #9
                  Thanks alot

                  Iam nw going to learn some AJAX and try the PHp option as ell..

                  Comment

                  • kierandes
                    New Member
                    • Apr 2008
                    • 25

                    #10
                    Originally posted by gnawz
                    Dear experts,

                    I need some one to tell me how to design a website in php or other scripting technology such that
                    when a user clicks on links or an image in the site, information is displayed without loading another page

                    The way this site (http://www.dotsavvysfr ica.com) was designed although I know flas was used.
                    If anyone knows of a way how to do it, using php, html and javascript, please let me know
                    You could use javascript to create a iframe with the irl you need to display. It would display the data within that page while keeping the page you have open where it is.

                    Either that or use Ajax as someone previously suggested.

                    Comment

                    Working...