Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > GMail JavaScript question

Reply
Thread Tools

GMail JavaScript question

 
 
Papillion
Guest
Posts: n/a
 
      11-10-2004
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
 
Reply With Quote
 
 
 
 
Jim Ley
Guest
Posts: n/a
 
      11-11-2004
On 10 Nov 2004 15:27:47 -0800, (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.
 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      11-11-2004
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
 
Reply With Quote
 
Dag Sunde
Guest
Posts: n/a
 
      11-11-2004
"Anthony Papillion II" <> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing GMail account from GMail Groups Ramkumar Computer Support 2 09-25-2005 09:21 AM
gmail blocks .rar files from non-gmail address kritaly Computer Support 3 08-18-2005 12:00 AM
Automatic Yahoo!mail or Gmail login by Javascript Stanley Javascript 12 04-13-2005 10:46 PM
6 gmail accounts available, post your email here or to gmail@thing.dyndns.org thing NZ Computing 6 12-01-2004 11:40 PM
How does gmail hide the javascript? Barman Brakjoller Javascript 9 09-09-2004 06:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57