Problem with datepicker while setting its initial value
Hi, I am using datepicker in my page for user's date of birth. It is working fine when user first time enters his/her date of birth. But when he want to update date of birth then datepicker doesn't set its initial value. But It can set another date when user selects date. It doesn't show previous selected date. My datepicker is inside an Update Panel. below is code the which I am using. Because My datepicket is inside update panel, that's why I have used function & then I have registered this function.
Clearing file input field
Hi, I am trying to clear the File input on certain criteria. I am trying the following code and testing in IE and it doesnot work. Could anyone please help? //For IE $("#filesToUpload").replaceWith($("#filesToUpload").clone(true)); //For other browsers $('#filesToUpload').val(""); Thanks.
jquery calendarsPicker
i am using keith wood's calendar picker and have a question about showstatus. showstatus is used to show the date when you hover. I am using the ethiopian calendar and it shows me the (ethiopian)date I am hovering over. is it possible to also show the gregorian date for the date that I am hovering over. I want both dates to be displayed in the status box. How can i do this? this is the code i am using>... $('#EtDate').val(ec.formatDate('DD, MM dd, yyyy')). calendarsPicker({showOnFocus:
Click() doesn't activate.
I've made this script to change attributes of a form. <script type="text/javascript"> $("#name_$gId").click(function() { $(function() { $('[name=debtForm]').get('debtForm').setAttribute('action', 'scms_actions.php?id=$_GET[id]&what=debt&do=edit&which=$editWhich'); $('[name=debtName]').val('$gName'); $('[name=debtAmount]').val('$gAmount'); $('[name=withdrawDeposit]').attr('readonly', false); $('[name=debtName]').attr('readonly', true); }); }); </script> But it doesn't do anything. I've tried putting
How to create a function with multiple functions
I have several functions in my .js file: (This is just an example, I know that the function is the same in this case) ;(function($) { $.fn.randomImage = function(options) { return this.each(function() { var defaults = {images: [ '<a href="page1.html"><br>Asia<br><img src="https://lh6.googleusercontent.com/-CMBwAQFvgmc/ULwxL0ciUfI/AAAAAAAAAA8/RhaVA3N_TKM/s720/Asia.JPG" height=125 width=200></a>', '<a href="page2.html"><br>Africa<br><img src="https://lh6.googleusercontent.com/-LZx9rZ_N7ZQ/ULwyGe1sOPI/AAAAAAAAABE/8iQpB5O7yys/s720/Africa.jpg"
how to read returned data format
Like on the following code: $('#<%= txtSearch.ClientID %>').autocomplete({ source: function (request, response) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/GetAutoCompleteData", data: "{'kwrds':'" + $("#txtSearch").val() + "'}", dataType: "json", success: function (data) {
.post issue
Hi I am having some problems using .post in the below code. I am calling the .post in the same file. So the below code in the login.php file is calling itself, and that might be part of the problem. I do not know. Basically the below code works, but it updates the source, but it will not refresh the page, so any elements will not be added to the page. I can tell the source is updated because in chrome if I go to inspect element it shows up in the resources tab, but it does not show up in the
Jquery working with IE but nothing else
Hi My page works great in IE but not in Chrome or FF. http://www.thestylishscribe.com/Jessica/faux-leather-passport-wedding-invitation.htm A few of the photos show above but others not at all?
Updating content in two divs at the same time with pagination.
Hello everyone. I am new to the forum. I have read a few books on javascript and jQuery but sadly, putting into practice what I have read is a lot harder than I thought :( I am familiar with most of the terms and concepts so if you could guide me in the right direction, I would appreciate it. Here's what I am looking to accomplish: I have a music page. On that page I have two divs next to each other. The div on the left (Div1) is where a song title with a Soundcloud widget/embed code goes/displays.
Toggle Slide - bind function
Hi, I want to visualize my house (lights and raffstores) with jquery mobile to eg. switch the lights with my smartphone. To switch on/off the lights I want to use the toggle slide. But when I use this, I have to create a change function for every slider. Is it possible, to pack the slider with a function in a some kind of object? So when I add a toggle slider the change function is already included? my first slider: $(function(){ $("#light1").bind("change",function(event,ui){
Using the the return event in a jQuery dialog
In IE, event.target.innerText works and returns text that was typed in by the user. I need this to work in all browsers...of course :) Can someone show me how to get this to work in all browsers, so I know what the user typed in and can save it. I'm using ASP.Net and trying to save the information server side is the reason I put the returned text into a hiddenBasicInformationComments textbox (which is set to run at server). If anyone sees a better way to do what I want, please don't hesitate to let
Navigate using Arrow Keys
I m using this Gridview http://gridviewscroll.aspcity.idv.tw/Demo/Style.aspx#StyleCustom2 Can someone tell me how i can Navigate into GridView using Arrow Keys into that gridview Thanks :)
Starting to learn jQuery but i know there is a better way to....
Hello All - I am pretty new to jQuery and am trying to learn about it as i develop something with it... I have the script below and it works kinda... but i know it can be written better, because if you click on facebook it opens FB like box and then if you click twitter it opens twitter and closes facebook. But then if you click on facebook again it only shows .facebook not .facebook & .likeus Can anyone point me in the right directions for closing the social options correctly by clicking on a different
Jquery how to use ajax?
Hi, I am using ajax via jquery. I have a huge problem. I need to send some text to my php file. My php file will return a response in json. I have set datatype to be json. However, my text doesn't get to my php file. It will only send my text data to the php file only if I don't include the datatype of json. The problem is that I need to send text data to my php file but receive json data. Since I will receive arrays. How can I do this? can is there a return datatype option? So I can only
remember toggled class state
Hi there, I'm new to the forums and pretty new to jquery, so I'm hoping someone can help. I have a pretty simple pane slider deal that works great as is, but I'd like to extend it a bit so that it remembers the state it's in rather than simple toggling. The reason for this is because as soon as I add and click on a secondary toggle inside the pane, the main toggle gains the active class when the pane is actually closed. So I use the primary toggle to open the pane, and inside that pane there is another
Do you guys know why?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title></title> <link rel="stylesheet" type="text/css" href="" media="" /> </head> <body> <script> var suit = ["Diamonds", "Clubs", "Hearts", "Spades"]; var name = ["Diamonds", "Clubs", "Hearts", "Spades"]; document.write("Length of suit: " + suit.length + "<br />"); document.write("Length of name: " + name.length + "<br />"); </script> </body> </html> The output in the
popup input loosing focus on mobile when selected
Hi, I am using Galaxy S2 with ICS Android 4.0.3 . I have created a popup with jqm 1.2.0.a-1. On both Chrome and built-in browser, when the input text field is selected by touch, after a very short time (1/10 sec) it looses focus and no text can be written in it. Can any one help?
[jQuery][tooltip] Showing a tooltip for the [head][title] on Firefox
Hello, My jqueryUI version is 1.9.2. I'm having a problem only on Firefox (17.0.1), it works on Chrome, IE and Safari. My problem is that I get at the bottom of my website page (any page) a tooltip with the content of the website title.... If I have <head><title>WEBSITE TITLE</title></head>Then I get a tooltip containing WEBSITE TITLE ... I have no idea what's wrong. Any help would be appreciated
return value nested in function
Dear collective wisdom,Disregarding the API calls to sqlite in the following code, I want to reference selectLocation as a variable that returns the JSON object for later manipulation. I realize I cannot return this within the nested db.transaction closure, which is why I used the variable jsonOut to grab the object after it was assembled. The call to console.log("In:" + JSON.stringify(json)) writes out the expected value, but unfortunately, when I try assigning selectLocation to a variable, I get
PROBLEM UPDATING A REALTIME FLOT GRAPH WITH JQUERY
Hi my friends: I am trying to create a real-time graph with flot plotting library. I am doing it this way: 1) The initial data i am retrieving it with this PHP script: "param_pozos_linea2.php". This scripts brings me the data in a string like this: [[1357296902000,271.9],[ 1357296603000,267.26],[1357296303000,268.3], [1357296002000,261.6],[1357295703000,184.91],[1357295403000,27.09], [1357295103000,103.2]] 2) The new data i am fetching
how to insert custom title on my simple widget using append method?
Hello guys i have a pretty standard div with css and i would like to append to a div that already exists with a given class. here is my mark up <div id ="one" class="PortalBox"> </div> <div class="ab_Box1d"> <div style="width:600px;"> <%@ include file="./concur-reports/index.html"%> </div> </div> <!--finish ab_box1d--> </div>so basically I'm trying to append the markup in jquery when i stumble upon any div with class "PortalBox" however i need to make a part dynamic which would basically be a title
Javascript Image ComboBox - Sticky
I'm having some trouble getting the navigation to remain 'sticky', leaving the selected option in the menu when the user navigates to the desired page. Anyone familiar with this script have any ideas? Much obliged.... http://adamfialkov.com/v3/portfolio.php?folio=atlantic Thanks!
Date picker don't work online
I uploaded all files , but it don't work online, see testpage:http://www.mastercar.be/fr/DetailCeremonie.php?AutoNrT=M3520 when I test it local, it works!
looking for a jquery horizontal menu bar
I am looking for a jquery horizontal menu bar, could anyone recommend some good one to me?
Selecting text from box that was clicked
Hi guys, i currently have a page which has lots of boxes with different data in them like this: <div class="box"> <div class="box_name">Test Name</div> <div class="time">12:45</div> <div class="message">A message</div> <a href="#" id="button">View Content</a> </div> and i want to grab the value which is inside the time class div and pass it to the popup box. currently this gets the value: $('#button').click(function() { var time = $('.time').html(); but because the .time class is used
json and jquery ajax
Hi I want get data from php with jquery.I wrote this code: in php: <?php $return=array('content'=>1,'id'=>2,'priiority'=>3); echo json_encode($return); ?> in jquery: $.ajax({ type:'post', url:'next_prev.php', data:{act:act,id:id,priority:priority}, dataType: 'json', cache: false, success:function(data){ var obj=jQuery.parseJSON(data) $('#content').html(obj.content); $('#priority').html(obj.priority); $('#id').html(obj.id); }, }); but it does not work.whats wrong?
S.O.S. two little questions, probably for everybody easy
Hi jQuery mobile, For school I have to make a exercise using jQuery mobile, now I'm going really hard for somebody that isn't into programming at all. But I have two functions I need to use into my exercise and I can't figger it out. First about my exercise, I have to make a jQuery mobile site about food and recipes, the goal of the mobile site is that you can select a recipe and tell it how much persons you're going to make it for. After that you will see how much you need of every ingredient and
Need help for Jquery Validator
Hi, I'm in a serious trouble. I'm using jquery validator in my application. In one of my form there are two different button like below . <button id="uButton" name="uButton">Update Booking</button> <button id="sButton" name="sButton">Save Booking</button> Whenever I clicked on any of the button my validation methods being checked and i got the for submitted. Up to this all is ok. But what I want is - based upon which button click i want to sent a value in one of my hidden element. <input type="hidden"
Is there a way to not include the css files and images when using jQuery Mobile
In upgrading for use on mobile devices, we are only interested in a very limited amount of functionality such as the swipe page turn. Is there a way to include a small amount of these files?
Modifying a Plugin
This image slider is from a plugin but doesn't automatically scroll. gmjones.org/slider/slider.html I'm brand new to jquery but none of the tutorials I've veiwed seem to be able to shed any light on this. The site it came from doesn't seem to have any solutions in the comments section. I'm used to working with a single css file but this slider has three!! Can anyone point me in the right direction?
In a Superfish Jam
I was referred to this site from another related to Superfish and really need some help. I'm helping a friend convert from their old Joomla 1.5 site to 2.5 and likewise from the previous version of the Superfish module. I've updated the stylesheet as best as I could but I'm really stuck on a couple things. First, I can't figure out how I got one menu to dropdown the submenus but another one wont. And I'm wondering how to get the home link off the homepage. For some reason when I change the name of
About link css online problem
sir, i want to ask. why my mobile web was not able to login, but after I disappeared right link this css., I can login. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> if you have a link to another css or I can download?? please help me sir, i have homework... thanks before
Conflicts with jQuery 1.0b2.js
Hello, I have a site that I have used jQuery on for a few years now. Recently we started to update the site so that it works on mobile devices using jquery mobile 1.0b2. I found some similar things from other people who have had the same problem. According to FireBug the problem is in the getFilePath function below. Evedently if the object passed to the function is not a string it bombs. I tried to put an if in there for typeof == string but that caused other problems. Can anyone help me out
check ajax output if changed
Hi, I'm newbie to jquery. Please, could someone check my code and give me any idea how to improve? what i have: input which value is checked by ajax and result is printed on screen in new input. i make string url from item name. but the problem is, that new input should be changed again. how to double check, please? my codes: $("#naz").blur(function() { var form_data = { nazev: $("#naz").val(), is_ajax: 1 }; $.ajax({ type: "POST", url: './check-url.php' , data: form_data, dataType: 'html', success:
date picker locale not working?!
Hi, First of all, sorry for my english! Does anyone get date picker locale work? I've tried in safari, chrome and FF with mac and didn't get what I was expecting to. Even in the jquery UI page doesn't works. http://jqueryui.com/datepicker/#localization thanks!
disable() VS lock() in jQuery.Callbacks
When I digged into jQuery.Callbacks in jQuery source code, I confused about the difference between disable() and lock() function. My question is 1.in which case use disable(), and in which case using lock(). 2.what the "stack" variable used for? The code is below: disable: function() { list = stack = memory = undefined; return this; }, lock: function() { stack = undefined; if ( !memory || memory === true ) {
cycle, dealing with different image sizes
I'm having a few issues with the cycle plugin. I have divs within each group of slides - there's a div for the image itself, then a navigation div that includes pagination and image captions. This all works, but when an image that's slightly smaller than the others (vertically) comes up, the div below the image bumps up to fill the gap. I want to avoid that. I was hoping that the cycle plugin allowed for some resizing or at least maintaining the image div at a constant size since cycle is providing
Problem getting jQuery to work
Hey guys I tried searching for this but to no avail. I have been learning jQuery on lynda and codecademy for a few weeks now and I wanted to start messing around with the code to see what I've learned. Here is the problem, I try and create a simple box with HTML/CSS but when I add in jQuery code, the page doesn't register any of it. Here is what I'm working with. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <style type="text/css"> div { height:40px;
Selecting all elements of particular data-theme
Hi folks, I want to select select all the button id with particular data-theme inside a div tag... how to do this...
how can i fix it, Simple JavaScript Inheritance problem
see this first plz: http://ejohn.org/blog/simple-javascript-inheritance/ I am studying the "Simple JavaScript Inheritance" : look this sample below: var Person = Class.extend({ name:['a','b','c'] }); var Ninja = Person.extend({ dance: function(){ return this.name; } }); var c = new Ninja(); var d = new Ninja(); d.name[0]="z"; //result document.write(c.dance());// z,b,c document.write(d.dance());// z,b,c //what i want document.write(c.dance());// a,b,c document.write(d.dance());// z,b,c
Next Page