Click to See Complete Forum and Search --> : ASP VBScript


unitcode
01-20-2006, 11:14 AM
Ok so I am using ASP VBscript in Dreamweaver. I forsee a possible problem with javascript and pop-up windows since I have coded a "header" and "footer" .asp file. The problem is that I am not sure if there is a specific work around for that, or do I have to code each page individually? I think that I can just insert the specific tags above the call-in command or below it and it will work but I am not exactly sure. I could really use some advice on this.

Ubik
01-20-2006, 03:37 PM
if you are using a header and a footer file, it will be invisible to the client.

Why not try what you think will work, then ask for help once you see an error message, or once it is not working properly. Hey, maybe it will work.

I have had problems trying to use the WYSIWYG dreamweaver interface, so I use homesite and do not use the WYSIWYG interface.

Maybe I don't understand the question?

lmf232s
01-20-2006, 05:58 PM
Im not sure i understand you either. You might want to try to explain it again. But here it goes anyway.
You can include a header, a footer, common javascript files, asp include files, etc.
For example :
This is what my page looks like. I have the includes included at the top of every page.

<%option explicit%>
<!--#include virtual="Include/Common.asp"-->
<!--#include virtual="Include/styles.inc.asp"-->
<!--#include virtual="Include/javascript.inc.asp"-->
<!--#include virtual="Include/Header.asp"-->
<%
'Some asp code
%>
<head>
<script language=javascript>
//If needed i can still put javascript functions in here and it will work.
function TestMeOut(){
alert("It works");
}
</script>
</head>
<body>
<form>
<a href="javascript:TestMeOut();">Click Me and ill work</a>
or call a javascript function from my javascript include
<a href="javascript:CleanStr(obj);">Click Me To Test</a>
<!--THIS IS ALL MY HTML OR ASP/HTML MIX IF NEEDED-->
</form>
</body>
<!--#include virtual="Include/Footer.asp"-->



What im doing is including any functions ive created w/ asp
Im including all the style sheets that the site uses.
And im including any common javascript functions.

Everything in these includes are things that i use more than 1 time and on more than 1 page. But i can still add javascript to this page.

My header and footer takes care of my head image, text, etc.. what ever it may be.

Ubik
01-23-2006, 10:21 AM
This is what my page looks like. I have the includes included at the top of every page.
...

This is the model I have found to be most efficient, and I use something very similar...

Bullschmidt
01-23-2006, 08:10 PM
The low-down on #includes
http://www.4guysfromrolla.com/webtech/080199-1.shtml