Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2003, 07:01 PM   PM User | #1
peterinwa
Regular Coder

 
Join Date: Jun 2002
Location: Vancouver, WA
Posts: 233
Thanks: 2
Thanked 0 Times in 0 Posts
peterinwa is an unknown quantity at this point
Data in huge variable won't all display with Netscape 7.0

Yes, I thought to post this on a browser forum. But it always ends up being an error in my JS coding, so...

I search through a list of foods and then use HTML/JS/Frames to display the search results on a page. It works fine with IE and Netscape 4. But with N 7.0 the list truncates if it is too large. I get no error messages.

At first I wondered if there might be a limit to how large a variable can be, but if I insert an alert(variableName.length) it's all there in all three browsers. It just doesn't all display with N 7.0.

For example, the alert might indicate 69,000. With IE and N 4 it all displays on the page; with N 7.0 the alphabetical list just stops in the Cs. With a smaller list, like 28,000, it works well in all three browsers.

You can see it at:

www.eatwellandexercise.com/cph/index_food.html

Search for ".. " or period period space. (The two periods add extra data for me to see checking my work; the space finds every item with a space in it which would be every item.)

Any ideas?

Thanks, Peter
peterinwa is offline   Reply With Quote
Old 04-12-2003, 08:24 PM   PM User | #2
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
It happened to me in Moz 1.3

If the string length is right then I'd guess it's an HTML or CSS rendering issue, overlaping elements, improper nesting, missing or incomplete tags etc.
Graeme Hackston is offline   Reply With Quote
Old 04-12-2003, 08:29 PM   PM User | #3
peterinwa
Regular Coder

 
Join Date: Jun 2002
Location: Vancouver, WA
Posts: 233
Thanks: 2
Thanked 0 Times in 0 Posts
peterinwa is an unknown quantity at this point
Thanks. Self-taught and probably guilty of most of those. Still seems funny that it only happens with large variables. Don't see why the logic would change.

Actually, come to think of it, it almost seems as if it's going ahead and displaying the page before the search is complete. But it can't be that because the variable.lenght indicates the full list... a complete search. It's just the page display that's incomplete.

Anyway, I don't worry too much about Netscape users. Thanks.
peterinwa is offline   Reply With Quote
Old 04-12-2003, 08:39 PM   PM User | #4
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
True the containing HTML is all the same so it souldn't be tags or nesting. It could be that the larger sized container is some how being clipped.

In my experience errors in Moz 1x (haven't used NN7) are always caused by my incorrect coding. Not being concerned with NN visitors is fine, code that doesn't work in the browsers could lead to compounded problems in the future.
Graeme Hackston is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:00 AM.


Advertisement
Log in to turn off these ads.