[jQuery] datepicker
I am using the jQuery datepicker. When the user selects an item in a drop down list box the selectable dates in the calender in the datepicker get updated with all selectable dates associated with the selected drop down list item. The dates seem to update fine except for the very last one. If I click the back arrow for the last month then the forward arrow to go to the current month the calendar then has all of the new selectable dates. Any idea why the current months selectable dates aren't updated with the calender as rendered? Thanks.
[jQuery] Re: Struts2, JQuery and JSON result to create a dynamic ajax website
Hi GF This is really good! Thank you very much! On Jul 13, 3:52 am, GF wrote: > Hello all, > i wrote a simple guide that explains how to use together Struts2 and > JQuery to create dynamic content with Ajax and JSON. > > http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-str... > > I hope someone can appreciate it > > Thank You
[jQuery] Re: Invalid Argument Line 12 1.3.2 IE 7 and 8rc1
It is caused by autogrow.js, but i have no idea how to fix it! autogrow isnt even working for me in IE6 and 7, when you click inside a textarea it shrinks down to one line high and then doesnt expand as you type. and when you click in the second textarea on my page nothing happens at all (as if autogrow doesnt even activate). On Jun 18, 1:13 pm, kitafe wrote: > Does anyone have a solution. I have the same problem and I use jquery > 1.3.2 and ui 1.7. I've tried both the minified and the none minified > versions. > With ui accordion version 1.6rc2 i have no problem. But I then the > collapsible wont work. > > On Apr 26, 8:06 pm, sabrinax wrote: > > > I did, yes. You can see my sample page here:www.tattoozu.net/trial > > to see the problem > > > On Apr 26, 12:57 pm, dhtml wrote: > > > > On Mar 9, 3:43 am, phipps_73 wrote: > > > > > Hi, > > > > > I have just upgraded one of our development sites to 1.3.2 and ui 1.7. > > > > I have also updated all of the plugins > > > > (forms,validate,thickbox,calculation,blockUI,autogrow) to the latest > > > > versions which should all be compatible with 1.3.2 and the site is > > > > working perfectly in Firefox 3 on OS X and XP. > > > > > However on IE8rc1 and inIE7compat mode I am getting an Invalid > > > > Argument error reported at line 12 of jquery-1.3.2.min.js. That is the > > > > usual really helpfulIEerror message and I have been unable to track > > > > down the source of the problem. > > > > Do you get the same error with the normal, non-minified version? > > > > Garrett
[jQuery] Re: Accordion-like functionality
I believe your best bet would be a custom build solution. Most accordions use floating divs but to overlay the headers without moving them down you would need absolute positions. Shouldn't be too difficult to create fom scratch ste...@braingia.org wrote: Hello, I'm trying to accomplish an accordion-like function, but instead of dropping down the section below, the content just lays over the other options. For example, take a look at the Accordion example here: http://jqueryui.com/themeroller/ Notice how when section 2 is clicked, section 1 rolls up. I'm trying to achieve something where with section 1 open, the user would need to click on section 1 to close it and then could select section 2 which would overlay its content below, rather than pushing section 3 down. Is there an option on accordion that I'm missing or can this be accomplished using another widget or plugin? Steve
[jQuery] Re: Ajax upload script
Hi Dave I have used jquery ajaxFileUpload plugin for file upload. http://www.phpletter.com/Our-Projects/AjaxFileUpload/ Regards Ranga On Tue, Jul 21, 2009 at 11:40 PM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > Can anyone point out a good Ajax upload script. I need one simply for > uploading images. > > Currently using Valums upload script but no assistance from them when > asking questions. I need to be able to change the file name being submitted > before sending to the server then display the thumb of the image uploaded > after complete. > > Or if anyone is using the Valums http://valums.com/ajax-upload/ script > could help me out. > > Thanks > > Dave >
[jQuery] Accordion-like functionality
Hello, I'm trying to accomplish an accordion-like function, but instead of dropping down the section below, the content just lays over the other options. For example, take a look at the Accordion example here: http://jqueryui.com/themeroller/ Notice how when section 2 is clicked, section 1 rolls up. I'm trying to achieve something where with section 1 open, the user would need to click on section 1 to close it and then could select section 2 which would overlay its content below, rather than pushing section 3 down. Is there an option on accordion that I'm missing or can this be accomplished using another widget or plugin? Steve
[jQuery] shifting a box sideways and making it gradually dissapear
Hey, so there might be a simple solution to my problem, but here is my question: I have a box: html There is some text inside this box. It spans the entire width blah blah blah. styles=== #box{ width:800px; height:400px; border:1px solid #444; } #innerbox{ position:relative; width:200px; float:right; } #toggle{ width:20px; background-color:grey; height:400px; float:left; } Now this innerbox needs to move to the side to reveal whatever is below it when the toggle is clicked. As the the innerbox moves out of the main box the parts of it that leave main box should become invisible. Now there is a simple solution in which I make the background of the innerbox an image and decrease the width using jQuery's .animate(). This isn't ideal however, since I kinda need there to be text users can interact with in the innerbox. javascript $(document).ready(function(){ $("#toggle").toggle(function(){ $("#innerbox").animate({ width: '75px' }, 'slow'); },function(){ $("#innerbox").animate({ width: '200px' }, 'slow'); }); }); == On the other hand, shifting the innerbox to the right (instead of decreasing the width of the image) means that it extends the reach of the encompassing box. javascript $(document).ready(function(){ $("#toggle").toggle(function(){ $("#innerbox").animate({ right: "-=125" }, 'slow'); },function(){ $("#innerbox").animate({ right: '-=125' }, 'slow'); }); }); Does anyone have any ideas how I can solve this? I've thought of placing divs with a higher z-index next the main box but this isn't really an option, since it would make the website too large. Any help would be much appreciated. Thanks, Simon
[jQuery] Ingrid, the jQuery datagrid!
Hi all, Happy to announce that the Ingrid datagrid project is still very much alive! With the help of Patrice Blanchardie, Ingrid has been moved to its new home on Google Code, and includes quite a few bug fixes and updates (full list below). Also included is an updated example of a remote PHP script used to render the table-html input required by Ingrid. It clearly illustrates what params are passed in from Ingrid (page, sort, sort dir, etc). I know this is easily retrieved via Firebug's concole tab - but I get plenty of emails on this anyway, so happy this is now available! The community has been as active as ever, and I continue to get emails from user suggesting new features, asking for help, or just saying hello. A *big* thank you to everyone who has helped, and those who continue to help, making Ingrid a better plugin. Cheers, Matt http://www.reconstrukt.com/ingrid/ http://code.google.com/p/jq-ingrid/ v.9.4 (Thanks Patrice!) - bug fix: unable to clear last selected row from cookie - bug fix: added onRowSelect callback during pre-selection - feature: new param: unsortable columns - feature: selection is now stored for all pages - feature: page changed callback v.9.3 (Thanks Patrice!) - Moved to Google Code - bug fix: selection behaviour - bug fix: hscroll width - bug fix: attribute selector - bug fix: result error handler - bug fix: header auto-resize - feature: new methods: unselect all, select all
[jQuery] please help i have 2 jquery in one page and only one working
:: Navin Designs :: Creating Your Home On The Web $(document).ready(function(){ var hover_in_easing="easeOutExpo"; var hover_out_easing="easeOutBounce"; $(".info_container").show(); $("div.portfolio_div").hover(function(){ $(this).find(".info_container").animate({top:"0px"},{duration: 400, easing: hover_in_easing}); },function(){ $(this).find(".info_container").animate({top:"100px"},{duration: 500, easing: hover_out_easing}); }); }); $(function() { $("#1, #2, #3").lavaLamp({ fx: "backout", speed: 700, click: function(event, menuItem) { return false; } }); });
[jQuery] Re: jQuery Conference Update
man envy you guys who can go for some who live and earn a living a Taiwan, its so hard/expansive for me go to. but still hope you guys have a great weekend just dunno if anybody can share the experience on youtube or something?
[jQuery] Re: Cycle Plugin: Pause the cycle from link withing the cycling content?
looked at this a couple of times ,,have you tried working with the cleartypeNoBg option" have seen other posts where things have been resolved using cleartypeNoBg: false welshy1984 wrote: I am having an issue with pausing the cycle from links within the cycle. I have set up a cycle that contains a html contentent including a 'video playlist'. This is a _javascript_ based list that updates a flash video player with a new video inside the cycle. The videos are loading fine, but for some reason when i call the cycle 'pause', it dosent work? i have testing the $('#feature').cycle('pause'); from a link outside the cycle and that seems to be working, but it seems to be from the links inside the cycle content. here is the code i am using (i have made a custom crossfade transition) function feature() { $('#featuretitle').hide(); $('#feature').after( '' ).cycle({ fx: 'crossfade', pause: 1, speed: 1000, timeout: 8000, cleartype: 1, pager: '#featurenav' }); } function videoList(){ $('a.vidlink').click(function(){ var vidLink = $(this).attr('rel'); player.sendEvent('STOP'); player.sendEvent('LOAD',vidLink); player.sendEvent('PLAY'); $('#feature').cycle('pause'); }); }
[jQuery] (Cycle Plugin) ScrollHorz problem in FF and Safari 3
When using the ScrollHorz effect in the Cycle Plugin for inline HTML content, in Firefox and Safari 3, the very first time you trigger the transition, the content of the first "slide" appears to be being squished and ends up overlapping with the incoming slide/text. See an example here: http://tinyurl.com/mmddkn (click on any of the white text in the vertical image or click the "Begin" link at the bottom of the first block of text). After the cycle as occurred once, it doesn't do this again. So it's like it has something to do with the container being sized/resized the first time. Anyone see this kind of problem before?
[jQuery] Re: jQuery Conference Update
We snagged our seats the other day should be a great weekend On Jul 21, 3:57 pm, Rey Bango wrote: > Hi everyone, > > I wanted to let you know that there are only 56 seats left for the > jQuery Conference. 300 is the max. We'll probably sell out by tomorrow. > > If you plan to attend, I would recommend registering quickly. > > http://events.jquery.com > > Rey...
[jQuery] Re: Should this work?
NM."Only properties that take numeric values are supported (e.g. backgroundColor is not supported)." From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Tuesday, July 21, 2009 7:35 PM To: jquery-en@googlegroups.com Subject: [jQuery] Should this work? $('.menu1 a:last').css('background-color','#fff').animate({backgroundColor:'#222'}, 1000) -- "Ninety percent of the politicians give the other ten percent a bad reputation." - Henry Kissinger
[jQuery] Re: jQuery => License
No. jQuery is open source licensed under a liberal MIT license. You can use it without cost. Rey Kaps wrote: Hello Team, I just want to know that do I need to purchase a license if I want to use jquery on public sites. Waiting for your quick reply!!
[jQuery] Re: CSS height/width function value
I don't need to manually convert stuff, I need the retrieve a value of ems from the jQuery or otherwise use a function to convert from pixels to ems. On Jul 21, 9:11 am, gil wrote: > Maybe this links could help. > > http://dtott.com/thoughts/2008/01/19/convert-pixels-to-ems-a-bookmark... > > http://riddle.pl/emcalc/
[jQuery] Re: [Autocomplete] Form submit or link on mouse click or return key
On 7/20/09 1:06 PM, "koichirose" wrote: > Hello, I'm using jQuery Autocomplete ( > http://docs.jquery.com/Plugins/Autocomplete > ) to display results from a php page. > > Since that is my only field, I want to submit the form when I click on > the result or I press the 'return' key. > > How do I do that? > > The result is showing something like 'artist - album' and I'd like to > post only the artist . > > Also, it would be event better without a form submit: the results > would have their own php-generated link to another php page with > artist passed as a $_GET variable. I click or press enter on them and > it would work just like a link. > > Is there a way to achieve that, either by submitting the form or by > linking to the new php page? take a look at result() documented on the page you liked above. you should be able to program the functionality you want in a result() handler.
[jQuery] Programmatically Resize a resizable element
I think this has probably been asked before but. I want to resize an element that has .resizable() on it. I want the resizable 'stop' event to trigger when it is done. Is there a way to do this? Thanks
[jQuery] Should this work?
$('.menu1 a:last').css('background-color','#fff').animate({backgroundColor:'#222'}, 1000) -- "Ninety percent of the politicians give the other ten percent a bad reputation." - Henry Kissinger
[jQuery] Re: Calling other functions inside a function
The reason this would happen is that you have a fatal error somewhere inside your createCharts() function. When this error occurs, it stops all JavaScript execution for the current event. Do you have any debugging tools such as Firebug? If not, install Firebug and try again. Open the Firebug panel and make sure it's enabled for your site, then reload the page and do whatever you need to do to trigger the error. It's very likely that Firebug will give you an error message showing exactly what the problem is. If the problem isn't clear from that message (or if you don't get one), try sprinkling the code inside createCharts() with console.log() calls: function createCharts() { console.log(1); // some of your code here console.log(2); // some more of your code here console.log(3); // and some more of your code here console.log(4); } By watching the Firebug console, you will then be able to see which of your console.log() calls were actually executed. -Mike > From: evanbu...@gmail.com > > This is probably more of a basic javascript question than a > specific jquery function. I have this jQuery function named > validateSubmit() which calls two other regular javascript > functions. When using IE, both createCharts() and > getDirectorIDs get called but when using FireFox, only > createCharts() gets called and never makes it to > getDirectorIDs() and I'm not sure why this occurs. Thanks > > > // make sure at least one checkbox is checked function > validateSubmit() { > if( $("input:checkbox:checked").length == 0 ) { > alert( "Please select at least one section for your > PDF profile" ); > return false; > } else { > createCharts(); > > getDirectorIDs(); > return true; > } >} > >
[jQuery] Re: Delay a swap of a DIV
If you know how long the movie is, you can use the native window.setTimeout() function. // Displays alert after 5 seconds window.setTimeout(function() { alert('5 seconds have passed'); }, 5000); -- Hector On Tue, Jul 21, 2009 at 1:48 PM, Mats wrote: > > I have a page that is a displaying a Movie, or it's really 3 Movies > but to get to the 2nd Movie the user has to click a "Next" button. My > problem is that I want to delay this button to appear until the movie > is more or less done... could be 7 or 16 minutes. > What would be the easiest and most propriate way to do this using > jQuery... swaping out one DIV for another once after X minutes? > > Thanks in advance > /Mats/ >
[jQuery] Re: Preemptively getting the "auto" height of a
Your approach worked great! Thanks a lot for the help. On Jul 21, 2:00 am, Liam Potter wrote: > take off the height in the CSS, store the computed height in a var, and > on page load set the div to the 300px, then animate to the height > contained in the var. > > ebakunin wrote: > > Hello, > > > I have a with a height of 300px, overflow hidden, and a lot of > > text -- more than can be displayed in the . I would like > > to .animate() the to display the entire text. Without animation > > I could just use .css("height", "auto"). When I use the same code in > > animation -- .animate({"height":"auto"}) -- it returns the height of > > the before animation, i.e. 300px. Instead, I need to set a > > variable before animation that captures the value of "height":"auto" > > without actually applying .css(). That way I use the variable in > > the .animate() call. Can anyone recommend a way to do this? Thanks a > > lot for the help.
[jQuery] Re: Ajax upload script
I've used and quite like jQuery Form Plugin http://malsup.com/jquery/form/ I think they both work in very similar fashions and are very easy to use I'm struggling at the moment to read the response when using either of these plugins cross domain. If anyone has any thoughts On Jul 21, 7:10 pm, "Dave Maharaj :: WidePixels.com" wrote: > Can anyone point out a good Ajax upload script. I need one simply for > uploading images. > > Currently using Valums upload script but no assistance from them when asking > questions. I need to be able to change the file name being submitted before > sending to the server then display the thumb of the image uploaded after > complete. > > Or if anyone is using the Valums http://valums.com/ajax-upload/script > could help me out. > > Thanks > > Dave
[jQuery] Re: weird animate() flicker in strict DTD in FF3
I can't believe no one else has seen this? I've tried to isolate the problem but so far, it's pretty consistent.
[jQuery] Re: Binding of object
Having click handlers added repeteadly is a sign of bad structure in your code. You should refactor your code to avoid that in the first place, that should'nt be happening. That said, there is a way to check for event handlers: var $login = $('#login'); if ( jQuery.data( $login[0], "events").click ){ // there is a handler already } else { $login.click( fn ); }; If you're staying with the unbind solution, add a namespace so you only unbind the relevant events, not all of them (in case they exist): $('#login').bind('click.sken', function(){...}); $('#login').unbind('click.sken'); On Jul 21, 4:59 am, sken wrote: > Hey, > is it possible to get the "binding" of an object. > Let`s say i do > > $("#login").click(function); > > so the next time i call $("#login") i want to check if a click event > is already bind to that obejct. > So that i don't have a double binding (in this case the click is > doubletriggered) > > My solution was to unbind it. > > $("#login").unbind("click").click(function); > > This does work but i was just curious if there is another possibility > to check this.
[jQuery] Re: jquery, php question (Probably the wrong place to ask)
The code now is like this: Chest: NAME="Aircraft"> $password="pass"; $database="completChest"; mysql_connect('127.0.0.1',$user,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * from Chests where chest_active=1"; $result = mysql_query($query); while ($myinfo= mysql_fetch_row($result)) { print "". $myinfo[2]." ".$myinfo[3]." ".$myinfo[1]; } ?> colspan="2">Items in Chest function populate(max_chest){ for(var i=0;i<=max_chest;i++){ document.write(""; } } On Jul 21, 2009, at 1:41 PM, Glazz wrote: Hi, What is the code that you now? If you have none we can help you create the code you need But you are going to use $.ajax() to get the numbers that you are talking about from the MySQL table. And then you can update the form as your needs. Btw, im a neewbie too but i can help in what i can :) Regards, Bruno. On 21 Jul, 21:24, raisputin wrote: Hello, newb here ;) This is probably the wrong place to ask, but maybe someone could point me in the right direction if that is the case :) I am pulling data from a mysql database to partially populate a form. This is all done in a 'dialog' which is really slick, so when I open that dialog, i get (please excuse the crude drawings) Dropdown menu [ Chest 1 ] [ Chest 2 ] [ etc... ] That part I have working fine, what I need to do now is make it so that when someone selects Chest_N it will populate the form with say the number of drawers in that chest as each chest may have any number of drawers (within reason of course). The information for each chest, such as mfr, etc. and including the number of drawers is stored in the 'chests' table in mysql like Table: Chests chest_id chest_name chest_color chest_serial chest_num_drawers so when I select a chest in the dropdown, I need to create fields like "Drawer 1 - Drawer N" as text boxes in the form. The mySQL queries I can do as that is super simple, I am just not sure how to make it do the query once a chest is selected. Any help appreciated, and if I am asking in the wrong place, a direction to the proper place to ask would also be appreciated. :) Thanks in advance
[jQuery] Modify look & feel of scrollbar
Hi Guys Is there any way I can modify the look and feel of my scrollbar ? I looked into the jScrollPane plugin but it only works for jquery 1.2 and Im using 1.3.
[jQuery] Menu items count
Dear Sir, Im new to joomla, and im tryin to use your Superfish Menu on my site, The problem is my menu has more than 10 objects and Superfish menu only shows 10 objects and rejects the rest of em. is there any way to increase the number of objects it shows? Many thanks in advance, Andre
[jQuery] Intelligent ways of DOM manipulation
Hi there, I need some advices about DOM manipulation . I want to push some piece of html code to document with jQuery and JavaScript in general.(ie. I want to create widget containing close and minimize buttons and contents block with only calling for example $ ('#widget-div').createWidget() ). I think if I will do it by creating elements and adding attributes and nodes to it, it can harm performance of rendering, so I'm now doing it by creating string containing markup of widget, then appending it to element I want ( look at http://pastie.org/553503 , I put my code there ) , but it looks dirty and hard readable. Can you suggest me anything ? Any help appreciated. Thanks in advance. Mushex Antaranian.
[jQuery] Using data(name,value) to store additional information
I wanted to define additional attribute to a tag to manage information. I realized that XHTML might not like it and discovered the data(name,value) function. I was wondering how i could retrieve all tags e.g. "div" that have that data variable set.
[jQuery] Delay a swap of a DIV
I have a page that is a displaying a Movie, or it's really 3 Movies but to get to the 2nd Movie the user has to click a "Next" button. My problem is that I want to delay this button to appear until the movie is more or less done... could be 7 or 16 minutes. What would be the easiest and most propriate way to do this using jQuery... swaping out one DIV for another once after X minutes? Thanks in advance /Mats/
[jQuery] Re: jquery, php question (Probably the wrong place to ask)
Hi, What is the code that you now? If you have none we can help you create the code you need But you are going to use $.ajax() to get the numbers that you are talking about from the MySQL table. And then you can update the form as your needs. Btw, im a neewbie too but i can help in what i can :) Regards, Bruno. On 21 Jul, 21:24, raisputin wrote: > Hello, newb here ;) > > This is probably the wrong place to ask, but maybe someone could point > me in the right direction if that is the case :) > > I am pulling data from a mysql database to partially populate a form. > This is all done in a 'dialog' which is really slick, so when I open > that dialog, i get (please excuse the crude drawings) > > Dropdown menu > [ Chest 1 ] > [ Chest 2 ] > [ etc... ] > > That part I have working fine, what I need to do now is make it so > that when someone selects Chest_N it will populate the form with say > the number of drawers in that chest as each chest may have any number > of drawers (within reason of course). The information for each chest, > such as mfr, etc. and including the number of drawers is stored in the > 'chests' table in mysql like > > Table: Chests > chest_id > chest_name > chest_color > chest_serial > chest_num_drawers > > so when I select a chest in the dropdown, I need to create fields like > "Drawer 1 - Drawer N" as text boxes in the form. The mySQL queries I > can do as that is super simple, I am just not sure how to make it do > the query once a chest is selected. > > Any help appreciated, and if I am asking in the wrong place, a > direction to the proper place to ask would also be appreciated. :) > > Thanks in advance
[jQuery] Re: Tablesorter & Pager Problem
My bad didnt copy the pager div section from the example. On Jul 21, 11:31 am, Vamshi wrote: > This works fine when i just use tablesorter but when I add pager > plugin code , it doesnot work properly. > > What happens : When I click on the header to sort, it displays me a > just the header row > > What should be done : ... > > Following is the code, > > > > > type="text/css"> > type="text/css"> > > > > script> >