1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

[推荐]给大家推荐 一个 不可不瞧的AJAX

本帖由 沉默是金2006-11-28 发布。版面名称:前端开发

  1. 沉默是金

    沉默是金 New Member

    注册:
    2006-11-23
    帖子:
    18
    赞:
    0
    :music: JoyiStar AJAX WebShop即将推出3.0体验版

    作 者:Joyistar

    久友(JoyiStar)科技在率先推出AJAX可视化集成开发环境WebShop2.x系列版本之后,即将在近期推出全新的JoyiStar AJAX WebShop3.0体验版。届时,欢迎WebShop的用户和全世界的AJAX爱好者下载试用WebShop3.0体验版,并提出您的宝贵意见和建议。

    在即将推出的JoyiStar AJAX WebShop3.0体验版中,研发团队对原有的软件功能进行了较大的改进,使该版本能同时支持基于Java和.NET的AJAX应用开发,新功能的实现为.NET用户进行AJAX的开发打开了一扇最方便之门,可以和Java的用户一样使用WebShop3.0进行AJAX开发。我们还将陆续推出支持PHP开发的版本,也就是说在未来的版本中我们将同时支持基于Java、.NET和PHP的AJAX应用开发,敬请各位用户和AJAX技术的爱好者给予关注和支持。

    http://cn.joyistar.com
     
  2. hjb1

    hjb1 Active Member

    注册:
    2005-09-04
    帖子:
    1,623
    赞:
    5
    :cry: :p ad o
     
  3. 沉默是金

    沉默是金 New Member

    注册:
    2006-11-23
    帖子:
    18
    赞:
    0
    我看到了用vb,c#的ajax应用的例子了,但还没软件,他们的3.0还没出呢,哎!

    看看例子

    那新闻让我兴奋够呛...郁闷....
     
  4. 沉默是金

    沉默是金 New Member

    注册:
    2006-11-23
    帖子:
    18
    赞:
    0
    JoyiStar AJAX WebShop 3 beta可下载了

    webshop3 beta 能下载了,和他们原来公布的消息有些不同唉,

    我正在下,用了再来评论下载地址 点击这里

    :D :D
     
  5. 沉默是金

    沉默是金 New Member

    注册:
    2006-11-23
    帖子:
    18
    赞:
    0
    demo包里有个Simple_ResultSet的例子--JDBC连接方式

    [源码]

    package demo;

    /**
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) </p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    */

    import joyistar.eip.bs.*;
    import joyistar.eip.vo.*;
    import java.sql.*;

    public class Simple_ResultSet extends BusinessObjectBean {
    String drivers="sun.jdbc.odbc.JdbcOdbcDriver";
    String username="";
    String password="";
    String url="jdbc:eek:dbc:driver={Microsoft Access Driver (*.mdb)};DBQ=demo.mdb";

    public Simple_ResultSet() {
    }

    public joyistar.eip.vo.XmlRequest query_XML(joyistar.eip.vo.XmlRequest xmlRequest) throws Exception {
    Connection conn = null;
    String sql = "";
    java.sql.Statement stmt = null;
    ResultSet rs = null;
    ResultSetMetaData rsmd= null;
    int rowCount;
    int maxRow;
    int recNo;
    try{
    System.setProperty("jdbc.drivers",drivers);
    conn=DriverManager.getConnection(url,username,password);
    maxRow=xmlRequest.MaxRows;
    recNo=xmlRequest.RecNo;
    sql="select * from PRODUCT";
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    rs = stmt.executeQuery(sql);
    rsmd=rs.getMetaData();
    rs.last();
    rowCount=rs.getRow();
    xmlRequest.SetRecordCount(rowCount);
    for(int i=1;i<=rsmd.getColumnCount();i++) {
    if(rsmd.getColumnTypeName(i).equals("STRING")) {
    xmlRequest.AddField(rsmd.getColumnName(i),rsmd.getColumnTypeName(i),rsmd.getPrecision(i));
    }
    else {
    xmlRequest.AddField(rsmd.getColumnName(i),rsmd.getColumnTypeName(i));
    }
    }
    for(int i=1;i<=maxRow;i++) {
    if(recNo+i>rowCount) {
    break;
    }
    else {
    rs.absolute(recNo+i);
    xmlRequest.Append();
    for(int j=1;j<=rsmd.getColumnCount();j++) {
    xmlRequest.SetValue(rsmd.getColumnName(j), rs.getString(j));
    }
    }
    }
    } catch(Exception e) {
    xmlRequest.Error=e.getMessage();
    } finally {
    if(rs != null)
    rs.close();
    if(stmt != null)
    stmt.close();
    if(conn != null)
    conn.close();
    }
    return xmlRequest;
    }



    public joyistar.eip.vo.XmlPost update_XML(joyistar.eip.vo.XmlPost xmlPost) throws Exception {
    Connection conn = null;
    java.sql.Statement stmt = null;
    ResultSet rs = null;
    ResultSetMetaData rsmd =null;
    String acttype = null; //action type
    XmlAction action = null; //an action
    String sql = null;
    String where = null;
    try {
    System.setProperty("jdbc.drivers",drivers);
    conn=DriverManager.getConnection(url,username,password);
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    conn.setAutoCommit(false);
    for(int i = 0;i<xmlPost.Actions.size();i++) {
    action = xmlPost.GetAction(i);
    acttype = action.ActionType;
    if(acttype.equals("old")) { //where acton, then update or delete action after it;
    where = " where ";
    where = where+"PRODUCT_ID='"+action.getField("PRODUCT_ID").Value+"'";
    }
    if(acttype.equals("update")){
    String set = " set ";
    for(int j=0;j<action.getFieldCount();j++) {
    if(action.getField(j).Name.equals("PRODUCT_PRICE")) {
    set = set+action.getField(j).Name+"="+action.getField(j).Value;
    }
    else {
    set = set+action.getField(j).Name+"='"+action.getField(j).Value+"'";
    }
    if(j<action.getFieldCount()-1) {
    set = set+ "," ;
    }
    }
    sql="update product"+set+where;
    stmt.executeUpdate(sql);
    }
    if(acttype.equals("delete")){
    where = " where ";
    where = where+action.getField("PRODUCT_ID").Name+"='"+action.getField("PRODUCT_ID").Value+"'";
    sql = "delete from product"+where;
    stmt.executeUpdate(sql);
    }
    if(acttype.equals("insert")){
    String field = new String();
    String value = new String();
    for(int j=0;j<action.getFieldCount();j++) {
    field = field+action.getField(j).Name;
    if(action.getField(j).Name.equals("PRODUCT_PRICE")) {
    value = value+action.getField(j).Value;
    }
    else {
    value=value+"'"+action.getField(j).Value+"'";
    }
    if(j<action.getFieldCount()-1) {
    field = field+ "," ;
    value = value+",";
    }
    }
    sql="insert into product ("+field+") values ("+value+")";
    stmt.executeUpdate(sql);
    }
    }
    conn.commit();
    } catch(Exception e) {
    xmlPost.Error=e.getMessage();
    } finally {
    if(rs != null)
    rs.close();
    if(stmt != null)
    stmt.close();
    if(conn != null)
    conn.close();
    }
    return xmlPost;
    }

    }
    :D :D
     
  6. sluke

    sluke New Member

    注册:
    2005-09-04
    帖子:
    4,550
    赞:
    13
    怎么看怎么像AD
     
  7. 西子宜

    西子宜 Well-Known Member

    注册:
    2005-09-05
    帖子:
    15,739
    赞:
    62
  8. swsw007

    swsw007 New Member

    注册:
    2006-07-04
    帖子:
    2,228
    赞:
    1
    我去看看,如果是好东西,就应该ad啊。
     
  9. 沉默是金

    沉默是金 New Member

    注册:
    2006-11-23
    帖子:
    18
    赞:
    0
    看看吧AJAX Webshop 3 beta 2 能下载了,可以支持PHP。
     
  10. strand

    strand New Member

    注册:
    2006-03-29
    帖子:
    26
    赞:
    0
    :music: