• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1428
  • Last Modified:

How to add delay in ASP.Net / Ajax CallBack function ?

Hello,
We are developing a site where a customer can come and browse products.
We do not want a standard paging, but we want a slider type and Next and Preview like paging. We have implemented this using ASP.Net and Ajax. But now we want when a product scrolling do automatically on mouse over of Next and Previous buttons. We also implemented this by using onmouseover and callback functions.
But we cannot get desire result, we a soft scrollinng.
How can we do this ?
Preview Link :
http://www.dotcompreview.com/alwaleedoptics.com/cproductlisting.aspx

We have attached design and cs files.

Is there any other way to do it ?

Thanks in advance.

cproductlisting.aspx.txt
cproductlisting.aspx.cs.txt
0
dotsandcoms
Asked:
dotsandcoms
  • 3
  • 2
1 Solution
 
sybeCommented:
Put *all* results in a broad scrollable div (which is only partially displayed). Attach some javascript to the buttons and the slider, which make the div scroll in response.
0
 
dotsandcomsAuthor Commented:
By adding all the result at a time will take time to load page, considering that we will have around 150 products to display.

Will it be possible with DataList ?
0
 
sybeCommented:
150 in one view? Because the current views shows about 40 items, which seems doable.

Delaying a javascript call can be done with the javascript setTimeout() function.
http://www.w3schools.com/js/js_timing.asp
0
 
dotsandcomsAuthor Commented:
I got Solution by using DataList and Javascript.
Please see attached File.
js2.js.txt
productCatalog.aspx.cs.txt
productCatalog.aspx.txt
scroll.js.txt
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now