SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Hybrid View
-
May 21, 2007, 14:41 #1
- Join Date
- Dec 2004
- Posts
- 419
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Advice about improving AJAX "widget"
Hi,
I've read this article:
http://www.oracle.com/technology/pub...lman-ajax.html
And from reading it thought it'd be interesting to try a bit of Ajax on my site.
What I'd really like to do is to set up a little ajax widget on my homepage:
http://jimpix.co.uk/
So that if people want to view more of the ecard thumbnails, they can click little next/prev icons to view the next / previous 8 thumbnail ecard images. I suppose in a way I want it to be similar to the thumbnail widget used on flickr.com.
I've managed to get a simple bit of ajax running on this demo page:
http://jimpix.co.uk/ajax01/001.asp
If you type a number - e.g. 1 into the text field, and tab out of it, then 8 images are displayed. If you change the number, and tab out again, then the images are updated.
What I'd like to do is to have images to allow next / prev options, but I am stuck now!
I'm using to doing this with basic hyperlinks, but I can't work out the syntax to get buttons / links / images which users can click, which will take them to the "background" 002.asp page - so rather than have to type a number, I'd like them to be able to click an image, and, for example, view the next 8 images.
I don't have a problem with the asp page to display the next 8 messages - my query is more about how to format the HTML / Javascript etc, to link in with the asp page - because I am trying to use AJAX to do the work in the background, rather than have a simple hyperlink, which would be dead easy...
Any help much appreciated... apologies for the vague query - I suppose I know what I'd like to do, and apart from my rather simplistic starting point, am not sure where to go from here.
Thanks
Jim
Bookmarks