Hi all,
While converting an existing site to a new look and feel design, I've run
into a display issue when using SendFuseaction.
A normal page is built-up of the top level layout, lay_willsub.a4d which has
the html header and body tags and includes the <%= $fusebox{"layout"} %> in
the body, and then the footer html. Other layouts like lay_district are
included in the parent page lay_willsub.a4d.
An attempt to graphically display how a normal page would go together looks
like this (I hope!). You may have to widen your email window to allow enough
rooms for the indents:
<lay_willsub.a4d>
Some header stuff
<%= $fusebox{"layout"} %> `which brings in the following
<lay_district.a4d>
some menus
<%= $fusebox{"layout"} %>`which
brings in the following
a form, which when posted,
gets evaluated and sends a fuseaction
</lay_district.a4d>
Some footer stuff
</lay_willsub.a4d>
This works fine in the existing site; the fuseaction rebuilds the entire
page from top to bottom. What is happening after I've started to convert is
that the layout starts rebuilding from the middle as follows:
<lay_willsub.a4d>
Some header stuff
<lay_district.a4d>
some menus
<lay_willsub.a4d> `repeated for some
reason
Some header stuff `repeated
for some reason
<lay_district.a4d>
`repeated for some reason
some menus
`repeated for some reason
<%=
$fusebox{"layout"} %>
a form,
</lay_district.a4d>
Some footer stuff
</lay_willsub.a4d>
The whole page is included in the middle (and last) circuit. I know that the
menu choices included in the lay_district.a4d page work fine; each selection
displays the result with only 1 header. The menu commands are of the form:
<a href="../index.asp?fuseaction=DistrictInfo.ShowTeacherList">Teachers</a>
Whereas the form processing is of the form:
fusebox.SendFuseaction("DistrictInfo.ShowTeacherDetail"; $fusebox; new
collection("fFirstNameError";$fNameError;"fLastNameError";$lNameError;"recNu
m";$attributes{"recNum"}))
I know this is a not easy to communicate, but essentially the page is being
build twice. I've rechecked the fbx_layouts to make sure I didn't reference
the wrong layout. Sorry for being longwinded :-)
Any insight appreciated.
Sincerely,
Mike Vogt
Millennium Data Services, inc.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/