How do I restrict the start date and the end date to the same month?
<script type="text/javascript"> $(function() { $( "#from" ).datepicker({ defaultDate: "+1w", numberOfMonths: 1, onSelect: function( selectedDate ) { $( "#to" ).datepicker( "option", "minDate", selectedDate ); } }); $( "#to" ).datepicker({ defaultDate: "+1w", numberOfMonths: 1, onSelect: function( selectedDate ) { $( "#from" ).datepicker(
Dialog with options doesn't work
I'm trying to grasp how to use a dialog and have tried several examples. This first example works fine and the dialog opens as it should. <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> <script>$( "#dialog" ).dialog({ autoOpen: false }); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); });
How to access JavaScript object that WidgetFactory instantiates
Hi guys, Thanks for all the great work you do on JQuery UI! I'm trying to access the JavaScript object that WidgetFactory instantiates and wraps around my DOM element. I tried: 1. Calling my widget method with no args, but that returns the DOM element 2. Calling http://api.jqueryui.com/jQuery.widget/#method-widget but that returns the DOM element 3. Adding a new method 'returnThis' but JQuery appears to mangle that somehow? See code below, and fiddle here: http://jsfiddle.net/MfegM/521 I've found
jQuery saves files?
Hello guys, I made an HTML page using some jQuery code, this page has the function of showing the result written in HTML textarea. So I was wondering if you can put a button to save the entire contents of the textarea format .TXT is possible? Thankful. My HTML page is this: http://ghfdhfg.forumeiros.com/h4- Note: I'm Brazilian, if they can answer in Portuguese'll be even more grateful :D
Activate Android Maps application using jQuery
Hi, I am developing an application in jquery mobile (i am new o this). I was able to generate a map with specific Lat,Long and define directions between two points. Where as now I want to show the map in the default android Map application rather than the browser. Could any body advice me on how to proceed on the same. Thank you Jats
Jquery UI Tabs with a lot of data slow on change
Hi all. I have a page wrote in c# with seven gridviews, each one in a different tab. On page load, i bind all the gridviews with data and using paging to reduce the amount of data of the grid. When i change from one tabs to another one, it get a lot of seconds to show the content of the other, but the page don't do a new bind. The time is waste just to jquery ui hide the old tab and unhide the selected. Is there anything to do to reduce this time? I think there is no reason to this delay just to
Why my jquerry code not working in any browers
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="jquery.js"></script> <style type="text/css"> .main { font-size:120%; color:red; } $(document).ready(function(){ $("button").click(function(){ $("p").toggleClass("main"); }); }); </style> </head> <body> <button>Toggle class "main" for p elements</button> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <p><b>Note:</b> Click the button more than once to see the toggle effect.</p> </body> </html>
Getting objects referred to by other objects
I have a puzzle I am unable to crack. I am using a custom HTML attribute with the value being the ID of another tag on the page. I would like to get a JQuery set of all of the tags referred to that way by any tags on the page. For example, lets say I have: <h1 id="bob">some header</h1> <p id="larry">some text</p> <p myAttr="bob">...</p> <p myAttr="larry">...</p> <input type="Submit" myAttr="bob" /> I want to get a query containing all tags with an id equal to the value of any other tag's myAttr,
Different directions of scrolling and scrollbar (jQuery Scrollbar Plugin)
is it possible to scroll a div vertically with a horizontal scrollbar? (see image - f.e. by sliding the circle to the right you would scroll down) It would be great if this would be possible with a popular jquery scrollbar plugin so I can use some advanced options without coding too much... Thank you very much. -- CHECK IMAGE FOR UNDERSTANDING:
Reg Resize of Div not working on the click of an image in JQuery
Hi I have HTML as below. <div id="sidebar-border"> <img id="hidePanel" src="~/images/arrow.png" /> </div> I have JQuery syntax as below. $("#hidePanel").click(function () { $('#sidebar-border').resizable({ minWidth: 210, maxWidth: 350, maxHeight: 290, minHeight: 290 }); }); The above code is not working that is <div> is not getting resized when I click the image. But same code works when called directly from <script> tag as below. <script type="text/javascript">
Calling a number on Windows Phone 7
Hello , I am working on a windows phone 7 app using jquery mobile and phonegap. I realised window.location.href/replace(....) do not work in WP7 and i know I can atleast replace window.location.href with jquery mobiles page change implementation BUT what if I want to have a javascript to call someone. My current code goes something like this: window.location.href="tel:"+telephoneNumber I know another way is to dynamically create a link and triggering a click on it , but don't want to touch the page
How to load function if an ID exists on page
Hello, I have a basic question as a newbie. I have a function function myFunction() { // function goes here } I can call this every time in document.ready() or pageload(), however, the page i'm using it on has a number of panels which are shown in sequence, panel 1, then panel 2 etc. so I only want to call the function on panel 2. This panel contains a unique Id that I can reference, but how do I call this function when this selector exists?
Help with my jQuery
Hallo Guys I am new here and hope to get some help :) I am using jQuery to validate a form, where the name/phone/location and email is required! Now, one of the criteria is : - the name must contain a space " " and a hyphen - - the space " " and hyphen - cannot be at the beginning of the name or a the end of the name The code works but with small issues: * it validates if the name begins with the hyphen but does not quite validate if it is ended with the hyphen or space Example: it works if u type
Deferred chaining , how should I do this?
I am looking to use $.when .pipe .pipe chains to accomplish the following task Step 0. - Get id from UI Step 1. - Query based on id $.ajax ({url:myurl, data:{id:id}}) - Should receive a response { "name": "dbtable" } Step 2. - Query based on "dbtable" $.ajax ({url:myurl2, data:{table:Step1response.name}}) - Should receive a response [{"name":"x"},...,{"name":"z"}] Step 3. - Work with response from step 2 to setup a data grid model Q1. Is there a relatively simple syntax to perform these dependent
Can anyone tell me how i could add an if else to the following please
Firstly hello all, new to the forum as just found out how fantastic jquery mobile is so getting a bit addicted I am starting to put together an rss reader app but at the moment it gets the feed each time the button is pressed, what i would like to do is if there is an internet connection get the feed (And store it in local storage as well and if there is no internet go to the local storage to retreive the data I have the live side up and running fine but need a bit of help getting the if else statement
Validator rules using remote
The remote method of validator using one field works fine. I have a LastName field in the remote rule, where I am passing FirstName and a unique identifier and the LastName for validation. I add an invalid data on the form I get error message correctly. I change the fields values of LastName and FirstName to valid data The parameters passed to the remote url donot change, and error is displayed even for correct data. I can't get pass this. the code goes like this: LastName:{ required:true,
Setting treshold when using Mika Tuupola's Viewport Selectors
I'm currently working in a portfolio site with horizontal navigation (http://espaun256.prompt-dev.com/moving/), and I'm using Mika Tuupola's Viewport Selectors (http://www.appelsiini.net/projects/viewport) to set the element closest to the center of the screen. So far I have this: $('#wrap').bind('scrollstop', function(){ var inview = $('article.post:in-viewport').get().length, center = Math.round(inview/2)-1; $('article.post:in-viewport:eq('+center+')').addClass('activo'); }); Even if I'm close
jQuery datepicker & disable dates
3 weeks period booking example: 1st and 3rd week are available but the 2nd week is booked/not available. I have the "booked/not available" days/week disabled (not selectable) on my calendar. At this moment it is possible to select the "from" date somewhere in week 1 and the "to" date somewhere in week 3. For a room reservation this is not possible because the second week there is no room. Question: is it possible to disable ALL "to" dates after the booked/not available period?
Jquery Cycle next/prev button bind click during animation
Hi all! I created a slideshow with Cycle plugin, here is jsfiddle: http://jsfiddle.net/wHLgB/5/. when I click next/prev buttons during animation of slide texts, margins doesn't set properly, so animation doesn't work as expected. Is there a way to bind next/prev buttons clicks during animation of texts and unbind them when animation completes?
SCROLLING TRANSACTIONS WHILE EMAILING FROM A DATABASE
I wish to put an email module in my PHP/ASP Web Program to Email Account Statements to Royalty Account Holders ( Distributor, Producer, Writer, Artist, Musician ) at a Music Ecommerce Website directly from a Database (MYSQL, Access , SQL Server ) . I However want Account Transactions to be Scrolling vertically Through use of JQuery AJAX API while Email is taking place. The problem that I see is that the Scrolling is Transaction By Transaction while the email is sending all the transactions
Put button in column header
Hello, I am using MVC and JQuerry .. The problem is this, I need to place a button in the header of each column of the grid, this button will have a picture .. How I can put a button to each header columns in a grid???
Help me get parameters send with $.ajax. Thanks
I use: jQuery.ajax({ .... 'data': {'p1': 'p11111', 'p2': 'p222222222'}, 'success': function(){ //how to get p1 or p2 in send data object } });
drop function inside on dragstart function
This is my function iPictureframe.find("img").on("dragstart", function(event, ui) { iframe.find(".wpEdit img").on("drop", function(event, ui) { myFunction() }); }); My problem here is that, an on drop event handler will be added to " iframe.find(".wpEdit img") " so whenever anything is droped on " iframe.find(".wpEdit img") " it runs myFunction, but I ONLY want " iPictureframe.find("img") " to be only dropable element to run myFunction() How can i accomplish that?
Symbian 60 Jquery mobile
Hi all, We created a web application using jquery mobile. In our users not able to open the application in symbian 60 with opera mobile 12.0. can you give the advise?
Jquery nyroModal multiple instances
Hello, I am having a link which opens nyroModal popup on click of it. But when I click on the same when the popup is already opened, its not working properly. It should close the same instance & open again. How can I do that? I am calling following function for nyromodal. $(function() { $('.nyroModal').nyroModal(); }); Please help me. Thanks in advance.
Jquery Resizable Scroll
I want to create a resizing ELEMENT which I can resize beyound the bottom limit of a DIV container. As long as I keep the mouse below (DIV container height-25px) the ELEMENT should keep increasing in size and the DIV should keep scrolling. In my case the ELEMENT should increase with +25px and the DIV should scroll down with 25px. This works fine to set the resized element's height but as soon as I move the mouse again the elements continues to resize from where it was left. Thank you guys/girls What
Help needed !!
I am writing this code in a ASP.NET MVC4 Visual Studio application: <script src="~/Scripts/jquery.nivo.slider.pack.js" type="text/javascript"></script> <script src="~/Scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-1.7.1.js")" type="text/javascript"></script> <script type="text/javascript"> $(window).load(function () { $('#slider').nivoSlider(); }); </script> This is a code for a slideshow
request for aligning two calender controls in the same page one in the left and another in right
Hi, Please help me in aligning two calender controls in the same page one in the left and another in right, where dates must not be editable as text. it must only be choosen from the calender control.
request to help for arrangind radio buttons horizontally and fit to page
hi, i have 3 radio buttons which is to be place in a horizontal way and it must fit to the page like a nav bar.. please help me in this regard.
jquery mobile flip
I am looking a flip that work on different page roles not on a single page . i used this https://github.com/amegan/jquery-flip , but it is working on a single . could you help me in crating multiple page role based jquery mobile flip. i am looking for the coustomisation of the https://github.com/amegan/jquery-flip Thanks
Nesting UI Controls
Hi I have used a Tab-control and a Accordion-control separately. And they work. 100% as pe rthe examples on the webpages. When i nest the accordion inside one if the tabs of the tab control, the accordion's values are lost. Please advise <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> <li><a href="#tabs-3">Aenean lacinia</a></li> </ul> <div id="tabs-1"> <p>Proin elit arcu, rutrum commodo, vehicula
jquery template API 怎么打不开了
jquery template API 是不是停止了??页面打不开了。还是换成新的网址了?麻烦您告诉我一下
Jquery Mobile needs refresh in new page
i have two pages in JQM, first page is working fine , but second page needs to refresh to load some styles and actions in js . Need a solution for this
hover image border disabled when i use $css
i have 2 images, and the border of each lights up when i hover of them. fine. but as soon as i pick one, no more hover highlighting. i am using a $css() border modifier in the code, and i am sure that is what is goofing things up, but i can't figure any other way to put a border around an image when it has been picked.. here is my code : <!doctype html> <html> <head> <meta charset="utf-8"> <title>my Gallery</title> <style> img:hover {border:2px solid blue;} a:hover{border:2px solid blue;}
Conteúdo animado em Jquery...
Olá pessoal... Eu to desenvolvendo um site e está quase pronto,mais gostaria de saber se alguem sabe um plugin ou script em jquery,para fazer o conteúdo das páginas deslizarem da direita para esquerda,ou de cima para baixo,quando clicar em qualquer menu. Eu vou deixar um site exemplo para vocês ter uma idéia: http://pt.wix.com/website-template/view/html/interior-design Poderia usar esse sites prontos aqui,mais quero eu mesmo criar meus sites. Desde já obrigado. Um ótimo ano com muita
datepicker, using Inline mutiple select
I am trying to incorporate the inline mutiple select functionality so that a user can select multiple days. Notice...I tried incorporating inline:true, selectMultiple:true but it did not do anything. Any advice, suggestions please. $('#attenDates').datepicker({ //date range for calendar defaultDate: new Date(endYear, endMonth - 1, endDay), minDate: new Date(startYear, startMonth - 1, startDay), maxDate: new Date(endYear,
Can't append a div into the same space as another.
I have tried to append a draggable div tag on my site but when I add more than one they appear after the previous even though the element has been dragged away form that location. I have tried prepending and this solves the problem but then the dragged element moves across the page! I have set up a JS fiddle for this http://jsfiddle.net/uJ4CB/10/ Many thanks
Datepicker problem
I have been using Datepicker as supplied with Coffee Cup Software's Web Form Builder and to date I have successfully amended the code as shown below i.e. minDate: 1 maxDate: 60. (That's quite simple and I can cope with that) but exactly how would I amend the code to exclude weekends? I believe it's to do with code lines 93,94 & 95 - showDay but I can't seem to get a result! Many Thanks /* * jQuery UI Datepicker @VERSION * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed
Help needed in updating outdated jQuery code up to the latest version
So I was following a tutorial on how to fade out and fade in pages via jQuery: http://css-tricks.com/dynamic-page-replacing-content/. It worked, I got everything fading in and out smoothly, links were updating to add and remove the ".current" class on the fly. However, that tutorial was made for jQuery 1.4. I needed a later version of jQuery (the current one, 1.8.3) for something else on my site, so I just changed the jQuery link in my head to 1.8.3. This completely broke the navigation link class
kindly help... ui tabs working weired in ie7 / 8
Hi... I have this site samdhi.com.... my developer left my work in middle for some bigger assignment. My site is not opening properly in IE7 / IE8....It sworking fine in IE 9 and Chrome. I have come to know that he was using tabs ... borrowed from your site. Can any one pl help me fix this problem
Next Page