$.post not working correctly
Hi Everyone, I'm a newbie in the usage of ajax request using jquery.I have used it for my administrator login form and it is working correctly.In the home page to which it is redirected, I'm using jquery with ajax for 'logout' and for adding data through form.The 'logout' functionality is working correctly but the form submission is not.I have checked the path of the php file to which data is sent for manipulation, and it is correct.Whenever I submitted the form, the page somehow
onmouseover opening in different div script
Hi, Please can someone answer to my request below: Using a mouse over on : div (left content) to execute or start a script on the div (right content). Is this possible? If there are questions for more explanation about this problem, i will reply! Thanks for your help! regards, Jim
UI icons without border or text
Hi, how can I use a UI icon without the border and background? Are there any simple jquery options or styles I can apply without trying to rewrite the whole UI css?
Calculate Week in DatePicker
Is there any examples on how to return the week number of the selected date in DatePicker into a textbox? I've tried calculateWeek, but there doesn't seem to be much documentation to get it working. $('#datepicker').datepicker({ changeMonth: true, changeYear: true, showOtherMonths: true, selectOtherMonths: true, showWeek: true, dateFormat: 'yy', calculateWeek: myWeekCalc, firstDay: 1 });Ideally I would like to return a formated date like yy-ww e.g. 2010-47 Many Thanks
mousemove coordinates and setTimeout
Here is the website it is about http://nail.bezel.be/1/index.php?s=001 It's all about fading elements in and out. With the standard hover of jQuery it was not possible to NOT fade out an element if the mouse is over that element while reloading, so I programmed it differently and it got quite complicated. With standard jQuery hover the mouse has to exit the element first and then to reenter it again for the element to be faded back in. With my solution at least a slight movement of the mouse is enough
localStorage(HTML5) w jQ plugin and local access
For a calendar project implemented with pure HTML/CSS/JS I need to access local data files (.ICS). These ICS/iCal data has to be accessed also by other applications (eg. sync, backup, etc). Can anyone point to a possible solution to use HTML5 compatible calls (or jQ plugin) AND how to access the localStorage files also from the other apps.
Modal Dialog - Focus on Button
How can i focus on a button in a modal dialog? I can't get the id of the buttons in there. I would also like to be able to navigate from button to another using "->" and "<-" keys. Kind Regards, Cearnau Dan
removing validation error
I have a question related to jquery. Basically I want to do a very simple thing. I have a text input field. On submit, I want to display error message if the field is empty. I have done this way: errMsg = "Please write name"; $("div#errMsg").css("background-color", "red"); $("div#errMsg").html(errMsg); and in the HTML: <div id="errMsg"></div> <strong>Name: </strong> <input name="name" id="name" type="text" maxlength="255" size="50" /> It works fine, however there is a problem. When
how to pas json data to webmethod using jquery ajax
in asp.net i have on web method which tales list of patient as an argument how to pass this list using jquery my code is function testsave() { $.ajax({ type: "POST", url: "Default.aspx/tests", contentType: "application/json; charset=utf-8", dataType: "json", data: dtata.d, //"{'pes':'" + dtata + "'}", async: false, success: function (response) { }, error: function () { alert("Error"); } }); but getting error
Why mootools animations is more smooth than jquery?
Why mootools animations is more smooth than jquery animations?
How to store the order of sortables(jQuery UI) in a cookie
I am using the jQuery UI sortables, but i want them so memorize there dragged postions, so the order of the boxes(stored in a cookie). I am nog jQuery expert so how can this be done in a fast and easy way? So store and display. Below the UI code $(".sort").sortable({ handle: '.box-header', placeholder: 'sortHelper', delay: 250, cursor: 'move', revert: true, opacity:
a question about functions *updated
hello, this is my codes: http://tinypaste.com/2c67e and this is my other code: http://tinypaste.com/4fdc74 i want to make equal txt variable (in first link line 3) and fileString variable (in second link line 2). how can i unify this codes? note: sorry my bad english
name[] on change problem
Hello, I start with a table with one row where I can add the name and the age of a member. With jquery I can add/remove rows so that I get something like this... <tr> <td><input type="text" class="text" name="name[]" /></td> <td><input type="text" class="text" name="age[]" /></td> </tr> <tr> <td><input type="text" class="text" name="name[]" /></td> <td><input type="text" class="text" name="age[]" /></td> </tr> ... Adding and removing rows from my table is no problem. I want
toggle() a bunch of divs initially
I have some divs and on their title bars if you click them, it toggle its child div to hide/show It works fine right now, but what if I want them all hidden initially? How could I do that? When I click the title bar, I run this method: function toggleDisplay(who) { $(who).parent().find('.machine-info').toggle(); }Now if I can just get all the divs and set them all hidden initially :)
dialog with click and ajax call
This is an odd one. I have a dialog and when I click the Save button it submits an ajax call. This works fine - in the code below showing an error because the page does not exist. However hitting the return key does not work with the jquery dialog so I have created an event to capture the return key and then call "click()" on the Save button. This correctly calls the Save function for my dialog and runs showing the clicked and complete alerts without any errors being reported. It seems to ignore
Unexplained html() and context behavior
So I'm trying to work on some functions that use $.ajax() and then [hopefully] strip out <script> elements from the response data and execute them manually. But I'm unable to select the <script> elements even though I can see them inside of the response data that $.ajax() is receiving. So I came up with these tests to see if I'm sane, and I was wondering if anyone could explain to me why they evaluate as they do. (I'm executing these statements in Safari 5's Javascript debugger) If I execute these
HOverIntent/my hover
I am absolutley new to jQuery but I like it. My past coding was AS3 in Flash. I am rebuilding a website and ran into a problem where the menu in one section was a little too snappy when the mouse rolled over. I looked into delays etc bit stumbled onto "hoverIntent", which I could not figure out. I'm not even sure I had the html src="" pointing in the right direction. Is there a tutorial out there that is concrete and visually shows where everything goes? I used an alternate hover method suggested
Working with FireFox but not working with IE
I have are created dynamically buttonset toggle radio button with following code. All is working okay but just I have added onclick function which is doing window.location which is working with FireFox but not working with IE and google chrome. <script type="text/javascript"> var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $(function () { $('#btnSet').buttonstrip(); }); ; (function ($) { $.widget("ui.buttonstrip", { chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
Ajax concurrent calls
Hello there, newbie here. I'm trying to find the best way for fasted load a web page that contains inside the result of 5 different php scripts in 5 different sections of the page. I would like that those scripts start to run at the same time and that the result will be displayed as soon as the script finished to work. Now I thought that ajax could solve my problem ad i used 5 $load() to call my script on the load of the html page. But I had the bad surprise that the ajax calls are done sequentially.
Wordpress + jQuery + URL GET Error
On my wordpress based website, I have jquery for the top button selection part on the homepage, and lightbox for the gallery, and they work fine. But when I enter the url with a GET (.com?something), they don't work. I can't figure out if it is a jQuery error, or jQuery with wordpress's url structure. Ex: http://www.naturallookinstitute.com/gallery/ - OK http://www.naturallookinstitute.com/gallery?get - Lightbox broken http://www.naturallookinstitute.com/ - OK http://www.naturallookinstitute.com?get
Need help displaying checkboxes in a dialog box!!
Here is my code inside a jsp. If you can try it out you will see that all the checkboxes only display BELOW eachother. I NEED ROWS OF CHECKBOXES!! Why can't I do this in jquery dialog box?? (most of this code was from the jquery dialog website demo code) <meta charset="utf-8"> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <link href="../master.css" rel="stylesheet" type="text/css"> <link href="../css/scheduler.css" rel="stylesheet"
Guide to filling in jQuery plugin form
Hi there, I'm just about to add my first plugin to the repository... Is there a guide anywhere? Is jQuery like the Drupal site and has it's own CVS system? Thanks, Andy
Using targeted functions in JQuery Mobile?
Hi there, im ALL new to not only JQuery but also the Mobile version. Im developing a web site targeting mobile devices and are wondering if it is possilbe to only usea few targeted functions instead of being forced to build my site as a "widget". Just by including the jquery moble js script it on my web page it instantly changes my styles and expects that my page is structured in a certain way. But what if i only want to make use of some of the function e.g. the pageloading functionality. Can this
Weird problem with unwrap()
Hi, I have an img wrapped with <a> when clicking the img 2 things should happen : unwrap the <a> tag around the img replace the img. my code looks like this: $imgNext.unwrap('<a>');$imgNext.attr('src',$imgNext.attr('src').replace('but_next_on','but_next_dis')); Two strange things happen when this code runs: the img is replaced but the unwrap does not work if i copy paste the unwrap (so now it is called twice) the unwrap works. Any ideas?
I've got two <select> fields, how to swap them?
could someone could give the code? http://path-of-power.com/extreme-tiredness-feeling-tired,1
How to count values from input field, on example
1. I've got INPUT -> "rate" (id) 2. when value in INPUT changes I want to recalculate the VALUE, which I want to on-fly print live in <div id='money'></div> I do RATE(value)*4; How to do that? http://path-of-power.com/extreme-tiredness-feeling-tired,1
using jQuery to parse XML
Hello all, I've been going in circles over the last couple of hours over a simple jquery script to parse some survey question data. It's pretty simple but i can't seem to have the information displayed in the dive. Any pointers would be greatly appreaciated. The XML structure: <?xml version="1.0" encoding="utf-8" ?> <survey> <section title="Student Life"> <question num="1" type="radio"> Do you feel the student union represents your interests? </question> <question num="2" type="dropDown"
Firebug message not understood, Help!
Hi, I 'm getting this firebug error and, that's is about as much as I can understand. The balance would probably make more sense to me if it were in some obscure Burmese dialect or Serbo-Croatian, please help me, tell me what I need here: This is the error message copied from FB and the source code in my doc head: Error: missing } after property list Source File: http://127.0.0.1/Joomla/ Line: 33, Column: 202 Source Code: jQuery(function($){ $("ul.sf-menu bamboo").superfish({hoverClass:'hover', pathClass:'active',
Non-ui components library?
Hello, Keenly watching the progress of the jQuery Mobile framework, I'm sure its going to be a great success. I was wondering, however, if there was going to be a non-ui components library for touch cross-device support or even to add this support to jQuery itself. Ant
Linkable image movement? (Explained in post)
I'm wondering if with Jquery you can create an animation where an image moves, but is linkable. I've been looking around and found some tutorials on image animation with Jquery, but nothing about if you can make them linkable. What I want to do is, on a layout I am designing I have tabs on the design that I made graphically and will be images, and I'd like to code it so that the tabs slide "out" to the left and link to a page. I want it to be like you are "pulling" the tab you put your cursor over
How to use jquery for repeating elements in every page of my site? (plain HTML)
Hi everyone. I want to repeat 3 .html file in every page of my site. (header.html, footer.html and navigation.html), I read something about php's include() function. but I like to use JQuery's .ajax() or get() function. How can I do that? Thanks,
Templates in script tags disappear when loading partial HTML through AJAX
I have a problem with jQUery tmpl plugin. Here is a test case for you to try (because of console.log it works only on Firefox with Firebug). A file ajaxed_tpl.html: <div id="some_inner"> <script id="my_tmlp" type="text/x-jquery-tmpl"> <li> <img src="${imgSource}" alt="image" /> <h2> ${username} </h2> </li> </script> <script type="text/javascript"> alert('I am here!'); </script> </div> <div> I don't need this through AJAX</div> Now let's play. test.html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Floating text
Hello, with my code below my intention is to expand the text if I click "Header1" and also if I click "Header2" but separately. The behaviour now is, if I click "Header1" than both texts expand. How can I do this separately. Thanks a lot, All the best. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="http://code.jquery.com/jquery-1.4.4.js"></script> <title>JSP Page</title> </head> <body> <h1>Hello World!</h1>
jquery - php - mysql update record
Hello !!! i would like to ask you something. I create an administration panel for a webpage i made. I the options i have a page that list in a table the menu items of the visitor page (home , articles, contact ...). In that table i have an image that clicking on it you can enable or disable the menuitem , to make it visible or invisible for the visitors. I have a table with a cell named "visible" and values "0" for invisible and "1" for invisible When you click the image the page refresh and make
AutoComplete - Hide part of the returned items and show them on demand
Hi All, After a long time searching, I'm surprised that there are no posts on this issue: I'm using Jquery UI autocomplete but want to hide several results. instead of them, inside the autocomplete window I want to add a link or button 'show all' that will show all hidden items. Can this be done? Thanks
jcarousellite
Hi, I fount the excelent plugin on http://gmarwaha.com/jquery/jcarousellite/ it works fine, but i have some question realed to it: - is there any newer version available (newer then 1.0.1)? - I would like to start/stop the automatic play by clicking on a button, any idea how to do it? - in Safari (4.0.5) the height of the carusel-div is to small, so the itmes aren't vissible, any idea? thanks in advance for any help
How can I get width from neighbour item, and not from the first one in code?
Hello. I have this jQuery code: var imgwidth = $('img').width() $('div').css('left', imgwidth); It works well. But only if there is just one div & img pair. If three is second pair, value of imgwidth are the one of the first item and all divs are left positioned the same way. <table> <tr> <td> <img src="1.png" /> <div></div> </td> <td> <img src="2.png" /> <div></div> </td> </tr> </table> What should I do with my example to get div to be left as more as its neighbour img width are? Thanks for attention.
is there a way to apply transition for the links with rel="external"
Hi, is there a way to apply transition for the links with rel="external" ? Reagards,
ui position utility bug
I am having a problem with the position utility when I call it more than once on the same element. Here is a demo of my problem - hover over the button and the popup appears, but each time you hover over the button, it moves down and right. It doesn't appear to be the same problem reported in this post. So, I'm not sure if I am using the utility improperly?
select within data-role="fieldcontains" sometimes renders off screen (1.0a2)
When I'm rendering a large list of select options in a form, if the default option is a ways down that list, most of the upper list renders off the top of the screen and isn't scrollable to choose it. In the example below, the option 'check_ping' is the default, which causes it to render in the middle of the immediate screen, and pretty much everything abut check_nntps (in this example) is unavailable off the top o the screen. The workaround I've devised so far is to simply not set any of the options
Next Page