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

Very simple AJAX question

I have an online store catalog. On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
//add client-side script to preload ALL possible pictures for this
category
//of the catalog?
}

Thanks!

Steven
Nov 19 '08 #1
2 1188
On Nov 19, 7:03*pm, "Steven" <sedison@protronix_nospam_.comwrote:
I have an online store catalog. *On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. *Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? *My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
* //add client-side script to preload ALL possible pictures for this
category
* //of the catalog?

}

Thanks!

Steven
Hi Steven,

it would work without preload. If you have an Image control in
ListView, the UpdatePanel will manage updates.
Nov 19 '08 #2
Awesome, I'm assuming this would include an image button?
Thanks for your response.

Steven

"Alexey Smirnov" <al************@gmail.comwrote in message
news:25**********************************@n10g2000 yqm.googlegroups.com...
On Nov 19, 7:03 pm, "Steven" <sedison@protronix_nospam_.comwrote:
I have an online store catalog. On the page that displays all the category
items (like "Dresses") I have a ListView with an embedded DataPager, and
all
this is wrapped with an AJAX UpdatePanel so the whole page doesn't have to
refresh to get the next page of items. Do I have to preload all the images
with client-side script on the initial load of the page, or is the handled
somehow through the UpdatePanel during subsequent async updates? My guess
is I have to load the pictures when the page initially loads....?

if(!IsPostBack && !ScriptManager1.IsInAsyncPostBack)
{
//add client-side script to preload ALL possible pictures for this
category
//of the catalog?

}

Thanks!

Steven
Hi Steven,

it would work without preload. If you have an Image control in
ListView, the UpdatePanel will manage updates.
Nov 20 '08 #3

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

Similar topics

2
by: dondraper | last post by:
I have an application that uses a popular but simple set of JavaScript routines that implement an AJAX call used to populate a drop-down. It works for thousands of user but I have one customer...
4
by: Mason Barge | last post by:
I'm learning how to build a website. So far I've gotten pretty good with HTML, CSS, and Paint Shop Pro, and I'm currenly learning the basics of Javascript. I'm hoping, eventually, to build and...
7
by: Ivan Marsh | last post by:
Hey Folks, I'm having a heck of a time wrapping mind around AJAX. Anyone know of a simple, straight-forward example for pulling a simple query from mysql with PHP using AJAX? As I...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
1
by: eddie | last post by:
I have a form. The form submits correctly and the php script GET's the ?variables=whatever&variables2=whatever2, but when I try and use AJAX, I receive no errors, my innerHTML is changed with the...
1
by: Boris Twila | last post by:
I just want to have 1 drop down list fill the other drop down list without a round trip. Is there some really simple ajax thing i can copy and use, or is it a big deal do i habe to install an...
0
by: minnie | last post by:
An AJAX Simple Example for PHP Article from http://www.joyistar.com Introduction: AJAX WebShop 3 Beta2 supports PHP programming by integrating PHP5 development environment. Here we will give an...
3
by: cold80 | last post by:
I was just doing a performance test in order to see the benefit of using AJAX instead of doing a postback on the server. So I have a simple page that performs a request to the server and write a...
3
by: Tarik Monem | last post by:
You guys have been very helpful. Even if the solution was not presented in the reply, then you would at least spark a thought which would lead to the solution and I am very grateful for your...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.