Closed Thread Icon

Topic awaiting preservation: Insert HTML from Remote Location (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7998" title="Pages that link to Topic awaiting preservation: Insert HTML from Remote Location (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Insert HTML from Remote Location <span class="small">(Page 1 of 1)</span>\

 
KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-24-2001 08:57

You guys are 3 for 3. I'm hoping you can continue this winning streak! ;-)

I have an HTML page on a website where I can enter basic HTML element tags, but I do not have access to document events (onload, mouseover, etc).

I have an ASP page on another, remote, server that renders some plain vanilla HTML - a single number in fact.

I need to, in the middle of this HTML make a refernece to that remote server and insert the value that is generated into the HTML page that I am working on. SInce I have no event access, this need to happen as part of a generic HTML tag.

Since the context will prolly help you figure out what I'm doing, I'm working with a webpage that lets me enter text to be displayed. It also allows me basic HTML tag usage. My remote ASP page simply increments a counter (a personalized Hit-Counter, if you will) that's stored in a database on MY server, and returns the new number in the output/generated HTML. I want to take that number from MY site, and insert it in this other webpage to make a poor-man's hit counter - since they do not provide them. I don't want to use a "Free Counters" webservice because my ASP page also filters out **MY** hits (by checking for the presence of a certain cookie) so as not to artificially inflate the number.

Any high-rollers wanna take this one on? :-)




WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 12-24-2001 09:44

Would imagine you make a database call, and do an insert if the addy is not yours.

the function would be much like

if (ip is not mine)
take column and increment it by 1


Next you would need to query your database for the value and then print it to screen.

If I read this wrong shame on me. Seems to be a pretty straitforward program. I do not reccommend ASP. However, it can work.

I would say don't rewrite the wheel, it would be a waste of time. You could get some pretty advanced counter scripts which would filter out all kinds of bogus hits, so... you call to recreate still appears a bit bogus to me, however, you are writing in VBScript therefore it doesn't surprise me much.


Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 12-26-2001 10:51

um..... remind me again why you're not just hosting yourself....?


"...when I'm high like heaven, when I'm strong like music, 'cause I'm slow like honey and heavy with mood..."
ICQ: 67751342

KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-27-2001 07:39

WARMAGE:

As I said, I'm ALREADY filtering out my own hits. What I'm trying to do is get the HTML that is rendered by my ASP page, hosted on MY site, to display in the HTML output of another webpage that allows me to use a few common HTML tags.

PETSKULL:

My ASP page *is* hosted on my site. I'm trying to insert the HTML that my ASP page creates into someone ELSE's page. They allow me basic HTML tags. I need to insert a plain text/html text string that my ASP page returns as HTML output into someone else's web page.

To be REALLY specific (I should have just done this in the first place) look at www.freeagent.com, find my "free agent" e-portfolio (search for "Kirby Wallace" in Tulsa Oklahoma). Look at "story and attachments" and see where I have "Click here to see how many times this page has been viewed." That link redirects you to a page on MY website (www.wallaceinfo.com). When *I* visit that page, the counter does not increment because I have a cookie that it is looking for that prevents the increment. What I want is for that counter to be displayed in freeagent.com as "This page has been viewed 43 times"

Hope that helps.



dk01
Bipolar (III) Inmate

From: dk's house of love
Insane since: Oct 2001

posted posted 12-27-2001 12:12

Kirby I would try using something like at these links: http://www.dhtmlnirvana.com/alchemy/iframe.htm
or http://www.dhtmlnirvana.com/alchemy/externalload.htm
Unfourtunatly its not possible to import an a document such
as ASP output into a common html file. Instead we can import
it into a layer with javascript. One of these two links
is bound to help you. I am using this to import ASP output here.

- can't decide? have another drink.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 12-27-2001 16:41

I'm sorry.... this is probably incredible stupidthey page just treat it as a comment?, but why not use SSI, wouldn't the page just treat is like a comment?


"...when I'm high like heaven, when I'm strong like music, 'cause I'm slow like honey and heavy with mood..."
ICQ: 67751342


[This message has been edited by Petskull (edited 12-27-2001).]

KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-30-2001 07:29

An IFRAME. Hmmmmn. Why didn't I think of that?

That's what you guys are here for, eh?

Thanks


« BackwardsOnwards »

Show Forum Drop Down Menu