a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

A CAVEMAN should have been able to do this!

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> A CAVEMAN should have been able to do this!
Page: [1]
 
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
A CAVEMAN should have been able to do this! - 4/13/2007 10:43:33   
Hi all....

I have been going nuts with this simple little script. I want to stick a javascript confirm message within an ASP script. Problem is, unless I place a Response.end tag after the JS message, the JS message never appears. Does anyone know how to have the message appear, then click the OK button to continue the script and redirect? Thanks!
<!--#include virtual="/robilia/login/login.inc"-->

 <%If len(Request.Form("Comment"))< 1 then%>
  <script language="Javascript">
  <!--
  confirm ("Please enter at least 1 word")
  //-->
  </script>
  <%
  Response.redirect "results_item.asp?UN="&Request.Form("UsernameCall")&"&LID="&Request.Form("LID")&"&CX=Y"
End if
%>



_____________________________

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
Spooky

 

Posts: 26617
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: A CAVEMAN should have been able to do this! - 4/16/2007 23:53:16   
You shouldnt be mixing server and client side script in that way? This assumes that the form has been submitted.
I would consider handling the error serverside rather than js (eg in case the user doesnt have it enabled)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: A CAVEMAN should have been able to do this! - 4/17/2007 0:01:25   
Thanks Spooky. I will do that.

_____________________________

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

(in reply to Spooky)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> A CAVEMAN should have been able to do this!
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts