There is a good solution in SharePoint2010 (see my article SharePoint client programming series http://www.jb51.net/article/27198.htm for details), but it is not so good in SharePoint2007 Use it to analyze specific problems in detail. This article will solve the problem of how to access SharePoint data through WebService in JavaScript.
First you need to download the JavaScript API package from here (http://darrenjohnstone.net/download/12)
Referring to JS, there are two libraries in it. One package is the processing core library SPAPIcore.js, and the other package provides most of the interfaces for calling SPAPI_Lists.js
The most commonly used interface method is getListItems (listName, viewName, query, viewFields, rowLimit, queryOptions, webID)
The following is a problem often encountered during SPD custom development, obtaining user information: