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

how is this done?

hello,

i was wondering how something was done on an msn page:
http://content.health.msn.com/conten..._fast_food.htm

The order and avoid buttons don't seem to do a post back. The screen doesn't
flicker or anything. Any ideas on how this was done?

thanks,
mattie
Nov 18 '05 #1
4 903
The image is inside a hyperlink, which has a client-side OnClick event
handler that is invoking the client-side JavaScript called "swap()".

You can see this by simply looking at the page's source code.

"mattie" <ma****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
hello,

i was wondering how something was done on an msn page:
http://content.health.msn.com/conten..._fast_food.htm

The order and avoid buttons don't seem to do a post back. The screen
doesn't
flicker or anything. Any ideas on how this was done?

thanks,
mattie

Nov 18 '05 #2
This is DHTML:
Javascript is used here, and it's client side scripting

Henri
"mattie" <ma****@discussions.microsoft.com> a écrit dans le message de
news:F8**********************************@microsof t.com...
hello,

i was wondering how something was done on an msn page:
http://content.health.msn.com/conten..._fast_food.htm

The order and avoid buttons don't seem to do a post back. The screen doesn't flicker or anything. Any ideas on how this was done?

thanks,
mattie


Nov 18 '05 #3
Just right click on the page, choose "view source", you will found that the
code is at around line 238..

like wat other say, it using client script.
wei chung

"mattie" wrote:
hello,

i was wondering how something was done on an msn page:
http://content.health.msn.com/conten..._fast_food.htm

The order and avoid buttons don't seem to do a post back. The screen doesn't
flicker or anything. Any ideas on how this was done?

thanks,
mattie

Nov 18 '05 #4
thanks.

"weichung [MCSD, MCDBA]" wrote:
Just right click on the page, choose "view source", you will found that the
code is at around line 238..

like wat other say, it using client script.
wei chung

"mattie" wrote:
hello,

i was wondering how something was done on an msn page:
http://content.health.msn.com/conten..._fast_food.htm

The order and avoid buttons don't seem to do a post back. The screen doesn't
flicker or anything. Any ideas on how this was done?

thanks,
mattie

Nov 18 '05 #5

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

Similar topics

6
by: Sugapablo | last post by:
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website,...
9
by: Steven T. Hatton | last post by:
This was written for the gnu.g++.help list. It rather clearly spells out the most important feature of Java that I believe C++ lacks. I really don't believe the C++ Standard sepcifies enough for a...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
59
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at...
17
by: blackswift | last post by:
code is from Warsaw university's CEPC code . They are world champion in the ICPC finals. #include <iostream> #include <cstdio> #include <algorithm> using namespace std; #define FOR(i,a,b)...
12
by: Ark | last post by:
Hello NG, I arrange data in structs like { members... uint16_t crc; more members, maybe... } Then I need to save them, up to and including crc, in non-volatile memory or a file, as the case...
15
by: Chris | last post by:
This is just some dummy code to mimic what's being done in the real code. The actual code is python which is used as a scripting language in a third party app. The data structure returned by the...
3
dfound
by: dfound | last post by:
#include<windows.h> #include<dos.h> #include<dir.h> #include<fstream.h> #include<stdio.h> #include<process.h> #include"resource.h" //resource header file
2
by: poolboi | last post by:
hey guys, i've done most of my web app. for searching almost done but then i got a small little problem with logging in i need to know how session tracking is done in perl if not my log in page...
2
by: Zerge | last post by:
I can launch threads just fine, but then I have to do a time.sleep(n) so the main thread from which they where launched will wait for all the threads to return. How can I detect when all threads...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.