TOOMUCH RECURSION ERROR
Getting toomuch recursion error in jquery . i had written a recursive function but it is getting some time toomuch recursion error for some databse links.How can i solve it?. i am using 2.0.3 jquery plugin
resize qualiy image
Nothing can give an example of how to resize image quality with jquery
resize image
how can this happen please know my love Can anyone help me
kill document event
Hello I search a lot but don't find what I want... I create a plugin (table built dynamically). I need to catch some event, but like my table is not here on load event, I use $(document).on("click", '.Delete', function () {...}); When I use my plugin in ModalPopup, I need to destroy table, cause I need to recreate table after. $r.children().remove(); Until here all is good. But When I recreate table and click on delete button I see my event play 2 times... I forget to kill event link to
Extend with key as variable
Hi, I've this function to add key in a data with k="Toto" $Root = $("#" + n); $Root.data("TFO", $.extend({ k: v }, $Root.data("TFO"))); But When I see $Root.data("TFO") I've k instead of the value in k How Can I do it? If debugging is the art of removing bugs ... then program is the art of creating
How come my Anchorlinks work on desktop but not mobile?
Hello. I'm developing here. I have this menu that slides out from the left side. When a user clicks on the item, two classes (menuToggle and scrolly) are triggered which: a) makes the menu close itself and b) smooth scrolls the page down to the anchor link. It works great with desktop browsers but it does not seem to function properly on mobile browsers nor mobile emulation tools on chrome web inspector. What happens is the menu opens and closes, but my user is never navigated to the link properly.
Select is empty when I pass to PHP
Hi, I am using below code to read the value from SELECT and pass it to PHP then get back the response. It's working perfectly when I change $request_category = $_GET['cboRequest'] to $request_category = 2 so the problem is at the value passing level Can you help please? $( "#cboRequest" ).change(function() { $.ajax({ type: 'GET', url: "get_request_processing_period.php", // dataType: "json", data: $(this).find('option:selected').val(), success: function(response) { alert(response); // data = response;
Drawing with jQuery?
This is sorta the only forum I frequent, sorry if you can't do this in jquery. Does jQuery offer the ability to draw? I"m wanting to start moving into drawing -> drawing simple animations from point X - Y. I've glanced at html canvas, but I'm wondering what language is the powerhouse for fluidity in browsers. I guess my question is which programming language offers the most stable platform for drawing basic lines and shapes, and offers the ability to animate them fluidly inside browsers. At this
css affect on after loaded div content
Hi everyone, I'm new on jquery, so i am stucked and have a question. I have a main div, it's content is loading with js containing jquery.html function. And also I have a main.css file. After loading this content, some functionalities like onclick or hover does not work. As far as I understand, that after loaded div doesn't get affected from this main.css. How can I fix it or what am I doing wrong?
Stop an loading Ajax Spinner after unknown amount of ajax requests.
Hello, I have a service that I am calling an unknown amount of times per each page requests. When the page loads I have a loading spinner running. Before, when I had one ajax requests, I would just stop the loading spinner at the end of that request, usually in the ".done()". Yet this time, I do not know how many calls will happen. I have something like this, for(var i = 0; i < requests_times ; i++){ $.ajax({ url : 'ServiceRequestUrl' }).done() .error() } Now, how would
jQuery Text swap help
I am currently calling a function that checks if td contains a specific text, and if it does, it swaps the text with the array. Is there a better way I can do this? I have 165 to swap and append, and this could get lengthy. function replaceAff () { var RLREID = ["AL201","az202","az203","az204","ca202","ca203","ca204"]; $('td:contains("' + 'al201_real_living_norman_realty' + '")').text(RLREID[0]); $('td:contains("' + 'az202_real_living_property_for_you' + '")').text(RLREID[1]);
Alert is hit 2 times sometimes more.
function WireScrollForMorePatients() { $('#CalendarId').unbind('scroll'); $('#CalendarId').bind('scroll', function () { var elem = $('#CalendarId'); if (elem.scrollLeft() + elem.innerWidth() >= elem[0].scrollWidth - 1) { alert('End reached') // This is hit more than once in IE and Chrome and FireBox ask to stop popping the same alert ! return false; } }); } Also there's a different behavior if I scroll with the cursor of the scrolled or
how to make table(gridview) synchronize with map area that already create by using hover or others?
hello everyone: i have a question that how make the gridview from the row when mouse over can see the hover and at the same time show hover on the location map area that already fix such as the seat where alice sit. Note the table data come from the xml file Example Student Sit number alice 12 map:
how to make function Keyup working too by give value by another keyup in diffrent entering
Hello Guys, i have form that is more complex for me, a lot of jquery function on it, so here is my simple demo http://jsfiddle.net/dauruk0512/524LpL8r/9/ There is two way buy product If serial number entering automatically qty has default 1 and cannot edit cause i make readonly if serial number not entering user can buy product more than 1 Problem is when user doesn't entering serial number then buy same product more than stock i'm success make alert but when user buy entering serial number i cant
Help on AJAX Pleaaase !
Hello everyone, i am a beginer on ajax and jquery and i have a problem using ajax to send data to a php page whithout refreshing the actual page, pleaaase help me solve this probelm it took me a lot of time, i could not upload the code on this forum so i'll be gratful if you help me by downloading my code here : https://www.dropbox.com/sh/ey47q18i6vvp3cw/AADwVSJCd5EpudDhtwlJlS5ia?dl=0 thank you very much
having problem with jquery code for dropdown
hi guys...i'm having serious problem..i want to a dropdown using jquery but this doesn't work. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> (function() { $('li').hover(function() { $('this').find('ul>li').stop().fadeToggle(300); }); })(); not me
How to override some of the H3's (header's) font color wen using Jquery.accordion
Hello, Does anyone know how I can change some (not all) H3's font color's or background colors when using the Jquery Accordion? Currently I am able to change all the H3's background color by using the following CSS: /*styling the header*/ #accordion .ui-accordion-header { background-color: #ccc; margin: 0px; padding: 0px; font-size: 10pt; line-height: 8pt; height: 20px; } However, I am in a situation
what plugin is this slider ?
Hi, I saw this web site, was trying to see what plugin they are using to change the background pictures, is there any easy way how to find a plugin from a web site ? the web site is : http://visualmass.co/collections/featured using inspector I can see :
Change css of Dynamically created element?
Hi. I'm having a little trouble understanding why I can't manipulate the css of a newly created element. I've created the element, targeted(I assume with .on) and the assigning addition css traits. But it's not working http://jsfiddle.net/skfn8m3o/1/ $("body").on("click", ".frameContainer", function () { var clickedID = $(this).attr("id"); alert(clickedID); $("#" + clickedID).css({"background-color":"black"}); }); I don't understand the process here. How come the CSS isn't being applied
problem with js
hello i have this on my js code $(document).on('pagecreate', '#VHC', function(){ //$(document).on('click', '#button_vhc', function() { $.ajax({ type: "POST", //url: "vehicules.php", success: function(result) { document.getElementById("cout").value= "<li id=\"cout\">salim</li>"; //alert(obj.value); } }); } // ); }); and this on my php echo "<li>601802 PARTNER 6539TU149 TN, TUNIS, N8 2014/02/03 16:16:03 0 Km/h</li> "; but in my html no thing displayed
Jquery loop
Hi , I am new here as well jquery How can I write a function with loop in Jquery I have a function like this the counter 1 to 3 is getting from my database how can I make this function in a loop? (function () { $('#ls1').change(function () { $('.output1').text(this.value); }); $('#ls2').change(function () { $('.output2').text(this.value); }); $('#ls3').change(function () { $('.output3').text(this.value); }); ); })(); Regards Binu
Recursive function on n-descendent
Hi I want to write recursive jquery function to iterate through below JSon [{"newQuestionid":"3451602225724915","newDQGroupID":0,"newDQAtrributesID":0,"newQuestion":"A","newParent":0,"newParentTrigger":[],"newOrder":0,"newRequired":false,"newAttributesID":0,"newType":"Free Text","newAttributes":[]},{"newQuestionid":"2750413003607790","newDQGroupID":0,"newDQAtrributesID":0,"newQuestion":"B","newParent":0,"newParentTrigger":[],"newOrder":0,"newRequired":false,"newAttributesID":0,"newType":"Free Text","newAttributes":[]},{"newQuestionid":"4498200815351845","newDQGroupID":0,"newDQAtrributesID":0,"newQuestion":"C","newParent":"A","newParentTrigger":[],"newOrder":0,"newRequired":false,"newAttributesID":0,"newType":"Free
need elem to appear only if falls beyond viewport.....
hi, I have a "back to top" link at the bottom of my pages, but I'd like this cta to appear only if it falls below the visible part of the page (i.e., beyond the viewport... in the scrolling area, I think it's also referred to..) is there a way to do this with jQuery? thank you...
query database by clicking on checkbox
hello. I'm working on a code where clicking on a checkbox the value of a product and added to the value of the item marked checkbox. and consequently to be cleared the value of the item must be decremented value of the product. file main.php <?php session_start(); require_once 'php/funcoes.php'; require_once 'admin/funcoes.php'; require_once 'admin/config.php'; require_once 'admin/classes/bd.class.php'; BD::conn(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet"
Multiple tabs are opening when passing url through Window.open function
My code is var result_send_msg_body = send_msg_body.replace(/ /g, "+"); $('#message').val(result_send_msg_body); var mobile_no=$('#send_number').val(); var url='http://gateway.mytelesom.com/gw/lm/sendsms/?username=abc&password=xyz&from=123&to='+mobile_no+'&msg='+result_send_msg_body; var costpart = mobile_no.split(","); for (var i = 0; i < costpart.length; i++) { var url='http://gateway.mytelesom.com/gw/lm/sendsms/?username=test&password=test&from=567&to='+costpart[i]+'&msg='+result_send_msg_body;
Dynamically creating a link that will load a page using .load
I am trying to dynamically load a page with data of links. I put an id on my links. When the link is clicked, I need to use jQuery to load another page into my existing page. My page is loaded and seems to be correct, but the jQuery clilck method is not working after my page loads with my dynamic links. Can someone show me what I am doing wrong? It is a lot of javascript and here is a snippet of it. // HTML page <div id="mainContent"> <div id="inputRequirements"> </div> </div> // jQuery that
jQuery scroll to element on click but also page load if present
so my on click event to scroll down to the hashtag element class worked fine but i noticed if i requested from another page it did not scroll so i added window load which works lovely but now with both bits of code together the on load scrolls if a hashtag url is present but click no longer works... does anyone have a better solution for these to both work? JS // Scroll To # Links $('a[href^="#"]').on('click', function(e) { if (!$(this).hasClass("menu-button")) { e.preventDefault(); var target =
Urgent Help
I want to use DatePicker and Clockpicker in ascx file(User Control) in asp.net. I can show date in textbook in aspx file but I can not show it in ascx file. Please help me with that.
Remove form input fails when using remove()'s optional selector
When trying to write code to remove an input element from a form, I found some weird behavior. I would expect both commands below to have the same effect, removing an input element from the form (test-1). Is this expected behavior or a bug? What doesn't work: $("#test-1").remove('[name=testInput]'); What does work: $("#test-1").find('[name=testInput]').remove(); JSFiddle: https://jsfiddle.net/3Ltme6xq/1/
Set CSS without atribute like .click
Hello jquery-Forum, My problem is that i have a div who is responsive in width. The height have to be the same like the width. How can i say in jquery that he have to set "("mydiv").css("height", width)" without atribute like .click? he have to do it automaticly without user-action. Thank you and sorry for my bad English
IE 11 issue
Hi all, I am working on preparation the javasript based on jquery. Currently I use below version: <script src="https://code.jquery.com/jquery-1.8.2.min.js"></script>. My code works excellent in older version of IE but doesn't work in IE11. Are you able to give my any suggestion which version I should use or which functionalities aren't support? What I used are: event hander, web links, alert and doNamedInvoke function. Many thanks in advance for any ideas. KRs
calculate age Problem
Hi, I have the following date and I am trying to calculate the age of the person but I am always getting ZERO. Ca you help please... <script type='text/javascript'> $(function() { var toDate = $("#dateBirthday").datepicker({ defaultDate: "+1w", dateFormat: 'dd-M-yy', changeMonth: true, numberOfMonths: 1, onSelect: function(selectedDate) { var start = new Date(); var end = $('#dateBirthday').datepicker('getDate'); var days = (end - start)/1000/60/60/24; if (days < 0) $("#lblAge").text(0); else
Adding filter to Ajax API
I am making a call using Ajax to display a list of hotels. I have a filter menu on the left hand side that when you press the update button it will send additional parameters to the base call of the ajax such as minimum rate = $100 and maximum rate = $300 and so on. It with the make a new call to the api and show hotels from $100-$300. How do you send the new data to the same page for it to update with the filtered results.I can get the new data inside the data object but cannot action the update
How to make default 1 by entering field IMAE/SN
Hello Guys, i need some help to debug my javascript in localhost running well but only first row so i upload in jsfidlle but it doesn't work >.< all i need is how to make default fields Jumlah to be 1 when user enter IMAE/S.N my script about it in bellow Reminder :Localhost running first row but next row not working in jsfiddle not work, Thanks for respon my jsfiddle here http://jsfiddle.net/dauruk0512/08ps55uf/11/ $(document).on('keyup', '.imae', function() { var imae = $(this).val();
:( Click wont work for newly added items
$(document).ready(function(){ $('.item').click(function(){ console.log('clicked') }); // after some times some '.item's will be added to the dom: $('<div class="item"></div>').appendTo($('body')); // but the click wont work }); how do i write the Click function only one time and make it work for newly added items as well as already existed items ?
How to add a timestamp in different timezones using jquery?
Hello, Can someone please tell me how I can code a simple clock on my website. It doesn't need to be live, the time would just update when the page is refreshed. I would need it in 3 timeszones. So at 5:45pm EST (New York time) it would display: New York 17:45 London 22:45 Tokyo 7:45 I've seen clocks that detect your current time but I would need it in these specific time zones. Any help would be appreciated! Thanks!
.serialize() updates the div but doesnt pass the values!
Hi; The div gets updated but the values are not passed! In other words => calculate_usps print_r($_SERVER); doesn't print the values for s_from or s_to. $_POST prints nothing either. What am I doing wrong? Code: <form action="#null" method="post" id="usps">
<div class="main_contant clearfix">
<input type="text" name="s_from" value="90210"/></div>
<input type="text" name="s_to" /></div>
</form> $(document).ready(function(){
$('#calculate').click(function() {
$('#result').html("<img
Display all the content of an element inside another element with JQuery
Hello guys. I have the following case. I am using Twitter Bootstrap. I have a simple boxes that consist of an image. I want when the box is clicked the image to come up with an html below it. Okay. I achieve that but I gain only a text directly added into the element. But let's say I decide to create a table inside this element and may be create another elements like h2,h3,h4,p,div,table. I want to display them all but only when the modal dialog is fired. Here is what I have. I need your help to
JS Runtime error unrecognized expression
I get an error (below) when I try to run the following code (https://jsfiddle.net/o40dbvpx/1/) within my app. This is within a SP2013 solution and jQuery is loaded (as I can show alerts). I have tried jQuery 1.11.1 and 2.1.3. 0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: table.class=ms-formtable tr: nth-child(9) Everything runs fine within the JSFiddle so I am sure I am hitting the correct location, but jQuery is now happy about something! TIA!
Regarding Date Picker
Hi All, Is any one having solution. I have HTML code where i implemented the row add and delete using JQUERY( jquery/1.7/jquery.min.js and bootstrap.min.js) and also the date Picker by using (jquery-1.9.1.js and jquery-ui.js) while i will disable the jquery.min.js the date picker is working . But i need the jquery/1.7/jquery.min.js to add and delete row in the table.So How i can fix this please any one can help on the same. Thanks, Snehasish
Next Page