Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 November 3rd, 2004, 06:29 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default undefined object

hello Guys. I am using html and java script combined. I try to remove
 "','" from the code. It gives me an undefined object error. Actually I dont know what this does. Please help me to explain what this does in the code and since it is javascript code can we single quotes instead of double quotes. When can we use opening and closing of quotes single or double. I will really appreciate your answer. Thanks


strGrid =strGrid+ " <TD ><img type =""button"" name=btnDelete src
 ='images/xDel1.gif' onclick=""javascript:deleteConfirm('" + dateFrom + "','" + dateUntil +"','" + HourlyRate + "');""></TD></TR>"

 
Old November 3rd, 2004, 09:11 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


Hello,

   You use single quotes when you are forming this type of statements. Actually, the properties are doubled quoted. But you are already in double quotes.

strGrid =strGrid+ " <TD ><img type ='button' name=btnDelete src
 ='images/xDel1.gif' onclick=""javascript:deleteConfirm('" + dateFrom + "','" + dateUntil +"','" + HourlyRate + "');""></TD></TR>"


----------
Rajani

 
Old November 4th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you explain little bit more. I didnot understand what
you want to tell?

 
Old November 4th, 2004, 05:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Shoakat,

RajaniKrishna, suggests that you use single quotes within the String that is enclosed with double quotes on the outer part.

Hope that explains.
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined Adam H-W Javascript 5 September 26th, 2007 01:31 AM
Undefined variable adel_88 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 July 9th, 2007 03:21 PM
How to know a variable is undefined? Edward King Javascript How-To 3 June 14th, 2005 10:14 AM
undefined variable !! cody44 Beginning PHP 3 January 20th, 2005 05:47 PM
Undefined Variable fpolan Beginning PHP 9 July 15th, 2004 06:24 AM





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