Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

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

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
Hafgan
Asked:
Hafgan
  • 5
  • 2
  • 2
  • +7
1 Solution
 
John844Commented:
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
 
webwomanCommented:
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
 
webdudeCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
HafganAuthor Commented:
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
 
HafganAuthor Commented:
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
 
mgfranzCommented:
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
 
MaestroCommented:
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
 
mgfranzCommented:
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
 
MaestroCommented:
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
 
Johannes1979Commented:
0
 
hongjunCommented:
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
 
MoondancerCommented:
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
 
HafganAuthor Commented:
Actually none of these were exactly what I was looking for. How do you close a question?
0
 
HafganAuthor Commented:
Actually none of these were exactly what I was looking for. How do you close a question?
0
 
MoondancerCommented:
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
 
HafganAuthor Commented:
Oh Ok,

There really isn't anymore info I can add and I haven't found a solution.
0
 
webwomanCommented:
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
 
hongjunCommented:
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
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 2
  • 2
  • +7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now