Solved

Dynamic HTML without Dynamic HTML - How to embed dynamic content into static HTML

Posted on 2001-07-26
19
215 Views
Last Modified: 2013-11-19
Anyone know how to embed dynamic content into a static HTML page?

I would like to have a few lines of code that someone can put into their static HTML and then have my ASP pages do whatever calculations that are appropriate and then display the answer into the HTML page. Sort of like an updated Counter or something like that.

If anyone can just lead me in the right direction I can probably take it from there!

Thanks.
0
Comment
Question by:Hafgan
  • 5
  • 2
  • 2
  • +7
19 Comments
 
LVL 7

Expert Comment

by:John844
ID: 6322812
what about using a script file like
<script src=yourpage.asp></script>

you could create a javacript variable with your calculated value in it.  they could then use the contents of this variable to display in their pages.  Or you could modify some part of their page if they are all going to have the same structure for you to manipulate.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6322952
Nope, not going to happen. If you want to run asp code, you need to use an .asp extension, and it needs to be on a server that supports it.

You could set a link to your asp page, but that's not going to do anything unless they click on the link.

You can't run server side script with client side script calls.
0
 

Expert Comment

by:webdude
ID: 6323017
you could try to explore the

<IFRAME> tag, which allows u to specify the server that the asp code runs on...

hope this is the direction you're looking for!

webdude
0
 

Author Comment

by:Hafgan
ID: 6323018
Check out Sitemeter.com.

They have a HTML Img tag that you place in your HTML page that looks like this:

<img src="http://sm8.sitemeter.com/meter.asp?site=sm8independentcommerce">

It goes to their ASP page and somehow shows a graphic on my HTML page.

How does that work?

0
 

Author Comment

by:Hafgan
ID: 6323031
Check out Sitemeter.com.

They have a HTML Img tag that you place in your HTML page that looks like this:

<img src="http://sm8.sitemeter.com/meter.asp?site=sm8independentcommerce">

It goes to their ASP page and somehow shows a graphic on my HTML page.

How does that work?

0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6323117
Or.... Set the file properties of the .htm and .html extensions to use the asp.dll  Then you can run vbscript from a .htm file.

This is controlled in the IIS MMC
0
 
LVL 1

Expert Comment

by:Maestro
ID: 6324294
if you wanna have dinamyc content in a html page you must use a script language. For example, if you want to have a counter of words in a input text you can do:

<html>
<form name="prueba">
<input type=text name=texto value="" onkeyup="document.prueba.contador.value=document.prueba.texto.value.length;">
<input disabled type=text name=contador value=0>
</form>
</html>

easiest isn't it?

Salu2
  Maestro
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6324411
Maestro@devx, welcome to Experts Exchange.  It is typical action to post your suggestion as a comment, unless you know for a fact that your proposed solution is an absolute answer.  Since you are off base with your comment, protocol dictates you withdraw your comment as an answer.

I suggest you read this link; http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp
0
 
LVL 1

Expert Comment

by:Maestro
ID: 6324449
sorry my english is limitated im spanish possibly, in my poor translation i understood that he want to do a dinamic action in a static page. Sorry if my answer was incorrect.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:Johannes1979
ID: 6326106
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6376722
Maestro,

Welcome to EE. The policy here is to post everyhing in comments. Questionner will then have the option to accept a comment as an answer. Posting as a proposed answer will lock the question and thus restrict the exposure to more experts. We know you are new here and thus is forgiven. With the current version of EE, you do not have the option to convert your answer to a comment but this can be done by the questioner himself. I advise the questionner to reject his answer so that this question will be released to more experts. You can however accept his comment again if you find it is really helpful.

Thanks
hongjun
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6401774
This question was LOCKED with a PROPOSED ANSWER and awaits your decision today.  Once a question is LOCKED with a Proposed Answer, few new experts will step in to help on that question, since the assumption is, you've been helped.  If the Proposed Answer helped you, please accept it and award that expert.  If it did not help you, please reject it and add comments as to status and what else is needed.
 
If you wish to award multiple experts, just comment here with detail, I'll respond as soon as possible.  As it stands today, you asked the question, got help and not one expert was awarded for the contribution(s) made.  Your response is needed.  I'll monitor through month end, and if you've not returned to complete this, we'll need to decide.  Expert input is welcome (as always) to determine the outcome here if the Asker does not respond.
 
Your response in finalizing this (and ALL) your question(s) is appreciated.
 
Moondancer
Community Support Moderator @ Experts Exchange

0
 

Author Comment

by:Hafgan
ID: 6406544
Actually none of these were exactly what I was looking for. How do you close a question?
0
 

Author Comment

by:Hafgan
ID: 6406545
Actually none of these were exactly what I was looking for. How do you close a question?
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6406644
Hi, Hafgan.

Just add comments for the experts here as to the results of their recommendation and what else you need to get your solution.  They're quite responsive and want to help.

If, on the other hand, you found your own solution just post it here and request a refund.  We can then move this item to the PAQ at zero points, but the question can help others who seek this solution.  Finally, if you feel it has no merit and you don't want to continue this but rather have it deleted, let us know that as well.

For any questions that are related to question process or site-related things, just post a ZERO point question in the Community Support topic area with your request and the URL link to your question.

Moondancer
Community Support Moderator @ Experts Exchange

0
 

Author Comment

by:Hafgan
ID: 6406966
Oh Ok,

There really isn't anymore info I can add and I haven't found a solution.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6407363
You have a few problems in what you're asking...

1) ASP pages run on the server, not the client. Unless you want to host all these pages, you're not going to be able to give people code to paste in their HTML pages on other servers.

2) If you want to provide a form for them to have processed on your site, that's completely different. That's about the only way you could provide ASP content to non-ASP pages.

If you want to do something in client side javascript and provide it to people, that's completely different.
0
 
LVL 33

Expert Comment

by:hongjun
ID: 8623333
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[PAQ with NO REFUND]

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

hongjun
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8674428
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Coova-Chilli can't work with URL using HTTPS! 3 163
Summernote required 3 104
WCAG (Web Content Accessibility Guidelines) levels 3 70
Recordset containing single quotes 8 24
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now