drupal模块: Ajax Slideshow
Ajax Slideshow
http://drupal.org/project/ajax_slideshow
View
CVS instructions
Modules · Content display
udig - October 17, 2009 - 12:05
Sequential presentation of any of your site nodes, using fade effect based on ajax asynchronous calls.
Why?
Indeed there are plenty of slideshow modules out there. So why creating one more?
We had to provide a good answer for the following requirements:
Show a series of content items using the fade effect.
Allow the content manager (non admin role) to fully control the contents & layout of each slide.
Allow the content manager to easily publish / unpublish the slides and set their order of appearance.
Allow the content manager to set the slides intervals.
Ensure the performance is content-agnostic i.e. allow the slideshow content to grow (number of slides and their weight) without impacting the slideshow page load time.
We could not find a module which fully suffice the above requirements (see comparison). Hence Ajax Slideshow was born.
Differentiators
Node based (vs. image based) - Differently then most of the slideshow modules (e.g. Couloir Slideshow), Ajax Slideshow is not necessarily about sequential presentation of images. Actually Ajax Slideshow is completely indifferent about the content it presents - each slide presents a complete node that may have any layout and content.
Non Gallery-like - the term slideshow is a bit over-used. This module does not provide Gallery functionality. It only does what its name states - presenting a slideshow. A more gallery like alternative, if that's what you're looking for would be the views slideshow module.
Performance & Scalability - Differently then Views Rotator it does not pull up all the presented content before the page loads but rather pull only the necessary content for the coming slide. This means that your slideshow page load time is not dependent on the amount and size of the slides created by the content manager.
Features
Instantly setup a nodes based slideshow
相关文档:
这几天工作,用的是AJAX框架,结果导出Excel表格的时候无法导出。
解决办法:1、在.aspx页面首行中<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JinHuoDan.aspx.cs" Inherits="out_store_JinHuoDan" %> 添加EnableEventValidation="false" ;
2、在UPdatePanel中添加</ContentTemplate>
......
Ajax框架 jQuery
jQuery是一款免费且开放源代码的JavaScript代码库,由John Resig创建。授权协议为GPL和MIT许可证双协议。示例代码: $("p.neat").addClass("ohmy").show("slow"); 特点轻量级经GZip压缩后传输的代码文件仅14KB,未经压缩传送的代码文件仅26KB。 jQuery 1.26版时: 档案档案行数档案Size 备注 jquery-1.2 ......
首先都是使用VS.Net2005创建一个 ASP.Net AJAX-Enabled Web Application
1、使用AJAX直接调用后台方法:
后台代码:
namespace AJAX1
{
public partial class _Default : System.Web.UI.Page
{
// 需要标识为WebMethod ......
前台代码:
<head runat="server">
<title>无标题页</title>
<script src="Ajax.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div&g ......
XMLHTTPRequest是依附于浏览器的一个组件,浏览器不同针对的组件名称也不同。XMLHTTPRequest是Firefox中组件的名称,在IE中叫XMLHTTP。“XMLHTTP”有两个优点:局部刷新、异步读取。
Ajax的实现步骤:
1、 创建异步对象:
在IE中:var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
......