Web Hosting Forums | Forums for Web Hosting
Old August 24th 2004, 11:45 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2004
Posts: 1
javascript problem in safari

Hi

we have recently designed and built a dynamic web site using DIV element within another, to enable the user to scroll.

When we had the site tested we received this feed back;-

3. The scrolling pane does not scroll far enough in Apple Safari, so in several cases it is not possible to view all the books.
We have identified the cause, and have found a solution, albeit that it is not ideal.
? The scrolling pane is constructed from a DIV element inside another one. The outer one is 600 pixels wide, and sets the width of the display the user sees. The inner DIV element is currently 1682 pixels wide on every page, and this determines the width of the table containing the thumbnail ima This means it is possible to scroll until no books are visible. If the user continues to scroll before changing direction it may take some time before any books come back into view.
? There is a ‘grey area’ during which increases in the ‘width’ attribute of the DIV element causes the spacing between the books to increase.
If the DIV width is below the lower limit of this ‘grey area’ then Safari does not display all the books.
As the DIV width increases, the spacing between the books increases, and becomes unacceptably large.
If the DIV width is above the upper limit of this ‘grey area’ then it is possible to scroll until no books are visible.
The solution is to set the DIV width to the exact value required, which is different for each page and depends on the number of books in the scrolling pane. It will be in the ‘grey area’ described above, probably near the lower limit. It may be that this can be calculated if all books are the same width. If not, it will be necessary to use trial and error.
This solution will obviously cause a maintenance issue if books are added to or removed from the pages. It is recommended that alternative coding methods are investigated, possibly using JavaScript to set the width of the DIV element automatically based on the number of books on each page.

If anyone could help us please could you
Bennr is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Stumble This!Add to Live!Wong this Post!Yahoo my WebGoogle Bookmarks
Forum Advertisement ** This Advertisement Does Not Show To Registered Users **
Old August 24th 2004, 12:18 PM   #2 (permalink)
The Boss
 
Administrator's Avatar
 
Join Date: Jan 2003
Location: London
Posts: 339
As this is an advanced coding problem i would suggest including a link to the script so that people may take a look.

It is possible that someone may be able to find a different solution for the problem other than automatic width based on the div content but would need to see the script to investigate.
__________________
Add your web design or hosting company to my Hosting Directory.

Register to post on the forums.
Administrator is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Stumble This!Add to Live!Wong this Post!Yahoo my WebGoogle Bookmarks
Old July 10th 2007, 11:01 PM   #3 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 7
Thumbs up Javascript solutions

Hi bennr

Get your problem solved from here
http://www.techhelpformarketers.com

Hope it's helpful to you!

[mac_jsn]

Last edited by mac_jsn; July 10th 2007 at 11:05 PM. Reason: Spell
mac_jsn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Stumble This!Add to Live!Wong this Post!Yahoo my WebGoogle Bookmarks
Old July 19th 2009, 02:19 AM   #4 (permalink)
Registered User
 
Join Date: Jul 2009
Posts: 3
Try validator.w3schools I think they'll show your error and have some suggestion.
romanohenry is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Stumble This!Add to Live!Wong this Post!Yahoo my WebGoogle Bookmarks
Old August 25th 2009, 04:14 AM   #5 (permalink)
Moderator
 
~ServerPoint~'s Avatar
 
Join Date: Feb 2009
Posts: 1,099
Make sure guys you check the thread date before start posting
Closed
__________________
ServerPoint.com - a true hosting company offering online presence solutions since 1998
Web Hosting, colocation, dedicated servers, Virtual Private Server (VPS) hosting
Wholly owned multi homed network, servers and facilities
~ServerPoint~ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Stumble This!Add to Live!Wong this Post!Yahoo my WebGoogle Bookmarks
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Tutorials Administrator Javascript Forums 5 January 16th 2012 03:53 AM
Javascript books Administrator Javascript Forums 4 September 27th 2010 10:04 AM
No Audio Device Problem jhellen PC / Mac Help 1 October 20th 2007 12:10 AM
Another "No Audio Device" problem rewsunshine PC / Mac Help 0 February 3rd 2007 10:24 AM
HOsting or Nameserver problem please help DaihatsuUhost Web Hosting 1 October 8th 2005 10:58 AM


All times are GMT -5. The time now is 06:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1
 

Web Hosting


Sponsor


 

Webmaster Links: Social Media Marketing | Pay Per Click


 

Featured Web Hosting Companies

 

©Ascendancy Media Limited All rights reserved / Legal Disclaimer / Privacy Policy
Basic Web Hosting Search Intermediate Web Hosting Search Advanced Web Hosting Search Log in to add your companies details Search the forums on web hosting, web design and programming Your bookmarked web hosting and web design packages Buy your domain names from here, includes multilingual registrations and translation! Our affiliate programs, including the ability to set up large and small corporations to sell domain names in real time using our transparent affiliate system Group of web hosting companies with some info on their services - use this to find a company FAST Jump to Top of Page Jump to Top of Page Back to previous page Back to homepage Back to homepage Back to homepage Back to homepage Back to homepage Back to homepage