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 March 7th, 2007, 06:10 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default this code gives the ERRor '800a000d'


<script language="vbscript" runat="server">
            dim unm
            <!--
            function emailadd_onFocus(thisadd)
            unm=thisadd.value
            end function
            -->
</script>
        <html><head>...
<form>
<input type="text" name="emailadd" size="27" ID="Text4">
<%dim unmstr
unmstr=Request.Form("username")
Response.Write (emailadd_onFocus(unmstr))%>
</form>
.
.
</html>

 Gives error That Type mismatch.

how to recover this error




 
Old March 7th, 2007, 11:41 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have some odd things going on there.
What is the purpose of this?
What are you trying to do?

For one thing, the function you are calling (emailadd_onFocus) is in a comment block, and cannot therefore be called from the Response.Write(emailadd_onFocus... line. That is what is causing the error you are seeing.

However, even if that method could be called, you have not declared or coded your "thisadd" object, whatever that is.

Additionally, your emialadd_onFocus method returns no value so even if all this worked the Response.Write would not have anything to write.


Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
 
Old March 8th, 2007, 06:17 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default

             Here i want to pass the form element to the VBScript function 'emailadd_onFocus(username)' which is run at server side.
and using this username (in that function) i want to find out the emailaddress of that entered user from the exchange server. and i want this only on the "onFocus" event of the emailaddress text box.

So how i can achive it.
Plz help me.

thanks.



 
Old March 8th, 2007, 11:48 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would suggest you write some simple tests in javascript to learn how to handle client side scripting. Once you have the basics you'll easily be able to do this task.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
 
Old March 9th, 2007, 07:00 AM
Authorized User
 
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

Use Following:

<input type="text" name="emailadd" size="27" ID="Text4">
<%dim unmstr
unmstr=Request.Form("username")
%>
<script>
emailadd_onFocus('<%=unmstr%>');
</script>

Hope this will help....

 
Old March 9th, 2007, 07:41 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default

thanks a lot.
the method littlebit working.

 
Old March 9th, 2007, 08:21 AM
Authorized User
 
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

It's okay....
Please post if anything else you want

-Saurabh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Code Error rhapsidee VB.NET 2002/2003 Basics 1 May 27th, 2008 07:04 AM
Error In Code Tegwin BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 March 9th, 2006 07:43 PM
VBScript runtime error '800a000d' on DLL hit crmpicco Pro VB 6 1 February 16th, 2006 01:47 PM
Microsoft VBScript runtime error '800a000d' mwlyoung Classic ASP Databases 3 April 15th, 2004 04:54 AM
Error displayed with error trap code stoneman Access 4 February 28th, 2004 02:53 PM





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