Results 1 to 2 of 2

Thread: running asp between script

  1. #1
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy running asp between script

    i got this code:
    Code:
    <script type="text/javascript">
    function displayContent(){
    newwin=window.open('','win','left=100,top=100,widt  h=250,height=180')
    newwin.document.write('<HTML>\n<HEAD>\n')
    newwin.document.write('<TITLE>Pddsd sdsddsds rint Page</TITLE>\n')
    newwin.document.write('</HEAD>\n')
    newwin.document.write('<BODY><center>\n')
    newwin.document.write('?')
    newwin.document.write('</BODY>\n')
    newwin.document.write('</HTML>\n')
    newwin.document.close()
    }
    </script>
    how can i make it run asp code while the js running?

    Code:
    <%
    dim mysqlm, connasa, connstringasa, vabo, namo
    vabo = request.cookies("devUserName")
    Set connasa = Server.CreateObject("ADODB.Connection")
          ConnStringasa =SQL STRING                     
          Connasa.Open ConnStringasa
    
          namo=Time()
          mySQLm="UPDATE crmagents SET online='" & namo & "' WHERE username='" & vabo & "'"
          connasa.execute(mySQLm)
          Connasa.close
          set Connasa=nothing
    %>
    Last edited by hantz; 10-30-2007 at 04:19 PM.

  2. #2
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if i will use
    Code:
       str=document.getElementById(id).innerHTML
    </script>
    and add the asp code into
    <DIV id="d1" style="visibility:hidden; position: absolute;">
    this won't work cause the code is in the header...and the header got to be before </head>
    and i do not want to use another include...
    Last edited by hantz; 10-30-2007 at 04:20 PM.

Bookmarks

Posting Permissions

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