473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Refreshing part of a page

PSN
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.

Nov 2 '06 #1
22 2334
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.javascript, an excellent group with fast responses.
Nov 2 '06 #2
<comp.lang.php>
<PSN>
<2 Nov 2006 05:56:14 -0800>
<11**********************@b28g2000cwb.googlegroups .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 .
--
www.phpchatroom.co.uk
Nov 3 '06 #3
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

Nov 4 '06 #4
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.
js*******@attglobal.net
==================
Nov 4 '06 #5
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

Nov 4 '06 #6
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.
js*******@attglobal.net
==================
Nov 5 '06 #7
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/

Nov 5 '06 #8
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.
js*******@attglobal.net
==================
Nov 5 '06 #9
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/

Nov 6 '06 #10
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

Nov 6 '06 #11
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.
js*******@attglobal.net
==================
Nov 6 '06 #12
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

Nov 6 '06 #13
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.
js*******@attglobal.net
==================
Nov 6 '06 #14
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.

http://www.w3schools.com/about/about_refsnes.asp

http://hotscripts.com/about/index.html
http://sourceforge.net/docs/about

--
Jock

Nov 6 '06 #15
Erwin offers Jerry and John a nice cool beer.
Nov 6 '06 #16
John Dunlop wrote:
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.
In case you forgot, here's your statement.

Don't think I'd recommend W3Schools, Erwin, especially if their HTML
tutorial is anything to go by.
>
>>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.
Based on a single course.
>
>>And you don't offer any alternatives.


Does my criticism not stand whether or not I offer any alternatives?
If you're going to criticize, you should offer alternatives. Otherwise
you're just trolling.
>
>>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.
But you tell people not to recommend w3schools based on what you admit
is looking at a single course.
>
>>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.
Not really. The w3schools courses are not all created by one person,
either. And I don't see where they are making any money off of the
site. Look at their header:

"W3 Schools - The best things in life are free".

Or are you talking about the AdSense ads? I doubt they're making much
off of those, either.
http://www.w3schools.com/about/about_refsnes.asp

http://hotscripts.com/about/index.html
http://sourceforge.net/docs/about
Sure, it's run by a consulting company. But I highly doubt they make
their living off of their website. They probably pay for their hosting
with AdSense - but not a whole lot more.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 6 '06 #17
Erwin Moller wrote:
Erwin offers Jerry and John a nice cool beer.
It looks like I too need beer though I don't drink liquor. I'm not
here for anything about W3Schools, but I'm extremely sick of that
stupid chap who don't offer anything good but trying to show off and
acting like a moderator.

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

Nov 7 '06 #18
R. Rajesh Jeba Anbiah wrote:
Erwin Moller wrote:
>Erwin offers Jerry and John a nice cool beer.

It looks like I too need beer though I don't drink liquor.
A nice tea perhaps? Or some cola?
I have them all. :-)

I'm not
here for anything about W3Schools, but I'm extremely sick of that
stupid chap who don't offer anything good but trying to show off and
acting like a moderator.
Yes, sometimes things heat up on usenet for no appearent reason (for the
outsider). Different cultures, different people, different way to express
opinions, and they all come together here on usenet.
I try to think that people care a lot and get excited because of their drive
for the matter. (to give the matter a positive twist.)
About Jerry: he is very precise (which is good for a programmer) and says
straight what he thinks, that sometimes irritates people, but he knows his
business. I had some flaming going on with Jerry too in the past, but I
won't let that happen again. :-)
Waste of energy to flame each other IMHO, but if both sides want to make
some point, there is little to stop them of course.
Except to deal a cool beer around (or a tea) when things heat up. ;-)
It is only about zeros and ones in the end. :P

Best of luck!

Regards,
Erwin Moller
>
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Nov 7 '06 #19
Erwin Moller wrote:
R. Rajesh Jeba Anbiah wrote:
Erwin Moller wrote:
Erwin offers Jerry and John a nice cool beer.
It looks like I too need beer though I don't drink liquor.

A nice tea perhaps? Or some cola?
I have them all. :-)
Cola guys add pesticides too; so tea is ok:-)

<snip>
Yes, sometimes things heat up on usenet for no appearent reason (for the
outsider). Different cultures, different people, different way to express
opinions, and they all come together here on usenet.
I try to think that people care a lot and get excited because of their drive
for the matter.
Well said and sounding like someone from Norway:-) Truely saint, of
course:-) Peace to everyone.

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

Nov 7 '06 #20
<comp.lang.php>
<Erwin Moller>
<Tue, 07 Nov 2006 10:28:13 +0100>
<45*********************@news.xs4all.nl>
I had some flaming going on with Jerry too in the past
Stuckle could start a argument in a empty room .
--
www.phpchatroom.co.uk
Nov 7 '06 #21
Jerry Stuckle:

[after I said that I don't think I would recommend W3Schools - J.D.]
Based on a single course.
Here's what I meant. If W3Schools - that group of three Norwegian
authors - allows an HTML tutorial of that quality to be associated with
them, I would be wary of other tutorials written by them. That's all.
You then read far too much between the lines and decided that in saying
this I "disparaged" their PHP tutorial.
If you're going to criticize, you should offer alternatives.
Don't you think criticism alone could help someone? If nothing else,
wouldn't it make someone think twice about W3Schools who would
otherwise take what they say as gospel?
Otherwise you're just trolling.
Can't we keep this civilised?
But you tell people not to recommend w3schools based on what you admit
is looking at a single course.
Geez, Jerry, you ain't half draggin' this out! Nowhere did I _tell_
anyone not to recommend W3Schools. I said that I don't think _I_ would
recommend it, 'especially if their HTML tutorial is anything to go by'.
Like it or lump it.

--
Jock

Nov 8 '06 #22
John Dunlop wrote:
Jerry Stuckle:

[after I said that I don't think I would recommend W3Schools - J.D.]

>>Based on a single course.


Here's what I meant. If W3Schools - that group of three Norwegian
authors - allows an HTML tutorial of that quality to be associated with
them, I would be wary of other tutorials written by them. That's all.
You then read far too much between the lines and decided that in saying
this I "disparaged" their PHP tutorial.
I'm just reading what you wrote. Nothing more, nothing less.
>
>>If you're going to criticize, you should offer alternatives.


Don't you think criticism alone could help someone? If nothing else,
wouldn't it make someone think twice about W3Schools who would
otherwise take what they say as gospel?
Not if the criticism is based on the contents of a completely different
course. Now if they were asking about PHP courses and you responded
with criticism specific to the PHP course, that would be appropriate.

What you said is like me saying "Don't believe everything John Posts.
He has some bad responses in the xxx newsgroup" - where xxx is
completely unrelated to PHP.
>
>>Otherwise you're just trolling.


Can't we keep this civilised?
It is.
>
>>But you tell people not to recommend w3schools based on what you admit
is looking at a single course.


Geez, Jerry, you ain't half draggin' this out! Nowhere did I _tell_
anyone not to recommend W3Schools. I said that I don't think _I_ would
recommend it, 'especially if their HTML tutorial is anything to go by'.
Like it or lump it.
Yep. I don't like it, and I called you on it. Like it or lump it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 9 '06 #23

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

60
by: A.Translator | last post by:
I have been struggling with a page that is based on a table structure (because that is all I am feeling comfortable with at the moment) styled with css. One of the problems I run in to is Opera...
9
by: Glenn | last post by:
Is it possible to only redraw a portion of an HTML page as part of a request? With each request, I am updating number of results but do not want to lose where you were in a page. I created...
2
by: jdi | last post by:
Hello, I have a seemingly basic question about ASP.NET. I would like to create a page containing an image, which keeps swapping the url of the image source, without refreshing the entire page. ...
5
by: Jensen Bredal | last post by:
Hello, I need to display self refreshing information on a web page written with asp.net. I would image that the info would be displayed either as part of a user control or a web control. How can...
4
by: Dan | last post by:
Hi, i'm not sure to understand the difference between refreshing the pagina by clicking on 'refresh' in the browser and a postback. What i think it is: Suppose a page with a form containing a...
13
by: honey99 | last post by:
Hi! I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window...
0
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
1
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.