Solved

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

Posted on 2001-07-26
19
217 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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
 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Auto Submit on dropdown box 3 79
Import data into excel from web page 10 101
Issues with Insert statement 12 29
Connecting to multiple databases to create a Dashboard 5 47
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

809 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