Can Javascript add items to ASP/VBScript Dictionary object?

T

tabonni

My situation is:

I got two ASP pages. One is ASP email form (I'm using Persist ASP
Email component). Another one has all file links in it. For example,
when user click Outlook course hyperlink. It will pop up another
window with outlook course PDF file. (All PDF files are already in the
server).

What I am trying to do is: When user click the "Add Email" hyperlink,
it will add that course name and filepath into ASP/VBScript Dictioanry
Object. After the user finish and click "Attach to email" button. All
the files will be attached in the email as an attachment.

Because I am not familar with VBScript. So, can Javascript add items
to ASP Dictionary Object?

Thank you.
 
K

kaeli

Because I am not familar with VBScript. So, can Javascript add items
to ASP Dictionary Object?

Please clarify: do you mean JScript, running in the ASP environment on the
server, or client-side Javascript, running in the browser?
The former, probably. The latter, no.


--
 
T

tabonni

kaeli said:
Please clarify: do you mean JScript, running in the ASP environment on the
server, or client-side Javascript, running in the browser?
The former, probably. The latter, no.


--

I mean server-side JavaScript.

If I use JScript, how can I do that? I haven't used JScript before.

Cheers
 
K

kaeli

I mean server-side JavaScript.

If I use JScript, how can I do that? I haven't used JScript before.

JScript is merely the ASP version of server-side javascript. The term is used
to distinguish it as MS proprietary server-side javascript, as opposed to the
old Netscape Server server-side javascript (the only other server-side
javascript I know of).

One tends to either use VBScript or JScript with ASP. AFAIK, whether you use
"javascript" or "jscript" in the language attribute, ASP processes them both
the same.

Here's the docs from MS.
long link:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/script56/html/js56jslrfjscriptlanguagereference.asp>

And I believe this is what you're looking for.
<http://17.webmasters.com/caspdoc/html/jscript_dictionary_object_add_method.h
tm>

HTH

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top