Forum Moderators: open

Message Too Old, No Replies

Mac + ie5, table display problem

         

gazzabj

7:19 am on Jun 23, 2004 (gmt 0)

10+ Year Member



I am trying to fix a framed site that uses ASP and javascript to produce a HTML page. This HTML page works fine on IE 5 on a PC but doesnt completely display on a Mac + IE5, unless you resize the window, it then appears correctly.

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!)

tedster

7:48 am on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

gazzabj

8:01 am on Jun 23, 2004 (gmt 0)

10+ Year Member



Thanks for the welcome, I am new to the Mac and this is my first attempt at running a site on one. I have produced plenty on the PC without too much trouble. This is a very peculiar error. My frameset is as follows. I would point out I did not put this together, i am just trying to fix the Mac bug.

<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

gazzabj

10:46 am on Jun 25, 2004 (gmt 0)

10+ Year Member



Has anyone got any suggestions please, this is getting desperate!

Gaz

BlobFisk

12:50 pm on Jun 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd be inclined to think that the problem may lie with the fact that your source is a javascript function call.

What is the functions showtools() and getdata() doing?

gazzabj

1:07 pm on Jun 25, 2004 (gmt 0)

10+ Year Member



Thanks for the reply, basically they return a string that contains the dynamically created HTML.

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

BlobFisk

1:18 pm on Jun 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe a (short and relevant) snippet of the 'data' code may help us track down the problem?

gazzabj

1:41 pm on Jun 25, 2004 (gmt 0)

10+ Year Member



strOutput = strOutput & "<table border=0 cellpadding=1 cellspacing=1 width=""100%"" >"
strOutput = strOutput & "<tr><td>"
'strOutput = strOutput & "<input type=hidden name=id size=10 value=""&strPictureId&"">"
'strOutput = strOutput & "</td></tr><tr><td>"

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

BlobFisk

2:01 pm on Jun 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That looks more like VBScript rather than JavaScript - you are calling a JS function in your frame src attribute. Is the data() function a JS (client side) or a server side function?

gazzabj

2:12 pm on Jun 25, 2004 (gmt 0)

10+ Year Member



Vbscript is used to build up the string, but the actual output is done using a Javascript call server side.

I didnt design this by the way, just trying to fix it!

Gaz

gazzabj

10:54 am on Jul 1, 2004 (gmt 0)

10+ Year Member



Ignore this now, it turns out to be a bug in IE. We have tested on all other browsers and it works fine.

Gaz