CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TimeWarDoctor

Search: Search took 0.01 seconds.

  1. Re: AJAX call not including headers I specify

    Tried changing to GET but still no luck:

    $.ajax({
    type: "GET",
    url: "http://L45723:1802?test1=test2",
    //dataType: "json",
    async: true,
    ...
  2. AJAX call not including headers I specify

    I have a javascript/jQuery function:

    function getResponse() {



    var currentDate = new Date();
    var sendMessage = JSON.stringify({
    SendTimestamp: currentDate,...
  3. Replies
    11
    Views
    27,732

    JavaScript Re: xmlHttpRequest.Send() issues.

    function getResponse() {



    var currentDate = new Date();
    var sendMessage = JSON.stringify({
    SendTimestamp: currentDate,
    Message: "Message 1"
    ...
  4. Replies
    11
    Views
    27,732

    JavaScript Re: xmlHttpRequest.Send() issues.

    Thanks so much for your help! Very informative. And thanks for your patience with an obvious novice like me.

    I followed that link and redid the code:


    function getResponse() {

    ...
  5. Replies
    11
    Views
    27,732

    JavaScript Re: xmlHttpRequest.Send() issues.

    The page which contains the javascript is in http://L45723/TestComet/ShowComet3.aspx

    The Comet server is http://L45723:1802

    Are they in different domains? How do I get them into the same...
  6. Replies
    11
    Views
    27,732

    JavaScript Re: xmlHttpRequest.Send() issues.

    Did as you suggested but now I get an "Access to restricted URI denied" error on receiveReq.send(sendMessage); call.
  7. Replies
    11
    Views
    27,732

    JavaScript Re: xmlHttpRequest.Send() issues.

    Do you mean like this:

    encodeURI(sendMessage)
  8. Replies
    11
    Views
    27,732

    JavaScript xmlHttpRequest.Send() issues.

    I have the following code in Javascript to talk to my Comet server:


    function getXmlHttpRequestObject() {
    if (window.XMLHttpRequest) {
    ...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured