Solved

asp to javascript variables???

Posted on 1998-08-17
5
163 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
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 100 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now