AJAX页面 - 请寻找有关下一步的建议 [英] AJAX Page - looking for advice about next step please

查看:55
本文介绍了AJAX页面 - 请寻找有关下一步的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过这篇文章:
http://www.oracle.com/technology/pub...lman-ajax.html

从阅读开始就认为它''有趣的是在我的网站上尝试一些Ajax。


我真正想做的是在我的网站上设置一个小的ajax小部件,这样如果人们想查看更多的ecard缩略图,他们可以点击一下next / prev图标来查看下一个/前一个8缩略图ecard图像。我想在某种程度上我希望它类似于flickr.com上使用的缩略图小部件。


我已经设法在这个演示页面上运行了一小段ajax :

http://jimpix.co.uk /ajax01/001.asp


如果输入数字 - 例如1进入文本字段,并从中选项卡,然后显示8个图像。如果您更改了数字,然后再次标记,则会更新图像。


我想做的是让图像允许下一个/上一个选项,但是我我现在被卡住了!


我希望用基本的超链接做到这一点,但是我无法弄清楚用户可以点击的按钮/链接/图像的语法,这将把他们带到背景 002.asp页面 - 所以不必输入数字,我希望他们能够点击图像,例如,查看下面的8个图像。


我没有问题与asp页面显示接下来的8条消息 - 我的查询更多的是关于如何格式化HTML / Javascript等,与asp页面链接 - 因为我试图使用AJAX来在后台工作,而不是简单的超链接,这将很容易...


任何帮助非常感谢...为模糊的查询道歉 - 我想我知道我想做什么,除了我相当简单的起点,我不知道从哪里开始。


谢谢


Jim

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 site, 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 hoping to do 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

推荐答案

使用您在图像的onclick中触发Ajax请求的代码,例如
Use the code that you use to trigger the Ajax request in the onclick of the image, e.g.
展开 | 选择 | Wrap | 行号


感谢您的回复。你的意思是在文本输入字段中取这个:

Thanks for the reply. Do you mean to take this, in the text input field:

展开 | 选择 | Wrap | 行号



感谢您的回复。你的意思是在文本输入字段中取这个:

Thanks for the reply. Do you mean to take this, in the text input field:

展开 | 选择 | Wrap | 行号


这篇关于AJAX页面 - 请寻找有关下一步的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆