Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

asp to javascript variables???

Posted on 1998-08-17
5
Medium Priority
?
207 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

604 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