Asp And Java Scripts

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > ASP / ASP.NET

Asp And Java Scripts

illusion
QUOTE
A direct relationship between the two is simply non-existant. Both technologies were developed by seperate companies which have relatively nothing to do with each other.

JavaScript, a product of Netscape, was developed to allow web programmers to write applications which could interact with web browsers. Whilst Active Server Pages, on the other hand, was developed to allow programmers to create data driven websites.
ASP, as the name implies, is a server-side technology. This fact alone forbids ASP from directly communicating with JavaScript.
Infact, an ASP script will be completely executed and forgotten about by the time the page is even downloaded and displayed on the users screen.

When a user requests a page, say 'category.asp', the browser will request the page from the server. Once the page has been located, the source code will be processed on the server and, if necessary, HTML code will be output and displayed to the user. With that said, it should now sound completely illogical to assign a JS variable to an ASP script without first sending the data to the server for processing.

I am aware of the indirect ways which ASP can influence Javascript. Such as; setting Javascript variables from the server. The following is a simple example:



code:--------------------------------------------------------------------------------
<%
dim x
x = 2

response.write("<script>var x = " & x & ";</script>")
%>
--------------------------------------------------------------------------------


The preceding ASP script simply defines a variable named 'x' and then prints its value to the output. This method actually doesnt show any evidence of ASP and JavaScript communicating.

Some people will say "But you can use JavaScript to write ASP scripts". This actually isnt true. You can use a spawn of JS call JScript. JScript was also developed by Microsoft and is used for both client side and server side scripting. When using JScript in an ASP application, you would not refer to it as JS, but as ASP, none the less



-----Copied without quotes from http://www.webdeveloper.com/forum/showthre...?threadid=29056 -----szupie

 

 

 


Reply

marsden
No offense but doesn't ASP mean acitve server pages? If you used JavaScript to connect to a DB and display records on a web page then basically that it what it is, an active server page.

Just my option.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. random video java scripts - 377.66 hr back. (1)
  2. variables asp a java - 416.61 hr back. (1)
Similar Topics

Keywords : asp, java, scripts

  1. Free Scripts For Developers
    Free scripts for developers (4)


      Looking for asp, java, scripts

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for asp, java, scripts
advertisement




Asp And Java Scripts



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE