show and hidden events not working
Hey guys i came across the following lines on modal.js : $target.one('show.bs.modal', function (showEvent) { if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown $target.one('hidden.bs.modal', function () { $this.is(':visible') && $this.trigger('focus') }) }) These are all event being attached right ? , well i was wondering where can i find the documentation for the show Jquery event ? , because i tried writing
How to create a select menu related to another select menu
I am currently studying jQuery but I came across a topic related to select menu. I studied how a select menu is styled by a code as the following: $('#colors').selectmenu({ width : 300, change : function (event, ui) { // put your programming here } }); But I don't know how to add a second select menu with another set of options related to the original menu’s selected option, and so on. Can any one help me by showing how this is done or at least refer me to a reference that does just this. I would
jquery validate TypeError: c is undefined
Hi, I'm fairly new to using jquery and plugins. I'm trying to use jquery validate and I get an error "TypeError: c is undefined" in the Browser Console using Firefox when the form event fires. Here is my test code: <html> <head> <meta charset="utf-8"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="js/jquery.validate.min.js" type="text/javascript"></script> <script> $().ready( function() { $("#userName").validate(); }); </script> </head> <body>
on change
I was working on an on change function to detect when a count changes, it doesn't seem to be triggering, I places it in a jsfiddle page http://jsfiddle.net/uyy3bp1f/
Getting CrossSlide script to center rotating images
I'm trying to get what should be a simple CrossSlide script to center a rotating image in a WP page. Below is the code: <div id="banner"><script src="http://www.bu.edu/nis/lib/jquery/crossslide.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[ jQuery(document).ready(function($) { $('#bannerimage').crossSlide({ sleep: 5, fade: 2, shuffle: 0 }, [ { src: '/images/IMG1.jpg' }, { src: '/images/IMG2.jpg' }, { src: '/images/IMG3.jpg' }, { src: '/images/IMG4.jpg' } ]); });
three.js - conflicts between versions!
hi all, does anyone know how to resolve conflicts when going from one version three.js to a newer version? i have a document that uses r37 and works perfectly but when i move up to r48 it just stops working and tells me: ReferenceError: ImageUtils is not defined which is this bit in main.js... var sprite1 = ImageUtils.loadTexture("img/particle.png");
material = new THREE.ParticleBasicMaterial({
size : 30,
map : sprite1,
blending : THREE.AdditiveBlending,
depthTest : false//,
}); do i need
iframe/popup not working
hey, could you please check and help me out. Why is the fancybox.iframe always opening full screen? What am I not seeing? Thanks for you advice. Kr http://gamanga.com/GMG_CONCEPT_01.html#
jQuery UI - get Text of element on which an item is dropped ?
JQuery UI - Get Text of the element on which an item is dropped? How to get the text of the drop element if I drop another module on it? fiddle Here my fiddle
superfish theme wordpress - social media buttons
Hi, first time posting, not sure if this si the right place, i have wordpress site using superfish theme, i have already existing social media buttons on my website at the top, but i need to add googleplus button, where do i do this, and how, have tried pasting the normal codes provided by google, in footer.php etc but doesnt work, there is a a sociallinks.php, and a sociallinks_footer.php (found in the INCLUDES FOLDER) which has the exisitng media buttons in the correct order but when i put the
From top-fixed to bottom-fixed when reaching the footer
I need to stop a fixed sidebar when the footer is reached. I have the code below, but if you scroll down, the sidebar gets over the footer when reaching it. Of course, it will be fixed to the top again when scrolling up. Any help? jsFiddle $(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 210) { alert ("footer reached!"); $('.sidebar').css({ position: 'fixed', bottom: 210, }) } else { $('.sidebar').css({ position: 'fixed', top: 0 }) } }); .body {
Last grid messed up
My last grid on my Jquery Mobile website is messed up it is not alligned. This is my code for the grid: http://i.imgur.com/T84p16w.png This is what it looks like: http://i.imgur.com/6ob5wAC.png Could someone help?
i hava problem with the below uncaught typeerror in jquery
in that nivoslider error i didn't understand how to fix that error pls help me
Panel Open from top or bottom
Jquery Mobile Panels opens from right or left. This is perfect. Is there a way to make a panel open from top or bottom?
Cannot save form with data populated by ajax jquery
I am retrieving html data from a page and it's being displayed properly in the page - everything good so far. This is that code... $.ajax({ type: "POST", url: "myurl", cache: false, beforeSend: function(){ $("#spinner").show(); }, data: { id_code: id, mode: mode, IndexAbove:indexAbove }, success: function(data){ $('#entrytable').html(data); }, error:function(xhr, status, error) { alert('Request Status: ' + xhr.status + ' Status Text: ' + xhr.statusText + ' ' + xhr.responseText); }, complete: function(){
Is jquery IU included in the jquery 1.10
I noted that when I add the library of jquery 1.10.1 or higher in JSfiddle, the possibility for adding the jquery UI disappears. Does jquery 1.10.1 includes the the said plugin. I would appreciate an explanation for this.
JQuery rangeslider issue
Hi, I am using the JQuery rangeslider by Andre Ruffert I have been trying to set the parameters of the slider so that it changes the size of the 'step' once it reaches 36.... I want the minimum value to be 6, and the maximum to be 60 which I have set in the html code... <input type="range" value="18" min="6" max="60" step="6" > The step size should increase by increments of 6 until it gets to 36. When the slider reaches 36 the step size should increase by 12 ........ it should then snap to 48 and
IE is messing up my accordions and tabs!
Hi, IE is messing up my accordions and tabs! Can you please help? It looks like IE is not using the ui-helper-clearfix class b/c in the developer tools, all references to the class are crossed out.
rework a for loop to an each function
I'm trying to rewrite this function: for (i = 0; i < $('.carousel-dots-nav-item').length; i++) { var dot = $('.carousel-dots-nav-item')[i]; // show the title of the image when hovering the associated dot $(dot).hover(function(e){ $('#title').text(carouselItems[i].title); }, function(e){ $('#title').text(''); }); To this one below using the each instead of the for loop above because there is a closure and
Capture checkbox click on either ID
Hi all I have the following to capture a click event on any checkbox where it's ID begins with 'iagree': $('body').on('click', '[id*=iagree]', function (e) { What I need to do is add in the ability to check if adifferent id is clicked as well, as part fo the same line of code (if possible). i.e: $('body').on('click', '[id*=iagree],[id*=otherone]', function (e) { How can I do this?
ajax data xml string problem
$(document).on('click','#metadataListTable .delete', function () { / var ans = confirm("Do you want to delete Metadata?"); if(ans==true){ var nRow = $(this).parents('tr')[0]; var data = oTable.row( $(this).parents('tr') ).data(); alert( data[10] +" ========= "+ data[11] ); oTable.row( $(this).parents('tr')).remove().draw(); $.ajax({ url: "deleteMetadata.do",
Jquery validate - how to use a custom method in add rules
Can anyone please help me with a question on Jquery validate plugin, I have created a custom validation using AddMethod, now I want to use this method inside a rule while using rules add. How do I do this.
.click() not working
I'm doing a site located at http://matjohnson.wc.lt/ On the supporters area of the page. I want to trigger the 2015 button so it filters those down, but the following code does not work :( $('a:contains("2015")').trigger('click'); Now I know it finds the element because when I alert it out it shows the element value. But it just doesn't trigger the item. Anyone got any help?
fixed table header using jQuery
Hi, I am trying to create fixed header for my table. I know we can use using simple CSS but i want to use using jQuery. I am trying to follow some code found in net and the problem i am facing is when i scroll to the top of the page the header is getting attached to top of page and two headers are getting displayed. Here is the bin http://jsbin.com/zifimeyuda/1/edit?html,css,js,output Could any one please help me with this
textbox creation using textbox input
Hi guys.if i give semicolon as input means i have to create a textbox in jquey.I tried this code and it flows correctly but it didn't show me the result.pls help me out.. $(document).ready(function (){ $("#hellotxt").on('keyup', function (event){ if (event.keyCode == 59) { var txt = $("#hellotxt").val(); var valueArray = txt.split(';'); var valueSortArray = valueArray.sort();
theme roller import not importing my theme
I have a theme I am trying to import into theme roller so I am can make changes, but when I click import, only the first two are imported. If I add more themes, by clicking the + button, and do the import again it pulls them in, but the theme settings, on the left side of the screen, are not updated and they still list the defaults. Even when I turn on the inspector it still shows the wrong values. I have attached a copy of my current themes css file so you can try it yourself. Any help would be
clone count
I'm trying to clone items once on click and toggle, I thought if I ran a count it would help prevent clone multiple times, I placed in a jsfiddle page, any advice would be great. http://jsfiddle.net/sx0zf8es/
Jquery loaded at the bottom of the page
I'm having problems with something that is probably pretty basic, yet I can't quite figure out what to do. Lots of sites link jquery in at the bottom of the HTML document. This seems to be the recommended practice. What I don't understand is how to use jquery earlier in the page when that happens. I try to put a simple script on a page, which I've test and know works, but if the Jquery is loaded last, it doesn't work. I've read up on using $( document ).ready() and the short hand, but that
Jquery slidetoggle without moving bottom content
I got this function which show up the second frame when the button is clicked. This is doing what i want but the problem is when i clicked it again, it shows the first frame, i only want it to show the 2nd frame. I have another button that does showing the first frame though. Thanks for the help. $(function() { var pos = $("#iframeE").position(); $("#iframeO").hide(); $("#wrapper, #iframeO").height($("#iframeE").height()); $("#wrapper, #iframeO").width($("#iframeEt").width()); $("#btn").toggle(function()
Deprecated Methods in Jquery 1.11 from 1.4.1
Hi, Could anyone help to identify the deprecated in jquery 1.11 from 1.4.1? or where to get the details Thanks Ulaga
Max size on POST method
Hi, What is the maximum size of a response with $Post? How to make the server send the response into pieces? Thanks in advance
Deleting very old private conversations
If you try to delete some very old private conversation, you cannot. You get a pink popup that says: (null) It seems the conversation has gone away, but a reference to the conversation has not, and cannot be removed.
find td of the current tr
Hi, I wrote this code : http://jsfiddle.net/mlotfi/zxd6p5ss/ it's working fine, the console display what is expected. but when I run it in my machine (not in jsfiddle) I got null for both of them. here is the markup of my page : http://pastebin.com/U2p8PLAW Thanks.
Italic font on api.jquery.com is hard to read
Or is unreadable at all. Depends on the browser and OS. See screenshot from Chrome on Windows 7. I believe I'm not the only one who would appreciate more appropriate font there.
missing several *.js progs
After building my custom jquery-ui (1.11.4) I can't find several tools (e.g. jquery-ui-tooltip.js). Where are they?
i've made my first jquery plugins and need a experet views
Hello Dear, I have made my first j-query plugin for form validation, please review on http://jsfiddle.net/mukesh84tech/zbww69ed/ and post your review so that i can improve my coding skills and logic and can make better..
What is wrong with this code??
Hello, please can someone tell me what is wrong with this code? I have hidden the price of all items in my shop, but I want the price to show on one of the product categories. Pages where I want the price to show (all subcategories of this page) http://3dfitnessgroup.com/nutrition-supplements-30-c.asp Code: <script type="text/javascript" language="javascript"> $(document).ready(function() { $(".side-header ul li:contains('Nutrition Supplements')).find(".cat-product-price").css({"display":
Call function based on input
I've an textbox in asp.net,when i enter ";" semicolon in textbox means it have to call a function.Is there any way to do this.please help me out guys..i tried change function but it calls at every keypress in textbox.
jQuery animate doesn't work on second slide
I'm building some fancy slider with different effects. I've created the first slide and the effects are working perfectly, but when I click on the next button, the effects doesn't work on the second slider. EDIT: Here's the fiddle: http://jsfiddle.net/emco83/az135syn/ EDIT2: Something to add: If I make separate the two divs for slides on a separate pages, after clicking on a next button, the animation for the second slide that's displayed on a second page works great, but the issue stays if its a
Flexslider: adding video to slideshow
I'm having all kinds of problems getting Flexslider to behave, even though I'm using their demo code ( http://flexslider.woothemes.com/video.html ). The video starts playing immediately and the slideshow just freezes on image #1 - no controls working. Slideshow with images and video Any help would be appreciated.
Assign serial number to datatable column
How to add serial numbers to datatable first column for example sr No Name 1 pp 2 po 3 iu 4 yy
Next Page