timed delay
hey guys im trying to append html to a div but in delayed times creaded by the variable delay_time notification.delay(delayed_time).show("slow"); works with no delay change between appended html and notification.delay(delayed_time, function(){ // doesnt work notification.show("slow"); }); just doesnt work $(document).ready(function(){ $.ajax({ dataType: "json", url: "http://127.0.0.1/scripts/json.php", success:
ajax json data
hey guys im trying to retrieve json data in my ajax request but for some reason it isnt alerting any message when trying to test. does anyone know what im doing wrong please...thank you guys $("document").ready(function(){ .ajax({ dataType: "json", url: "json.php", data: data, success: function(data) { alert(json['notification_message']); }, error:function(){ alert('error'); } }); });
how to do a switch button in jquery ?
Hi, I am looking for a switch button that for example show ON or OFF, and when clicked I want to know the value is ON or OFF. Thanks, your help is appreciated.
data attribute always false
Hi, I have this fiddle : http://jsfiddle.net/mlotfi/nudh9hdv/ trying to use switchButton to get the boolean data from data attribute, in this example I have two , one true and one false : <div class="globalswitch" data-gswitch='true'> and <div class="globalswitch" data-gswitch='false'> but the result, the button is always false. Thanks.
position() returning undefined in wordpress but works perfect locally
I;ve built a content slider that works perfectly on my local computer but within wordpress it's stumbling on the following: var begin_position = jQuery("#individual_story_wrapper").position().top; I'm getting the follow error: : jQuery(...).position(...) is undefined Yet locally, the slideshow runs fine and I can see the position being changed as I animate the individual_story_wrapper up and down.
Out of stack space problem Ajax in IE 8
In IE 8 browser produce Out of stack space error in cross Domian i am using jQuery 1.10.1 version $.ajax({ "url": arguments[1], "crossDomain": true, "type": "GET", "dataType": "jsonp", "jsonpCallback": arguments[2], "data": arguments[0] }); rest browser working fine but IE produce Error. Give me right way.......
Issue with using "this" in a scroll call
Hello wonderful humans, Alright, so either I've found an issue with jQuery, or I'm doing something wrong, and it's most likely the latter rather than the former. So I've got a code snippet: $(window).scroll(function() { if ($(window).scrollTop() > 384) { $('.chevron').css({opacity: $(this).css('opacity'), animation: "none", WebkitAnimation: "none"}).fadeOut(2000); } });And some HTML: <svg class="chevron" id="chev1" width="80" height="18">...</svg> <p class="chevron" id="chev2">...</p>And some CSS:
JQuery and https issue
Hi, I am using Jquery on a Sharepoint site and I have some issue by using Jquery and https. Here my error: Mixed Content: The page at 'https://***********.sharepoint.com/sites/******' was loaded over HTTPS, but requested an insecure resource 'http://vivafiliates.com.br/afiliado.php?user=opensubv5'. This request has been blocked; the content must be served over HTTPS.jquery.js:5 (anonymous function)jquery.js:5 x.fn.extend.domManipjquery.js:5 x.fn.extend.appendjquery.js:6 (anonymous function)jquery.js:4
jQuery - Read data from database in a loop
Hi, I want read data from database in a loop; with jQuery code in ASP. Similar inbox in email ,inbox(1), that show count receive email in every moment. help me please...
loop through selected checkbox
Hi how i can loop through only selected checkbox and perform some operation, out of all checkbox and if no one is selected alert message as ('select at least one) thanks
Jquery Split screen Image Hover
I have a full page split into 6 sections with a background images in each section. Also in each section there will be a <article> element. **What I want to do** When you click on a .section all the other <article> elements will fade out except for the one that is in the section that was clicked. Once the .section expands I have an .excerpt that fades in along with an X to close. When you click the X I need it to close and fade out the .excerpt and fade back in all the <article> elements that were
increment id when adding new line in table
hello everyone. need your help for advices on jquery code; when i add a new line to table, the selection.change() dont work anymore. i thinks i have to change ID ( increment ) for each element in table when i an adding a new line to table: tr , select input how fixe this problem. and how call it in selection.change() script thanks here his my code, <HTML> <HEAD> <TITLE> exos </TITLE> <script type="text/javascript" src="jquery.js"></script> </HEAD> <BODY> <button id ="add_line" class="add">+</button>
header Banner
Hello I want a jQuery to create header Banner, Initially it has to show Header (it has a man picture) with Title, after few seconds title should be overwritten by some Topic link and summary with thumbnail. Can you please give an idea how to do this. Thanks
What does Native JavaScript mean?
What does this mean? Familiarity with native JavaScript and JavaScript libraries (jQuery, Prototype, etc.)?
Problem jquery with chrome2
Hello everyone, Need help, my code doesnt work on chrome but no problem in FF and IE. Thanks <HTML> <HEAD> <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> <TITLE> Exos </TITLE> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function choixoption(zone,option){ $('#'+zone).toggle(); $('#'+option).hide(); $('#select0').attr('selected', 'selected'); } </script> </HEAD> <BODY> <TABLE
Jquery.css() accepts JSON key:values as properties ?? whats the advantage ?
guys given the following snippet of HTML : <div class="doit">Click Me</div> and the following snippets of Jquery EXAMPLE ONE $(document).ready(function(){ $('.doit').css({ "color" : "red"}); }); EXAMPLE TWO $(document).ready(function(){ $('.doit').css( "color" , "red"); }); BOTH Have the same effect , so whats so efficient about using the 1st method ?? Whats the advantage ??
debugger not working anymore
I have an Asp.Net MVC 4 project. I have a considerable amount of JQuery in it. I learned this year how to use the line "debugger" to get execution to stop in the middle of a JQuery function when you are running the project in debug mode of Visual Studio. I have used this considerably for most of my troubleshooting on this project over the past 11 months. Suddenly last week when trouble shooting a problem with a function last week, the debugger command no longer stopped execution at that spot.
Need help on passing value from jQuery to php
Hi everybody. I have problem with passing value from jQuery to php and then to echo that on select change. Assume i have page something like this: <html> <head> </head> <body> <input type="text" id="something" value="" /> <select name="Type" id="vals"> <option value="10">First</option> <option value="20">Second</option> <option value="30">Third</option> <option value="40">Fourth</option> </select> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Opera browser - Unhandled Error: Cannot convert 'elem' to object
Hello, I try to find where is my problem. In one article all works fine, but other article where is almost all same not. Opera tool DragonFly shows me: Unhandled Error: Cannot convert 'elem' to object Thanks for any help...regards Zdenek
$(window).innerHeight() not equal to window.innerHeight
Should window.innerHeight and $(window).innerHeight() always return the same value? If they should always be the same then this short piece of code on PasteBin may be of interest as it shows them producing different results. I tried to reproduce on jsfiddle but failed (maybe because it runs the code in an iframe) I have reproduced the behaviour with jQuery 1.11.1 on Chrome/Firefox on Win7 and Chromium/Firefox on Linux. I could not to reproduce the behaviour in IE.
JQuery.ajax() doesn't receive a response body
Hi. I'm creating an SmartTV app and testing it as a web site in IE browser. It needs to request data from url, so I do the ajax request; jQuery.ajax({ url: 'http://url...', data: "", dataType: 'xml', success: function (output, status, xhr) { alert(output); }, error: function(xhr, ajaxOptions, thrownError) { alert("xhr " + xhr.status); alert("error " + thrownError); }, crossDomain: "true" }); The result is I don't get response body and some strange
Using jquery.validate and jquery-ui
As lines below, only works the datepicker. Why is not working both validate and datepicker? Thank you for your help. Obs .: If you need more code to details, I can post. <! - Validate -> <script type = "text / javascript" src = "http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"> </ script> <script type = "text / javascript" src = "http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"> </ script> <! - Datepicker -> <link rel = "stylesheet" href = "// code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css">
tabs open on href
Hi, i have tabs section where i need to past some asp variabel i thought i could do like this but it doesnt work, can someone help me out? thanks <div id="tabs"> <ul> <li><a href="main.asp?m=2&t=1#tabs-1">Identificação</a></li> <li><a href="main.asp?m=2&t=2#tabs-2">Atendimentos</a></li> <li><a href="main.asp?m=2&t=3#tabs-3">Lista</a></li> </ul>
binding text with fonts and displaying
Hi, I'm trying to bind fonts from a DropDown menu into the text typed in INPUT box and displaying it in a P tag. Can you please help me how to go about it. I tried some ways... here it what i tried so far <script type="text/javascript" > function txtFunction() { x=document.getElementById('inputText'); y=document.getElementById('displayText'); y.innerHTML=x.value; x.value=''; } </script> <style> p{line-height:25px; text-align:center; padding:50px 0 0 0;} .displayBoard{ background:url(longsign.jpg)
Photos not sliding
link My images don't slide in my image slider (I've added my link to plunker). Not sure what I did. My console says element style cannot be nested within div element.
URL with php extension or trailing slash not added in Firefox (v30.0, Linux Mint 16)
I can add href: http://www.facebook.com/sharer/index.html and http://www.facebook.com/sharer/ but not http://www.facebook.com/sharer or http://www.facebook.com/sharer/sharer.php Neither through .append() or attr("href", [URI]) Using jQuery 1.11.1
Pause action on hover
I have the function below that switches DIV's between a given time interval. I'm trying to get it to pause when someone hovers over it. It switches as needed but it doesn't pause hover. $(function() { if($('.alert-box').length > 1 ) { setInterval(function(){ if($('.alert-box').first().is(':visible')) { $(".alert-box:visible").hide().siblings().next().show(); $('.alert-right-arrow').addClass('no-clicks'); $('.alert-left-arrow ').removeClass('no-clicks'); } else {
Jquery sortable quesation
Hi; I use this code to simply sort the lists. I need to also store the new order of sorted "ul li"s. I thought when I re arrange, I also update a list so I can use 'foreach' with php and store the new order into the database? How can I do that? Any ideas? Thank you
Re-initialise jquery on ajax loaded content
Hi, I am loading a gallery dynamically using ajax. I know i need to re-initialise the photoswipe lightbox after the ajax content is loaded. I am new to combining these things. If anyone can help with how to re-initialise the photoswipe jquery when the ajax content is loaded that would be great. Thanks in advance Richard $(function() { //More Button $('.more').live("click",function() { var ID = $(this).attr("id"); if(ID) { $("#more"+ID).html('<img src="moreajax.gif" />'); $.ajax({ type: "POST", url:
Issue on jQuery to Customize a Phone Filed Input Box
I am trying to use jQuery to customize a a text input box to accept phone in North america format like (555)-555-5555 I tried to use this at This Demo var field = $('#phone'); var fieldval = $('#phone').val(); var length, var pattern = [3,6] var maxlength = 11; field.onkeydown = function(event) { // Length without hyphen length = fieldval.replace("-", "").length; if(pattern.indexOf(length) != -1) { fieldval = field.value + '-'; } if(fieldval.length > maxlength)
:( How to disable ???
How can i stop user from executing functions in browser developers tool console ??? for example $("button").trigger("click"); i dont want the user to be able to run that in console panel !!! :( :(( Help !
on change of left value change the opticity of inner element
I have slider which is moving with left value. i want to down the opacity of all other image instead of font image because other images can be seen on the side of front image. Here is the html <ul style="width: 4680px; height: 450px; left: -1170px;" class="imageList"> <li height="450px" width="1170px" class="image"> <img width="1170px" height="450px" title="" alt="" src="http://ecx.images-amazon.com/images/I/52Ra33zPxhL.jpg"> </li> <li height="450px" width="1170px" class="image">
jquery Autocomplete
Can jquery autocomplete be used in blogger? If yes, pleasure provide the method.
Disabling Several Submit Buttons, Leaving Just One Enabled
I have a number of similar forms on a page, created by a PHP while loop. Each form has about 10 text inputs and a submit button. If (just for this question) the forms are called A, B, C and D, I want to disable the submit buttons on B, C and D when one of the inputs on A is in focus. And likewise for each of the other forms. My thought for doing this is to have two lines of jQuery. The first line will disable all the submit buttons. The second line wil re-enable the one with the focus on the input.
Rotate between degrees ?
I'd like to know how I can get this to rotate between -45° & 45°
Cick propogations
I'm not sure if this is bug is occurring because of jquery specifically, but when I click the back side of a rotateY'ed div the clicks pass through to the next div in inside the body tag instead of registering on the div I'm actually clicking on. Does anyone know what is going on here and how to fix it? The problem can be seen here: test.peoples1.com If you click on Packages in the menu on the left, the sub menu will flip out from behind the main menu, and then if you try to click a sub menu item,
Fetch mysql data using ajax when one input is filled
Respected all users, I am facing a little problem in using ajax+jQuery. I have two field in database roll and name . Now i have designed a html form containing two input type field roll and name . I want when i enter the existing roll in the roll field and enter tab or any other key the name field should automatically filled with the related name stored in database.Thanks in advance My codes are here index.php <html> <head> <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
jQuery 1.8.3 - How activate element from dynamic content?
Hi, The problem can be found in many places - but no good solution. The dynamic reloaded contents can not be accessed from an pre-loaded scripts. Can someone make an example ? This is my script: HTML: <select id="test"> <option value="2014">2014</option> <option value="2015">2015</option> </select> <div id="showme"></div> SCRIPT: $("#test").on("change", function() { $.get("mysite.php?myvalue=" + $("#test").val(), function(data) { ;$("#showme").html(data);
Radio Button and text questionaire
HI There I have a long questionnaire that consist mainly of 2 to 5 radio buttons and a comment text box. If rb1 is selected comment is enabled but if rb2 is selected it is disabled. Current code is as follows: HTML: <input name="rbQ1" type="radio" ID="RB1">Yes</input> <input name="rbQ1" type="radio" ID="RB2">No</input> <input type="text" id="textComment1" name="textComment1" enabled="false" /> $(document).ready(function() { $("#RB1").click(function()
How to do this : add interests ?
Hi, How to accomplish this : when you click in the green sign icon, that interest will show up in your interests, and hide from the bottom, the same when you hover Your interests a romove - sign appear . Thanks.
Next Page