apple-touch-icon does not seem to work with IOS 8
Using <link rel="apple-touch-icon" href="hs-icon.png"/> so I can save on the home screen a custom icon does not seem to be working on the iphone running ios version 8. If there a different syntax to use this feature on an phone running ios version 8 ? Thanks so much for any help.
JQuery Mobile
Hi Guys am new to JQuery, am trying to use JQuery Mobile to send entered fields/data from an HTML5/PHP mobi site form to a dashboard which should store the values from that form. what i want to achieve is the link which contains the values entered on the from. Please help, thanks in advance!!!!
Getting ajax to redirect on success
I'm using laravel 4 and in order to save an image I used some ajax code. For my site I need to redirect when the submit button is clicked. The page that it needs to redirect to is index.blade.php Here is my ajax code $.ajax({ type: 'POST', url: $(this).attr('action'), data: $(this).serialize(), dataType: 'json', encode : true, success: function(response) { location.href('admin/test'); } });
mystery function in unslider.js
hey guys , i have been trying to look up the code of a plugin called unveil.js , basically , i have this one line , which i am struggling to figure out in the plugin , look below : $.isFunction(o.starting) && ! callback && o.starting(el, li.eq(current)); The line above can also be found on the git repo of the plugin : git repo unslider.js now i figured out the above line , is nothing but a sequence of if conditions , something like below : so , 1st $.isFunction(o.starting) is checked , if true
complex not(!) conditions
Hey guys , can you checkout the below if conditions , they make extendsive use of the not operator and i am a little confused as to what really are they checking for : Example One : if ((!target.length || index < 0) && o.loop == f) { // do somethng } i really don't understand this not operator , under what circumstance would the below condition : !target.length return true or false ?? if (!ul.queue('fx').length) { // do something } under what circumstance would the above condition return
PHP table isn't displaying
I have a PHP script which connects to a MySQL database and should output a table in HTML. I have tired to set up a long-polling AJAX script to poll my PHP script every second. It seems to work based on what I can see in my browser debugger, however the table isn't showing on the page. Can anybody help me find what's wrong with my code? reocrd.php <?php header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); flush(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD
jquery text resizer does not work :(
Hey :) I'm begginer in juery and I'm trying to add icons increasing and decreasing text. I found the code in net, but it does not work properly, because after one click on icon increasing font, text decrease, but it works fine later. Demo is here: http://www.queness.com/post/3956/quick-and-easy-jquery-font-resizer-tutorial Tips under the article does not work The code is: <script type="text/javascript"> $(document).ready(function () { //min font size var min=9; //max font size var
debugging Jquery
Hey guys i have been just trying to debug a few javascript plugins and i'd really like to learn the mozilla debugger tool . here is a screen shot of what i had when i was debugging my plugin : on the left hand side you have all the events and on the right hand side u'll see DOM2 and bubbling , can somebody give me a vague idea of what this really means ?? and how useful are these options while debugging .. ? Thank you .
Vehicle Creator JQuery.
Hello, a friend told me that I would find here an example of a vehicle creator. If can u help me please send me a link. it should work like this: Link So much THANKS for any help.
Prevent shapes being re-arranged after fading out
Hi all, I'm a real jQuery newbie. So I thought the best way to master jQuery is starting to code! And as a matter of fact, I almost succeeded to write a shape-matching program. The aim of the program is to match filled shapes against contours of the shape at the bottom of the page. As soon as a shape matches its contours, it is faded out from the whole scene. The thing with this program is: as soon as the shape vanishes at the droppable object, all remaining shapes will move their position. But,
Adding div using nth-child with .after() not working after load more button pressed?
My code is add div inside content normal. It adds banner div after 3th div with id= grid . But when i press button Load More it adds more 4 grid but does not add banner div rest of others any more. This is my code for javascript and html <script type="text/javascript"> $(document).ready(function(){ $.get("http:/domain.com/banner/" , function(data){ $("#column #grid:nth-child(2n)").after(data); }); var num_messages = <?=$num_messages?>; var loaded_messages = 0; $("#more_button").click(function(){
jsonp in asp .net
Hi to all... i am struck with jsonp. My problem is when i am calling ajax method jquery its not getting in callback method. For example: i) i am calling ajax method from 'A' website to 'B' website. ii) And again calling ajax method from From 'B' website to 'C' website. But i am getting the values in callback methods. if i call the ajax method from From 'B' website to 'C' website. i am getting the result in callback method. A website method <script type="text/javascript"> $("#form1").ready(function
Galgotias University - Introduces Jquery Subject
Hi All, I am Garima Kaushik. I am a student of Galgotias University. Our university has introduced Jquery subject in our semester. I just want to be a perfect jquery programmer. Any link will be appreciable. Regards Garima
magical index variable .
guys given the following code : Jquery : $('div').each(function(i){ alert(i); }); and the following HTML code : <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> On document load .. and alert pops up 6 time .. everytime displaying a value which increments from 0 to 5 . now i have a confusion , nowhere in the Jquery code have i explicitly specified that i want the i (That i can be changed to "index" or even "bla" ) to be the current index of the elements , so why
code in one plugin accessing features/functions in another plugin ?
well what my title says .. is that possible . i am pritty much almost sure its possible , i don't know if its a common use case , but is it possible ? I came across an interesting case recently , i was going the source of a simple carousel plugin : unslider.js . Source code. the carousel is a lightweight one , it says the following about adding mobile , touch , swipe support : If you want to add mobile/touch/swipe/whatever support to Unslider, you’ll need to include the jQuery.event.swipe
Newbie Requests Help on JQuery Script.
Could someone please help me with the following: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> <link rel="stylesheet" type="text/css" href="css/flipbook.style.css"> <link rel="stylesheet" type="text/css" href="css/font-awesome.css"> <script src="js/flipbook.min.js"></script>
Jason Lapene - Newbie here
Hi I am Jason, my educational background includes web design and degree in business. I have a little bit of knowledge about jquery but I want to be perfect in it and want implement in my website. Can anyone share the link here so that I can get the perfect source and I can learn more about this technology..
Struggling to Create an Object From a JSON string
I'm trying to create an object from a JSON string. I've attached a picture that shows what the JSON string looks like, and what my object is looking like after parsing through the string. Obviously, I'm doing something wrong :) For starters, I don't what the literal "i" to be used, but rather it's numeric value. Why is it giving me "i"? And the other thing is that it seems to be completely ignoring the assignments inside the inner brackets...why is that? I feel a good coaching opportunity here
Help! trying to make a adjustable height div based on screen resolution
Yes, it is very compliqued, but i'm just doing this for one reason, I wanna learn but I was looking at various sources and found nothing to the solution of my problem. (sorry for my English, I am mexican) I want to do something like this page: http://www.avira.com/es/index or https://www.avast.com/index I'm building my website and here is an example http://exampleforthis.esy.es/ What I want to do is that the image of the desert (or whatever it is) covers the entire screen. (height) If you notice,
Jquerry .wrapInner() on multiple textfields in Slider - Just works on first slide
Hello, im totaly new in javascript and need <span>´s in the P and H1 elements in my slider for css. My problem is: The following JS works but(!) only at the first slide and i cant figure out how my former colleague did that on the other slides. var test = jQuery('#vor_slider h1'); jQuery(test).wrapInner('<span></span>'); var test1 = jQuery('#vor_slider p'); jQuery(test1).wrapInner('<span></span>'); Im learning Java and i know what he is doing here, but i dont know how he did that on the other slides...
Loading JQuery into Business Catalyst
Hello, I'm a real newby to all this jQuery and coding stuff. So sorry if i ask stupid obvious questions. I have built a website in Adobe Muse. I have then loaded this into Business Catalyst (BC). When using the eCommerce component of BC i want to add a tabbed section to contain product information. After extensive research i found that using jQuery UI was my solution. I have been onto the jQuery website and created a template to match my current site and downloaded all the files in the .zip folder.
Whats with Low level and high level methods ?
Guys i was reading this document . .data API Jquery and if you see the second paragraph , the author says something like : Most jQuery code sets data values using the higher-level .data() API; for example, $("div").data("imaDiv", true) sets a boolean value on every div in the document. This API, in turn, calls down to jQuery.data() with each element to set the value. For completeness, there are also jQuery.removeData() and .removeData() to remove data elements, and jQuery.hasData()
why does this change context in setTimeOut
Hey guys , please check out the below snippet of code . $('#myElement').click(function() { setTimeout(function() { // Problem! In this function "this" is not our #myElement $(this).addClass('aNewClass'); }, 1000); }); now in the above code why does inside setTimeOut $(this) not pointing to $('#myElement) ??
Trying to understand JQuery logic flow
Let me start by saying, I clearly don't know what I'm doing. I know just enough about JQuery to be dangerous. Currently I'm working with version 3 of foo tables, and the author provides an example of populating an html table from a .js file where he's hardcoded some rows. I'm trying to convert this hardcoding into reading data from a web service using JSON. This part I've accomplished, in the success method of JSON, if I call: alert(JSON.stringify(response)); I can see my data in the correct format.
validate atleast one check box is checked ....
I have 4 check boxes that are dynamically generated <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="26%"><input name="membercategory[]" type="checkbox" id="membercategory[]" value="1" /> Life Membership </td> <td width="26%"><input name="membercategory[]" type="checkbox" id="membercategory[]" value="2" /> Donor Member </td> </tr> <tr> <td
I cannot understand the statement left: '+=400px',
I could not understand the statement: left: '+=400px', After some searching I understood that the += sign written to mean relative but I could not understand relative to what ? May I kindly be helped to understand this. This has come inside of the page: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Using Multiple Callbacks</title> <link href="http://localhost/misc/_css/site.css" rel="stylesheet"> <style> #figure { position: relative; width: 400px; margin: 0 auto; height: 300px;
Increase/decrease input value by 1
Hi guys, I'm trying to make the value of an input field increase or decrease by 1, depending on which button is press. However, my code doesn't seem to work. Can someone take a look at it and tell me what is wrong? Thank you. Here is my code: http://codepen.io/vkhu/pen/ogwyBP
jQuery slideshow: Fade in first image
Hi, I'm using this code for a slideshow and it works well: JS $(function(){ $('.fadein p:gt(0)').hide(); setInterval(function(){$('.fadein > :first-child').fadeOut(1500).next('p').fadeIn(1500).end().appendTo('.fadein');}, 3000); }); http://jsfiddle.net/7g27j9gj/ What i want to change: Fade in the first image (currently it's immediately shown) but only at the first pass. Thanks!
explain this code please
I have this code but it is first time I see a selection like this in the line "var mybtn". Please any one give me a reference or documentation to this kind of selection as I could not find any. Also please explain why tag "<button/>" was used not "<button>" or something else <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <button type="button" class="btn">Click Me!</button> <script src="js/jquery-2.1.3.min.js"></script> <script src="js/btn.js"></script>
My Jquery UI won't work!
Hi, my jQuery UI doesn't load on my page! I is really frustrating! All I need is for someone to take me through it step by step, really in detail... Thanks, Edgar My code: <link rel="stylesheet" href="jquery-ui.min.css"> <script src="external/jquery/jquery.js"></script> <script src="jquery-ui.min.js"></script> <script> var sidebar = function() { $('.menu-icon').click(function() { $('.sidebar').animate({ left: "0px" }, 200);
Display file "Open, save as" dialog before downloading the file
Hi, I am trying for download files (doc, xls, pdf,ppt) using jQuery. I have the full path of the filename, which I am now passing to window.url. Problem is the file is directly getting opened, but I would like to show the "Open, save as " Popup. Below is the code used: // aspx <input type="button" id="filesDownload" value="Download" /> // Sepearate JS file: $('#filesDownload).click(function () { InvokeDownloader(); }); function InvokeDownloader() { var
Trouble Installing jquery Microsoft JScript runtime error
Hi, When I try to install jquery via the website, the uncompressed dev 1.11.1 version, I receive an error: Error: 'defaultView' is null or not an object Code: 800A138F Source: Microsoft JScript runtime error Has anyone else received this error before? I'm not sure what I need to do to successfully install. Thank you!
unable to replace element with replaceWith()
I'm trying to create a responsive search menu for a web app I'm developing, but I'm unable to get the replaceWith() method to work the way I need it to. The sample code below loads an html page that shows two select elements with ids "asset" and "laptop_model", and hides a third select element with id "desktop_model". What I want is for the "laptop_model" element to be replaced by the "desktop_model" element whenever the value of the "asset" element is set to "Desktop". But instead what is happening
shorten repetitive code & randomize divs
I have written a code that will have a lot of repetition in it as it stands. Ideally, I would write this shorter and be able to randomize the divs. I don't know how to start and if it's even possible. I'm guessing with a loop. I'm still pretty new to coding so I'm having difficulty seeing if it's even possible with my setup. I have added a jsfiddle here: http://jsfiddle.net/ShariDB/jnnnsfqk/ It's an experiment, where participant's would get 40 trials. In every trial they need to predict
Ajax Success function not fireing?
I cannot for the life of of me figure out why the success function on this ajax call does not fire. according to firebug it is returning a valid response and the success function should fire.... but it doesn’t $.ajax({ type: 'POST', url: '<%=ServerRoot%>/scripts/asp/Handle.asp?value=ChangePassword', data: $('#Pwd-frm').serialize(), dataType: 'JSON', success: function(result,status){
Jquery help
Hi, I am trying to replace <span class='nonReq'> </span> with <span class='reqImage'> </span>. Please find the html text below: <span id="ctl00_mpContent_AccountString1"><div class='CompleteControlRow'><span id="ctl00_mpContent_AccountString1_lbl_AccountString1" class="CompleteControlLabel">Account String1</span><input name="ctl00$mpContent$AccountString1$AccountString1" type="text" value="__.____._.____.___.____.____.___.__" id="ctl00_mpContent_AccountString1_AccountString1" style="width:246px;"
Dynamic form inputs with jquery
Hi, i need to do simple dynamic forms input for files uploading $('.add_field_button').click(function(e){ $('.input_fields_wrap').append('<input type="file" class="form" name="fileField" />'); }); i just tested simple this script is working everyting fine with a default html files input, but my html template using two inputs for file uploading one input for show what you selected and one to show attach button <div class="input_fields_wrap"> <input type="text" class="form" name="textfield"
multiple Buttons opens up a function, same action but different ID container.
Hi I need some help, I have multiple Buttons (12 at the moment), all have the same id with following letter. "BtnA", "BtnB", "BtnC" and so on. each btn opens up a function, same action but different ID container. for example : "BtnA" open "containerA" and do function (BLA) "BtnB" open "containerB" and do function (BLA) "BtnC" open "containerC" and do function (BLA) and so on. I have a code that working but it contains more than 500 lines... I am looking a way to short it up. here is the code on
Retrieve value from object
Hi, I am using SharePoint Client object model to fetch data from a custom list. I have a URL field which contains the url value. I am trying to access the data, but I am getting as [Object]. code used is: function RenderHtmlOnSuccess() { var enumerator = this.TestListItems.getEnumerator(); while (enumerator.moveNext()) { var currentItem = enumerator.get_current(); var imagePath = currentItem.get_item("testfilePreviewPath"); } } In F12 of IE, for currentItem.get_item("testfilePreviewPath"),
jquery .on("click") event fires only on the 2nd click
Hello, I am new to jquery. And I am trying to fire a click event when a link is clicked. But, the click event fires only on the 2nd click. Have any of you encountered this issue or direct me to resolve this issue? Here is the code I am using. $( "#request_table" ).on( "click" , "#vm_details_link" , function (e) { e.preventDefault(); alert("Click fired"); } Thanks, Naga
Next Page