round number x-axis Jquery flot graph
I would like to round (0 decimals) the values on the x-axis of a flot graph. The x-axix show week numbers. Does anyone know how to do that? http://www.snowcams.eu/snowcondition/saas%20fee/998 ...
I would like to round (0 decimals) the values on the x-axis of a flot graph. The x-axix show week numbers. Does anyone know how to do that? http://www.snowcams.eu/snowcondition/saas%20fee/998 ...
how can i count the total number of divs with same name.......i.e. suppose i have 3 divs with same name than how can i count these three divs with jquery. ...
I am looking for an "Eyedropper" tool, that gives me the hex value of the pixel the mouse cursor is under, in Javascript for a CMS. For Firefox, there is the excellent ColorZilla extension that does exactly that. However, it's FF only of course, and I would really like to deliver the tool along with the CMS. A dutch developer has had t...
how can i alert the user already logged in for the new user logged in........suppose.... user1 one is currently logged in and user2 is offline. i want to alert user1 when user2 logged in............ how can i achieve this ...
image1.png and image2.png are both with transparent background. <script type="text/javascript"> $(document).ready(function(){ $("img#test").click(function() { $(this).attr("src", "image2.png"); }); }); </script> <img id="test" src="image1.png"> The above code is supposed to replace image1.png with i...
I have many places in my code doing "$.ajax" call can I define one place to handle all errors ? I know there is "error: function ... " that I can place in each call , but I want to write it just one time ...
I use Ajax (jQuery) and the POST method to update data in the database. I do the following: Get data from the form: user_id, entry_id, content,... Send them to a URL which will process the data. If the data is valid, we will record them in our database. I do not know how to verify that the user sends data from my website and not from...
Hi I use this call to create modal window using simplemodal (http://www.ericmmartin.com/projects/simplemodal/): $.get("openform/", function(data){ $.modal(data, { closeHTML:'<a class="modalCloseImg simplemodal-close" title="Close"/>', minHeight:400, autoResize:'True', }); }); The html output is fairly simp...
Hi, I have the following drop down menu: <select id="target"> <option value="0">Zero ($123.45)</option> <option value="1">One ($99.99)</option> <option value="2">Two ($4.50)</option> </select> Using jQuery, how can I select the contents of the selected option's () brackets, i.e. 123.45, 99.99 or 4.50? So far I have: $("...
I have <textarea name="a[]" id="a[]"></textarea> <textarea name="a[]" id="a[]"></textarea> <textarea name="a[]" id="a[]"></textarea> <textarea name="a[]" id="a[]"></textarea> and I want to get value of each textarea to array. How I do it? ...
Hello, Im able to get the list of all spans having the attribute dir='somevalue', with the following jquery statement $("span[dir='somevalue']") I want the text of each span i.e. for example, <span dir='somevalue'> text </span>, i need the value 'text', and i want this for every span returned by the previous statement. Any way to do ...
I wrote a simple value checker for needed inputs, please see the demo here: http://tinyurl.com/yeqwoju $('.required').keyup(function(){ if($(this).val() == '') { $(this).addClass('warning'); $('.meet').addClass('disabled').attr('disabled',true); } else { $(this).removeClass('warning'); //if($(this).siblings('.required').val()...
Hello, I want to be able to manipulate the html of a given url. Something like html scraping. I know this can be done using curl or some scraping library.But i would like to know if it is possible to use jquery to make a get request to the url using ajax and retrieve the html of the url, and run jquery code on the html returned ? Thank...
I tried finding a maintained or tested plugin for jquery that allows me to print a selected element from a page but all I found where some old or untested pieces of code. Has anyone used a proper plugin for this yet? ...
hi all, i'm having 2 dialogs in my web - when setting their property autoOpen:true they both show. but when setting autoOpen:false (and open them manually) - only one dialog opens :( with the other one, nothing happens at all (no error in firebug). any idea what it could be? it can't be the dialog content, as i defined just some simple ...
Lets say I have this: <object class="MyClass" type="text/html" data="/Whatever/1?renderpartial=1"></object> <object class="MyClass" type="text/html" data="/Whatever/2?renderpartial=1"></object> And, I want to use jQuery to replace the object with the actual HTML of the object. <script type="text/javascript"> $(document).ready(fun...
Hi, I've created a jquery dialog modal box for logging into my website: $('#login').dialog({ modal: true, position: 'center', autoOpen: false, title: 'Login', height: '750px', width: '300px', zIndex: 9999, closeOnEscape: false, buttons: { 'Login': function() { $(this).dialog('close'); $('#mask').hide();...
I want to make a logo using html css. Can we increase the angle of italic text using css or javascript? ...
Is there a way to detect when the mouse has stopped moving in jquery? ...
How do I say, slide an element a few pixels to the side from its initial position using jQuery? I know there is an animate() function but I have no idea how to use it. Tips, tutorials would be appreciated. EDIT: I am now trying to change the background color of an element on mouseover (I would also like to swap background images event...