get/view TCP hop count from packet header
hello one and all, when i use jQuery.ajax, is there a way to read/get/view the TCP hop counts through all of the packets received when ajax is .done? if so, how is that done? thank you in advance, lucas
basic workfllow question.
So i just descovered the power of grunt.js , just one question i have , a very basic one. ofcourse , grunt creates a folder node_modules and also you have the package.json file and the gruntjs file ,so now when i see git repositories , i see the grunt and package.json files uploaded ,but the node_module folder is excluded , WHY ? see how its been ignored HERE . So when uploading to the server , should i exclude the node_modules folder too ? also when uploading to the server should i keep the package.JSON
Simple Animation not Working
Hi guys I am using a simple jquery fadeIn and slideDown effect on a click event but for some reason it doesn't work here's my code <form id="Form1" method="POST" action=""> <p> <label for="moneyInAccount">Enter the amount you have in your account</label> <input type="number" step="any" name="moneyInAccount" placeholder="0.00" > <input type="submit" name="moneyInAccountBtn" value="Submit"> </p> </form> <p id="moneyInAccountParagraph"></p><br> the jquery code is as follows $("moneyInAccountParagraph").hide();
Is there in jQuery a method like load but for submitting a form?
I am looking for a way to submit a form, just like I clicked a submit button, but without refreshing the page. I am ok with using ajax to do this. But I am wondering if there is some simple way to just submit a form. If I did plain JS, it would be document.getElementById("myForm").submit(); But this causes a refresh because it's just like clicking the submit button. SO I am new to Jquery. Load works great for getting data. Is there something like Load for submitting data that just submits the
ajax POST being sent as GET
I am sending an ajax POST request like this: $.ajax({ url: url, method: 'POST', dataType: "json", data: { recipe: recpie } }) But the request is being sent as a GET: Request URL: http://127.0.0.1/api/update_measbox?recipe=MALBHDPOR Request Method: GET Status Code: 200 OK Remote Address: 127.0.0.1:80 Any ideas as to why this is happening and how I can get it sent it as a POST?
Issue: Traverse nested tables on client
I have nested checkboxes when I select a checkbox it should select all the checkboxes below as well and same when I deselect top most checkbox. However this isn't happening. I have the following code. This is returning length 0 v ar matches = $("#" + childId + " input[type='checkbox']"); I am using telerik to create the grid. HTML: IL-7797 1/22/2015 -329 1 PIN Address County Owner Service Date Expiring Days Until Expired Times Extended Extension Available Command item
$('. ').is(":focus") Works Differently in Safari, Firefox and Chrome
I have a piece of code that creates a popup with a textbox and two buttons. The code tracks which item has focus to trigger proper events. The problem is that the method ($('.').is(":focus")) does not seem to work for <input type=submit>. It works for <input type=text>. Is there a reason for this? Alternatively, is there a better way to track if a button was pressed in this case? I still want to retain the ability to hide the popup if the user clicks off outside the content box with inputs. Here
Setting div to empty and more...
Something new to me. I have <div id="div1"></div> Using jQuery ajax, I populate the div. Part of that population includes <button ID="Close" value="Close">Close</button> The script for the page includes: <script> $(document).ready(function(){ $("#Close").click(function(){ $("#div1").empty(); }); }); </script> The idea of this was to set the contents of div1 to empty. I need the contents of div1 to disappear from the page. But when I click the close button, nothing happens. It's
Select Image Name
Hi I have a table that show some images. I add an Icon to delete the image when the icon is clicked. the problem is select the correct namefile of image to use with ajax <td> <div> <img class="deleteimage" src="' . $image . '" />'; <a href'' class='trash2'> <i class='glyphicon glyphicon-trash'></i> </a> </div> </td>
when click on botton id show !
hi, i want to change css att when click on button and body ! when click on button , display att change to block and when click on body display att change to none my code : $(document).on('click','body',function(){ $('#login-form').css('display','none'); }) $(document).on('click','#login',function(){ $('#login-form').css('display','block') } can help me to solved the problem ? sorry for bad english :(
Display two column from JSON using AJAX in jQuery auto complete in a table format
Currently working on jQuery auto complete where I can able to generate data from JSON single column data, but I want two values should be displayed label and descirption this is my json [{"id":"Emirates College of Technology- UAE","label":"COL000001","value":"COL000001"}, {"id":"Al Khawarizmi nternational ollege- UAE","label":"COL000002","value":"COL000002"}, {"id":"Syscoms ollege","label":"COL000003","value":"COL000003"}, {"id":"Abounajm Khanj Pre-Uni enter","label":"COL000004","value":"COL000004"},
Sliders
Can someone tell me where to find the correct code to change the sliders from a maximum of 3 to a higher number of sliders?
Replace different text with different image
I try to replace different text with different image and want to add the code in to the template. I tried this <script type="text/javascript"> jQuery(document).ready(function() { $(function(){ $('itemExtraFields a:contains("Australia)').html('<img src="aussieflag.jpg"/>') }); </script> seems not to work. Any help would be great
How to fetch xml file using jquery?
portfolio.xml ------------------------------------------------------------- <? xml version="1.0" encoding="utf-8" ?> <portfolio> <thumbnail title="POS" imageurl="img/pos.jpg"> <type>Windows</type> <client> New zealand </client> <duration> 1 year </duration> <description> POS loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream ipsum pos loream
JQuery DatePicker not loading the year from DisplayFormat attribute.
I am using MVC 5 and JQuery 1.10 DatePicker. The view model is set to display the date as dd MMM YY format and the datepicker is set as 'd M y' . When loaded the date in the input is in the correct date format, ie. "6 Dec 15". The problem is the year on the Date picker is fixing on the first number as the year so the date picker initializes with the year 2006, not as 2015. Otherwise, the date picker is displaying in the correct date format but as the wrong year. View Model: [Display(Name = "USG
How to print an object on screen using jquery ?
here is something from my code var data = [ { index: 123123, name: "Nikola Nikolovski", grades: [ { course: "Calculus", grade: 10 }, { course: "OOP", grade: 9 }, { course: "Interactive Applications", grade: 10 }, ], edit: false }, how to print this , did anybody know
Remove jQuery from previous Script with secondary script
Hi There, I'm working with Wordpress child themes. My parent theme (twentythirteen) uses some jQuery to create a masonry layout in the footer and it's called in the parent themes files. The script is below.. if ( $.isFunction( $.fn.masonry ) ) { var columnWidth = body.is( '.sidebar' ) ? 228 : 245; $( '#secondary .widget-area' ).masonry( { itemSelector: '.widget', columnWidth: columnWidth, gutterWidth: 20, isRTL: body.is( '.rtl' ) } ); }I want to remove this Masonry code and doing so responsbly
datepicker issue
I have a datpicker on a page and when I click the date I want nothing happens except a pound sign is appended to the url ? any ideas wht is wrong here is the html/javascript <html> <head> </head> <body> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"
Why validator is not validating?
Hi, Below link... http://www.jassimrahma.com/CakeBoutique/contact.php I am try to validate required fields but it's ignoring as I am using a placeholder so it's considering it as value. How can I fix it please? Thanks, Jassim
Jquery for webapps
Hi there, I try to build web base app. In my home page, there is left side for navigator and right side for the content. while i click the nav menu, i just load the content with page code. $(".naviref").click(function() { var toLoad = $(this).attr('href')+'.php'; $('#content').load(toLoad); return false; }); but, I realise if calling same page (with form) multiple time, jquery is read always my first form from the page. So, is the load function not wipe last script and
Creating body of Table creates error
Hi, Getting error trying to create table. Don't know what it is or how to fix it. Hope someone can help. //////// CREATE HEADERS for Table /////////// // pData from Ajax Call table_str="<table class='center' border='3' cellpadding='5' bgcolor='#fff99d' >"; table_str+="<thead><tr>"; $.each(pData, function(index, value) { if (index>0) return false; // just to get the headers $.each(value, function(i, val) { table_str+="<th>"+i+"</th>"; }); }); /////////// CREATE Body
attached j query not working
Hi, I am trying to make the attached work (it is working online from some site) but when i try it locally on my visual studio 2010 express, the dialogue will come out but the buttons (yes, no) not clickable! please help as it has been 4 days i am trying to solve this out! Thanks, Rami
JQuery center a div in the middle of the page
I working on a Lightbox (tutorial) , a div container wich open on click. This div container isn´t displayed and is located under the click element. Now i tried to center it vertical but withouth success. $(window).resize(function() { $(".modal-box").css({ top: (($(window).height() - $(".modal-box").outerHeight() / 2) + $(window).scrollTop() + "px") }); }); The problem is: At the beginning the div is almost out of the bottem screen and divs below gone out of top screen. I would have each
Passing extraParameters in trigger method not working for checkbox
I have pass extra parameters for button and checkbox while trigger click using trigger method. But it's not working for checkbox. Please check the below example. http://jsfiddle.net/abtraju1/sz4d3ag0/7/ This issue happened due to below code(Line no: 4870-4875) only for checkbox. trigger: function() { if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { this.click(); return false; } }
animationend does't work with transit.js ??
suppose i have the following animation: var delay = 0; $('svg polygon').each(function(i , e){ $(this).transition({ x : 0 , y : 0 , delay : (delay = delay > 1000 ? 0 : delay += 100) }); }); now suppose i have the following event handler $('svg')[0].addEventListener('webkitAnimationEnd animationend' , function(){ console.log('animation over'); }); The event listener never fires , WHY ?? does animationend event not work with transit.js ? Thank you.
jquery $.ajax problem
i have html form like this. <form action="xyxz/reguser.asp" method="post" enctype="multipart/form-data"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="Submit"> </form> I like to use Action , method and enctype in $.ajax method instead of using it in html form. Action = url , method = get/post How to specify enctype in $.ajax ? is that enctype = contentype ? $.ajax({ type: "post", url: "xyxz/reguser.asp", data: postData,
Upload Cropped Image to PHP
Hi, I am using below plugin to crop image: http://foliotek.github.io/Croppie/ I wanted to know how to pass POST the image in order to process it in my PHP: here is my code: <?php include('../includes/php_header.php'); include('../includes/connect2db.php'); $item_guid = $_GET["id"]; ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>New Item</title> <link href="../css/admin_style.css" rel="stylesheet"> <!-- jQuery--> <script src="../jQueryAssets/jquery-1.11.2.js"></script> <script
Preveny Non-Numbers on Paste
Hi, I am sing below pluging to allow numbers only and it's working fine when typing the number but not when pasting! it accepts any character pasted including alphabets. How can Prevent this? http://transtatic.com/plugin/numericInput.htm Thanks, Jassim
Triggering an ajax call from a newly added row using jquery to the existing table
I'm trying to view student details in a table. Initially, my table has only one row, where 3 columns University, Department and Names are present. When I select a university from the university drop down, an ajax call is triggered and it populates the corresponding departments available in that university in the department drop down. when I choose the department, a second ajax call is triggered which populates the names drop down based on the value in the university and department dropdowns. When
How do you target child <img> inside <a> using :gt()?
Hello everyone This is my first post in this forum concerning a bug which I would like a solid solution for. I have HTML and JS code as below for a slideshow script and I would like to hide all of the images except for example1.jpg, but the JS code currently exposes all of the images: <script type="text/javascript"> $(function(){ $('.slideshow > :gt(0)').hide();}) </script> <dev class="slideshow"> <a href="#"><img src="example1.jpg"></a> <a href="#"><img src="example2.jpg"></a>
Using off() on elements registered inside each()
So the issue I'm having here seems like it shouldn't be an issue in the first place, but after doing some research it seems jquery's off() method will not off events that are registered dynamically inside an each() statement. Since the selector of the this statement for some reason doesn't match the original selector when the on() method is used. Here is my scenario: $elements.each(function(index, el) { var $this = $(this); $this.off("." + name); if(...) { $this.on("scroll." + name, function(e, scroll)
audio onclick playback issues, sound stuck in IE and Chromium
Hi, I added a jquery menu onclick event to play an audio file each time a menu link is clicked, it works flawlessly in firefox but as you can see under dev[dot]lightserver[dot]at the sound gets stuck with IE11 or Chromium browser. Curiously for only one button "Lösungen" playback works as thought. The firebug console doesn't give me a hint what's wrong with the playback. I'm not that experienced using jquery, but I guess there's some scripts incompatible? kind regards
¿Cómo puedo hacer zoom a una imagen al clickearla?
Me gustaría saber ¿Cómo puedo hacer zoom a una imagen al clickearla? Soy un poco novato y me gustaría un poco de ayuda.
Click through series of images
hello everyone I have recently encountered a problem with jquery while trying to use the click function. Below is my code. http://plnkr.co/edit/kT03fd2iMnWsIcnkdDTh?p=catalogue What I am trying to do is start with an image ("closed"), click on it and have the image change to a different image ("open.png"), then click on it again and have it go back to "closed". Ideally, I would be able to add multiple "click" steps before returning to the initial image. However, this is not working and I was wondering
Setting the context for a search
I have set up a query like: $('.formFieldContainer', formElement).each(function(index) { var element = $([id^='gofr_']. <???>).html() console.log(element); }); But I am not sure what to put in the <???>. The id's will be unique
How to reverse a function
Working on a point system that assigns points for every element with matching content in a group of search results. It works well when I compare the contents from .per-results to .myself, but it doesn't work when I do the comparison from .myself to .per-result. When reversed, it still assigns points but it assigns the same amount of points for all .per-resultwhen it should differ. My code looks like below. $(function() { $('.per-result').each(function() { var $matches = $('span', this).filter(function()
is it possible (ajax)
hey guys i have a function like so: function ajax(type, url, data){ return $.ajax({ type: type, url: url, data: data, cache: false, processData: false, contentType: false, dataType: "text" }); } i'm able to call for success and error function like so: var upload = ajax('POST', 'save.php', data); upload.success(function (src) { });
animated repositioning of elements on resize
In the past I have come across Jquery libraries which animate the repositioning of elements which occurs on resize in responsive sites. However I cant seam to find any now Can I have some suggestions
Specify one Checkbox to make a selected Row
Request: Use one checkbox only that has the class asdf that should be enable to select the row by changing the background color to yellow. The remaining of the checkbox (to the right side) shall NOT enable to change the background color to yellow. The problem that I'm facing is that don't know how to solve it. If possible not to change the structure of the html because it is used today in production phase. http://jsfiddle.net/qabnx4ph/27/ http://jsfiddle.net/oc1n1c49/2/ Thank you!
Custom elements ('x-') and JQM
When a custom element is present in a 'paged' document, JQM enhancement copies the last (or the parent) element of 'x-container' to subsquent 'header', 'content' and 'footer' <div>s - <div data-role="page"> <div data-role="header">...</div> <div data-role="content">...</div> <div data-role="footer"> <x-container> <img src="../neither/here/nor/there/1.jpg"> <img src="../neither/here/nor/there/2.jpg"></img> <img src="../neither/here/nor/there/3.jpg"></img> <img src="../neither/here/nor/there/4.jpg"></img>
Next Page