JQuery answer is empty
Hi all I have a serious problem which I do not know how to solve. I do an SQL query and check the output with var_dump($personenAddress[0]) which gives me the following answer back: array(1) { [0]=> object(JPP\ProfileBundle\Entity\ProfileAddress)#389 (8) { ["id":"JPP\ProfileBundle\Entity\ProfileAddress":private]=> int(1) ["userId":"JPP\ProfileBundle\Entity\ProfileAddress":private]=> int(1) ["street":"JPP\ProfileBundle\Entity\ProfileAddress":private]=> string(16) "Röswerrstrasse 17" ["plz":"JPP\ProfileBundle\Entity\ProfileAddress":private]=>
jQuery localscroll/scrollto problem - causes scrollbars to disappear
I encountered a problem with jQuery's scrollto/localscroll plugin. These plugins work by default, but if I fade in/out some containers then it somehow causes all scrollbars on the webpage to disappear. This is the structure of my code: CSS: .pagecontainer { overflow-y:auto; overflow-x:hidden; width:80%; height:450px; margin: 0 auto; } .pagecontainer>div{ display: none; position:relative; } JS: <!--fade and show windows--> <script type="text/javascript"> $(document).ready(function() { $('.link').on('click',
Sort Pages By Distance?
I am looking at an App called Happy Hour Hawaii and when you open the app it asks for permission to use location and then it organizes the places according to distance. How do you do this using jQuery?
How do i load and execute JQM CSS and JS before the page has finished loading?
Hi I'm trying to use JQM, but it's not working as I want to. The nature of the service I'm using JQM for is so that it keeps adding code to the page depending on which events are triggered by the service, keeping the "connection" open for several minutes. I can see that the complete HTML file is loaded,but the problem seems to be that the JQM CSS and JS files are not loaded/executed before after the page has completely finished "loading". Here is how it looks: While loading: http://screencast.com/t/wxVjYJxnvjH
I'm lost with Deferred and loops, Please help to find myself
Hi there! I'm getting mad about this, I was searching for a answer 2 hours but i can't find anything. The Plan: I have 4 DIV, each one has 100px width. When you click one, it turns to 200px i.e., the following DIV gets de property "left" to -100px to cover it. Then an animation starts, discovering the rest of the DIV clicked. I could handle it nicely, the problem cames when you click in other DIV. To make it smart, I tried to: 1.- The following DIV's of the open one animates their "left" property
can't get 1.3 to work in this hello world code. alert("jquery 1.3 not working"); is not executed.
<!DOCTYPE html> <html> <head> <title>Page Title</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script> </head> <body> <script> $(document).ready(function() { alert("this showed up");
Javescript to JQuery
Where can I find a detailed guide to figure out how to replace the javascript code to jquery? I have an example: if(document.all) { document.getElementById("id").innerText = myVariable; } else { document.getElementById("id").textContent = myVariable; } To start the replacement of document.all and then all other keywords Thanks!
Where is the headers object as used in accordion declared?
Greetings all, Simply put, I'm trying to roll some new accordion functionality involving things such as a headerless accordion (maybe even extensible to an accordion grid), and a horrizontal accordion. I'm new to developing for jquery ui so I'm modifying the existing accordion for the headerless kind, even though much of the mutually exclusive design and functionality make it a separate widget. Since I won't have headers in a headerless accordion, either removing or renaming the headers object seems
Show instruction on field base on dropdown field
Hi looking for an ideas how to accomplish this one. I have search form with. dropdown (list) and textfield I want to show some instructions like what to type on textfield based in my dropdown field. I have an idea like placeholder in textfield. but it doesn't change everytime. is it possible that the placeholder will change everytime i choose in selection? or if not a container maybe. thanks
dragging object does not trigger blur event upon dragging
I have a focusout event listener attached to a form field which is triggered anytime i click or tab outside of the form field however, it is not triggered if i drag one of the dragging items I have on the page. The drag action seems to cancel the events previous to the drag. Is this by design and can it be configured to prevent this default behavior?
How can I make an website with pages fixed in the screen?
I am a beginner in coding so please have patiente and try to give me some tips for my problem. I would like to make a personal portofolio website and I want to have pages fixed in the browser like this website: http://www.duemonete.it/ita/ Who can I get start with css, or structure ? I don't know how to start to do it. Some tips, please ?
How to keep an accordion menu state after link is clicked?
How do I do this with jQuery?
jQuery BlockUI Plugin - Firefox animated image does not work
Hello, I'm using the BlockUI Plugin found here: http://www.malsup.com/jquery/block/ using the latest Firefox browser. I can't seem to get any animated gifs to move inside the submit click function. The gif is displayed but it does not move. If I put the code outside of the submit click function it works. Below is the code I am using. Thanks for your help. $(document).ready(function () { $("#upload tr:even").css("background-color", "#D0D0D0"); $("#upload tr:odd").css("background-color",
Watermark Plugin
Hello everyone, if someone can help me with the following problem, I'd greatly appreciate it. So I've downloaded the jquery-watermark.js and integrated it into a demo project to show you. 1) If you open the project in chrome, and when the textfield is empty, the watermark SHOWS. What I mean by this is if you repeatedly delete a letter in the textfield until it becomes empty, the watermark then shows!. In I.E, it will show only when I blur out of the text field or on startup. Can i get this same
jQuery tabs has Safari and Chrome bug
Hello, When I click on one of the tabs, it becomes active but shows a border (see blue border below for Safari browser): It also happens in Chrome except the color is yellow. Does not happen in IE and Firefox.
Can we expect better touchscreen support soon? Is there some roadmap to jQuery UI concerning this?
Hi. I've being using jQuery and jQuery UI for some time and they're tremendously useful. I think jQuery UI does a great job on the typical desktop but I'd like using it for touchscreen and small devices too. It's already working there but it isn't as usable, lacking some features that would make it more appropiate for those devices. On the other hand, it seems jQuery Mobile does a good job on touchscreen devices but doesn't fit as well for non-touchscreen. Also, it's lagging behind jQuery UI in some
second page won't display, comes up blank all the time
I upgraded my Android application from cordova-1.6.1 to cordova-2.5.0. Also, I upgraded from jquery.mobile-1.1.0 to jquery.mobile-1.3.0.js. I'm runing my application on Android 2.3.3. The first page, index.html is a splash screen, which after 3 seconds goes to a page login.html. The first page, splash page, displays correct but the second page comes up blank, even if I link to another page off the first page. This all worked before my upgrade(s). I went one step further and copied all of my login.html
As of jquery 1.9 the value selector in square brackets no longer works input[value="blah"], is this by design?
Hi, As of jquery 1.9 the value selector in square brackets no longer works [value="0"], is this by design? The code below I use to find out the number of textboxes that have values not equal to zero (or blank) no longer works. $(':text', '#someid').not('[value=""], [value="0"]').length; I'm just trying to find out if this is a bug with my code or a bug in 1.9. Any help would be great. Thanks Daniel
[jQuery] Please wait while executing PHP code
Hello, I have a small web app written in PHP and using Smarty templates, that has to do some initial work on the server side using PHP after the very first login of a user. So I was thinking to display a "Please wait" message/picture but I am not very sure what's the best practice for this... Actually if I understand correctly I should simply use something like this: jQuery(function($) { $("#contentArea").load("runservercode.php"); }); $().ajaxSend(function(r,s){ $("#pleaseWait").show(); }); $().ajaxStop(function(r,s){
Help - Changing object using a class identifier not working
Here is my code: <div id="GroupMenu"> <div id="navPremium2"> <ul id="ulList" > <li id="liHome" class="GSTab" onclick="GSToggle(this)"> </li> <li id="liAbout" class="GSTab" onclick="GSToggle(this)"> </li> </ul> </div> </div> <script type="text/javascript"> $(document).ready(function () { }); function GSToggle(CurrentTab, Opt) { $(".GSTab").removeClass("selected"); $('#liHome')[0].className = "GSTab";
Radio Button Not Staying Selected
Hi, I am new to jquery and am trying to centralize my code to make it run smoothly for areas of my form that repeat the same basic functionality. I have a ton of yes/no type radio button questions that will make an additional section of form data appear. I have it successfully show the "div" but then the radio button selection disappears from the UI. Please see my jsFiddle http://jsfiddle.net/jqueryNoviceUser/vY5fn/ that demonstrates my issue. Any help would be greatly appreciated!!! TIA!!!
new to this... how to call a method in a method (solved)
hi i have problem understanding how i can call moveItems. i traid this: this.moveItems; $(this).moveItems; methods.moveItems; methods.moveItems; videoribbon.moveItems; this works.. but that's a bad one i think $(this).videoribbon('moveItems'); (function( $ ) { var methods = { init : function(options) { $('#ribbon ul li').find('video').on('ended', function(event) { //$("#ribbon ul").moveItems(); //methods.moveItems; //videoribbon.moveItems; //$(this).videoribbon('moveItems');
Problem in calling cross domain service using Jquery
I am trying to call web service (cross domain service) using Jquery. the below working fine in IE8 , but not in chrome and firefox. Please help me to resolve this issue. Thanks in advance Test 1: ================= <script language ="javascript" type="text/javascript"> function Do() { $.support.cors = true; $.ajax({ type: "Get", url: "url", // Location of the service data: '{"parameter"="value"}', //Data
Override url
Hi, I have a plugin that's sending users to the wrong url when on certain pages, so I want to override that url. Tried the following which checks if myloc ends in faq.html, if it doesn't (false) then I need to pull the url for "ul.navlist a" & force page to go to it. I've tried putting return:false in there, but can't seem to get it running. $('ul.navlist a').click(function() { var baseloc = $(location).attr('href'); // get current pg's url var stringCheck = "faq.html"; var myloc =
Changing markup dinamically
I don't know if this is possible but if it's don't know how to do this. See I have this markup <ul class="error_list"> <li>Required</li> </ul> But I'll like to change using jQuery if is possible to this: <div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Required. </div> It's possible? Any help?
inputdate. caught as the value?
<input type="date"> caught as value?
Breaking change in IE9 re: each() and "this"
Hello. I've discovered some unexpected behavior to do accessing element attributes within an each() loop. In IE8 the following code works: jQuery.each(aPeople, function(idx) { var aDays = $('TD[PersonId=' + this.PersonId + ']'); } I can read the PersonId attribute from the TD element using "this.PersonId". However, the code does not work in IE9. It returns "undefined". I've changed the code to this: jQuery.each(aPeople, function(idx) { var aDays = $('TD[PersonId=' + $(this).attr('PersonId')
Phonegap ajax call with username/password not working
Hi guys, We're writing an android app with Phonegap and jquery mobile (1.0a4). To give a little background we have a login page that sends the username/password to our server, the server responds success or failure. If success we store the username/password in localStorage and reuse those credentials for every successive request. I'm having difficulty with the ajax call when I add username: window.localStorage.getItem("usr"), password: window.localStorage.getItem("pwd"),the ajax call seems to fail
"Old" themeroller URL is broken
The new Themeroller only supports 1.9+ for theming. But there are still many instances where themes compatible with versions older than 1.9 are needed. Up to a few days ago we were able to go to http://old.jqueryui.com/themeroller/ to continue to use it. But now suddenly the link is dead. Help?
Display a div when item is selected in select box.
I want to display a certain div when an item is selected within a select box. So far I got the coding below which works fine in IE, but chrome is displaying the div whenever someone clicks on a random spot within the select box (thus not by selecting a value). How can I make this work in all browsers? <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script> <script type="text/javascript"> function toggleDiv(divId) { $('.complete').each(function(index)
update in realtime using - jQuery
using ASP.NET I use a repeater to displaying a DB table on screen. I want the user to be able to check or uncheck a tick box(field in the table). Updating the corresponding field in the DB in Management Studio on real time..... Looking through google. JQuery seems the way....so far I have got... in code behind: //GetUtilityCompanyNames() returns a list of all the companies names rptSelectedUtilities.DataSource = GetUtilityCompanyNames(); rptSelectedUtilities.DataBind(); In aspx: <asp:Repeater id="rptSelectedUtilities"
Implement Jquery autocomplete with multiple values and images - AUTOCOMPLETE
Hello Guys, I am facing a problem while trying to implement the jQuery autocomplete with a return images (made by a member of the Stack) but with the possibility of choosing various values (Multiple Values). When I implement the source, he can only select one value only. Follow the jsfiddle: http://jsfiddle.net/Igaojsfiddle/85SAF/ I'm beginning to study the background now the jQuery library, please have patience and hope someone can help me with this problem. Already very grateful.
Problem with checking the checkbox in jQuery
Hello, I'm facing a problem while checking a checkbox in dynamically created table. I'm using wicket framework in frontend which creates a dynamic table to hold the files. Each file has provided checkbox for selection and deselection. I have requirement to check a file say 111001A.CR up on checking of 111001A.CN (Name of files are same, just extension varies). For selection and deselection of files, i'm using following jQuery Code: function selectDeselectMatchingFiles(){ $(".dataview
Updating text with inner html returning cannot read undefined
I have this java code function updateprice(pprice, ppricediv, pform, popt) { var totAdd = pprice; var thisopt = popt; if (!isW3) return; var pDiv = document.getElementById(ppricediv); totAdd = totAdd + pricechecker(document.forms.pform.thisopt.options[document.forms.pform.thisopt.selectedIndex].value); pDiv.innerHTML = formatprice(Math.round(totAdd * 100.0) / 100.0, '', ''); }and it returns; Cannot read property 'thisopt' of undefined this is what I'm doing this; onchange="updateprice('382.49'
Problems styling (rangeslider, radio-group)
Hi I Have some problem styling some elements on a mobile app using jqm 1.3 (same problems in 1.2) The problem seems to be in the html "wrapping" the div holding the widgets. When i test the same html code on a empty page the styling is correct.. the styling errors are. 1 the slider does style but the "value field" is displayed as a slider.. (i.e. two slider.. ) using $( ".selector" ).slider(); (using correct selector...) the second slider disappears, but there is no value visible.. 2. The radio
Advanced Accordion Menu with Jquery
Hi Guys, This is my code // On cache les sous-menus : $(".menu ul.sub-menu").hide(); $('.menu ul.sub-menu li.current-menu-item').closest('ul').show(); $(".menu ul.sub-menu li").addClass("sub-menu-item").removeClass("menu-item"); $(".menu li.advanced > a").css("cursor","pointer"); $(".menu li.advanced > a").click( function () { if ($(this).next("ul.sub-menu:visible").length != 0) { $(this).next("ul.sub-menu").slideUp("normal"); } else { $(".menu ul.sub-menu").slideUp("normal");
ui-dialog with chrome 25
Hi all, First, sorry for my english ... Since chrome 25 ( 25.0.1364.152 m ) , when you put option width : "auto", dialog component takes all browser width. it wasn't the case under chrome 24, FF or IE. chrome bug ? or jquery-ui is using something special for chrome that doesn't work with this update ? is there a workaround ? Thanks in advance for replies !
PHP +Ajax+jquery.
hi!.I want to edit html table and save in database.Inline editing.I have a code but the value is not getting updated in database..i took code from http://www.iwebux.com/inline-edit-using-ajax-in-jquery/ could some one suggest me some website or code
animated div
ihave a div in my container and i also have an other div on right side of the page to whom i want to animate on left side of the page when click on the link or button and it will also go back to its posiotion when i click again on it
Image upload to application folder from mobile device is possible in jquery mobile?
I am using only jquery,jquery mobile,html5. I need to choose an image from mobile device and need to set it as the background image of application. Can you tell me a possible solution? Thanks in Advance
Next Page