www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help with JS flow

  1. #1
    Join Date
    Jun 2012
    Posts
    58

    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:

    Code:
    <&#37;@Language="JSCRIPT"%>
    <%
    if(Request("action") == "clone")
    {
        sSQL = "aksp_Floorplan_InsertCloneOfFloorPlan '" + dspLayoutName + "', " + Request("FloorID") + ", '" + Request("cloneof") + "', " + Request("OLDFloorID")
        alert('help');
        //akdataConn.Execute(sSQL);
    }
    %>
    
    <html>
    <head>
    <title>Floorplan Manager</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <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="" />
    
    </form>
    
    </body>
    </html>
    Why won't the "alert" work? The screen goes blank when it is reached.

    Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles