Help with JS flow
I am not the sharpest JS coder in the world and so I need some help.
I have a classic asp file that I need to debug but I can't get any messages to display. How is the best way to debug if I don't have a project that I can run through the VS2008 debugger?
Here is the gist of my code:
Why won't the "alert" work? The screen goes blank when it is reached.
if(Request("action") == "clone")
sSQL = "aksp_Floorplan_InsertCloneOfFloorPlan '" + dspLayoutName + "', " + Request("FloorID") + ", '" + Request("cloneof") + "', " + Request("OLDFloorID")
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body style="background-image: none; background-color: White" class="floormgr" bgcolor="#FFFFFF" text="#000000">
<form name="formFloorPlan" method="POST">
<input type="hidden" name="action" value="" />
how would you see a popup on the server, you're on the client? there is no alert, that's a browser thing. node.js has console.log, but in asp classic, you're going to have to use Response.write(myStringMessage) and view the source, or
Response.addHeader("x-debug1", strMyMessage) and use firebug or web inspector look at the headers you made.
if it's a private page, write() is easier, but on production, headers keep the site going while you twiddle.
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)