onclick event collection
Can I get a collection of all onclick events attached to a specific link?
jquery json data not populating table cells
Hello - I'm calling a remote json file to populate a table and the table and data is not rendering on the html page. I'm not getting any js errors. html: <table id="content"></table> $(document).ready(function(){ $.getJSON( "https://xx.xxx.com/xxx.medals/medals.json", function( data ) { var stats = [ ]; //console.log(stats); $.each( data, function( key, val ) { stats.push('<tr><td class="one">' + key + '</td>' + '<td id="flag"><div class="flag">' + val.id + '</div></td>' + '<td class="cnt">'
which is the best book to become expert in jquery?
as i am in beginner to intermediate level...pls suggest me a good book thanks
jQuery sortable animation doesn't work properly if you have to scroll down
Hi, I have a set of sortable elements with the "revert" option set to true in order to animate the transition. The problem comes when the element is below the document offset (making you scroll down). The animation doesn't work properly as you can see in this fiddle. http://jsfiddle.net/LLYkn/4/ I wonder if this has something to do with this bug here: https://forum.jquery.com/topic/jquery-draggable-bug-wrong-offset I've been trying to fix it by removing the top margin when the animation begins without
On Rdaio Button click show/hide table
hey, I have one table in which i have two radio buttons - group & early birds <table> <tr> <td> <div wix-model="variedpricing" wix-ctrl="Radio" id="vPrice"> <table> <tr> <td> <div data-radio-value="group" id="radioGroup">Goup</div> </td> <td> <div data-radio-value="earlybird" id="radioEarlyBird">Early Bird</div> </td> </tr> </table>
Need help debugging this JQuery/script please
1.The .innerfade() isn't getting triggered, all the images from data are there just not triggered 2. The controls are missing but that may be an error on 1 preventing code excerpts [model code] class Slides(models.Model): page = models.ForeignKey(Page) slide = models.FileField(upload_to='slides', null=True, blank=True) [/model code] [url code] (r'^json/(?P<id>[-\d]+)/$', 'smartpages.views.interrogate'), [/url code] [view code] class JsonResponse(HttpResponse): def __init__(self, data):
Problem with hiding 2 SharePoint fields with javascript/jQuery
I have some code which i've got which hides 2 SharePoint fields based on the values of the said fields. I have 2 fields. 'Service Lead Approved?' and 'Funding Request Sanctioned?'. Both are boolean (yes/no) fields. The code checks to see if the values of 2 fields are set to specific values and then hides either one or both fields from view dependant on their values. Everything works as normal for 2 of the 3 outcomes. IF 'Service Lead Approved?' and 'Funding Request Sanctioned?' both equal 'NO',
i want to active animation on while slide occurs....pls help me....
pls check this http://jsfiddle.net/SS3U2/1/ here there is a porgress bar animation on first button.....i want to pass it on to every button while same time interval of fading pls help.... thanks
Dialog bug when closing multiple dialogs
I have three dialogs on a map page. When closing two of the dialogs they reappear at the bottom of the page without styling. I'm using jquery-1.9.1.min.js and jquery-ui-1.10.1.min.js Thanks,
How to manage post on multi pages using blogger
I want to know about How I can manage my blogger post on the pages as well using labeling in blogger post. Can anyone send me a full script and where I add it in my blog
Manually building customized jQuery UI from older versions
I need to add a UI interaction (resizable) to an existing jquery ui download, which is version 1.10.2. I'm not in charge of the main page and I cannot convince the powers that be to upgrade to the 1.10.4 (the newest). They are OK with adding jquery.ui.resizable.min.js to the existing jquery.ui that they've custom-built from the builder page a while ago. Ideally I'd go to version 1.10.2 of the jquery ui builder page, but I don't see it, and I imagine that I'm not going to be able to convince developers
pass d3 value using jquery
good day, using jquery how could i pass value of table_container to other control let say textbox? once it is run the content of the table_container is list of country and it is inside the drop down list.. once the user selects on the table_container it will pass the data of the table_container to the textbox. d3.json("data/world-population.geo.json", function (json) { json.features.forEach(function (d, i) { data.forEach(function (e, j) {
jquery mobile button clicking buttons on next page phonegap android 4.3
I am currently playing with an app written with jquery mobile and phonegap. Last night my galaxy s3 ota updated to android 4.3. When I click on a button on the home page it is changing to the correct page There is a button on the second page, which is in the same location as the first button, it is highlighting and then the app loads the page the second abutton links to. I have posted the app to a webserver it works correctly with chrome on desktop and droid but the error occurs when viewed with
json data not populating table cells
Hello - I'm calling a remote json file to populate a table and the table and data is not rendering on the html page. I'm not getting any js errors. html: <table id="content"></table> $(document).ready(function(){ $.getJSON( "https://xx.xxx.com/xxx.medals/medals.json", function( data ) { var stats = [ ]; //console.log(stats); $.each( data, function( key, val ) { stats.push('<tr><td class="one">' + key + '</td>' + '<td id="flag"><div class="flag">' + val.id + '</div></td>' + '<td class="cnt">' + val.name
Sliding of subnav doesn't work
Something is wrong with my code, because the level_1 and level_2 subnav doesn't slide on click. For example: if I click on the h2 the sub nav level_1 and if I click on the li with parent level_1 the level_2 subnav will slide down. Code: http://jsfiddle.net/sT3TC/5/
delay of trigger jquery
Good day, I am having problem., i dont know if its from jquery or from my server side script. but once i comment out my jquery script it runs OK, but my jquery runs OK also, the problem that i encounter is that once i click on my table_container the sample alert will pop up on me. that's what i wanted and i click on the ok of that alert my page should have search based on the content of the table_container..is there any delay between the jquery script and C# script? here is my code <script type="text/javascript">
Position of child div should not change if position of parent div changes
Hi, I dont want to change the left or width of my child div while resizing parent div from either side ie. left or right. Below is the source output for your reference: <div class="bar ganttRed ui-resizable ui-draggable" id="ID0" style="top: 69px; left: 130px; display: inline-flex; position: absolute; width: 74.34000015258789px;"> <div class="fn-label"> Planni...</div> <div class="text" style="top: 0px; margin-left: 66px; display: inline-flex;">ROI<br>40%</div> <div class="ui-resizable-handle
How to create dynamic JavaScript files using PHP
I am thinking about how some online services create dynamic JavaScript files. These files have the .js extension, but their content is not static. Please tell me how to create dynamic JavaScript files using PHP.
How to show the file upload name for jQuery Multiple File Upload Plugin v1.48?
Hi, How to show the file upload name for jQuery Multiple File Upload Plugin v1.48? After the users have uploaded the file, is there a way to show the file that they have uploaded under the profile? Currently it is just upload, but I am thinking of showing the file name that they have uploaded earlier on the profile. Please advice. If there is any other multi file plugin that is able to do this, please let me know.
Changing specific html table row by jquery.ajax
I have an HTML table generated by PHP querying from MySQL table. <table> <tr> <th>Sl</th> <th>ID</th> <th>Article Name</th> <th>Publish Status</th> </tr> <?php $i = 1; foreach ($obj->showAllFromTable('pattern') as $pattern) { extract($pattern); ?> <tr> <td><?php echo $i++; ?></td> <td><?php echo $id; ?></td> <td><?php echo $pattern_name; ?></td> <td
jQuery datepicker and chrome placeholder
I am using the jQuery UI datepicker and I am also using the following code if (!Modernizr.inputtypes.date) { if (jQuery.isFunction(jQuery.fn.datepicker)) { $('input[type=date]').datepicker({dateFormat: 'yyyy-mm-dd'}); } } the problem I am having is everything works fine in all browsers but Chrome. In Chrome when my client goes to the edit page (which contains data filled in from a database) instead of showing the date from the database in the field it instead shows
Chrome iOS Popup Disappears when input has focus
Your Popup demo page for 1.4.2 "Sign in" example doesn't work in the latest chrome for iOS 7. (tested on iPad mini) 1.4.2 Popup Demo Page 1. After pressing the Sign In button the popup correctly displays. 2. After touching either form field to start typing the popup immediately disappears or the screen wigs out/flickers. I have gotten it to work only a few times. Can anyone else test this and either confirm it worked for you or if you see what I'm seeing? I tried searching the forums and did get
jQuery ajax (POST) request and circumventing 'Same-origin policy'.
Hello! I am relatively new to jquery and have a very basic understanding of javascript after having recently begun using codecademy to start learning. I have a good understanding of HTML/CSS and a little PHP, and many moons ago studied Pascal in college which I was quite good at, but would now like to venture further into the coding world. I have been set the below challenge but after having researched possible solutions for the best part of today, I am reaching out for some guidence because I am
Custom jQuery filter selector slow when used with context
Hello, I am having an issue with a custom filter selector I am using. It works, but it is quite slow when it is used in a context [ie. $('#selector', '#context')]. I have done some testing (you can see in the fiddle here: http://jsfiddle.net/kcs7j/6/), and it seems when used with a context the filter is being executed for each node in the form, but without context it only executes once as normal. I tried this with find and it also executes for each node, rather than finding the node and then filtering.
AJax fetch from database to textbox
this code is working on local but when i put it on server den it stop working please help !!!! <script type="text/javascript"> // calling jquery functions once document is ready var ff; $(document).ready(function () { // retreving data on button click $("#txtporder").keyup(LoadDataThroughAjaxCall); //loading screen functionality - this part is additional - start $("#divTable").ajaxStart(OnAjaxStart); $("#divTable").ajaxError(OnAjaxError);
Jquery & mobile & phonegap strictly offline app
Thanks for jquery and jquery-mobile! I am making a mobile app that I want to work offline without any links to external servers/websites etc. The app will have a header, navbar with a few buttons, some content and form type input using text boxes, buttons and check boxes. And use localstorage. Targeting Android and iphone mostly. I have read that I can put the jquery-1.11.0.js and the jquery-mobile-1.4.2 folder in my js folder of the phonegap app. The jquery-mobile zip file contains many .css and
Slide Show
Hi I want to create a slide show on my intranet page. All pictures from the specific folder should be shown in the slideshow. The folder can hold from 1 to any number of pictures The folder name will be provided from the code behind (ASP.NET, VB) The size of displayed pictures should be limited by height and the width should adjust by itself. I am very new to JQ. Please let me know how it can be done. Thanks,
Unexpected identifier when clicking on links with querystrings
I have had a JQM mobile web app working for over a year under the 1.3.x source with no issues. I just upgraded to 1.4.2 and 1.10.0 a week ago and some of my links now produce an exception while others do not. Has anyone else experienced any js exceptions when clicking on links? I even tried JQ 1.11.0 and I get the same behavior with JQM 1.4.2. Here is an example that cause an exception. <!DOCTYPE html> <html> <head> <title>Page Title</title> <meta name="viewport" content="width=device-width, initial-scale=1">
validate datefield without using datepicker
Hello, Thanks to all who have previously helped me. I have a weird situation. I'm using a text field for the date in a form but not using datepicker because I have not been able to get it to work with a screen reader. This script I'm using below, works in jsfiddle but on my page allows 5 digits for the year instead of only 4. Any ideas pointing me in the right direction are appreciated. $(document).ready(function() { $("input[name='date1']").keyup(function(e){ var key=String.fromCharCode(e.keyCode);
Popup dialog not getting focus?
I have two dialogs in a fairly simple PhoneGap app. Both are displayed programmatically in a script using popup('open'). One works fine, the other requires that a button is pressed twice - or at least the user must press in the dialog somewhere and then press the button. Both dialogs are below: <div data-role="popup" id="popupShareDlg" data-overlay-theme="a" data-theme="a" style="max-width:250px;" class="ui-corner-all"> <div data-role="header" data-theme="a" class="ui-corner-top"> <h1>Share</h1></div>
Ipad action not functioning, behaving inconsistantly in safari (Crossbrowser support)
Hello, I am working on this website: http://nikasimovich.com/beeferman/ It works great in chrome, however, I am running into some issues with the button in the top right corner (#switchplay) in both the ipad and safari. The intended interaction is: 1) click on #switch play 2) circle rotates, sound icons switch, the reverse class (background color) is elected, and the "side1" text is hidden. the functioning code is as follows: var ua = navigator.userAgent, event = (ua.match(/iPad/i))
using State dropdown list to load City dropdown list using ajax and php
(i) I would like to know if the sending of JSON from ajax to php is correct and (ii) if the sending of JSON from php to ajax is correct (iii) and if the DOM manipulation used to load the city dropdown list at ajax is right. <SCRIPT> $(Document).ready(function(){ $("#STATECBO").click ( function(){ var COUNTRYCOD = 1; $STATECOD = STATECBO.val(); POSTEDDATA = { "COUNTRYCOD" : COUNTRYCOD ,
Sorting XML created by ajax call
I have an ajax call that pulls data from a MS SQL databse using an API. I'm trying to sort based on the CNT_SEQ_ID element of the XML, then create a list of three items to put inside a div in the HTML. I have code that does everything but the sort : $.ajax({ type: "POST", async: false, data: strParams, url: "/AJAXUtilities.aspx", success: function(msg){ msg = $.createXMLDocument(msg); //$("#newscatlist").html(msg); //show results
jQuery Mobile 1.4.2 Programatically Open Panel (JSFiddle Example Included)
Please review the following JSFiddle: http://jsfiddle.net/nCs6U/ My content is lost when the panel opens. Am I not initializing it correctly?
Tooltip on SVG <title>-Element
Hi! I am not a very advanced user. But however, using the .tooltip() function works like a charm - well almost at least. I have the following situation in which is doesn't work: There's a svg object containing a title tag: <svg ...> <g ...> <rect ...> <title>There's a tooltip that won't work</title> </rect> </g> </svg> I would appreciate your thoughts on that. Oh, and there's that: It's a customizing on a report tool, thus it's unfortunately
Jquery tabs customization
Link : http://amrockytechnologies.com/1/process.html The red bullets should be clickable and it should work same the all 6 tabs (Strategy Plan.. ). when u click to red bullets it should display corresponding section Below is the the current working code and reffering css: /* Navigation */ nav li:first-child:after{ content:''; color:red !important; } nav { margin-bottom: 5%; position: relative; border-bottom: 1px solid #bbb; } nav ul { overflow: hidden; padding-bottom: 3%; padding-top:3%; margin:0%
dialog form submit
Hi, I'm using JQuery v1.10.4, and have a modal "dialog" that contains an iframe that is being loaded with an ASP page containing a form and some fields. What I'm trying to do is submit the iframe form from a dialog "button". I'm using: buttons: { "Save": function() { $("#iframe").contents().find("#iframeForm").submit() } } While it is submitting the iframe form, the problem is that it also seems to be submitting the form on the main page containing
Jquerymobile-1.4.2 - when I scroll a controlgroup of checkboxes the checkbox that I tap became checked
Hello, After I made the update from jqm 1.4.0 to 1.4.2, If I swipe left or right from to pages and after I scroll a coltrolgroup of checkboxes the checkbox that I tap became checked. That happens only after the first swipe right or left. If I don't swipe left or right and I enter on the page throw a link it works fine. In 1.4.0 works fine. Thanks. crisp978
deleteRow in jquery
Salve ho la seguente Funzione Che mi occorre per cancellare la riga di Una Tabella Creata dall'utente in Maniera Dinamica: Funzione deleteRow (r) { var i = r.parentNode.parentNode.rowIndex; $ ("Tabella") deleteRow (i).; } Vieni la POSSO SCRIVERE in jQuery non Riesco a trovare il Modo Esatto per Farla funzionare! aiutami
Background of toolbar is clicked!
Hi helpers! I developed a jquery mobile page with top and bottom toolbars. If the content is to much to be displayed you can scroll down. The bottom toolbar will always be in front and hiding the stuff behind. But if I now press a button of the toolbar it will actually press the elements hiding behind the toolbar. How do I fix this? Is there any parameter I forgot? These are my parameters: <div data-role="footer" data-position="fixed" data-fullscreen="false" class="footer" data-theme="b" data-id="footer"
Next Page