header and footer

4 views
Skip to first unread message

Adam Estrada

unread,
May 28, 2009, 5:38:32 PM5/28/09
to asp-ajaxed
Hi,

is there a way to prevent the header and footer from this script from
appearing in my own site once the whole thing has been integrated? I
want to use the dropdown script and *do* have it working poperly bbut
when I add the code to a page that already has the HTML code in tact
it seems to be added again which is horking up my page.

How can I remove the header and footer from this script?

Adan

Michal Gabrukiewicz

unread,
May 28, 2009, 8:43:42 PM5/28/09
to Adam Estrada, asp-ajaxed
Hi,

I am not sure what you are talking about .. could you provide a sample and tell us which script you want to remove?
--
michal
Sent from คลองเตยเหนือ, Bangkok, Thailand

kellybaber

unread,
Jun 23, 2009, 1:16:32 PM6/23/09
to asp-ajaxed
I had this same issue. Here is what I did.

1) take everything out of the header except:

<!--*******************************************-->
<% ajaxedHeader(array()) %>
<!--*******************************************-->

2) then make your footer an empty page like this: (note the commented
out tags are just so you can see in when you view source)
<!--*******************************************-->


3) My <head> looks like this:

<html>
<head>
<title><%=Page_Title%></title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<!--#include file="Includes/BODY_Header1.asp" -->

<%
DIM UserListAjaxPage
set UserListAjaxPage = new AjaxedPage
UserListAjaxPage.DBConnection = true
UserListAjaxPage.draw()
sub init() : end sub
sub callback(txtCountDate)
IF IsDate(txtCountDate) THEN
UserListAjaxPage.return(db.getScalar("SELECT [Count] FROM tblCount
WHERE stuff = '"+otherstuff+"'", ""))
END IF
end sub
sub main()
%>
<script>
function countpostback(varwhatever) {$
('elementwhatever').value=varwhatever;}
</script>
</head>
<body>
<!--#include file="Includes/BODY_Header2.asp" -->

4) End your page with:

</body>
</html>
<%
end sub
%>

5) also note: you will have to read up on the config.asp page to
make that code work exactly as it is written there but after you have
done that you should have your solution on your header/footer issue.
Reply all
Reply to author
Forward
0 new messages