Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
ASP and Javascript together
Old 04-27-2010, 12:38 AM ASP and Javascript together
Banned

Posts: 1
Trades: 0
In this tutorial we will create a regular HTML page with a small javascript code, and we will use this javascript code to include in the page new information from a ".asp" file.

First, let´s check this two pages:


javascript.html
HTML Code:
<html>
<title>My page</title>
<body>

<script language="javascript" src="javascript.asp"></script>

</body>
</html>
javascript.asp
document.write ("hello") 1

In the first file (javascript.html) we have include a javascript code in red, and within the code the file name from which we will get information to complete our page (src: source). So that we are asking for information to complete our page (javascript.html) to a different page (javascript.asp). This time we have only include the file name, but we may use the complete url even from a different site (for example: http://www.adifferentsite.com/javascript.asp).

In the second file (javascript.asp) we have include the information necessary to write in the document the word "hello". This time we have use ".asp" extensión for the second page even though other extensions are possible.




link dropping removed

Last edited by chrishirst; 05-01-2010 at 03:32 PM..
chinnimunni89 is offline
View Public Profile
 
 
Register now for full access!
Old 05-01-2010, 12:59 PM Re: ASP and Javascript together
badams's Avatar
Skilled Talker

Latest Blog Post:
Dum Skype Firefox plugin
Posts: 69
Name: Barry Adams
Location: London
Trades: 0
If its an ASP page you link to, (then provided your server support asp), what you going to do, it run a ASP program, that writes the Javascript code for the browser. Is this what you want? Or do you just need a .js javascript file to send to the client?
__________________

Please login or register to view this content. Registration is FREE
@
Please login or register to view this content. Registration is FREE
(320+ Subjects)
badams is offline
View Public Profile Visit badams's homepage!
 
Old 05-23-2010, 01:06 AM Re: ASP and Javascript together
Banned

Posts: 2
Name: ased
Trades: 0
very nice post.
i ahve accepted you post informations.
14620561 is offline
View Public Profile
 
Closed Thread     « Reply to ASP and Javascript together
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19390 seconds with 12 queries