473,387 Members | 1,621 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,387 software developers and data experts.

GMail JavaScript question

Hello Everyone,

I'm designing a webpage and I want to add an effect similar to the one
GMail uses when loading/reloading the inbox. If you'll notice, only
the section of the page that displays the mailbox is actually
reloaded. The rest of the page stays the same. Is this done via
IFrames? If not, then how can I do something similar?

Thanks in Advance,
Anthony
Jul 23 '05 #1
5 1317
On 10 Nov 2004 15:27:47 -0800, pa*******@gmail.com (Papillion) wrote:
Hello Everyone,

I'm designing a webpage and I want to add an effect similar to the one
GMail uses when loading/reloading the inbox. If you'll notice, only
the section of the page that displays the mailbox is actually
reloaded. The rest of the page stays the same. Is this done via
IFrames?


http://jibbering.com/2002/4/httprequest.html

Jim.
Jul 23 '05 #2
> http://jibbering.com/2002/4/httprequest.html

Jim.


Hi Jim,

Thanks for the URL. I am still a bit confused though. I understand how to
make requests in the formats discussed on the page you referred me to. But I
still don't understand how only *part* of the page is being reloaded without
touching the rest of it. Maybe I'm missing something subtle in the
discussion on the page you sent me. But it doesnt seem to really answer my
question.

Thanks in Advance,
Anthony
Jul 23 '05 #3
Anthony Papillion II wrote:
http://jibbering.com/2002/4/httprequest.html

Jim.

Hi Jim,

Thanks for the URL. I am still a bit confused though. I understand how to
make requests in the formats discussed on the page you referred me to. But I
still don't understand how only *part* of the page is being reloaded without
touching the rest of it. Maybe I'm missing something subtle in the
discussion on the page you sent me. But it doesnt seem to really answer my
question.


User clicks a button to view a different email.
Script makes an HTTPRequest to retrieve the information for the email.
Script modifies the .innerHTML property of a DIV tag to be equal to the
contents of the email.

The HTTPRequestObject is what he referred to.
..innerHTML is covered in the group FAQ

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #4
"Anthony Papillion II" <pa*******@gmail.com> wrote in message
news:1100134024.WnSlEdwkSAurBkwcLlSi6g@teranews...
http://jibbering.com/2002/4/httprequest.html

Jim.
Hi Jim,

Thanks for the URL. I am still a bit confused though. I understand how to
make requests in the formats discussed on the page you referred me to. But

I still don't understand how only *part* of the page is being reloaded without touching the rest of it. Maybe I'm missing something subtle in the
discussion on the page you sent me. But it doesnt seem to really answer my
question.


You grab the container for the section you want to update,
ie. a <div id='blabla'> by the help of .getElementById(...),
and change its content with either .innerHTML =..., or
by changing the nodes in the DOM-tree, with the result from
the request.

--
Dag.

Jul 23 '05 #5

Dag Sunde <me@dagsunde.com> wrote in message
news:Cc*******************@juliett.dax.net...
"Anthony Papillion II" <pa*******@gmail.com> wrote in message
news:1100134024.WnSlEdwkSAurBkwcLlSi6g@teranews...
http://jibbering.com/2002/4/httprequest.html

Jim.
Hi Jim,

Thanks for the URL. I am still a bit confused though. I understand how to make requests in the formats discussed on the page you referred me to. But I
still don't understand how only *part* of the page is being reloaded

without
touching the rest of it. Maybe I'm missing something subtle in the
discussion on the page you sent me. But it doesnt seem to really answer

my question.


You grab the container for the section you want to update,
ie. a <div id='blabla'> by the help of .getElementById(...),
and change its content with either .innerHTML =..., or
by changing the nodes in the DOM-tree, with the result from
the request.

--
Dag.


Hi Dag,

I get it now. Thanks everyone who replied. I think this should be pretty
easy to get working.

Anthony
Jul 23 '05 #6

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

Similar topics

43
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.