473,395 Members | 2,151 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,395 software developers and data experts.

Refreshing Part of a Page

Is it possible to refresh only part of a page rather than reload the
entire thing?

I have dropdown box that's populated from a database using ASP that I
need refreshed but I don't want to reload the entire page. Thanks.

Feb 15 '06 #1
6 1532
<ev*******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Is it possible to refresh only part of a page rather than reload the
entire thing?

I have dropdown box that's populated from a database using ASP that I
need refreshed but I don't want to reload the entire page. Thanks.


Look into AJAX.
Feb 15 '06 #2
Or make your own AJAX like cgi script. You don't need to go learn a
comprehensive programing language add on to do this easily. Simple
add a hidden iframe to your page. set the location/src of that iframe
to your ASP script, have the asp script return something like
html->script: parent.object.additem ( "item to add to list")

If that example is too vague I give you a more specific example.

Feb 15 '06 #3
McKirahan wrote:
<ev*******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Is it possible to refresh only part of a page rather than reload the
entire thing?

I have dropdown box that's populated from a database using ASP that I
need refreshed but I don't want to reload the entire page. Thanks.

Look into AJAX.

Or frames.

--
Ian Collins.
Feb 15 '06 #4
Would the dropdown box that I'm trying to repopulate have to be in the
hidden iframe?

Feb 15 '06 #5
no. it would be part of the body. the ASP would load into the iframe,
it;s returned source should look like:

<html><script>
parent.getElementById("MyDropDownBox").addItem("It em Name");
</script></html>

or something like that, I don't remember the exact parameters. Check a
DOM ref guide, but I've tested code like that and got it to work before

Feb 15 '06 #6
McKirahan said the following on 2/15/2006 2:40 PM:
<ev*******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Is it possible to refresh only part of a page rather than reload the
entire thing?

I have dropdown box that's populated from a database using ASP that I
need refreshed but I don't want to reload the entire page. Thanks.


Look into AJAX.


And then find something that is more cross-browser and dependable?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 15 '06 #7

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...
22
by: PSN | last post by:
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,...
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: 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
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:
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
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.