Forum Moderators: open

Message Too Old, No Replies

Displaying a asp page inside a html page using javascript!

Know little about javascript so be gentle

         

bateman_ap

11:19 am on Apr 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not even sure it is possible but I have a feeling it must!

At the moment I have a asp page, lets call it widgetad.asp which is basically a 120x600 skyscraper with a few database calls making it dynamic.

Now I want to give some code to people to allow them to place this on their web page, so I was thinking I could create some javascript (as everyone can use this) that would create the right size area and display the asp page inside it.

I really don't want to go down the iframe route although I know that would at least work

is the javascript route possible?

Many thanks

JAB Creations

6:55 am on Apr 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use document.writeIn ...

<!--
document.writeln('<h1> example 1</h1>');
document.writeln('<h2> example 2</h2>');
//-->

Although I know nothing about ASP ... you should be able to print ASP code AS HTML without using javascript.

Here's my quick tip if you want to show your ASP code by formating it in HTML...

Download the Mozilla Suite and use their HTML composer. Copy your ASP code and paste it in the editor and it will generate the HTML code for you. Doing what I'm percieving is a little unless there is some good reason I'm not aware of. :-)

Oh yes ... you have to escape certain characters.

'

needs to be like this...

/'

Best of luck!