?
Solved

asp to javascript variables???

Posted on 1998-08-17
5
Medium Priority
?
201 Views
Last Modified: 2011-09-20
I've a script like this,
<SCRIPT LANGUAGE="JavaScript">
<!--
         function WinOpen2() {          msg=window.open("thomas.html","ButtonWindow","toolbar=no,width=420,height=260,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
        }
//-->
</SCRIPT>
and I want this (it doesn't work)
msg=window.open("ptext.asp?addn="<%=rs("ok")%>,
                                                     =============
Any solution???
0
Comment
Question by:manne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Author Comment

by:manne
ID: 1836770
Edited text of question
0
 
LVL 4

Expert Comment

by:mitek
ID: 1836771
what about something like this ?

msg = window.open('ptext.asp?addn=<%=rs("ok")%>','toolbar=no,width=420,height=260')
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1836772
What is the rs for?  Is that referring to a recordset?  If it is, you would need to do <%=rs.fields("ok") %> rather than <%=rs("ok")%>
Also, are you sure you are establishing a database connection if this is a recordset...


0
 
LVL 12

Accepted Solution

by:
Otta earned 300 total points
ID: 1836773
> I want this (it doesn't work)
>   msg=window.open("ptext.asp?addn="<%=rs("ok")%>

Try: msg=window.open("ptext.asp?addn=<%=rs(""ok"")%")

i.e., one 'opening-left-parenthesis', one 'opening-quote',
some text (using the "two-quotes-to-make-one" rule)
a 'closing-quote' and a 'closing-quote'.
0
 

Author Comment

by:manne
ID: 1836774
solved!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question