Reply
Problem of LONG drop down list
Old 03-01-2007, 12:41 AM Problem of LONG drop down list
Novice Talker

Posts: 5
Hi, I made a site for flowers delivery internationally. The problem is in my Drop down list of country, there are about 240 countries. Every time our customer open the site, it takes so long time to load due to long drop down list. I think something wrong with my coding because I checked some other websites , they are using same as mine drop down list but their page load very quick.

Can anyone please check my site and tell me whats the probable problem of slow loading my site?

http://www.FlowersBazaar.com

Thank you.
maruf is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-01-2007, 01:05 AM Re: Problem of LONG drop down list
taketherisk's Avatar
Skilled Talker

Posts: 88
Name: Brett
Location: New Zealand
The problem is you have 7600 lines for the drop down list.

Delete all the spaces and line breaks and it will load much faster and save your bandwidth.

Deleting all these spaces will take a very long time, so you may be up late tonight

-Brett
__________________
My Sites:
Free Domain Names
Free Web Hosting
taketherisk is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 04:34 AM Re: Problem of LONG drop down list
Insensus's Avatar
Ultra Talker

Posts: 284
Name: Mark Stegeman
Location: Netherlands, Europe
Indeed!
Better be a little more carefull next time.

You could try making a small script for it but that might even take more time.

Regards,
Insensus
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 04:40 AM Re: Problem of LONG drop down list
Novice Talker

Posts: 5
What is link brakes? \n ? I can see every line in drop down list I have \n ... Is it for any specific reason? Can I remove this?
maruf is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 04:54 AM Re: Problem of LONG drop down list
taketherisk's Avatar
Skilled Talker

Posts: 88
Name: Brett
Location: New Zealand
line breaks are just like pressing the "Enter" key.

Yes get rid of the \n too.

Make your drop down list all close together like this:

Code:
 <form>
<select name="choice" size="1" onChange="jump(this.form)">      
<option value="Delivery to" selected>Delivery to: Select Country</option>
<option value="http://www.flowersbazaar.com/scripts/prodList.asp?idCategory=117">Afghanistan</option>
<option value="http://www.flowersbazaar.com/scripts/prodList.asp?idCategory=20">Albania</option>
<option value="http://www.flowersbazaar.com/scripts/prodList.asp?idCategory=21">Algeria</option>
</select></form>
Hope this helps...
-Brett
__________________
My Sites:
Free Domain Names
Free Web Hosting

Last edited by taketherisk : 03-01-2007 at 04:57 AM.
taketherisk is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 05:22 AM Re: Problem of LONG drop down list
Novice Talker

Posts: 5
Brett,

Thank you SO MUCH. It really helps. I'm now working on it.
I have a question. I'm using this dropdown list every page in my site. Is there a way, if visitor visit first page, next all pages it will load very quickly and will not take time to load for each page? Something like image... once visitor visit, if the same image in other pages its usually load right away... any help brett? Thank you.
maruf is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 05:35 AM Re: Problem of LONG drop down list
Insensus's Avatar
Ultra Talker

Posts: 284
Name: Mark Stegeman
Location: Netherlands, Europe
Well, as far as I know that only works for images because the drop down list isn't actually big as in bandwidth.
It only takes time for the browser to parse each of the 'option' tags.
If you could figure out a way to save the whole list to the users computer and then load it from there. I doubt it will make any difference.

Regards,
Insensus
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 05:37 AM Re: Problem of LONG drop down list
taketherisk's Avatar
Skilled Talker

Posts: 88
Name: Brett
Location: New Zealand
The drop down list will load the same on every page as it doesn't get cached like an image.
__________________
My Sites:
Free Domain Names
Free Web Hosting
taketherisk is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 05:51 AM Re: Problem of LONG drop down list
Novice Talker

Posts: 5
Thanks a lot. I have already edited the drop down list code. Please try to check now, I guess speed is better now. But how can we make a super fast speed? I checked DHL site and their site is so fast.

Check speed: http://www.FlowersBazaar.com
Check DHL site: http://www.DHL.com

Thank you.
maruf is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 06:10 AM Re: Problem of LONG drop down list
Insensus's Avatar
Ultra Talker

Posts: 284
Name: Mark Stegeman
Location: Netherlands, Europe
I think you are using Shared Hosting and DHL has their own server.
I think it's a waste of money for you to take your own server. Your site is pretty fast.
The option editing worked indeed. It loads much faster right now.

Regards,
Insensus
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 02:15 PM Re: Problem of LONG drop down list
taketherisk's Avatar
Skilled Talker

Posts: 88
Name: Brett
Location: New Zealand
All you images seem to be a good size.

Your code would load faster is you converted to XHTML Strict and didn't use tables for the layout.

When you load your page for the first time its an average speed but it is super fast after that... i think it will be fine

Good luck with your website!
-Brett
__________________
My Sites:
Free Domain Names
Free Web Hosting
taketherisk is offline
Reply With Quote
View Public Profile
 
Old 03-02-2007, 12:08 AM Re: Problem of LONG drop down list
Novice Talker

Posts: 5
Thanks lot brett. Is it easy to conver from ASP or from HTML to XHTML? Any help? Thank you!
maruf is offline
Reply With Quote
View Public Profile
 
Old 03-02-2007, 12:39 AM Re: Problem of LONG drop down list
taketherisk's Avatar
Skilled Talker

Posts: 88
Name: Brett
Location: New Zealand
You need quite a good knowledge of XHTML and how it works...

Also ASP is a server side langauge (it has nothing to do with HTML).
XHTML is the lastest version of HTML.

If you want to learn XHTML here is a tutorial:http://www.w3schools.com/xhtml/

Good luck
__________________
My Sites:
Free Domain Names
Free Web Hosting
taketherisk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem of LONG drop down list
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 5.49335 seconds with 12 queries