Solved

asp to javascript variables???

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Little bit of help styling my heading 3 31
Select case on click 3 21
Media Queries  not Firing 6 19
CSS Style Effect 2 12
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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 …

828 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