Solved

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

Posted on 2001-07-26
19
214 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Expert Comment

by:Johannes1979
Comment Utility
0
 
LVL 33

Expert Comment

by:hongjun
Comment Utility
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
Comment Utility
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
Comment Utility
Actually none of these were exactly what I was looking for. How do you close a question?
0
 

Author Comment

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

Expert Comment

by:Moondancer
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

762 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

16 Experts available now in Live!

Get 1:1 Help Now