[jQuery] Case Insentitive Selectorys
I am making search in an xml file, but I don't get expected results since jQuery selectors are case-sensitive. I use something like $(returnedXml).find("item[name*='"+search+"']").each(function(){ }); How to make it INCASE-SENSITIVE?
Refactoring first functions to work with parameters?!
Hello everyone! Well, I'm new to JavaScript and jQuery and after my initial successes I'd now like to refactor my tiny bit of code to make it more generally usable. Therefore I'd like to use parameters and use those for the functions. But I'm a bit lost there. I've programmed in JAVA before and I don't really get how to pass parameters in jQuery. This is my code so far: // Ajax - Here be dragons! /** * Login Popup * Ajaxiness ftw! */ $(document).ready(function() { $('a.login-link').click(function(e)
Trying to detect the proper load event for video source object (thorough question with demonstrated attempts)
Starting on line 12 (relative to this code segment) I am setting a global variable to keep count of how many source objects of k8r_modalVideo are ready to be played. Below line 12 I am attempting to set up an even protocol, "When the source object of k8r_modalVideo are 'ready' then add 1 to the counter". I have used .ready() as seen here http://k8r.us/test4/beta/1/ and I have used .load() as seen here http://k8r.us/test4/beta/2/ I have also tried using .ready() on the video object itself here http://k8r.us/test4/beta/3/
hi i m new to jquery
i want to a build a css generator where i can get the code of css that has hex color generator and in the code so like i choose color using hex :........... and like in the js file i can change the div when i want css code comes up like this #div { background-color:#ffffff; } please can someone help me with this thank you
How to return an action (post a form) and a value from a jquery ajax request
I' am calling it with this function $.post("buscaamigo.php", {queryString: ""+inputString+""}, function(data){ if(data.length >0) { $('#suggestions').show(); $('#autoSuggestionsList').html(data); } });
$.ajax() function working in IE but not in Chrome and FF
I hope this question is not asked in this forum before, tried searching alot but none matched or worked for me. Below is the JSFiddle link of code: JSFiddle (Try to save the file(code given below) as html and run it using chrome) Everything is working well in IE8 and IE9 but not in any other browsers. I tried looking for the problem in Chrome from which I got XMLHttpRequest cannot load http://v3.actisku.com/GetUserPostData?pid=Test-37&surv=1170. Request header field X-Requested-With is not allowed
solved: $("#parent").removeClass("cls") removes cls from children
PLONK sorry for bothering anybody. Off course it works... --- hm, my first post is lost somehow ... again ;) I have a small problem. Here is the html <div id="boxnav" class="hidden"> <ul> <li class="" id="nav_kunden"><a href="#"><p class="boxnav_title">Kunden</p> <p class="boxnav_img"><img src="/pics/kunden.png"></p></a> <ul> <li><a href="#" id="nav_kunden_wart"><p class="boxnav_title">Wartungs-Kd</p> <p class="boxnav_img"><img
Can't trigger event in Google Hangouts
I've been writing a Chrome extension to automate some behavior, I can't seem to trigger the "join" event in Google Hangouts. [Basically I want my extension to click "join" automatically when I hope certain hangouts. Eventually I'd like to automate muting and some other things.] During my research to automate this using jQuery in my extension, I would look at the page showing the join button, open the Chrome Developer Tools - and for the life of me, no matter what element I would go after, I can't
[jQuery] TableSorter vs Zebra Stripes
I want to create a table that features sortable columns and alternate row colors. I found scripts that do one or the other, but when I implement both, the row color function is impaired. First, I downloaded the JQuery TableSorter plugin; hence the links to jquery-1.2.6.min.js and jquery.tablesorter.js below. Below that is the JavaScript for the "Zebra Stripes" function. When used together, the table exhibits no row colors except when I mouseover a row. Does anyone know how I can fix this? Thanks.
memory leak IE9
Sorry for my poor English. I have a problem with Jquery1.8.1 and IE9. I'm searching a lot but i did not found any answere. When i use the code below, the used memory in IE9 increased about 1MB on every submit or refresh. This problem exsist only in IE9. I test it with IE7, IE8 and FF and chrome .... the others, no problem. IE9 Version 9.0.8112.16421 Is this a jquery problem or a bug from IE? Any ideas? <! DOCTYPE html> < html> <body> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
Accordion nested in Tab not showing up
I'm attempting to place an accordion within a tab pane, and think there may be a conflict with the code I am using for the tabs as it is not appearing when inserted. The accordion works fine when in its own page. The script that appears in the page head is: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> <script type="text/javascript" src="script/jquery.tools.min.js"></script>
using $(document).on is not a function with 1.8.1/jquery.min.js
When I use the code below on ver 1.7.2 it doesn't have any problems /* add friend toggle listener */ $(document).on("click",'#add_friend_toggle',function(){ }); but when i use ver 1.8.1, the firefox/chrome console says this: What does this mean then? Am I not suppose to use on with $(documentt)?
JAVA doesn´t work after AJAX
Dear Members, I turn now, you because I'm desperate. I just do not find the error. I want to click on an image and trigger an AJAX action. This also works. AJAX gives the image back, it responds to no more clicking! Here is my simple example, without SQL. When I click on the IMAGE it works, and when I klick on the image from the worker file, it doesn´t work. So I cant click on it for more times. Here my function from the file: $('img[name^="IMGSTKER"]').click(function() { alert("TEST");
unable to pass correct url in jquery
this functionality working fine on my local system but not on server. my actual jquery code is $('.jeditableSalePrice').editable('/Product/DTUpdateProduct', { id: 'SalePrice_ID', name: 'value', indicator: 'Updating...', tooltip: 'Click to Change' }); now I try by two techniques. both are working on my local but not on server 1: using @Url.Action("DTUpdateProduct", "Product")' 2: using @Url.Content("/Product/DTUpdateProduct") //$('.jeditableSalePrice').editable('@Url.Content("/Product/DTUpdateProduct")',
How to use setRequestHeader in jquery 1.7.1 to send token through headers to RESTfull WebService
How to use setRequestHeader in jquery 1.7.1 to send token through headers to RESTfull WebService this is my code which is used in my html page to call RESTfull web Service $.ajax({ type: "POST", url: "http://10.163.14.56:9000/customerservice/HeaderRequestDet", beforeSend: function (xhr) { xhr.setRequestHeader("foo", "bar") }, success: function() { alert('Success!' + "authHeader"); }, error:function(request, status, error) { alert("Error"+error) //alert(request.responseText); } }); the
jquery image magnifier
I had binded some data to gridview and opened a popup using jquery when user clicked on row.. on popup i had placed a file upload control and binded uploaded files below file upload control.. for magnifiying the image i had used jquery image magnifier from dynamic drive.com. problem is zooming is coming behind the popup waht is the solution for this?
classic fold out menu problem - irresolvable?
Hi all, for days I am now thinking about how to solve my problem here with a (relative) simple fold out menu. I think that it is somehow a „classic“ but despite of much google and reading I can not fix it. I need some professional help. I will attach also a screenshot that showes dreamweaver layout to show elements. I will explain what I want to achieve: When then mouse hovers over the word „Collection lettre“ out of it will appear above (these are animated switching from absolute to relative position
How to same Toggle Method for multiple Click location
I am very new to this jQuery and trying to figure out few basic things in my page i have multiple <a> but few are supposed to open the panels and other things to navigate. wanted to know how can i use a single method for toggeling... as i dont want to write theses functions again and again.... $(document).ready(function () { $("img#imgClearCodes").click(function () { $("div#divCCodes").toggle(); }); }); $(document).ready(function () {
Datepicker range show "to" when select a date on "from"
Hi, i'm using a example of datepicker range. I'm trying show the datepicker "to" when the user select a date from a "from" datepicker. For this I'm subscribing to the method of the datepicker onSelect "from" to make a show in datepicker "to". I am using the following code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Datepicker - Select a Date Range</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.8.0.js"></script>
Dynamic JQuery and webkit
Hello. Hopefully this isn't a double post; I tried posting earlier and it didn't register. I am getting a Syntax Error when trying to apply a webkit css property with JQuery. I know it has something to do with the way maskstring is formatted....but I figured it should all be a string. The error i'm getting is an unterminated string literal. function createTiles() { var maskstring = "-webkit-gradient(linear, left top, right bottom, color-stop(0.00, rgba(0,0,0,1)), color-stop(1.00, rgba(0,0,0,0)))";
JQuery Creating Webkit CSS Properties
I am trying to create a series of gradient masked images from the same source. Using css transitions, I was going to have them systematically fade at different times...The problem is, I'm having problems with quotes and string literals. for (i=1; i<24; i++){ var maskstring = "-webkit-gradient(linear, left top, right bottom, color-stop(0.00, rgba(0,0,0,1)), color-stop(1.00, rgba(0,0,0,0)))"; var src = 'images/mts.jpg'; var divid = "mydiv" + i; $('#' + divid).css({
Guidance regarding Recursive Traversal of Json Object
I am trying to create the menu based on a recursive Json object. I am able to prepare the Json object and have defined a template structure for the same. Json Object: [ {"ExtensionData":null,"MenuDescription":"Home Menu","MenuEnabled":false,"MenuId":1,"MenuParentId":-1,"MenuSelfWindow":true,"MenuTarget":"","MenuText":"Home"}, {"ExtensionData":null,"MenuDescription":"Profile","MenuEnabled":false,"MenuId":2,"MenuParentId":-1,"MenuSelfWindow":true,"MenuTarget":"#","MenuText":"Profile"},
Sending dynamic data through JQuery Ajax
Hi All, I've got a question about the processing of data through and Ajax Post Request which i can't get a hold of. Hopefully you guys can help me out. I have the following situation. An anchor is my script triggers the following javascript function: <a href="#fragment-3" onclick="return drawResource();"><span>Resources</span></a> I have the following function function drawResource(url) { $.ajax({url: "resource.asp", type: "POST", dataType: "html", cache: false, data: {period:201209}, success: function(responseData)
Jumpin Bajeezopotamus! Does every single little tiny thing (like dividing by 2) require a forum post?!?
If it weren't for the fact that I can't afford to hire someone to do this for me, I swear I would. var w = $( this ).css( 'width' ), s = Math.ceil( w / 2 ) /*** I have also tried "( w / 2 )" and "w / 2" all three result in "NaN" ***/ console.log( w ) /*** prints an int. perfect. :) ***/ console.log( s ) /*** prints NaN... WTF??? ***/ Eventually I want to do this: return 'margin-right:-' + s + 'px;'
Pull text from span class & enter in input
Trying to look at classes starting w/ "searcher_stack-its_img". When clicked, I want to pull the text from the span's class. Right now, not seeing the console log output. After, like to enter the span class text into input#select_searcher Typ. div w/ an image: <div class="searcher_stack-its_img..."> <a href="javascript:void(0)"> <img src="resources/testimg.png"> </a> <span class="b2"></span> </div> $('div[class^="searcher_stack-its_img"]').click (function() { var sterms = $(this).children("span").attr("class");
div slide up and down
Hi, I need to have a div slide up on mouseover and on mouse out or mouseover anywhere else to slide back up. Here's what I have so far but it's not working accurately. $(".openNav").hover(function () { $("#nav").animate({"bottom": "-40px"}, "slow"); }); $("#nav").mouseout(function () { $("#nav").animate({"bottom": "-175px"}, "slow"); }); I tried setting a timer and delay but still can't get it to work right. help please thanks!!
Create html pages from a pdf file?
Hi, I am trying to create html pages from a pdf file. Is there a way to achieve this using jquery? If so, pls let me know. Thanks and regards.
strange white overlay
Hi guys , this is my first post on these forums , anyway i encountered this strange white overlay screen on top of a website that im developing and i have never encountered anything like this and have no idea what it is or whats causing it, its popping up when i hover on top of some div element. its not coming up when i resize the browser its only in chrome its not a DOM element if anyone has encountered something similar, can you help me out?
Datepicker Customisation
I wonder if there is an easy way to change my current jquery ui version for one that defaults the datepicker result format to 'Full'? (i.e. Monday 03 September 2012)
How to show Row value of a database table into form?
hi friends, i am getting a value form database and want to show only 2 columns value but i am unable to do this with this code.. This is PHP code to fetch data from database ;; <?php $stock=$_POST['stock']; //echo $stock; include("../dbconfig.php"); $result = mysql_query("SELECT * FROM stock where p_name='$stock'"); //query //$array = mysql_fetch_row($result); //fetch result //$array = $array = mysql_fetch_array($result); //fetch result
Dynamic menu in asp.net MVC2 using Jquery or Superfish
Hello all, In the mvc app we are developing, we need to have a menu with menu items coming from sitemap. Can any one please help us to get started with this. I saw couple of posts saying that superfish would be a better solution to achieve this. If so, please provide how do we do that. Appreciate the help Thanks
why doesn't work this simple code ?
<div id="d-source"> <div> <img src="8.jpg" class="pic" id="pic1" /> </div> <div> <img src="9.jpg" class="pic" id="pic2" /> </div> </div> <script type="text/javascript" language="javascript"> $('#pic1').append($('#pic2')) </script>
can any one please tell me how to cache the json data
hi, i want to cache the json data in jquery and use it in some where else..
Set html attribute via ajax
OK I got this script doing everything it needs to do. My PHP function in wordpress is sending the correct AJAX response. So why, after nearly 3 hours, can I STILL not set the link's href attribute? I have tried every combination I can think of to get the response into the <a title=""> attribute, but no dice. the <a> does not have a title initially, BTW I've tried this. Even this forum is screwing with me. Next metod tried in reply. jQuery( document ).ready( function( $ ) { $( 'body p.single-quot
how to send JSON from javascript to php
hi all can anyone tell me how to send a json object from javascript to php? -rvs
html5 audio | IE9 is being very strange indeed
Hi all, I don't think this is actually a JQuery problem but I am hoping that someone here has an answer or at least can point me in the right direction to help solve this problem. I am using JQuery, html5 and CSS to develop music games. Music Teacher's Games I have had no real problems until now with my first guitar game. Guitar Game One The guitar game works perfectly in FireFox, Chrome and Safari(slow loading). It actually functions fine with IE9 excepting that IE9 does not play all the sounds.
Remove subdomain or www?
I have url is : http://www.scenemovie.org or http://subdomain.scenemovie.org I want to keep "scenemovie.org" and remove "http://www.". How to do that with jQuery? Thanks!
OSX MouseWheel Issues
Hello, I have implemented MouseWheel Support for a Vertical iScroll List: http://jsfiddle.net/daslicht/qhhh8/ While this works wonderful on a PC, it totally goes mad on OSX. If I just touch the MouseWheel of my Logitech AnywhereMX Mouse, some MouseEvents are being dispatched. And if it turn it one snap (physical snap of the wheel) 3 or more Events get dispatched ?! If I use a Tochpad on OSX, the momentum scrolling is also preventing a proper usage, since multipel MouseWheelEvents get dispatched.
syntax jquery prototype=<jquery1.8
i search to convert this line in jquery langage [CODE] .setStyle( 'right:' + ( $('right_block').getWidth() + right + 19 ) + 'px;' ); [/CODE] + right is a variable i have test with .css( 'right:' + ( $('right_block').width() + right + 19 ) + 'px;' ); but don't work
datepicker - beforeShowDay database
Hi! I have a database with news (date - description - link - so on..) I would like to change css from every date into datepicker to help users know which date has news. Here is my code, I implemented a filter here. <script> $(function() { $("#datepicker").datepicker({ changeMonth: true, changeYear: true, beforeShowDay: // need help here! :) onSelect: function(selectedDate) { var mydate; fecha = $("#datepicker").attr("value"); $.ajax({ type: "GET", url:
Next Page