My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Nov 25, 2009
    jQueryCenterPlugin (Plugin for center any element horizontally and vertically.) Wiki page commented on by carlos.agh   -   Hey thanks for this plugin realy very easy to use, with testing on IE8, FF 3.x, Chrome 3.x, SF 4.x and without any problem.
    Hey thanks for this plugin realy very easy to use, with testing on IE8, FF 3.x, Chrome 3.x, SF 4.x and without any problem.

Earlier this year

  • Aug 25, 2009
    issue 7 (Failures in IE8) reported by lokkju   -   The most current version of the script (SVN + other patches in the bug list) failes to work in IE8 - the problem is that when passing in arrays of files, IE8 includes an extra element at the end of the array, and you need to skip null/undefined elements. my solution is just to add one line: //go through all the files for (var i = 0; i < fileArray.length; i++) { + if(fileArray[i] == null) { continue; } var elementTag = $.fileinfo(fileArray[i]).tag; var el = [];
    The most current version of the script (SVN + other patches in the bug list) failes to work in IE8 - the problem is that when passing in arrays of files, IE8 includes an extra element at the end of the array, and you need to skip null/undefined elements. my solution is just to add one line: //go through all the files for (var i = 0; i < fileArray.length; i++) { + if(fileArray[i] == null) { continue; } var elementTag = $.fileinfo(fileArray[i]).tag; var el = [];
  • Aug 11, 2009
    issue 6 (Multiple loading and callback fail) reported by antonio.lorusso   -   Steps to reproduce it: 1. include multiple js files with multiple separate calls to $.include like <script><!-- $.include('http://localhost/assets/js/fileone.js' function() { fileone.init();}); --></script> <script><!-- $.include('http://localhost/assets/js/filetwo.js' function() { filetwo.init();}); --></script> <script><!-- $.include('http://localhost/assets/js/filethree.js'); --></script> 2. Often the callback is not executed in IE or FF2 Expected output: the callback is always executed Tested in FF2 on windows and linux, IE 6/7/8 on windows. As explained in the steps, this bug doesnt happen always but quite often and that's because the taskId generated, sometimes is not unique because is generated at the same millisecond.
    Steps to reproduce it: 1. include multiple js files with multiple separate calls to $.include like <script><!-- $.include('http://localhost/assets/js/fileone.js' function() { fileone.init();}); --></script> <script><!-- $.include('http://localhost/assets/js/filetwo.js' function() { filetwo.init();}); --></script> <script><!-- $.include('http://localhost/assets/js/filethree.js'); --></script> 2. Often the callback is not executed in IE or FF2 Expected output: the callback is always executed Tested in FF2 on windows and linux, IE 6/7/8 on windows. As explained in the steps, this bug doesnt happen always but quite often and that's because the taskId generated, sometimes is not unique because is generated at the same millisecond.
  • Aug 07, 2009
    issue 5 (JQuery 1.3.x compatibility fix) reported by antonio.lorusso   -   Steps to reproduce the behavior: 1. create a test file including the latest JQuery 1.3.x library 2. try to include a JavaScript file setting up a callback function The callback function that is in the just included file is never executed. This happen on all IE versions. Included the patch that fix the issue.
    Steps to reproduce the behavior: 1. create a test file including the latest JQuery 1.3.x library 2. try to include a JavaScript file setting up a callback function The callback function that is in the just included file is never executed. This happen on all IE versions. Included the patch that fix the issue.
  • Jul 30, 2009
    jQueryCenterPlugin (Plugin for center any element horizontally and vertically.) Wiki page commented on by veromaillet   -   Hi, Thanks for sharing your work. Your code dont't seems to work on any other browser than Firefox. Is there something I do wrong or is there one of the pasted hack I should use ? Thanks
    Hi, Thanks for sharing your work. Your code dont't seems to work on any other browser than Firefox. Is there something I do wrong or is there one of the pasted hack I should use ? Thanks
  • Jun 26, 2009
    issue 4 (Add offset feature ready to commit!) reported by shabazzk   -   What steps will reproduce the problem? 1. I've added a minor feature ready to commit. 2. I added two parameters (hOffset and vOffset) that allow the centered element to offset from the centered object horizontally or vertically. 3. In my case, the center was too low, so I wanted to easily move it 100 or so pixels up. What is the expected output? a centered element. What do you see instead? A centered element as I expected. What version of the product are you using? On what operating system? 1.1.2 on windows vista in Firefox 3.0.11, Safari 4, Opera 9.63, Google Chrome 2.0.172.33. Please provide any additional information below. This plugin does not seem to work in IE7, even the unmodified version.
    What steps will reproduce the problem? 1. I've added a minor feature ready to commit. 2. I added two parameters (hOffset and vOffset) that allow the centered element to offset from the centered object horizontally or vertically. 3. In my case, the center was too low, so I wanted to easily move it 100 or so pixels up. What is the expected output? a centered element. What do you see instead? A centered element as I expected. What version of the product are you using? On what operating system? 1.1.2 on windows vista in Firefox 3.0.11, Safari 4, Opera 9.63, Google Chrome 2.0.172.33. Please provide any additional information below. This plugin does not seem to work in IE7, even the unmodified version.
  • May 10, 2009
    issue 2 (firefox 3.05 issue) commented on by rainswept   -   It's necessary to bounce all over the place to figure this out...the jquery plugins pages, the examples, taking apart the source code, css, and scripting...eventually got me close...but I still can't get horizontal positioning correct for an image in FF 3.0.10...which is why I'm not showing what I did. Probably needs a documentation refresh. Also, the packed version of the script reports an error. It would be best to please include both the unpacked and packed versions of the script.
    It's necessary to bounce all over the place to figure this out...the jquery plugins pages, the examples, taking apart the source code, css, and scripting...eventually got me close...but I still can't get horizontal positioning correct for an image in FF 3.0.10...which is why I'm not showing what I did. Probably needs a documentation refresh. Also, the packed version of the script reports an error. It would be best to please include both the unpacked and packed versions of the script.
  • Mar 14, 2009
    jquery.include.pack-1.1.js (A new version of the plugin that load scripts and css on dem...) file uploaded by alexanmtz   -  
    Labels: pack javascript Featured
    Labels: pack javascript Featured
  • Feb 27, 2009
    r18 (criado sistema de fila para executar o callback somente quan...) committed by alexanmtz   -   criado sistema de fila para executar o callback somente quando todos os scripts no array finalizar e tratado um bug para o safari
    criado sistema de fila para executar o callback somente quando todos os scripts no array finalizar e tratado um bug para o safari
  • Feb 27, 2009
    issue 3 (An update to JQuery Include) commented on by alexanmtz   -   The delay isn´t trustable. So check if is loaded in a frequency of time was our choice and I'll make the update in this plugin. Maybe the current safari 4 solve this issue. One more time, very thanks for contribution, I think now the plugin is reaching the goal this way.
    The delay isn´t trustable. So check if is loaded in a frequency of time was our choice and I'll make the update in this plugin. Maybe the current safari 4 solve this issue. One more time, very thanks for contribution, I think now the plugin is reaching the goal this way.
  • Feb 22, 2009
    issue 3 (An update to JQuery Include) commented on by TnidTnid   -   The only thing I can think of is maybe using XMLHttpRequest to get the JS file's contents, and placing it inside the script tag, and so bypassing the load event. Though it would probably be a problem for external (different domain) scripts. Other then that I have no clue... I don't know much about browser bugs... maybe you could add a delay after the load event fires, to compensate for firing to early?
    The only thing I can think of is maybe using XMLHttpRequest to get the JS file's contents, and placing it inside the script tag, and so bypassing the load event. Though it would probably be a problem for external (different domain) scripts. Other then that I have no clue... I don't know much about browser bugs... maybe you could add a delay after the load event fires, to compensate for firing to early?
  • Feb 22, 2009
    issue 3 (An update to JQuery Include) commented on by alexanmtz   -   sometimes its just didn't loaded, but when you refresh the alert after the callback works, really strange. We discover that is a bug in safario on onload event, that cheat the benchmarks because the tests starts on onload event. So in safari you can't trust, We are trying call the functio on every 200 miliseconds to check if it's loaded just in safari, if you know any solutions, please be open to share with us...
    sometimes its just didn't loaded, but when you refresh the alert after the callback works, really strange. We discover that is a bug in safario on onload event, that cheat the benchmarks because the tests starts on onload event. So in safari you can't trust, We are trying call the functio on every 200 miliseconds to check if it's loaded just in safari, if you know any solutions, please be open to share with us...
  • Feb 11, 2009
    issue 3 (An update to JQuery Include) commented on by TnidTnid   -   It seems to work on my version of safari (3.2.1) - I've checked that the callback is only called once, and that both files are loaded when it's called. What exactly isn't working? maybe I'm missing something...
    It seems to work on my version of safari (3.2.1) - I've checked that the callback is only called once, and that both files are loaded when it's called. What exactly isn't working? maybe I'm missing something...
  • Feb 11, 2009
    issue 3 (An update to JQuery Include) commented on by alexanmtz   -   Great Change and improvement! I'll make some tests in projects that already using the plugin and them I'll officially make a update. Thanks for sharing!
    Great Change and improvement! I'll make some tests in projects that already using the plugin and them I'll officially make a update. Thanks for sharing!
  • Feb 11, 2009
    issue 3 (An update to JQuery Include) commented on by thiagomir   -   TnidTnid, do you have a solution for Safari? You did a great change, and works fine in all browsers but the apple one.
    TnidTnid, do you have a solution for Safari? You did a great change, and works fine in all browsers but the apple one.
  • Jan 24, 2009
    issue 3 (An update to JQuery Include) commented on by TnidTnid   -   I'm not familiar with the Google Code system, so may be there's no need, but it seems that the file that I've attached to the original message isn't showing. I've attached it again to this comment.
    I'm not familiar with the Google Code system, so may be there's no need, but it seems that the file that I've attached to the original message isn't showing. I've attached it again to this comment.
  • Jan 24, 2009
    issue 3 (An update to JQuery Include) reported by TnidTnid   -   I just want to say that I really like your plugin, and it was a great help for a site I'm currently building, so I've decided to share a small improvement I made to your code. I've changed the way the callback is called, so that it's only called if all the files in a given array are loaded (which I believe is the intended result), instead of calling callback each time a single file is loaded. Now calling the following code would only show a single alert instead of three: $.include(['file1.js', 'file2.js', 'style.css'], function(){ alert('Loaded');}); To achieve that, I'm using an associative array, that creates an object for each task (a set of files to load) that contain the number of files that are still loading, and the callback to call after they are all loaded. Each time a file is loaded I decrease the count, until the count reaches to zero, and then I call the callback and delete the record from the array.
    I just want to say that I really like your plugin, and it was a great help for a site I'm currently building, so I've decided to share a small improvement I made to your code. I've changed the way the callback is called, so that it's only called if all the files in a given array are loaded (which I believe is the intended result), instead of calling callback each time a single file is loaded. Now calling the following code would only show a single alert instead of three: $.include(['file1.js', 'file2.js', 'style.css'], function(){ alert('Loaded');}); To achieve that, I'm using an associative array, that creates an object for each task (a set of files to load) that contain the number of files that are still loading, and the callback to call after they are all loaded. Each time a file is loaded I decrease the count, until the count reaches to zero, and then I call the callback and delete the record from the array.
  • Jan 09, 2009
    issue 2 (firefox 3.05 issue) reported by Roman.Hurton   -   On Firefox 3.05 plugin doesnt work
    On Firefox 3.05 plugin doesnt work

Older

  • Sep 30, 2008
    r17 (adicionado o plugin jquery.include.js) committed by alexanmtz   -   adicionado o plugin jquery.include.js
    adicionado o plugin jquery.include.js
  • Sep 30, 2008
    jQueryIncludePlugin (Utility library to include JavaScript and / or CSS on demand...) Wiki page edited by alexanmtz
  • Sep 30, 2008
    jQueryIncludePlugin (Utility library to include JavaScript and / or CSS on demand...) Wiki page added by alexanmtz
  • Sep 30, 2008
    r14 (Apagado o deploy utilizado para testes) committed by alexanmtz   -   Apagado o deploy utilizado para testes
    Apagado o deploy utilizado para testes
  • Sep 24, 2008
    issue 1 (Trying to center an iframe doesn't work) commented on by alexanmtz   -   I will try to get this values with the dimensions plugin to fix the error.
    I will try to get this values with the dimensions plugin to fix the error.
  • Aug 05, 2008
    r13 committed by alexanmtz
 
Hosted by Google Code