textbox text manipulation
hi! iwant a certain action to be done on keypress event and exactly on comma keypress (charcode=188).my application would be use to send txt message to multiple recipient(s) whose number(s) are comma separated.so basically on a textbox if a user type this 233,i need 233 to validate for network coverage from my sms gatewayand if this 233,244, i want this 244. i've come out with a code that does that but i need to make sure i'm doing the right thing if my site is stressed.so please check that for performance.the
[jQuery] search and replace, updating string.prototype with jquery equivalent
i've got the following code in my jquery plugin, tweet, which pulls in twitter updates unobtrusively. admittedly, it's a little cumbersome, but it does the job. now that it works, i'd like to streamline it, making it more jquery friendly. String.prototype.linkify = function() { return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\? \/.=]+/, function(m) { return m.link(m); }); }; String.prototype.linkuser = function() { return this.replace(/[@]+[A-Za-z0-9-_]+/, function(u) { var username
[jQuery] replace string.prototype functions with jquery
i made a very simple jquery plugin that displays your twitter status. http://tweet.seaofclouds.com/ naturally, there is much work to be done in the way of optimizing this plugin. first off, i have a few search and replace functions, which i would like to replace with the jquery equivilent. String.prototype.linktag = function() { return this.replace(/[#]+[A-Za-z0-9-_]+/, function(t) { var tag = t.replace("#","%23") return t.link("http://summize.com/search?q="+tag); }); }; any tips? tweet is on github
change to input value does not trigger event in IE7
This works in FF3 but not in IE7: I have a table of text inputs that are grouped together in pairs. If I change the value of the first, it runs a formula to calculate the value of the second and vice-versa. Instead of binding events to each input, I bound the change event to the table that holds all the inputs. Then I check the target of the event to decide what to do. My script starts off like this: $(document).ready(function() { $('#pkg_table').change(function(event) { var tgt =
jquery and asp webcontrol
hi there! i just join this community.i was in the nabble mailing list but really didn't like it. i' ll like to know if it's possible to use a jquery selector with asp.net webcontrol.like $('#someid').it seems on runtime there are some addition to the id cause it doesn't appear to be the very same one assigned in the property panel.any idea???
[jQuery] is dimensions now part of jquery or not? (I hear different opinions)
the other day was told latest jquery now includes dimensions plugin but I was certain it does not... I still assume it does not, thus I compile the dimensions plugin into my standard jquery deployments... can anyone shed light on this? thanks.
[jQuery] Position cursor at end of textbox?
By default it seems browsers select all the text in a textbox when it gains focus by way of a tab-press. I would like the cursor to be positioned at the end of any existing text in the input, instead. The examples I'm turning up on Google don't work and seem needlessly complex, and since jQuery simplifies everything else I used to hate about Javascript, I thought I'd see if there's a simple way to position the cursor in a text input box on focus. Is it doable? Thanks...
[jQuery] jMaps and other G* functions
All jMaps functions never seen to return a handler that I can use, but only fire the callback if provided. I used jMaps to add a marker and centered the map. On this newly created marker, how can I get to the other G* methods such as openInfoWindow?
[jQuery] Fade in background image.
Hi there! I'd like to create an effect like the one on the jquery Ui website. Someone hovers over an item and is changes its background color smoothly. This is how far I've got: $(".actionmenu").mouseover(function(){ if($(this).css("background-image").length <= 4) { var obj = $(this).clone(true); obj.insertAfter(this).hide().css({"background-image":"url(IMAGE)","background-repeat":"repeat-y"}); $(this).hide(); obj.fadeIn(); } }); $(".actionmenu").mouseout(function(){
[jQuery] Fade in background image.
Hi there! I'd like to create an effect like the one on the jquery Ui website. Someone hovers over an item and is changes its background color smoothly. This is how far I've got: $(".actionmenu").mouseover(function(){ if($(this).css("background-image").length <= 4) { var obj = $(this).clone(true); obj.insertAfter(this).hide().css({"background-image":"url(IMAGE)","background-repeat":"repeat-y"}); $(this).hide(); obj.fadeIn(); } }); $(".actionmenu").mouseout(function(){
[jQuery] jQuery Tabs
RE: My earlier post.... Never mind - problem(s) solved... P
[jQuery] Custom sort on table cell attribute value in tablesorter plugin rather than innerHTML value: help please!
Hi there jQuery folks, I am using the tablesorter plugin, which I really like. However, in several of my table cells I have oddly formatted time values that look like the following: 1d 12h 34m 25s Which maps to: 1 day, 12 hours, 34 mins and 25 seconds I cannot change how these values are displayed - they have to be in that format. However, in my code I also create an attribute to the table cell called sorttable_customval in which I insert the raw number format as a float: <td sorttable_customkey="dlt"
[jQuery] QUER
Family home evening is a special time set aside each week that brings family members together and strengthens their love for each other, helps them draw ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ http://www.freewebs.com/gypsum/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[jQuery] [Announce] jQuery Session
Hi jQueriers ! Please check a quick plugin which try to simulate session variables in javascript (without ajax or cookies). Source code. http://code.google.com/p/jquery-session/ Demo: http://jaysalvat.com/session/ Usage: <script type="text/javascript"> $(function() { $.sessionStart(); $.session("var1", "value1"); $.session("var2", "value2"); $.session("var3", "value3"); $.sessionStop(); }); </script> <script type="text/javascript"> $(function() { $.sessionStart(); alert( $.session("var1") ); alert(
[jQuery] temporarily hide options from a select box
I am trying to build a set of "cascading" select boxes, where the selection from one determines which options are available in the next (for example if select box "Region" has "North America" selected, then select box "Country" should only show countries in North America). I've found how to remove those items from the list, but if I do that then I can't get them back if a new choice is made. If I use .hide() and .show(), or .css('display','none') and .css('display','block') on the individual items
[jQuery] $(...).get() order reversed between 1.2.4 and 1.2.5
I have just noticed that the order of elements returned by .get() seem to have been reversed in 1.2.5 and 1.2.6. Interestingly, each seems to run in the expected order (from first element to last as encountered in the document). To demonstrate: ---------------------------------- <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.5.js"></ script> <span>1</span><span>2</span><span>3</span> <script language=JavaScript><!--// $(function() { var arr=$("span").get(); var txt=[]; for(ai in arr)
[jQuery] Cluetip Params Not Working?
Hi there, I'm using the cluetip plugin to provide tooltips on my current project. I've declared my tooltips like this: $('.ic a').cluetip({ positionBy: 'mouse', showTitle: false, activation: 'click', mouseOutClose: true, ajaxSettings: {dataType: 'html'} }); The tooltips are appearing correctly, and activating onclick, but the title is visible, and the tooltip doesn't close on mouse out. There are other cluetips on the page, using different settings: $('a.inplayLink').cluetip({ splitTitle:'|', positionBy:
Jquery Facelist Autocomplete list
Help, I have edited Dylan Verheul and Xavier Domenech autocomplete, so that it works with remote files, but i cannot figure out how to pass a second item from the array into an hidden field, or how to split the string after the comma so that it only returns the first half of the array. There is a working example here: http://blog.iantearle.com/facelist/ and a zip download here: http://blog.iantearle.com/expanse/uploads/user_1215514908_facelist.zip There is also a post here: http://blog.iantearle.com/javascript-goodness/facelist
[jQuery] overflow:visible; during animate?
Hi, is there an easy way to override the overflow:hidden; that animate() applies during the animation? I'd like my overflow to be visible. :) I looked around this site and the web in general and the only thing I found was a "patch" to the animate() method. I'd like to do it without messing with jquery.js if possible. Thanks.
[jQuery] Execute a function within a jquery method
Hi. Probably a lack of understanding jquery/javascript. Is it possible to append (or something simular) a excecutable function call within a jquery event call? I want to execute the function AC_FL_RunContent(params) of the on top of page loaded AC_RunActiveContent.js to embbed Flash files depending of a special click event. Urg, what a sentence. To make this a little more clear: Example: $(elem).click(function() { ... do some stuff... $(elem-to-process).append(AC_RunContent(params));
[jQuery] How to catch function call
Hello, I have one page with one iframe, and there are few javascript function on the page inside the iframe. These functions are triggered by some flash presentations. Basically the parent page has to 'know' when the user has requested the next page (inside the iframe) and update its content with relevant data related with this new page inside the iframe. I can't change the javascript functions from the pages inside the iframe. Thanks Luiz.
[jQuery] array find (more of a JS question) and regex (regular expression)
okay i hope no one flames me for posting something thats really about javascript, but then again my toiling is ultimately geared towards a jquery plugin, so maybe you will forgive me... the code sample below uses a prototype function that searches an array. There is a sampe array, and then I am trying to test it with the alert(). it works fine when I just search for something like 30 or "blue" (uncomment the other vars below to check for yourself), but it returns FALSE if I use a regex. The prototype
[jQuery] jQuery events don't work after AJAX load
Hi folks, I have a page with a photo on it. I load the comments for this photo via an ajax request: var item_id_val = $("#item_id").val(); $.post("/show_comments", item_id: item_id_val }, function(data) { /* Update the comment_section div. */ $("#comment_section").html(data); }); That works fine, but the html data that /show_comments returns doesn't work with jQuery. For example, users can "thumb up" or "thumb down" comments, but if the html code is loaded via AJAX the .click events are not "binded"
[jQuery] Avoiding concurrency when updating a database through AJAX
This is definitely more of a general AJAX topic than a JQuery question per se. What are some strategies for avoiding concurrency errors when updating a database through AJAX? That is, what are some ways to prevent a given user from modifying the same row in a database with simultaneous requests (say, that he updates one column with an AJAX call, then immediately submits a form that updates the same row). How have other people solved this problem? Is the best option to make the AJAX call synchronous?
[jQuery] FlexiGrid IE6 Refresh Problem
I use the FlexiGrid plugin and have a problem with IE6. If I delete rows from a FlexiGrid the JSON request is sent properly but the table won't refresh in IE6 so that the delete rows are still shown in the table after being deleted from the databases. Any tips what the problem could be?
puff affects images inside puffed div
if you have a look here : www.sebastiencouture.com/testsite and go to "readings", click on one of the books there and then click "return to site", you'll see what im dealing with here. each time it puffs, all the images in the site except that little red book cover get messed up.. even the pic of me in "about me" dissapears. any idea what could be causing this problem? Thanks
[jQuery] Superfish / Firefox 3 PC / Flash issue
Hello, I have run into an issue with Superfish drop-down menus hiding behind a Flash file only on Firefox 3 on the PC. I have added <param name="wmode" value="opaque"> (I have also tried "transparent" instead of "opaque") to the Flash movie to ensure I can properly have the Superfish menus appear on top of the movie. Everything works as planned on IE 6, IE 7, Firefox 2 PC & Mac, Firefox 3 Mac and Safari 3 Mac. For some reason, Firefox 3 on the PC is sending the menus behind the Flash file. Has anybody
[jQuery] How to replace a div content?
How could i replace a html content inside the div? I have 1 div (<div id="elem">ini text</div>) and everytime i click a button, i want to replace the html content inside the #ELEM to new one. I try to use: jQuery("#button").click(function() { jQuery("#elem").html('<b>my text</b>'); }); but everytime i click the button, the html is not replaced, resulting something like: <b>my text</b><b>my text</b> What is the solution?
[jQuery] jQuery Script not working on page in RIA
Hi, Please forgive if this shows up twice. I thought it may have bounced because I was using pre tags. I have a jquery script that works if the page is called directly at http://67.199.57.74/jobsearchlog/faq.cfm or the script is added through firebug after going to http://67.199.57.74/jobsearchlog and clicking F.A.Q. from the top menu item. I am working on a FAQ page for my site which will be going live soon. My goal would be to display a answer (dt) to a FAQ only after they click the question (dd).
[jQuery] jQuery Script not working on page in RIA
Hi, I have a jquery script that works if the page is called directly at http://67.199.57.74/jobsearchlog/faq.cfm or the script is added through firebug after going to http://67.199.57.74/jobsearchlog and clicking F.A.Q. from the top menu item. I am working on a FAQ page for my site which will be going live soon. My goal would be to display a answer (dt) to a FAQ only after they click the question (dd). I don't receive an error when clicking the Question but the answer doesn't display. BTW, I am using
[jQuery] FlexiGrid Problem with Characters like tilde (~) and period (.)
Hi All, Why FlexiGrid don't display a single tilde (~) and period (.) character? What else that I can do aside from converting those characters to its HTML or ISO Code. Thanks, Nimrod
[jQuery] Following jQuery on Twitter
Hi all, I thought I'd compile a list of jQuery-centric people that you can follow on Twitter on my blog. http://tinyurl.com/582scb Thanks to Marc and Richard for their help. I missed some people the first time around, but have updated the list based on their recommendations.
[jQuery] cycle plugin: last click launches URL?
Hi there, I have just made a very simple slideshow with the fantastic Cycle plugin. I have 5 images, and each time you click an image, it fades out and advances to the next one. What I want to happen is that when you click on the last one, it launches a URL. I can get the slideshow to stop when it gets to the end (nowrap) and I can fire an event when it gets there (end) but that only works when the slideshow is animating automatically. The "end" event doesn't fire when using "next". Can anyone help
[jQuery] strange problem
Hi, all why "$('#browsing_btns').children()" just select nothing? --------------------- $('#browsing_btns').children().each(function(xindex){ console.log(xindex + ':'+$(this).attr('id')); }) ... <td id="browsing_btns" colspan="4"> <input id="first_pg_btn" my_action="f" class="button" type="button" value="first page"/> <input id="next_pg_btn" my_action="n" class="button" type="button" value="next page"/> <input id="prev_pg_btn" my_action="p" class="button" type="button" value="prev page"/>
[jQuery] unblockUI and enter
Hello, I am using blockUI to display a simple message with a button. I would like when user presses enter the dialog to go off. interesting thing is in FF, it does work as expected, and in IE it does not, it sometimes does, it sometimes does not, and I could not figure out why. any ideas? Best.
[jQuery] $().get() returns elements in reverse order in 1.2.5, 1.2.6
Is this a bug or simply a change in functionality I should be prepared to cope with? This code ------------------ <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.5.js"></ script> <span>1</span><span>2</span><span>3</span> <script language=JavaScript><!--// $(function() { var arr=$("span").get(); var txt=[]; for(ai in arr) { txt.push(arr[ai].innerHTML); } alert("via get(): "+txt.join(",")); $("span").each(function(i,o) { alert("via each #"+i +".html="+o.innerHTML); }); }); //--></script>
[jQuery] Plugin better than Lighbox or Thickbox
Dear folk, do we have such a plugin like below ... I have test the Demo version it is much more better from our Lightbox Plugin, the only problem it has is with AJAX , it can not support it .... please let me know if there is such an ability in our jQuery http://www.magictoolbox.com/magicthumb/
[jQuery] Looking for Plugin: auto-image-scroller that allows click selection
Hello, I'm looking for a plugin that is an auto-image-scroller that allows you to click on a selection scrolling by which then you can display that image in a main div on the page or whatever. Here's an example of the functionality I'm talking about: http://demo.vevocart.com/ Images scrolling in the Today's Special box where you can click on the image and have it displayed in a main section of the page. If anyone knows of a plugin that offers this functionality, please let me know. Much appreciated.
[jQuery] Form Field
Hi List, New to the group, so I will start off with hopefully a bug some of you may have seen before ;) ===== How do I stop the first 2 input fields going behind what is an option form field? http://www.memory-superstore.net/ This is an IE6 bug only, link to screenshot of bug: http://testbed.callendercreates.com/memory.png ==== Thanks in advance for any tips, suggestions of fixes. Jim Callender
[jQuery] callback for css loaded in head
I wish to execute block of code after loaded css dinamically inserted in the head. I´m making a ajax navigation and everything working fine, but the page is loaded without css and after a period of time (not defined, sometimes very fast, sometimes slow) the css is loaded and applied in document. The system works with css and js on demand, so with javascript everything is fine because I use a callback in $.getScript. But for css there´s a efficient way? Regards, Alexandre Magno Web Developer http://blog.alexandremagno.net
Next Page