How to solve Uncaught TypeError: undefined is not a function
Hi, Can someone help me understand how to solve the error mentioned in the title? I have a dynamically generated select element with a couple of option values inside. Next the select element, is a button. When I click the button, I want jQuery to tell me whether or not I have selected only one option value or multiple values (array or not). This is the jQuery code: <script type="text/javascript"> $(document).ready(function() { /*Detecting events on dynamically generated elements
Jquery Bootgrid Issue - Last Column Repeat
HI, No matter what I do the last column value in the table gets repeated in that row. Please let me know if you have any suggestions Or redirect me to any other forum for an answer. Details on the code is also posted here http://stackoverflow.com/questions/28806855/jquery-bootgrid-rendering-with-value-in-last-column-repeated Thanks, Rakesh
Localization of Datepicker - How?
Hi, I was reading http://api.jqueryui.com/datepicker/ and I downloaded .datepicker-fr.js from here: https://github.com/jquery/jquery-ui/tree/master/ui/i18n Here is my code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Example</title> <link href="styles/css.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="scripts/jquery-2.1.1.js"></script> <link href="scripts/ui/jquery-ui.css" rel="stylesheet" type="text/css"> <script type="text/javascript"
accordian slide up
hi to all , i tried the accordian it working correctly when ever i click on my tab it is showing all available list items. if i click on another tab it shows available list items on that tab and also previous tab list items. i want to hide the previous tab list....... hear is my code http://jsfiddle.net/soreddysirish/krcvmhqq/ i want like this http://viralpatel.net/blogs/create-accordion-menu-jquery/
Variable won't increment (++, += 1, etc) always equals 0;
So no matter what I do the $_GET variable at the end"parts_added" is always zero. In the second while loop Iattempt to increment "parts_added" when the database returns1, which means the data was inserted successfully. $(document).ready(function(){ $("#save_btn").click(function(){ function makeHandler() { return function(data) { //alert(data); }; } $.post( "actions/add_waybill.php", { "waybill":$("#waybill").val(), "carrier":$("#carrier").val(), "datepicker":$("#datepicker").val() }, makeHandler()
share jquery lib in frameset.
hi all, I must import jquery lib every frame pages in frameset ? but i want import it only in my 'codetest page', can i share the lib ? how to implemention ? this is my 'codetest page' code .anybody can help me ? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script src="/commsale/static/js/jquery.js"></script>
Filling an array with objects, objects lose structure
I'm filling an array like this: function myObject(newname, newid) { var name = newname; var id = id; function SomeFunction() {} return { ID: function () { return id; }, Name: function () { return name; }, DoWork: SomeFunction, } } var myArray = new Array(new myObject("value1","1"), new myObject("value2","2")); But when I go back to get them (myArray[0]) the object I get doesn't have the structure and values I put in. Is there a better way to do this? I'm using jquery 2.1.3 in a Windows
Help with Date and Time Validation
I got an old Javascript validation that I need to convert to jquery. This current validation blocks 6/3/2015 1:15:20 AM. Basically, it looks for 2 Digits on dates and time, otherwise it fails. I need a jquery function that will replace IsDate function (below) and can validate 2 digit or single digits date and time , with or without AM/PM. Need help if I can fit in the jquery validation inside IsDate function, using the same structure. In otherwords it should pass 6/3/2015 1:15:20 AM 6/3/2015 1:15:20
Newbie: Removing tap highlight
Hi, Has anybody able to remove the tap highlight that appears with jQuery mobile? Tried couple of suggestions (via CSS only: -webkit-tap-highlight-color:rgba(0,0,0,0);) doesn't seem to work on iPhone or Android. Thanks in advance and regards
Set focus on alert message ok button
Hi, I am using the below code to show the alert message string lstrScriptMsg = "alert('" + astrErrorMsg + "');"; ScriptManager.RegisterStartupScript(this, GetType(), "Alert", lstrScriptMsg, true); During my Page flow I used to show this alert message whenever PDF files are generated.But the actual Problem is This alert message getting displayed behind the PDF file.So I thought of making the alert message box should be the Top of the Current window. So can We get focus on
Refresh only portions of the page
Hello! Typical jQuery Mobile page looks like this: <div data-role="page"> <div data-role="header">...</div> <div role="main" class="ui-content">...</div> <div data-role="footer">...</div> </div> If linking to another pages, in ajax response i serve only the <div data-role="page"> ... </div> portion of the new page, without <html>, <head>, etc. sections. Is there any way to refresh only some parts within the <div data-role="page"> ... </div> section? For example I'd like to refresh only
How to create charts?
Hello everyone! For a school assignment I need to create graphs using JQuery UI. They need to be those "bar" graphs. I have googled everything and I can't find anything on Jquery UI forums either. Could anyone tell me where I could start? Here's an image of what I need to create: Could anyone tell me how I could achieve this?
JQuery 2.1.3 in Windows Store, need a dialog box
I had an app I was working on using JQuery 1.6. I've upgraded the project to JQuery 2.1.3, for a Windows Store app, and for the most part it's working. However, I had a dialog call, that would give the user a message and Ok/Cancel buttons. This fails now. I'm sure I'm just searching the wrong terms. How can I get a simple Ok/Cancel dialog box?
JQuery Mobile sort listview after ajax
hello, how are you?, my application shows a listview after bringing data from a db, but I want it to be organized with respect to the value of a field in the db, but it happens that value is in text, numeric variable is in the index, I need to match the two variables to assign the numeric value before the listview is loaded. I try to use the method sort (), but this only works for organizing the JSON before being loaded. The value "distancia" is the var i need to asign the numeric value. function
unicode entered in textfield is not updated using ajax
Dear All following code uis used to update value stored in textboxex a. ename b. mname var url= "abcdfill.php"; data = { ename: $('#ename').val(), mname: $('#mname').val() id: sid[1] // record id } $('#'+savediv).load(url,data) ; and abcdfill.php had php code to update the record ename and mname However if we enter the text in unicode, like संपादकीय (in devnagari unicode) and try to update the data is filled up with unreadable data. I want data like #0545#0545#0343#1452 instead
How to call a function along with load method in jquery
Hi all,
In my application i want to a display a part of another page in current page.using following code $('#ContentPlaceHolder1_btnaddress').click(function (e) { e.preventDefault(); $('#display').load("Address.aspx #Address"); }); this is for displaying a div tag Address in the current page.i don't need complete page. my problem is i want to call a function named display along with above code . how it is possible. if i use $('#display').load("Address.aspx") i will get everything .but i don't
How to create a jQuery autocomplete select with the possibility to add/enter a new element when no matching entry exists?
Hello, I´m quite new to jQuery but still hope to be in the right topic ;) My plan is to use a select element in a FORM thats populated by a JSON file. I want that select element to "assist" the the user in an AJAX way by showing only options, that start with the so far entered characters. If there´s no option that suits the input, the entered data should be sent with the rest of the form data to a sccript that further processes the data on the server. I know, there´s a way to populate the options
need help to prepend() to text box
hi to all i am having two text boxces if i enterthe values in one text box that is shown in starting of the text box in reverce order <input type="text" id="tbox1"> <input type="text" id="tbox2"> $("#tbox1").keyup(function() {$("#tbox2").val($("#tbox1").val()); }); i want to show my text in first
Console in demo system
Hi, I've just read ideas page. Have one idea for "jQuery new demo system". It will be cool if in widget demo be console, that logs what code now executing. Something like this: http://demos.telerik.com/kendo-ui/combobox/events
How to enable all titles in Page
Hi, I have used below code to remove the title in the page $('button').eq(1).focusout(function () { $('[title]').removeAttr('title'); Now I just want to enable back all titles(Tooltip) in the Page in another event. can you please help me on that?
Accordion active by index since 1.10
Hi, Why activate an accordion by Id since v1.10 ? (i'am actually in 1.11) this commande not working for example: (working in 1.9) $( "#accordion" ).accordion( "option", "active", '#ui-id-2'); I want to activate an accordion before update but I can not know where it is placed. So I can activate it by ID. Thanks for your help,
load error in ajax
hi to all i new to ajax i tried this one but this is not displaying the my text file which is located in my computers desktop http://jsfiddle.net/jefbxvzo/
concatination in JS failing
hey guys i have the following code to dynamically change the content in a div : var pg_prefix = 0; $('#next').on('click' , function(){ pg_prefix++; if (pg_prefix >= 2) { var pg_prefix = ''; } console.log('brands' + '-' + pg_prefix); // if console.logged , this give me "brands-NaN" // instead of "brands-1" or "brands-2" $('#brands').load('brands' + '-' + pg_prefix); }); my problem is my concatination is't working : 'brands' + '-' + pg_prefix i get the following results instead of what i want . what
Email regex not validating properly after first validation
Hello, I'm setting up some custom validation for a form (not using a plugin as I want to force myself to learn). But this problem is stumping me a little, I was wondering if you can help? I have searched on this site but haven't been able to find a thread on this specific issue. The email validation works first time. So if I leave the field empty, or enter a, or enter a@, or enter a@a it will show the error message specified. Once I enter a valid email address, as expected the error message disappears.
using simple validator
Hi, I am trying to use a simple validator just to show an alert when the cboCategory is not filled but I am not getting what I want and no error is how. Below code is for your review with thanks.. $('#frmLeave').validate({ rules: { cboCategory: { required: true } }, invalidHandler: function(event, validator) { alert("error"); }, submitHandler: function (form) { // $(form).ajaxSubmit(); // return false; } });
JQ Dialog and JAWS reader
We are implementing a jq dialog terms and conditions on page load but are having issues with accessibility. By default, focus is set on the dialog close button. We are able to to give focus ( .focus() ) on the header but when using the keyboard arrow keys to read the proceeding content, the browser window responds by scrolling down. How can we provide accessibility for JAWS to read content within a jq dialog using the keyboard?
Gsoc 2015 QUnit - Better diff output
I am interested in this project idea. But I am struct in understanding the project. any Help would be great
Is there any way to prevent Textbox from duplicate entries?
I am working in asp.net project.I want to prevent my textbox from repeated same entries.I use autocomplete and checkbox values as input for my textbox.Is there any way to prevent Textbox from duplicate entries from pasting,typing,etc..once i click on the existed values from autocomplete means it have to disappear from the textbox..Please help me out guys
Check data if already exist in MySQL when typing on the text field
I have a form where user when clicking the button, it will then check first data to be inserted in database if already exist. Now, I want the ajax to check, if there's duplicate entry in database once the user has done typing/ or when typing in the engine no. field instead clicking the submit button. Would that be possible? Form script <input type =' text ' class =' input-xxsmall ' name =' engine_no[] ' id =' engine_no ' value =' ' placeholder =' Engine No '> <input type =" submit " value =" Submit
Accordion - centering display on active div content panel?
I have accordion working fine It really helps me organize a lot of data on a subject. The "problem" I have is I want the active div content panel to be centered or moved to the top of the display. If I have a long winded set of details on a subject in one div content panel then the next may have an image of the subject then the next div content panel may have some reference material on the subject. And this all works great, except when I open the first long winded div content panel I scroll down
JQuery Accordian form with required fields (ASP.NET)
I'm baffled, hopefully somebody could help. We have an ASP.NET (VB) website and have a form that I've sectioned out into JQuery Accordian tabs, with a submit button at the bottom of the page. The only required fields are in the 1st accordian pane. When somebody is not in the 1st accordian pane and clicks submit, I would like the 1st pane to open if there are required field validation not filled out. Right now it just sits on the last pane opened. How would I go about opening this 1st pane on submit?
Frame Forwarding Viewport
I have a page that have a permanent redirect to another URL and passes a parameter. It is working fine and my page is perfect in iPad, iPhones or Android devices. I am using the following meta tag: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no"> The problem is that the user perceive that he is being redirected and this avoid him to favorite the original URL for example. To not change the URL, I have set my server to frame forward the page,
Insert a paragraph, Hide content.
I need to make a function that when I click a button it inserts a paragraph into a document. I also need to write one that when hovered over a button it reveals content but when the hover is lost the content is hidden.
Display alert based on user's selection with radio buttons
Hi, I have been having problems with my jQuery function which should display the appropriate message when the user selects a certain radio button. I am trying to achieve this using a conditional statement. When the user selects the first radio button they should see the message "test45", if they select the second radio button, they will see the message "test1". Here is my code: function test(){ if ($("input:checked")){ window.alert("test45"); } else if ($("input:checked")){ window.alert("test1");
Jquery date picker current year issue
I am using jquery 1.11 which is latest one. $(".datepicker").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true, yearRange: '1930:-18' From my date picker default year is showing as 1930 and current month but current year is displaying on text box once i select date . If i select another year from drop down then it is showing correctly. Problem with initial one only, please let me know how to fix this issue.
Side panel -> change click to hover.
Welcome! I have a script on the sliding side panel: $(document).ready( function() { $(".slide_button").hover(function () { xx = $(this).attr('class'); if (xx=='slide_button') { $("#my-panel").animate({ left: "0px" }, 500); } else { $("#my-panel").animate({ left: "-220px" }, 500); } $(".slide_button").toggleClass("cls"); }); }); It opens when you click the button, and I would like that this action was you hover over it (hover), how can I get one? I tried .click replace to .hover, but then I still
Menu solution
I need help how to create a menu that 1. when loaded on the page is showing divs css with colour 2. when mouseover all divs except the one that was hovered turns to grey what is the best way to do this? thanks
Show results from a php app using ajax
Is there a way to display the results from a php app using an ajax call. PHP <?php require_once('related.php') ?> <?php $resp = simplexml_load_file($apicall); if ($resp->ack == "Success") { $results = ''; foreach($resp->searchResult->item as $item) { $pic = $item->pictureURLLarge; $link = $item->viewItemURL; $title = $item->title; $price = $item->sellingStatus->convertedCurrentPrice; $results .= "<figure class='relative r_image_container
AJAX/Same Origin / why does this solution fail?
I code on a WAMP server and latest jQuery and jQuery Mobile app works fine when tested via latest Firefox, jquery, jquery mobile and with Apache/MySQL Zend serving content. I thought I had a bright idea, it does not work and hoped someone might edukate me as to why it does not work like I expected. My "bright idea": Instead of my jquery mobile app being served from my web server, I called it directly from the filesystem. Afterall, I expect to bundle it and stick it into an app store, and have it
Should I use $.Data() instead of Global object variable ?
I have a client that has a 'switch' - when on it run's various routines every 30 seconds - when off, it avoids running the routines. I have a jquery mobile ui that permits the operator to switch the status on/off in the client browser. When the switch is on, there are additional values that are stored (a session name, the last record id that the service client previously processed). I am storing the state and additional values via using the switch as a jquery selector and $.data() but I am thinking
Next Page