Javascriptµ÷ÓÃWebserviceµÄ¶àÖÖ·½·¨
ͨ¹ýxmlhttp+webservice(Ôʼ·½·¨)
ÔÎĵØÖ·:http://netboy.cnblogs.com/archive/2006/02/18/333260.html
view plaincopy to clipboardprint?
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[webservice(namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service ()
{
//uncomment the following line if using designed components
//InitializeComponent();
}
[webmethod]
public string SayHelloTo(string Name)
{
return "Hello "+Name;
}
}
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[webservice(namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service ()
{
//uncomment the following line if using designed components
//InitializeComponent();
}
[webmethod]
public string SayHelloTo(string Name)
{
return "Hello "+Name;
}
}
»¹ÊÇË×Á˵㡣:)
2. jsµ÷ÓÃwebservice+xmlhttpµÄʵÏÖ²¿·Ö¡£
view plaincopy to clipboardprint?
<html>
<title>Call webservice with javascript and xmlhttp.</title>
<body>
<mce:script language="javascript"&
Ïà¹ØÎĵµ£º
Ò»¸ö¹«ÓÃÀࣺflash.external.ExternalInterface£»
¸ÃÀàÓÐÁ½¸öÏà¹Ø·½·¨£º
1¡¢µ÷ÓÃjavascriptº¯Êý£»
ExternalInterface.call(´jsº¯ÊýÃû´[,ÒÔ¶ººÅ¸ô¿ªµÄ¶à¸ö²ÎÊý]);
ÆäÖÐjsº¯ÊýÃûΪÔÚjavascriptÖÐÉêÃ÷µÄº¯ÊýÃû³Æ£¬
´«µÝµÄ²ÎÊý¿ÉÒÔÊÇasÖÐÈκÎÀàÐ͵ÄÊý¾Ý£¬ÕâЩ²ÎÊý½«±»×Ô¶¯×ª»»³Éjs±äÁ¿£»
2¡¢×¢²ájsÖпÉÓÃµÄ»Ø ......
¸ÕÔÚCSDNÉÏ¿´µ½Ò»ÆªJAVASCRIPTµÄÃæÊÔÌâÄ¿£¬ÆäÖÐÓÐÒ»¸öÌâÄ¿ÊǹØÓÚjavascript¹Ø¼ü×ÖµÄÎÊÌ⣬ÊÔ×öÁËһϣ¬½á¹û×ö´íÁË¡£°¦¡£º¹Ò»¸ö
ÓÚÊÇÉÏÍøÕÒÁËһϣ¬Ôڴ˼ǼÏÂÀ´£¬ÒÔ×ÔÃã¡£
Javascript¹Ø¼ü×Ö(Reserved
Words)ÊÇÖ¸ÔÚJavascriptÓïÑÔÖÐÓÐÌØ¶¨º¬Ò壬³ÉΪJavascriptÓï·¨ÖÐÒ»²¿·ÖµÄÄÇЩ×Ö¡£Javascript¹Ø¼ü×ÖÊDz»ÄÜ×÷Ϊ±äÁ¿Ãû
......
Ò»¡¢Ö÷Ò³Ãæ(²ÉÓÃjspʵÏÖ)
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<%@page import="org.accp.jwebplayer.biz.MusicBiz"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<h ......
×ªÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......
JavaScriptÖеÄÄ£¿éºÍÃû×Ö¿Õ¼äÊDz»¿ÉÇø·ÖµÄÄÚÈÝ¡£
ÎÒÃǶ¨ÒåµÄÿ¸öµ¥¶ÀµÄº¯Êý¶¼ÊÇ×÷Ϊȫ¾Ö¶ÔÏóµÄÒ»¸öÊôÐÔ¡£¶øJavaScript´úÂëÄ£¿éËù±ØÐë×ñѵÄ×îÖØÒªµÄ¹æÔò¾ÍÊÇ£º±ÜÃⶨÒåÈ«¾Ö±äÁ¿¡£ÒòΪ£¬µ±¶¨ÒåÒ»¸öÈ«¾Ö±äÁ¿Ê±£¬¶¼Òª±»ÆäËûÄ£¿é¸²¸ÇµÄΣÏÕ£¬ËùÒÔÄ£¿é»¯±àÂëÒªÓÃÈçÏ·½Ê½£º
var ModuleClass={};
ModuleClass.º¯ÊýÃû1=functio ......