﻿$.ajaxSetup({ cache: false })
 

$(function() {
    //新闻中心内容
    var ajaxNewsListURL = '../AjaxServer/NewsControler.aspx';
    $.get(ajaxNewsListURL, function(data) {
        //$('#NewsList').html();
        $('#NewsList').html(data);
    });
    //滚动产品
    var ajaxProdURL = '../AjaxServer/ProductIndex.aspx';
    $.get(ajaxProdURL, function(data) {
        //alert(data);
        $('#demo1').html();
        $('#demo1').html(data);
        $('#demo2').html(data);
    });

    //论坛
    $.ajax({
        type: "post",
        url: "../ajaxServer/BbsServer.aspx",
        data:{pid:1},
        beforeSend: function(XMLHttpRequest) {
            //ShowLoading();
        },
        success: function(data, textStatus) {
            $("#bbs1").html(data);
        },
        complete: function(XMLHttpRequest, textStatus) {
            //HideLoading();
        },
        error: function() {
            //请求出错处理
        }
    });

    $.ajax({
        type: "post",
        url: "../ajaxServer/BbsServer.aspx",
        data: { pid: 5 },
        beforeSend: function(XMLHttpRequest) {
            //ShowLoading();
        },
        success: function(data, textStatus) {
            $("#bbs5").html(data);
        },
        complete: function(XMLHttpRequest, textStatus) {
            //HideLoading();
        },
        error: function() {
            //请求出错处理
        }
    });


    $.ajax({
        type: "post",
        url: "../ajaxServer/BbsServer.aspx",
        data: { pid: 15 },
        beforeSend: function(XMLHttpRequest) {
            //ShowLoading();
        },
        success: function(data, textStatus) {
            $("#bbs15").html(data);
        },
        complete: function(XMLHttpRequest, textStatus) {
            //HideLoading();
        },
        error: function() {
            //请求出错处理
        }
    });

    $.ajax({
        type: "post",
        url: "../ajaxServer/BbsServer.aspx",
        data: { pid: 16 },
        beforeSend: function(XMLHttpRequest) {
            //ShowLoading();
        },
        success: function(data, textStatus) {
            $("#bbs16").html(data);
        },
        complete: function(XMLHttpRequest, textStatus) {
            //HideLoading();
        },
        error: function() {
            //请求出错处理
        }
    });
    
}) //end first
