text on mouse hover on image
hy, with jquery is possibile to do this image effect? http://www.modatoi.it/boutique_us/liste_produits.cfm?type=44&code_lg=lg_us&num=72&tri=2 the thumbs have an effect when mouse over.
how see the original data in console?
I am using the following format in inside of js. var Input=[{id: "-1", name: "<b>States</b>"}]; console.log(':::::::Input:::::::::'+Input); I am running my page i got the following output in My console. :::::::Input:::::::::[object Object] How to get the original output?
how do you transfer a value from a text() to an image SRC
hi everyone. i am using the text() function to retrieve values from an onclick function. i now want to transfer this value to the SRC on an image tag. var base = $(this).data('link- to-image'); <img src="base" > i am slightly confused how to do this; for example in PHP i would simple place the returned values into an variable and then place the variable into the SRC. i want to do something similar in jquery . I will however need to swap out the values if the user clicks the onclick button again.
Parsing JSON and build TR/TD element on each `tipo` value
I have this JSON: [ {"tipo":"Diurno"},{"patente":"XZ7410"},{"nombre":"Marcela Bien"}, {"revisado":1},{"id_registro":"9"}, {"tipo":"Diurno"},{"patente":"EW3651"},{"nombre":"Marcela Bien"}, {"revisado":null},{"id_registro":"11"}, {"tipo":"Vespertino"},{"patente":"XZ7410"},{"nombre":"Alexis Diaz"}, {"revisado":1},{"id_registro":"10"} ] Each `tipo` defines a new row in a `table` for example: <tr> <td>Diurno</td> <td>XZ7410</td> <td>....</td> </tr>
Difference between text() and val()?
what is the exact difference between $('.test').val() and $('.test').text()?
Ajax modal popup issue
Hello All, I am working on asp.net web application where jqxgrid is being used. I am using this jqxgrid on jquery popup I click on a image-button, jquery pop-up appears with jqxgrid and then I wont do anything and close jquery popup, no issues till here. but when i open ajax modal pupop which is on same page by clicking another image button, popup appears but when i click on close button of modal pop-up javascript error shows up. error="<i>Microsoft JScript runtime error: The value of the property
jquery with object oriented javascript
srry this is a repost, but ive dramatically changed my code so the old thread is irreverent and i dont want people to tldr i had an open/close tab script that worked: http://patrickallard.net63.net/procedureoriented/ but the code was repetitive and couldnt be expanded for more functionality because i didnt have objects now i am treating the tabs as objects, and the code is much neater with them: http://patrickallard.net63.net/ just one problem, it doesnt work! and i have no idea why! could someone
Array turns up empty
http://paste2.org/2kHt3cDX I have the above block of code. As you can see, it's an attempt to make a unique keys for an associative array, that I can alter send to a .php page in JSON format (stringify). However, the array keeps turning up empty? Any ideas as to why that may be?
Uncaught TypeError: Cannot read property 'title' of undefined
Hi there, I am using the plugin "multipage" - and I'm using it on an install of Magento Enterprise for the user registration account page. I have seem to set everything up correctly, But it looks as though it's just not working for me. here is the page: http://dev.domainindustries.com/customer/account/create/ Here is the error being thrown: Uncaught TypeError: Cannot read property 'title' of undefined jquery.multipage.js:68 jQuery.fn.gotopagejquery.multipage.js:68 jQuery.fn.multipagejquery.multipage.js:237
Group checkboxes check/uncheck
I am working on group of checkboxes for check/uncheck. I did solve for that, but I having another issue outside the group of checkboxes. I kept a checkbox out side group of checkboxes called chkSolicitation and when check this all group of checkboxes should be unchecked. If any of the group of checkboxes checked then automatically chkSolicitation should be unchecked. Onload also If group of checkboxes unchecked automatically chkSolicitation should be unchecked and Vice versa. JSFiddle <fieldset>
tabs showing div elements that build tabs
Hello, I must be doing soemthing wrong. Ive built my tabs but it's also showing the div/li elements in the html $( "#tabs" ).tabs(); It's showing this in the html. I tried using display:none but then it doesnt build the tabs <div id="tabs" > <ul> <li><a href="#" class="program" id="paos01r.pgm">Member Management</a></li> <li><a href="#" class="program" id="paos02i.pgm">User Management</a></li>
Animated transitions on smartphones?
I've built my first responsive website! I have animated transitions between screen sizes, so it goes from a 3 column layout, then 2 and finally a single column. The spare columns fade away and the main section expands to fill the space. This works great on my desktop computer, but when I test it on my smartphone you can't really see the transitions, even the image header crossfade only shows 2 or 3 frames of animation at most - it just makes it feel a bit clunky, but then again, I only have one of
How to have jquery ui-tab click automatically call cgi program
Hello, Im probably making this more difficult than it actually is, but ... I want to click a jquery ui-tab button and have it automatically call a cgi program. How would I do this, can I assign an location.href on a tab click? Can I do something like this? <div id="tabs"> <ul> <li><a href="tabs-1">Program 1</a></li> <li><a href="tabs-2">Program 2</a></li> <li><a href="tabs-3">Program 3</a></li> </ul> <div id="tabs-1"> location.href("cgipgm1.pgm") </div> <div id="tabs-2"> location.href("cgipgm2.pgm")
Loop shows duplicate data using .each
I wrote this little function, it gets a json feed,then loops through the rows and displays the data. the problem I have is, if there are two officers listed, it shows each officer twice, if there are three officers listed, it shows each officer three times. I'm not seeing why my loop is doing it that way, I wrote the same kind of loop in php using foreach and it works fine? $(document).ready(function () { $.ajax({ url: 'http://urlhere.com/something.php',
scrollTop in iOS changing horizontal axis
Hi there, I'm using scrollTop in one of my projects and it works perfectly on all platforms apart from iOS 6.. It's an online form and once you click on one of the fields of the form you are automatically zoomed in to the field.. Then, when scrollTop is called it works fine, but it resets itself to the origin (0, 0) and if possible I would like to scroll from the current horizontal position... $("html, body").animate({ scrollTop: 0 }, 600); I've tried adding scrollLeft for iOS devices but the results
jquery ajax can't animate div height resize in success function
here is my problem: I have a menu in which every item has a content updated via ajax (putted in the "content" div). <ul id="menu"> <li class="gr" on><a href="#">Home</a></li> <li class="yel"><a href="#">Products</a></li> <li class="bl"><a href="#">Contact</a></li> </ul> <div class="container"> <div id="content"> </div> </div> In the $.ajax success() function, where I put the ajax received data in "content" div, I want to resize div height with
Mouseenter function does not apply to all elements
Hello folks, I'm having trouble using the mouseenter function in certain scenarios. Basically my code looks like this: $("*").mouseenter(function() { ... $(this).css('background-color', 'green'); ... }This works for most cases - but for instance for google calendar it does not. The elements inside the purple rectangle (check screenshot) don't fire the mouseenter function (the elements around work fine...). If I just execute: $("*").css('background-color', 'green'); All elements (even
Events fire multiple times
Hi guys, I make a function when user click on input text field then input text field turn into red, and the there is select tag options where user can select its require mathmatic functions. Then user select any function from option in select tag then the switch statment run and goes in default case in default case i uses the jquery ui selectable tool for manipulating the data this case runs perfectly on each click and on each selection. but i have manual case where my code keeps firing the clicked
Cant insert jquery banner rotator & Nav bar.
Hi, I cant figure out what type of problem I am having with the structure of my page Ive ran it through the Tormus Div utility and received a Matched result meaning everything has a closin </div> tag. My page is to big to post in this forum..any suggestions... ?
Why is jquery attr is not working for with error
This is part of the code that I am using and I get an error on the line "var gar = $(this).attr("liRegDet") method. Can someone tell me why? I am using IE7 with no options to move higher at the present time. The error is:SCRIPT450: Wrong number of arguments or invalid property assignment . which is being return from jquery.1.9.0.mni.js.Thanks. $(xmlDoc).find("RegistrationDetails").each(function() { var gar = $(this).attr("liRegDet"); if (gar == rid){ currentDMVExpired
capture navigatinig away from my page
I use $(window).unload(function(){}); to know that user closes the page. is there a way to detect user navigating to another page? thanks
Which class to do I need to change (jQuery)
I'm almost finish with the sorting list with using Data-id. I have almost everything working right. Just some styling to do in html/css3. I just don't know which tag or css class I need to change to show that it has been deselected on my page. I believe the jQuery is working right. http://romabio.com/products/ <-- OLD http://romabio.com/p...cts/index1.html <-- NEW and needs to be fix! // run this when user clicks on a filter button $filter.on('click', 'button', function() { var $this = $(this),
object oriented sort of need
in the code there are boolians for each tab, which indicate open or closed, and which are supposed to toggle when clicking a tab theres a function for opening a tab a function for cosing a tab a function that calls those when u click on a tab called opentoggle, which toggles the tab open or closed i need to pass opentoggle something so that it knows which boolian to set once a tab is clicked <script> // store dimentions of windows into variables var sampleItemHeight=document.getElementById("experienceshadow").clientHeight;
help with response data
Hi all, I have got a ajax request which works fine but the response from the php page is displaying right at the top of the page. So i have tried using the success,complete,done and none stop the response from displaying at the top of the page, but also these don't work ie by putting alert(data); in does not get executed. I'm using 1.9.1 if anyone at help on this it will be great. Thanks, Paul
How to change the color of the select hover
HEllo, What selector do I use to select the event that highlights the items in a select box when your pointing to an item in the select box. In our system it highlights it as blue, how do I chnage that to brown ?
Change background of select options
Hello, Im looking to change the background color of a select box. I want to alternate the the odd/even into different colors. Im not going to know what is in the options as they are derived from a DB. But I cant get the selector right: $(document).ready(function() { $("#SCFILE:option:odd").css("background-color","red"); $("#SCFILE:option:even").css("background-color","blue"); How would I do all select boxes?
Where can I download the script Device Switcher?
Where can I download the script Device Switcher for the test site to different devices with different resolutions (click on the device icon, and the resolution changed)?
Using jQuery to get share price is throwing up error, help!
Hello, We are using a bit of jQuery to access the share price for a company on Yahoo Finance but I keep intermittently getting this error: Uncaught TypeError: Cannot read property 'quote' of null index.html:48 (anonymous function)index.html:48 njquery.min.js:2 o.fireWithjquery.min.js:2 wjquery.min.js:4 d.onload.d.onreadystatechange Sometimes it loads and sometimes not. The odd thing is that the data code for the company has changed recently from this: http://uk.finance.yahoo.com/q?s=CPZ.AX&ql=1 to
Return value from function
Hi guys, I've a question for you ... Can I return a value from a ajax request inside a function??? I've this code: function reqAjax(){ $.ajax({ url: '...', type: 'post', data: {}, success: function(result) {...}, complete: function(result) {... return tue ...} }); } $(document).on('click', '.btn', function(){ var res= reqAjax(); if (res = true){ alert('ajax is complete'); } }); Thanks Bye
autocomplete select delay
auto-complete select item by up and down arrow taking time , Is there any delay ? ,It is very urgent .Give me a solution .
I am looking for jquery file uploader to upload only pdf files in folder ??
Can any one suggest file uploader to uploade ronly pdf files
not working scrollTop and ScrollLeft from android default browser
frame.php: <script> ...click(function(){ $('#frame').contents().scrollLeft(1000); }); </script> <iframe id="frame" src="page.php" style="width:1000px"></iframe> page.php: <div style="width:4000px"></div> pc) safari, firefox, ie ==> ok mobile safari, mobile chrome(android) ==> ok android default browser ==> no working help me~
How to stop execution of a jquery line for some time ?
Hi Can u tell me how to execute the line (this.setAttribute('title', sTitle);) after some time.i tried delay() but its not working.its showing TypeError: this.setAttribute(...) is undefined my code is $('#tblTourList tbody tr').live('mouseover', function () { sTitle = null; var nTds = $('td', this); //Get the value of first cell var tID = $(nTds[0]).text(); //Get comments value
How to get a respose from a localhost url exactly http://localhost:5050/
Hi folks, I need to call a url from jquery method that url is to read the respose from a device the url to access that device is http://localhost:5050/R how can I call this url ?? please give me the solution for this Sai
How can I disable a button in a jQuery modal dialog from a function or at modal dialog load?
Hi, I'm new to JQuery.I have a jQuery dialog. In this form, I have a "Save" button. I would like this "Save" button to be disabled while the modal dialog open. The code i wrote to create this button is given below. However, I don't know how to enable and disable the dialog button from a function or at the time of loading the dialog. What should I do? <pre>$('#divAddExpense').dialog({ modal: true, autoOpen: false, height: 'auto', width:
when i click the dynamic link, although it call getdetails function but Ajax don't send anything to details.php. That is my problem.
I take out the link and id from database and create dynamic link, my intention is to grab the link (when people link on) with ajax and send it to php, there php will work the request data with database and return to ajax and my web page will refresh only partly, the following is my code, when i click the dynamic link, although it call getdetails function but Ajax don't send anything to details.php. That is my problem. third.php <?php $con = mysql_connect("localhost","root",""); $db= mysql_select_db("waifer",
JQuery is not working without alert message
hi, I had a issue with JQuery in combination with sharepoint 2013. I am using JQuery to create text boxes next below the List Headings . It's working well in native sharepoint list. Problem is with External List. To my surprise it works fine in external list too if a alert comes in document.ready function. here is the code. used Jquery-1.6.2.js $(window).load(function () { Load_Control(); //Character case Ignore method. jQuery.expr[':'].ContainsIgnorecase = function (a, i, m) { return jQuery(a).text().toUpperCase()
Sorting of jQuery Set apparently takes O(n^2) time in Safari
It seems like Safari can sort native JS array in O(n log n) time (which is expected) but it takes about O(n^2) time to sort jQuery set. I have asked this question on StackOverflow but no one answered there, so I'm posting it here. Here is the code I was using. In a nutshell, if you have code like this on your page: function sortArray(a) { a.sort(compare); } function sortJQuerySet(b) { b.sort(compare); } $(document).ready(function(){ var a = [], b = [], i = 0, n = 1000; for(i=0; i<n; ++i) { a.push($('<div>'
Syntax error - jQuery 1.9.0
Hi, We are using jQuery 1.6.4 in our application and requested to upgrade to 1.9.0. So I have upgraded to 1.9.0 along with jQuery migrate plugin to capture the errors and warnings. I have fixed some issues which were occured due to the upgradation. Now I am facing the below issues in json parse while navigating to a particular page. syntax error: jquery-1.9.0.js which is pointing to the second line of below code (ie. return line) if ( window.JSON && window.JSON.parse ) { return window.JSON.parse(
overflow only for smaller viewport
I have a datatable that calculates its width based on its content. I want to apply horizontal scoll when browser windows is too small. I do that by: style="overflow:scroll;" However when this windows is bigger than my entire datatable I want to stretch it by streching one column: <th style="width: 100%;">Title </th> It doesnt stretch when I added overflow however. How can I solve that?
Next Page