autocomplete type search error
Hi, I m using jquery 1.10.4 js & 1.10.4 ui on my page for autocomplete feature. after writing the code i got the error "Uncaught TypeError: Cannot set property '_renderItem' of undefined ". I searched this error on google and found solution but these solution are not working. Pl tell me how to resolved this error. i used .data('ui-autocomplete')._renderItem .data('ui-autocomplete-item')._renderItem .data('uiAutocomplete')._renderItem but all three are not working.
cannot dynamically create page and change to it and update hash
i tried to dynamically create a page and change to it, but the hash is not updated. here is what i have done. i am on a page called index.php, then i do var id = "display-page"; $("#display-page").remove(); // just in case it is already there var page = $("<div data-role='page' id='" + id + "' data-dom-cache='true'></div>").appendTo(document.body); // here i put some contents into the page by appending to page page.page(); $.mobile.pageContainer.pagecontainer("change", page,
javascript on webpage to run a jQuery ajax loop update a div on web page without event
I need a jQuery ajax loop to test a field in a file for a value = “END” if not equal wait 10 seconds and check again. After each check write to a div updating some variables on the browser page. When condition value = “END” then exit loop. Can that be done and it there a example of how to do it. James R. Martin J. Martin Associates
Programmatically Fire jQuery AutoComplete on Webpage with Excel VBA
I'm trying to invoke a search on a website to navigate to a specific page using VBA in Excel. The search is being completed using jQuery auto-complete which submits a form that navigates to a page after an item from the auto-complete box has been selected. I'm able to populate the input box connected to the auto-complete box with the text I want it to find, but the webpage lacks a submit button to submit the results to a form. Instead, it requires you to select an item in the auto-complete box which
Autocomplete Mapping JSON data
I have successfully mapped some XML data to my auto completes. I used XML because it is more familiar to me, but i think i should be using JSON to be consistent with the way my shop develops. Here is my function using XML: function (xmlResponse, callback) { var data = $("STORE", xmlResponse).map(function () { return { label: $("STORE_NO", this).text() + " - " + $("STORE_NAME", this).text(), value: $("STORE_NO", this).text()
Creating Infinite Scroll?
Hi, I'm fairly new to jQuery and need to create an infinite scroll, similar to the one on the below site: http://www.3dsoup.com/ Im not sure how to do this, would I need to use .ajax() to load a page with the HTML of the new articles? Any help would be greatly apreciated...
jquery Moble + google maps does not render as a mobile page
Hi, I'm attempting at creating a new mobile site using jquery mobile and google maps. I have a map loading with the directions services in what I think should be a jquery mobile site but when I view it on a mobile device it looks like a desktop version and is extremely small. The display is small and the buttons aren't rendering as a jquery mobile view. I'm fairly new at jquery and jquery mobile so I maybe missing something simple. Here is a code sample: http://jsfiddle.net/Nemesiss/J82UJ/ below
Getting the .attr of only the selected items
I need to get the .singleSelector itemID of only selected items: $("#selectable").selectable({ filter: ".singleSelector", selected: function( event, ui ) { //Get the attribute of .singleSelector and show var itemSelectedID = $('.singleSelector').attr('itemID'); $('#here').text(itemSelectedID); });
problem using jQuery to fire transform.
Hi all, I'm currently using jQuery 2.1.1 min and running Windows 7. For some reason the following works with IE11 and the latest Google Chrome but not for the latest Opera, Safari or Firefox. $sel.css({ transition:'all 1s', transform:'scale(3)', color:'red' }); Can anyone see why this would not work in all of the latest browsers? Thanks. TC
jquery not loading on IE
Hi I have a project using jquery 1.7.1 and one of my pages is not working for testing I edited my $(document).ready function with a simple alert in it : $(document).ready(function() { alert('here'); }); but it is not working only in IE ( 9, 10 and 11) with compatibility mode is there any parameter that I can set in pages for this kind of compatibility ? this page works on chrome and firefox my guess is that all jquery fetarues for this page are not working on IE not only document ready one ...
Send datepicker input in an email
Hello, I recently embed Datepicker in one of my websites. I try to get the inputs(Date) and send them through email but when I click on my submit button the page refreshes and in address bar you can see this: http://www.screencast.com/t/jl3Oit4vr8Zl see the html code below: <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"/> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script> $(function()
jQuery & mySQL Database to Excel?
Hi guys, I'm trying to pull my data from mySQL (represented with the image below) to Excel. I have my Column and starting row, sheet name and value but I don't know how to do this by clicking a button as it's trigger. Can this be done?
each() not working as expected
Base on on the height (variable) of the image(s), css property (position/left/top) is being assigned to position it center (vertical & horizontal) within a <div> with in a fixed height. Class assigned to <div> = .imageContainer <script> $( document).ready(function() { $( ".imageContainer img" ).each(function() { $('.imageContainer img').css({ position:'absolute', left: ($('.imageContainer').width() - $('.imageContainer img').outerWidth())/2, top: ($('.imageContainer').height() - $('.imageContainer
adding the values of dynamically created text box
hello, i have form named as form_student. i have three fields as text box : 1) roll no 2) name 3) marks in each semester first two fields are normal text box. the third field has one text box(name=txtSemester) and a hyperlink(add semester) associated with it. when a user clicks on the hyperlink(add semester), it will create a text box below the current text box of semester. i have also a span(id="total") below the third text box which will show the total marks after adding each marks of semester.
refresh a form element
i can't seem to find documentation about the new refresh stuff.. is it supposed to work for form elements too? i tried this: $("#detail_form").html(data); $("#detail_form").fieldcontain('refresh'); but my radio buttons aren't getting styled. anyone know how to do this? html code is: <form action='/~polling/polling/polling.php' method='post'> <div data-role='fieldcontain' id="detail_form"> </div> </form> php is: echo "<fieldset data-role='controlgroup' data-type='horizontal'>
Jquery Concatination ?
$('#gallery a').click(function(evt){ evt.preventDefault(); var imgPath = $(this).attr('href'); var oldImage = $('#photo img'); var newImage = $('<img src="' + imgPath + '">'); newImage.hide(); $('#photo').prepend(newImage); newImage.fadeIn(1000); oldImage.fadeOut(1000,function(){ $(this).remove(); }); //end Fadeout });//end click $('#gallery a:first').click(); }); // end ready
Jquery Ajax working on localhost (xammp) but not working on Server (cpanel)?
Jquery Ajax working fine on localhost (xammp) but not working on Server (cpanel) ! also ajax with Javascript working fine , but throught JQuery it has problem ! (on server) i changed send method to POST but problem same. this is my website : concert20.ir an this is js code: var arr=[]; function func1(id,status){ var str; var a=id.split('-'); // a[0] = chair number // a[1] = singer id // a[2] = place length=arr.length; if(status=='رزور شده')
How to create a wall page in jquery and j2ee
Hi, Am trying to create a wall page using jquery and j2ee.User can post contents in wall and also see others post..similar to facebook.......the problem here is i cant find a way to make it dynamic.....means the post entered by a third person cant be seen in my wall unless i refresh the page.i dont wanna refresh the page ....i want to enter the post content in wall as soon as it is entered in database without effecting other post and it should be seen by everyone. for example if there are 5 post
Trouble with jump to the page
Hi. I'm using jquery mobile lib. I'm testing application on my phone with android. So I have one problem with jump to the page now. I open main page. In the bottom of page I see word "Loading". Then I click on a link "Page2". Then Page2 rendering under my page. What I am doing wrong? Sorry for my English.
JQuery - HTML form displays twice on screen after clicking submit button
Can someone assist with this issue? I found this code online but it is not working for me. After the 'Go' button is clicked the form is updated, then duplicated underneath. I'm trying to prevent the duplication. Any suggestions. See example here: www.lsullivan.info/currency_converter.html (enter an amount, then click 'Go!') Here is the code: JS: $("#myInputButton").click ( function() { //document.write("test_A"); $.post ( //document.write("test_B"), $("#converter").attr("action"), $("#converter").serializeArray(),
Issues using Table Sorter with Ruby on Rails
Hello, I have a huge issue with the table sorter plugin currently. For some reason, even though everything shows up fine, when I click on a header nothing is sorting itself out. I have seen other people successfully use table sorter with ruby on rails but I am having a strong issue with it. Here is my index.html.erb <head> <script> $(document).ready(function() { $("#items").tablesorter(); } ); </script> </head> <body> <h1>All Items</h1> <table id="items" class="tablesorter tablesorter-blue"> <thead>
content appends each time return button is clicked!!
Hi I have 2 photos with an intro content on the page. When the user clicks on the photo everthing hides except the photo and the content relevant to the photo appears . I also have a return button which when the user clicks will go back to the orginal page . But each time i click on return the hidden content appends to the main page content . How do i stop this from happening.Is the content being cached each time ? Pls advice .
Loader dos not work while the page loading
Hello all, I have problem with page loader it's not showing while the page loading for example http://www.3aqark.com/webapp when your click on the link (inside the page) it suppose the loader showing will the next page loading!! and same problem in the next page!! any help ^_^
jqueryui menu's submenu -- why does this display under other page elements?
I'm using jqueryui's menu feature, and the submenu overlaps other elements on the page. The problem is when I select the menu item which brings up the submenu, the submenu is displayed beneath the other elements. I'm not sure how menu is to be configured, or if I have to override some jqueryui css elements, in order to get this to display as expected (over top of the other page elements). The problem can be seen with the Tools menu at http://jsbin.com/hexuw/2/ Sorry the code is more complex than
show and hide radiobuttonlist on checked property of checkbox
In my program . there is checkbox(id-cbMain), a radiobuttonlist(intially hidden, id-rbSub), a radiobuttonlist(initially hidded, id-rbchild). I want, when cbMain is checked, then rbSub should be visible, and if a particular radiobutton of rbSub is checked the only rbChild should be visible. as soon as checkbox is unchecked both the radiobutton list should be hidden. <ul> <li> <input type="checkbox" id="cbChk">Main CheckBox</input> </li> <li id="liSub" class="hide"> <input
Need help with jquery slide box
please excuse the cheesy photo, just trying to get the outline of this setup. Can someone tell my why this slide box is not working? here's the site: http://tds2.bitballoon.com
Best way to make an Image Map w Jquery?
I recalled the oldschool days of HTML where you could create image maps on images -- if clicked a notification would pop up I am trying to make somethign similar with an anatomy teaching file I have a large image of a piece of human anatomy -- there may be 20 or 30 spots that people can click.. once clicked the name of the muscle or bone is shown how can I do this with jquery? not looking for a modal dialogue window, that is too large and obtrusive any suggestions?
Using a form downloaded through AJAX
I have just started using JQuery, so am a beginner. I wanted to make use of the ajax features to dynamically load different content into part of the page. I am using ajax to load an html <form> from the server into a <div>. The content of the form that is loaded depends on what the user selects. The form itself does not use jquery, it is simply an html form contained in a <table>. The user may change the selection on the main page and then a different form is loaded dynamically. Each time a form
How can I call the on click function even if the user does not click on the first button in a list of dynamically created buttons?
Hi, I have a number of submit buttons in a loop that are made dynamically. I’m using jquery like this: $(document).on('click', '.submit', function () { mydropdown = $('#Category'); if (mydropdown.length == 0 || $(mydropdown).val() == "") { alert("Please select an 'a category'."); return false; } }); but the alert does not fire and the page still gets submitted it I click a button other than the 1st
How can mask the CC number.
can anyone give me an idea to mask the credit card number? I just want to show the last 4 digit number after click on button. I do not want to use the any plugin. I am using Jquery.
Server Status monitor - Jquery Widget
I would like to develop a Jquery Widget that would indicate Up/Down status of the Servers that are available in our project. Request your help in this regard. Please find attached the Prototype model for the requirement.
Slowness in IE8 in obfuscated Javascript code
I'm developing an application that is using IceFaces, which is using jQuery 1.9.1. I am seeing very slow behavior in IE8. It seems to happen on a mouse click, and it seems to be related to the size of the page. The more content on the page, the longer the delay is. I've attached a screenshot of an IE8 profiler report. Unfortunately the Javascript code is obfuscated, but I am positive that it is jQuery. I've also attached the code snippet that I think is causing the problem. Can anyone tell me what
How to apply video chat using jquery mobile?
Hey guyz i am using Jquery mobile.... i would like to know how to apply video chat in it? and also how to link it to face time in case of iphone???
e.offsetY seems to be inconsistent - have I found a bug?
I'm trying to find out where a user has clicked in a div. For instance, if he clicked halfway down a DIV that has height 100pixels, I would want to retrieve "50". I got help on this forum on how to do that, and it seemed to work fine. But then I put an image in the DIV. The image was too high for the DIV, so I added a style: "overflow-y:scroll" to the DIV. To get the position where the user clicked, I now had to add "scrollTop()" to the number above. This worked fine. If I scrolled down, and clicked
Can I do this with less writing?
$(document).ready(function() { $("#d1").hide(); $("#d2").hide(); $("#i1").mouseenter(function() { $("#d1").show(100); }); $("#i1").mouseleave(function() { $("#d1").hide(100); }); $("#i2").mouseenter(function() { $("#d2").show(100); }); $("#i2").mouseleave(function() { $("#d2").hide(100); }); }); This is my code. I've got a lot more of these d's and i's and I want to make the same thing with them all. Is there a way to not repeat this code over and over again and only changing 2 id's?
how to enable drawing multiple lines on highstock basic-line graph?
I want to draw multiple line for this type of graph of your library :http://www.highcharts.com/stock/demo/basic-line I found this sample on internet: http://jsfiddle.net/yildirim_timur/Hb3Q7/ Below you can see my html file. I tried to do couple of things but couldn't make it. How can i make my chart to be able to draw multiple lines as well? (it is for an ipad app project) <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Senior
Issues in a Windows Phone WebApp using JQuery & JQuery mobile
Hello, I have some issues in a webapp for Windows Phone 8.0 (that runs in WP8.0 and WP8.1), the index.html uses: <link rel="stylesheet" href="css/jquery.mobile-1.4.2.min.css" /> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/jquery.mobile-1.4.2.min.js"></script> the source code is here: https://www.dropbox.com/s/mwv9m9bgguv9dw9/Demo_Forum.zip ( this file contains a folder with html/css/js code, a wp80 webapp for test and a website with code to debug in simulator if needed- this is
Jquery Ajax Call( Web Service )
Hi Is It possible to call the web service from local machine to the remote server using ajax call in jquery. Thanks in advance.
Simple AJAX call not working
I have this URL: http://mandala.cloudapp.net/Home/GetItems I put this URL on my Chrome browser and it returned a JSON just fine. Then I did this ajax call on the same URL but I couldn't get it to work. Here is the Ajax code: http://jsbin.com/nojepo Any idea why?
Need help reading variable on POST
Hello, I have a PHP page that makes a checkbox appear after a certain textbox is exited. This part of the functionality is working - the user leaves the textbox, the AJAX call is made, and if certain criteria are met, the checkbox appears or it doesn't. Here's where I need help. When the checkbox appears on the form and the form is submitted via POST, I can't get its value. <!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript" src="jquery-1.4.4.min.js"></script> <script type="text/javascript">
Next Page