Ask a Question related to ASP, Design and Development.
-
monika #1
want to open a new window on button click!-jscript or javasript
Hi all...
I am able to select a student's story and open it in a word doc. the
teacher then corrects the story, highlight in colors the comments,
strikethrough. In fact all the privileges I wanted as an editor can be
achieved. This word doc gets opened in a new window ... the best part
now I have 2 buttons on a page. One which would open a separate window to a
word doc and another I want it to open in another asp page. since I have
given -> target="new_window"
in form tag so right now both the buttons open to a new window of word file:
<form action="word_create.asp" target="new_window">
how can I make the other button open another window. do I have to use
on_click() event and use jscript? vbscript works only 4 IE so I have to use
jscript...
I don't want to use JavaScript.... as I have to run the website on a machine
which is MS based (or is this irrelevant?)
can anyone help me how to use the on_click event to open another window?
here is my code..
<html>
<head><title>Create a word document</title></head>
<body>
<center>
<font color="#800080" size="4"><b>
Create a word document</b></font>
</center>
<p>
<center>
</p>
<table>
<form action="word_create.asp" target="new_window">
<%
Dim strSelectValues
Dim strSelectedText1
Dim strSelectedText2
DIM RSA
DIM QUERY1
strSelectValues = Trim(Request.form("RR"))
'FOR DEBUG ONLY
'Response.Write "ds-->" & strSelectValues & "<--<hr>"
strSelectedText1 = Split(strSelectValues, ";")(0)
strSelectedText2 = Split(strSelectValues, ";")(1)
'FOR DEBUG ONLY
'Response.Write "one-->" & strSelectedText1 & "<--<hr>"
'Response.Write "two-->" & strSelectedText2 & "<--<hr>"
Set RSA = Server.CreateObject("ADODB.Recordset")
QUERY1 = "select story_original from student_content where student_id =
'"&strSelectedText2&"' and story_id = '"&strSelectedText1&"'"
rsa.open query1, "dsn=school"
response.write "mm"
%>
<tr>
<td><font color="#000080" size="3"><b>Name:</b></font> </td>
<td><input type="text" name="Name" size="50" maxlength="100"></td>
</tr>
<tr>
<td><font color="#000080" size="3"><b>Email:</b></font> </td>
<td><input type="text" name="Email" size="50" maxlength="100"></td>
</tr>
<tr><td>
<font color="#000080" size="3"><b>
Comments:</b></font> </td><td>
<textarea cols="50" rows="10" name="comments"</tr>><%=RSA.Fields.item("story_original").value %></textarea></td>
</table>
</center>
<p align="center">
<input type="submit" value="Check Story">
<input type="submit" value="Grade Student">
</form><p align="left"> </p>
</body>
</html>
thanks all ..........................
monika Guest
-
Open window on button click
Hi there, in a form, here's what I want to do : <input type=button onclick= (???) is it possible to open a pop-up window with a specified... -
Click thumbnails, open in new window
I apologize, because I know this has probably been asked before but I still need a bit of a push. :( I'm making an e-portfolio in Director MX. It... -
Server control button click: open pop up browser window
Checkout ... ShowModalDialog in the javascript reference. It works quite will if you want to use client side javascript. "Alvin Bruney"... -
Button click on Web Dialog opens its copy in new window
I have an aspx page which I open using the following code fragment below. The modal web dialog has 2 buttons and whenever I click any of them, a new... -
Close a window after button click
The user clicks a buuton and the server does some processing. If successful I want to close the window. Any suggestions? Steve -
monika #2
Re: want to open a new window on button click!-jscript or javasript
ok..thanks..!
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:u7BPPOvcDHA.736@TK2MSFTNGP09.phx.gbl...direct> You're asking in the wrong place. This is an ASP newsgroup, which means it
> is intended for questions concerning server-side code running under ASP.
>
> You are asking how to do something with client-side code. You should> your question to one of the dhtml or scripting newsgroups, preferably one
> with "jscript" in its title.
>
> Bob Barrows
>
>
monika Guest
-
karim dahdah #3
Re: want to open a new window on button click!-jscript or javasript
Normally of you gave the target-parameter the
value "_blank", the script will always open a
new window.
Best Regards,
Karim Dahdah
newsgroup, which means it>-----Original Message-----
>ok..thanks..!
>"Bob Barrows" <reb_01501@yahoo.com> wrote in message
>news:u7BPPOvcDHA.736@TK2MSFTNGP09.phx.gbl...>> You're asking in the wrong place. This is an ASPrunning under ASP.>> is intended for questions concerning server-side codecode. You should>>
>> You are asking how to do something with client-sidenewsgroups, preferably one>direct>> your question to one of the dhtml or scripting>>> with "jscript" in its title.
>>
>> Bob Barrows
>>
>>
>
>.
>karim dahdah Guest



Reply With Quote

