Refreshing part of a page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PSN

    #1

    Refreshing part of a page

    Hi all,
    Can some one help me if it is possible to refresh a part of a page,
    without reloading the whole page. Let's say, i want to add a small
    message box to my webpage. After writing a message, the user presses
    the send button and i want only this part of the page to refresh and
    give him a status message saying his message was successfully received.


    If yes, how can i do it ??

    thanks.

  • Erwin Moller

    #2
    Re: Refreshing part of a page

    PSN wrote:
    Hi all,
    Can some one help me if it is possible to refresh a part of a page,
    without reloading the whole page. Let's say, i want to add a small
    message box to my webpage. After writing a message, the user presses
    the send button and i want only this part of the page to refresh and
    give him a status message saying his message was successfully received.
    >
    >
    If yes, how can i do it ??
    >
    thanks.
    Hi,

    This can be done relatively easy with JavaScript.
    PHP only produces output for a browser and is thus not involved in
    displaying parts of a page.
    The technics you could use are:
    1) An IFrame
    or
    2) AJAX

    Have a look here for a quickstart:
    www.w3schools.com and look at AJAX.

    Regards,
    Erwin Moller

    PS: Since this is not a PHP related question, I suggest you continue in
    comp.lang.javas cript, an excellent group with fast responses.

    Comment

    • Krustov

      #3
      Re: Refreshing part of a page

      <comp.lang.ph p>
      <PSN>
      <2 Nov 2006 05:56:14 -0800>
      <1162475774.642 126.308530@b28g 2000cwb.googleg roups.com>
      Can some one help me if it is possible to refresh a part of a page,
      without reloading the whole page. Let's say, i want to add a small
      message box to my webpage. After writing a message, the user presses
      the send button and i want only this part of the page to refresh and
      give him a status message saying his message was successfully received.
      >
      >
      If yes, how can i do it ??
      >
      I used a <iframefor the script shown below .

      From the sound of it you wont be setting the page to refresh every 15
      seconds or whatever - so - you wont get the flicker effect .


      --

      Comment

      • John Dunlop

        #4
        Re: Refreshing part of a page

        Erwin Moller:
        Have a look here for a quickstart:
        www.w3schools.com and look at AJAX.
        Don't think I'd recommend W3Schools, Erwin, especially if their HTML
        tutorial is anything to go by. Much time and effort is spent in Web
        authoring newsgroups debunking the myths and false impressions
        propagated by the W3Schools' HTML tutorial. For example, in spite of
        what they say in later pages, the introduction fosters the common
        misconception that tags are instructions to browsers how to display Web
        pages.

        I am of course making the assumption that the other tutorials are
        similarly poor in quality. Criticism of their PHP tutorial would be
        appreciated.

        --
        Jock

        Comment

        • Jerry Stuckle

          #5
          Re: Refreshing part of a page

          John Dunlop wrote:
          Erwin Moller:
          >
          >
          >>Have a look here for a quickstart:
          >>www.w3schools.com and look at AJAX.
          >
          >
          Don't think I'd recommend W3Schools, Erwin, especially if their HTML
          tutorial is anything to go by. Much time and effort is spent in Web
          authoring newsgroups debunking the myths and false impressions
          propagated by the W3Schools' HTML tutorial. For example, in spite of
          what they say in later pages, the introduction fosters the common
          misconception that tags are instructions to browsers how to display Web
          pages.
          >
          I am of course making the assumption that the other tutorials are
          similarly poor in quality. Criticism of their PHP tutorial would be
          appreciated.
          >
          Don't make assumptions unless you've checked them out.

          I recommend several of the w3schools courses. And I use them regularly
          for references myself.


          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • John Dunlop

            #6
            Re: Refreshing part of a page

            Jerry Stuckle:
            I recommend several of the w3schools courses.
            Fine, but I was largely railing against their HTML tutorial. Not
            having read their other tutorials, I am open to opinions about them.
            Discussing their PHP one would be on-topic.

            --
            Jock

            Comment

            • Jerry Stuckle

              #7
              Re: Refreshing part of a page

              John Dunlop wrote:
              Jerry Stuckle:
              >
              >
              >>I recommend several of the w3schools courses.
              >
              >
              Fine, but I was largely railing against their HTML tutorial. Not
              having read their other tutorials, I am open to opinions about them.
              Discussing their PHP one would be on-topic.
              >
              If you are not familiar with their other courses, I recommend you not
              comment on them. And this is not the place to discuss their HTML courses.

              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstucklex@attgl obal.net
              =============== ===

              Comment

              • R. Rajesh Jeba Anbiah

                #8
                |OT| Re: Refreshing part of a page

                Jerry Stuckle wrote:
                John Dunlop wrote:
                Jerry Stuckle:
                >I recommend several of the w3schools courses.
                Fine, but I was largely railing against their HTML tutorial. Not
                having read their other tutorials, I am open to opinions about them.
                Discussing their PHP one would be on-topic.
                >
                If you are not familiar with their other courses, I recommend you not
                comment on them.
                What other tutorials are you familar with?
                And this is not the place to discuss their HTML courses.
                And what are you discussing here then?

                --
                <?php echo 'Just another PHP saint'; ?>
                Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

                Comment

                • Jerry Stuckle

                  #9
                  Re: |OT| Re: Refreshing part of a page

                  R. Rajesh Jeba Anbiah wrote:
                  Jerry Stuckle wrote:
                  >
                  >>John Dunlop wrote:
                  >>
                  >>>Jerry Stuckle:
                  >>>
                  >>>
                  >>>>I recommend several of the w3schools courses.
                  >>>
                  >> Fine, but I was largely railing against their HTML tutorial. Not
                  >>>having read their other tutorials, I am open to opinions about them.
                  >>>Discussing their PHP one would be on-topic.
                  >>
                  >>If you are not familiar with their other courses, I recommend you not
                  >>comment on them.
                  >
                  >
                  What other tutorials are you familar with?
                  >
                  >
                  >And this is not the place to discuss their HTML courses.
                  >
                  >
                  And what are you discussing here then?
                  >
                  --
                  <?php echo 'Just another PHP saint'; ?>
                  Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
                  >
                  I am standing up for their PHP course - which is on topic of this
                  newsgroup. Another poster disparaged this course without even looking
                  at it, based on what he's heard about their HTML course.

                  What are you discussing?

                  --
                  =============== ===
                  Remove the "x" from my email address
                  Jerry Stuckle
                  JDS Computer Training Corp.
                  jstucklex@attgl obal.net
                  =============== ===

                  Comment

                  • R. Rajesh Jeba Anbiah

                    #10
                    Re: |OT| Re: Refreshing part of a page

                    Jerry Stuckle wrote:
                    <snip>
                    I am standing up for their PHP course - which is on topic of this
                    newsgroup. Another poster disparaged this course without even looking
                    at it, based on what he's heard about their HTML course.
                    >
                    What are you discussing?
                    If you can't even remember what you said in this thread, stop the
                    nonsense further.

                    --
                    <?php echo 'Just another PHP saint'; ?>
                    Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

                    Comment

                    • Erwin Moller

                      #11
                      Re: Refreshing part of a page

                      John Dunlop wrote:
                      Erwin Moller:
                      >
                      >Have a look here for a quickstart:
                      >www.w3schools.com and look at AJAX.
                      >
                      Don't think I'd recommend W3Schools, Erwin, especially if their HTML
                      tutorial is anything to go by. Much time and effort is spent in Web
                      authoring newsgroups debunking the myths and false impressions
                      propagated by the W3Schools' HTML tutorial. For example, in spite of
                      what they say in later pages, the introduction fosters the common
                      misconception that tags are instructions to browsers how to display Web
                      pages.
                      >
                      I am of course making the assumption that the other tutorials are
                      similarly poor in quality. Criticism of their PHP tutorial would be
                      appreciated.
                      >
                      Hi John,

                      You may be right, I never looked at the HTML course.
                      All courses on w3schools I did look at gave me a good impression.
                      Of course w3schools is not a place to master a technic, but it is a great
                      place to get a quick overview so you know at least what is involved in a
                      certain technic.
                      Darn, I heard so much about AJAX some time ago it made me nervous. SO I
                      checked their guide, and I knew within the hour what it all was about, and
                      also recognized the technic because I used it years ago, only without the
                      handy HTTPXML-object thingy or whatever name it gets in different browsers.

                      For an expert it is easy to spot cutted corners by w3schools, and surely
                      you'll find things that are not 100% correct.
                      The advantage is that they provide a quick overview without the details. In
                      most cases you don't care about the details when just starting with some
                      technic.
                      And above all: I am too lazy to keep up an online trainingcenter, so I have
                      no right to complain. :-)

                      Personally I REALLY LIKE quickstart guides as presented by w3schools.
                      I really don't like megabytes/hundreds pages of technical stuff before
                      getting something done.
                      I like to see a technic at work, try it out myself, and if the technic and I
                      are compatable, I dive into the Gory Details. :-)

                      But of course, this is just a matter of taste. I think different people
                      learn in different ways. I am just the 'hands-on' type of guy, so I advise
                      w3schools a lot.

                      just my 2 cent in defense of w3schools. :-)

                      Regards,
                      Erwin Moller

                      Comment

                      • Jerry Stuckle

                        #12
                        Re: |OT| Re: Refreshing part of a page

                        R. Rajesh Jeba Anbiah wrote:
                        Jerry Stuckle wrote:
                        <snip>
                        >
                        >>I am standing up for their PHP course - which is on topic of this
                        >>newsgroup. Another poster disparaged this course without even looking
                        >>at it, based on what he's heard about their HTML course.
                        >>
                        >>What are you discussing?
                        >
                        >
                        If you can't even remember what you said in this thread, stop the
                        nonsense further.
                        >
                        --
                        <?php echo 'Just another PHP saint'; ?>
                        Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
                        >
                        Oh, I remember all right. Maybe you could use a course in basic English.

                        --
                        =============== ===
                        Remove the "x" from my email address
                        Jerry Stuckle
                        JDS Computer Training Corp.
                        jstucklex@attgl obal.net
                        =============== ===

                        Comment

                        • John Dunlop

                          #13
                          Re: |OT| W3Schools

                          Jerry Stuckle:

                          [re W3Schools' PHP tutorial]
                          Another poster disparaged this course without even looking at it,
                          Talking about me? Either (a) you've spectacularly misconstrued my
                          remarks, in which case I can only point out that what I was talking
                          about was not specifically their PHP tutorial - I haven't even read it,
                          ferchrissakes! - but W3Schools in general; or (b) you've made egregious
                          logical leaps and bounds, without so much as the shame to cover them
                          up, to arrive at the conclusion that I "disparaged " their PHP tutorial.

                          Put words in my mouth if you like, Jerry, but the thread is there for
                          all to read. Where I said that I wouldn't recommend W3Schools, I also
                          qualified my statement with 'especially if their HTML tutorial is
                          anything to go by'. In other words, if the quality of their HTML
                          tutorial is representative of their other tutorials - and this
                          condition I made explicit - there are probably more technically
                          accurate and less misleading Websites to recommend. Besides, to drag
                          this thread kicking and screaming on-topic, I _encouraged_ discussion
                          of their PHP tutorial.
                          based on what he's heard about their HTML course.
                          Me again? More what I've read than what I've heard. Their HTML
                          tutorial is shamateurish.

                          --
                          Jock

                          Comment

                          • Jerry Stuckle

                            #14
                            Re: |OT| W3Schools

                            John Dunlop wrote:
                            Jerry Stuckle:
                            >
                            [re W3Schools' PHP tutorial]
                            >
                            >
                            >>Another poster disparaged this course without even looking at it,
                            >
                            >
                            Talking about me? Either (a) you've spectacularly misconstrued my
                            remarks, in which case I can only point out that what I was talking
                            about was not specifically their PHP tutorial - I haven't even read it,
                            ferchrissakes! - but W3Schools in general; or (b) you've made egregious
                            logical leaps and bounds, without so much as the shame to cover them
                            up, to arrive at the conclusion that I "disparaged " their PHP tutorial.
                            >
                            Put words in my mouth if you like, Jerry, but the thread is there for
                            all to read. Where I said that I wouldn't recommend W3Schools, I also
                            qualified my statement with 'especially if their HTML tutorial is
                            anything to go by'. In other words, if the quality of their HTML
                            tutorial is representative of their other tutorials - and this
                            condition I made explicit - there are probably more technically
                            accurate and less misleading Websites to recommend. Besides, to drag
                            this thread kicking and screaming on-topic, I _encouraged_ discussion
                            of their PHP tutorial.
                            >
                            >
                            >>based on what he's heard about their HTML course.
                            >
                            >
                            Me again? More what I've read than what I've heard. Their HTML
                            tutorial is shamateurish.
                            >
                            Yes, John, I'm talking about you. The discussion was about PHP
                            tutorials, and Erwin the courses at w3schools.

                            And you had to hop in there and comment about how you would not
                            recommend w3schools - based on your experience with a single course.
                            And you don't offer any alternatives.

                            And if you have a problem with one Microsoft product, do you claim ALL
                            products from Microsoft are bad? Or if you use one thing from
                            HotScripts, SourceForge or whatever, do you claim everything they have
                            is terrible?

                            --
                            =============== ===
                            Remove the "x" from my email address
                            Jerry Stuckle
                            JDS Computer Training Corp.
                            jstucklex@attgl obal.net
                            =============== ===

                            Comment

                            • John Dunlop

                              #15
                              Re: |OT| W3Schools

                              Jerry Stuckle:
                              The discussion was about PHP tutorials, and Erwin the courses at w3schools.
                              _When_? We didn't start off talking about PHP tutorials. I brought
                              up the W3Schools' PHP tutorial first, because I thought that a
                              discussion of it would be appreciated. You then turned my criticism of
                              their HTML tutorial specifically and W3Schools in general, by some
                              weird logic, into an attack on their PHP tutorial. I did not, and
                              would not, "disparage" or otherwise comment on their PHP tutorial
                              before reading it.
                              And you had to hop in there and comment about how you would not
                              recommend w3schools - based on your experience with a single course.
                              Yes, if that is the quality of tutorial churned out by W3Schools.
                              And you don't offer any alternatives.
                              Does my criticism not stand whether or not I offer any alternatives?
                              And if you have a problem with one Microsoft product, do you claim ALL
                              products from Microsoft are bad?
                              Of course not, but after two, three or more problematic products, you
                              might begin to question the company as a whole.
                              Or if you use one thing from HotScripts, SourceForge or whatever, do you
                              claim everything they have is terrible?
                              HotScripts and SourceForge are fundamentally different to W3Schools,
                              or at least the image W3Schools projects, in so far as HotScripts and
                              SourceForge host packages and products created by communities of
                              developers, whereas W3Schools is three authors making money from
                              writing tutorials.



                              The page you are looking for could not be found. Return to HotScripts homepage to browse our collection of PHP, CGI, Perl, JavaScript and ASP scripts.

                              http://sourceforge.net/docs/about

                              --
                              Jock

                              Comment

                              Working...