Forum Moderators: open
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
<!--
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!