Jump to content

javascript print


stockton

Recommended Posts

I now have my Ajax working OK and now need to print the screen that resulted from that call before clearing same. I have therefore in my

function handleIssueTicketsResponse()

    {

    if(http.readyState == 4 && http.status == 200)

        {

        document.getElementById("loadingNode").innerHTML = "";

//        confirm(response);

        print();

        ClearForm();

        }

    else if (http.readyState < 4)

        {

        document.getElementById("loadingNode").innerHTML = "Inserting ....";

        }

    }

 

Note print() & then ClearForm(). However I get the screen printed fine but it contains no data. Almost as if I ClearForm() & then print().

Suggestions please.

Link to comment
https://forums.phpfreaks.com/topic/44342-javascript-print/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.