Using custom footers and headers

25 views
Skip to first unread message

Tenorio

unread,
Jan 25, 2010, 1:14:14 PM1/25/10
to asp-ajaxed
Hi everybody.

I'm refactoring an existing application and in a certain page I want
to use a different header and footer but I can't make it work... :S

I have created a new page just to test:

==BOF==

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

<%
set page = new AjaxedPage

with page
.title = "Test"
.headerFooter = array("pageHeader", "pageFooter")
.draw()
end with
%>

<% sub pageHeader() %>

<html>
<head>
<title>Oh yeah!</title>
<% ajaxedHeader(array()) %>
</head>

<% end sub %>

<% sub main() %>

<body>
<h1>Yeah babe I'm a classic asp app using a custom header and
footer! And some say I'm obsolete! </h1>
</body>

<% end sub %>

<% sub pageFooter() %>

</html>

<% end sub %>

==EOF==

This code returns a boring "type mismatch: 'ajaxedHeader'"

Iuri

unread,
Jan 25, 2010, 1:27:44 PM1/25/10
to Tenorio, asp-ajaxed
ajaxedHeader method is in AjaxedPage class, you should call page.ajaxedHeader(array()).

[]s
iuri


--
You received this message because you are subscribed to the Google Groups "asp-ajaxed" group.
To post to this group, send email to asp-a...@googlegroups.com.
To unsubscribe from this group, send email to asp-ajaxed+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/asp-ajaxed?hl=en.


Tenorio

unread,
Jan 25, 2010, 2:06:24 PM1/25/10
to asp-ajaxed
It works! Thanks Iuri por the quick answer!

You're absolutely right. I didn't notice that. That's what happens
when you get addicted to the "include functions/subs" thing and forget
the benefits of classes!

Tenorio.

> > asp-ajaxed+...@googlegroups.com<asp-ajaxed%2Bunsubscribe@googlegrou ps.com>

Reply all
Reply to author
Forward
0 new messages