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 September 20th, 2004, 11:30 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default object expected

<script language = javascript>
          function Hello(){
          var FName=(document.thisForm.txtBox1.value);
          var LName =(document.thisForm.txtBox2.value);
          if (FName=="" && LName==""){
          alert(" you have not entered first Name and last Name");
           }
           }
        </script>
<input type = button value =search onclick ="javascript: Hello();">
This code give me an error in Hello() object expected from the above line. I am using sql server.

 
Old September 20th, 2004, 01:00 PM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
    Here what I am feeling is you misssed the form tag. Just check it whether you kept the form tag with name "thisForm".
Thanks
Suresh Babu

 
Old September 20th, 2004, 01:57 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the form tag name is same. Also I tried to put return call();
But both of them did not work.

 
Old September 20th, 2004, 08:12 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


Hello,

  Why did you post two times.
In the next post you have written with function call()

Here, Hello()

And you r replying here, return call();

The sollution i posted there.

Rajani







Similar Threads
Thread Thread Starter Forum Replies Last Post
Object expected darkhalf Javascript 1 September 28th, 2006 05:32 PM
Object Expected!! Apocolypse2005 Javascript 0 July 3rd, 2006 12:23 PM
object expected crmpicco Javascript 3 April 19th, 2006 09:07 AM
object expected line 0 rcard Javascript 0 June 22nd, 2005 01:35 PM





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