Forum Moderators: open
The HTML page being produced contains 3 tables. The first table is viewed as expected but the 2nd and 3rd dont appear, until the window is resized.
Now what is odd is, if I just take the HTML output and save it as a HTM file and link it to the same frame, then it works fine.
I have had the HTML verified as being properly formed too.
Basically the asp produces a string variable that is built up and then response.write's to the frame.
The HTML is not using anything clever, just basic HTML code to produce tables.
Has anyone come across anything like this before? I am not sure whether this is a bug in IE5(mac) or in the ASP. If it's in the ASP then why does the HTML code work when saved as such?
Any help would be appreciated.
Thanks
Gaz
PS if you need more info please let me know. This is fairly urgent too (arent they all!)
Now what is odd is, if I just take the HTML output and save it as a HTM file and link it to the same frame, then it works fine.
Welcome to the forums, gazzabj.
That's more than odd - that's downright weird and spooky. That one simple fact makes almost every idea I have evaporate. Are you sure it's not some other factor at work here - like mousing over a link as you resize, perhaps?
One thing I am wondering is what DTD you are using - first, are you using a frameset DTD for the frameset page. And then, what is it for the frames themselves? I've recently learned that IE5/mac introduced some doctype switching before IE/win did, and it's sometimes a bit buggy, so I'm wondering about that.
Second, are there any floated elements in the layout?
<frameset framespacing="0" border="true" frameborder="0" rows="20,*" >
<frame name="toolbar" scrolling="no" noresize marginwidth="0" marginheight="0"
src="javascript:parent.showtools('True')">
<frame name="record" scrolling="auto" marginwidth="2" marginheight="18"
src="javascript:parent.getdata()">
<noframes>
<body bgcolor="#FFFFFF">
<p>This page uses frames, but your browser does not support them.</p>
</body>
</noframes>
</frameset>
Nothing special in there, I am not specifying a DTD. Is it worth adding in this case? I have tried replacing the * with a specific value for the size of the frame but that makes no difference.
There are no floated elements.
Gaz
along the lines of......
<html>....etc<%response.write strOutput%></html>
The 'Tools' part works fine and just displays the menu buttons.
Its the 'Data' bit that fails, although part of it works ie I get the first table to appear correctly. Is there any restriction on size of variable or something along those lines causing it to get truncated?
Thanks
Gaz
if EditMode(strCommand) = True then
'category list
strOutput = strOutput & "<td width=40% align=left valign=top>"&PopulateCategory()&"</td>"
'word list (edit)
strOutput = strOutput & WordListEdit(strPictureId, strCategoryId)
else
'word list (browse)
strOutput = strOutput & WordListBrowse(strPictureId)
end if
This is part of the beginning of creating the 2nd table that fails to display. The function ordListBrowse contains....
WordListBrowse = "<table border=0 cellpadding=1 cellspacing=1 width=""100%"" >"
do while not rsWord.eof
if rsWord("Category") = strLastCat then
WordListBrowse = WordListBrowse & ", <font face=arial size=2>" & customEncode(rsWord("Word_Main")) & customEncode(OtherWord(rsWord)) & "</font>"
else
WordListBrowse = WordListBrowse & "<tr valign=top><td width=""25%"" ><font face=arial size=2><b>" & customEncode(rsWord("Category")) & "</b></font></td>"
WordListBrowse = WordListBrowse & "<td><font face=arial size=2>" & customEncode(rsWord("Word_Main")) & customEncode(OtherWord(rsWord)) & "</font>"
end if
strLastCat = rsWord("Category")
rsWord.MoveNext
etc..
Hope thats relevant enough.
thanks again
Gary