Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2005, 05:38 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default asp inside js

Code:
<img src="images/confirm.gif" alt="Confirm" name="HoldFlights" width="80" height="15" border=0  
id="submit1" title="The reservations will be confirmed now"
onclick="javascript: <% if noi <> 0 then %>checkBirthday(document.form.birthday);<% end if %>
<% if noc <> 0 then %> checkChdBirthday(document.form.chdbirthday); <% end if %> confirmedok();" 
onMouseOver='style.cursor="hand"' value="Confirm">
is this valid?

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old July 6th, 2005, 04:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

why dont you do use the syntax of if that js supports than trying to use asp if syntax there? Is there any reason for doing so?

_________________________
- Vijay G
Strive for Perfection
 
Old July 6th, 2005, 09:49 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

This is valid, since ASP will be executed at very initial stage, and hence provides value for js. But, reverse is not possible, i.e. JS to ASP.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert ASP code in JS *need HELP* deean Classic ASP Basics 16 June 28th, 2008 08:57 AM
Using js file in ASP.NET ndr1977 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 October 26th, 2006 04:57 AM
use a JS-variable/function inside a tag cybermaarten Javascript 3 January 20th, 2005 05:42 AM
Prb with js function call inside flash using XSL schander10 XSLT 3 September 14th, 2004 07:33 AM
JS/ASP watch mega Javascript 5 April 29th, 2004 03:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.