FORUM RULES

This forum is a free service as part of our Open Source Project. This forum is moderated by employees of Florida Host Web, a not-for-profit company paid for by donations and site sponsors.

This forum requires registration to protect its registered users. Registering fake credentials (name, email, etc. . .) will result in an immediate ban from our forums and possibly from our Web site.

  1. Do not post vulgar, offensive content.
  2. Do not post advertisements or banners of any kind.
  3. Posts are answered in the order they are received. Please allow up to 72 hours for a response due to the high volume of correspondence we receive.
  4. You may post images with the following extensions: .png, .jpg, .gif
  5. You may post any other type of file, but only if it is zipped first with either a .zip or .sit extension. This forum will not let you post any other extension type.
  6. Only post to the "Report a Bug" threads if you uncover an actual bug. Otherwise post to "General Discussion" or "Request a Feature".
  7. Do not post anything to the "Tutorial" threads at any time, this is reserved for moderators. If you have a useful tip or tutorial, please post it to "General Discussion".

Unfortunately, due to the high quantity of correspondence received, we are unable to troubleshoot code and markup not related to our extensions and tutorials. However we are always glad to help answer questions, so please feel free to post questions to our "General Discussion" Threads. Thank you for your understanding and support.

Please review our Privacy Policy and Terms of Use Policy for further details.

Show Forum Rules || Hide Forum Rules
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: [SOLVED]Window.onload
#546
[SOLVED]Window.onload 7 Months ago  
Hi,
I wasn't really sure where to put this (if it is a bug, suggestion or a new feature), so if I'm in the wrong section I can remove this and put it in the right section.

So I was working on a site that used your awesome font resize module, and I was asked to figure out a problem with another module. I kept digging and digging, and finally I found the problem. both your font resize module and the other module used window.onload = something .

In your case you guys used
Code:


window.onload = setUserOptions;


in all of your js files.

I changed it to:
Code:


if ( window.onload != null ) 
{
   var oldload = window.onload;
   window.onload = function (e) 
   {
      oldload (e);
      setUserOptions()
    }
}

else
{
    window.onload = setUserOptions;
}



Thanks for your awesome module, I hope this could help some one and save them some time, or better yet added to your future updates.
Ahmad B
Newbie
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/27 17:30 By admin.
The topic has been locked.
 
#549
Re: Window.onload 7 Months ago  
Thanks for the suggestion Ahmed.

We will add this fix to our next release after it is tested.
Kevin Florida
FHW Guru
Posts: 375
graph
User Offline Click here to see the profile of this user
Location: Houston, TX.   USA
The topic has been locked.
Kevin Florida
Project Manager
Florida Host Web, Inc.
 
#615
Re: Window.onload 6 Months, 1 Week ago  
Ahmed,

We updated all the js files with this patch and released it to version 4.6.

Thanks again for the post. We added your credit to the js source file.
Kevin Florida
FHW Guru
Posts: 375
graph
User Offline Click here to see the profile of this user
Location: Houston, TX.   USA
The topic has been locked.
Kevin Florida
Project Manager
Florida Host Web, Inc.
 
Go to topPage: 1