1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP with Jquery

Discussion in 'C#' started by spm, May 1, 2009.

  1. #1
    Hi All,

    I am in trouble with the problem given below, please help me.

    I want to display the content given in asp file test.asp

    test.asp content is

    <%
    strResult = ""

    strCityCode = Trim(request.querystring("ccode"))
    strFromDate = Trim(request.querystring("fromdt"))
    strToDate = Trim(request.querystring("todt"))

    query executions

    ' the result will set to the variable "strResult"

    response.write strResult



    %>

    I called this file using jquery method given below,

    <script language="JavaScript" type="text/javascript">


    function funcGetProviderAllRooms(strCCode, strFromDt, strToDt)
    {
    document.getElementById("divDetailLoading").innerHTML = "<img border=\"0\" src=\"/images/detail_loading.gif\" />&nbsp;Please wait...";
    $.get("getAvailableProviderRooms.asp", {
    ccode : strCCode,
    fromdt : strFromDt,
    todt : strToDt,
    tempref : Math.random()
    }, function(data){
    document.getElementById("divSearchResultBox").innerHTML = data;
    document.getElementById("divDetailLoading").innerHTML = "&nbsp;";
    }
    );
    }





    funcGetProviderAllRooms('TEST',20/05/2009,25/05/2009);

    </script>

    but the result doesn't display on the div specified in the code.

    Please give me solution as soon as possible

    Thanks in advance....


    Regards,
    spm
     
    spm, May 1, 2009 IP