Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Script and Forms
As I'm relativley new to ASP and VBscript, could someone explain (or point
me to) how
client side VBscript works on an ASP page. In particular, I have an ASP page
that has a body with a form. I want to create a function to return the value
of a text field. I would like to call the function with the onsubmit event.

But alas, I get all kinds of errors. Any direction would be helpful.

Also, when an ASP page loads with a form element and VBscript code, which
executes first? The script or the form?

TX...



Report this thread to moderator Post Follow-up to this message
Old Post
n2K
02-16-05 02:02 AM


Re: Script and Forms
Client side VBScript works intermittently in an ASP page. That is because it
is only supported by IE. If you want your client-side script to work in all
browsers, use JavaScript. As to "how" it works, well, it's magic. Actually,
I just have no idea what "how [it] works" means. Also, you say you want to
"create a function to return the value of a text field." Return it to where?
For what purpose?

> Also, when an ASP page loads with a form element and VBscript code, which
> executes first? The script or the form?

As the form doesn't "execute," and you didn't specify whether you're talking
about client-side or server-side VBScript, that questin can't be answered as
stated.

Programming does not in any way involve guesswork. One should be acquainted
with the technology, and how it works, before writing a single line of code.
Programming is precise. Close only counts in horseshoes and hand grenades.
Your question indicates that you have only a vague idea of what ASP is, and
how it works. That's not a good starting point for writing a program.

Finally, this is a Visual Studio newsgroup. If you have questions about ASP,
visit microsoft.public.Inetserver.asp.general.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"n2K" <newbie@mentorits.com> wrote in message
news:eoWUFf7EFHA.3928@TK2MSFTNGP15.phx.gbl...
> As I'm relativley new to ASP and VBscript, could someone explain (or point
> me to) how
> client side VBscript works on an ASP page. In particular, I have an ASP
> page
> that has a body with a form. I want to create a function to return the
> value
> of a text field. I would like to call the function with the onsubmit
> event.
>
> But alas, I get all kinds of errors. Any direction would be helpful.
>
> Also, when an ASP page loads with a form element and VBscript code, which
> executes first? The script or the form?
>
> TX...
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Kevin Spencer
02-16-05 09:03 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:58 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.