jquery: looking for button plugin
hi, i'm looking for a fancy button widget which is styled like a xp/win7 gradient button and supports fontsize/format, icons .. any suggestions? :) thx ...
hi, i'm looking for a fancy button widget which is styled like a xp/win7 gradient button and supports fontsize/format, icons .. any suggestions? :) thx ...
Alright there's two ways this can go. One is from the presentation side, and one is from the "processing" side. Right now I have a table of data set up. Certain actions (typing a search query, clicking a different page number, etc...) trigger a function called refreshData() refreshData() first calls showOverlay() which fades in an over...
Here is what i have and here is the html...what am i doing wrong? $("#request_showdate_1i option[value='2012']").attr("selected","selected"); <select name="request[showdate(1i)]" id="request_showdate_1i"> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008...
I am inserting elements into dom dynamically and for that i m using following steps :(jquery) The initial dom structure is as below: <div parent div> </div> <div child div template> </div> clone the parent div using jquery .clone() clone the child div and do manipulation append to the cloned parent do this for all child data (paren...
I have this string... var myDate = "November 15, 2010"; .....and I need to do this... $("#request_showdate_1i").val('2010'); $("#request_showdate_2i").val('November'); $("#request_showdate_3i").val('15'); Any ideas how to break this string up? ...
I am trying to set the select option to selected based on its text $("#request_showdate_2i").val("November"); <select name="request[showdate(2i)]" id="request_showdate_2i"> <option value="1">January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</opt...
I am trying to make form elements draggable using jQuery UI. For example, buttons, checkboxes, textfields, etc. So far I have had no luck. Do you have any ideas how to accomplish this? ...
I'm a bit of a newbie, so excuse me if this script is rudimentary. I'm trying to use jQuery's .load() function to load the next or previous month of an event calendar on an expressionengine site that I have built. The following script works in Chrome, Safari, IE, and Firefox 4 beta, but it fails in FF 3.6.10: $('th a.right, th a....
What's better of this two options: 1. $.post( '/ajax/action', function(data) { doResult(); } ); *This option has to receptors: ajax.php and action.php* or 2. $.post( '/action', { typerequest: 'ajax' }, function (data) { doResult(); } *This option has only 1 receptor: action.php (if typerequest exists, returns ajax result)* Form ...
I'm currently creating an update script, whereby I have a list of tasks each detailed in a UL, example below: <ul id="tasks"><li id="task1">Task one</li><li id="task2">Task two</li><li id="task3">Task three</li></ul> I'm looking for a way for jQuery to systematically loop through each li and perform an AJAX request for each specific I...
I have a chart loaded with swfobject. How can I load the variables dynamically? As in changing the values without reloading the swf? Here is my js: swfobject.embedSWF( "/media/open-flash-chart.swf", "chart-demo", "400", "250", "9.0.0", "/media/expressInstall.swf", {"data-file":"{% url monitor-graph %}"} ); ...
I've seen this effect somewhere, but I can't remember what it was called. I think it was a jQuery plugin, can't be sure. Basically when scrolling down a page each time you reach a new article it becomes active and you can apply all kinds of nifty effects, and when it scrolls out it becomes inactive. Hopefully this can explain what I'm...
I have a little hunk of my code here: if(".level-0.find('.children').length == 1"){ $(".level-0 > a").attr("href", ""); }; Basically I'm saying "If Level 0 has a class of '.children', don't rewrite the HREF in it's link!" The problem is that it ALWAYS overwrites the HREF, as if there were no conditional. I've changed that "== ...
Hi, I have a textarea in which I write notes. When I enter a certain character, for example "@" I want to create an inline Jquery autocomplete which searches for a term matching the characters after the "@". An example of the textarea input might be: Please call @John Citizen regarding his order. Any ideas? ...
I'm trying to disable the hover functionality for a menu. I want it to be enabled only under certain conditions. I've tried using $(".ulColor").removeClass('hover');, but that hasn't worked The CSS code for enabling the hover is : li:hover ul, li.over ul { display: block; } Here is the HTML DIV inside which the menu resides - <div...
I wrote this jsfiddle based largely on the example found here. The example is over 2 years old so I was wondering if there is an easier way to check the value of a radio button than gobs of if, elseif, else statements. My values are going to be disabled, both, footer, header so with only four not too bad. I'm just trying to learn how to...
I'm having a hard time trying to figure this out. I have the following addTab function, which takes a set number of arguments to build the new tab to be added: tab_counter = 4; window.addTab = function addTab(title, url, extra) { // Add a new tab var tabId = title.toLowerCase(); tabId = tabId.replace(" ", "_"); var $tabs = $('#...
I've got a Rails app that doesn't seem to be triggering the expectedly named .js.erb file, so I'd like to override the default behavior, but I'm not sure how. The details: It's a Rails 3 app that renders a button_to with an AJAX call to toggle the status of something on the backend and then modifies the text of the button to reflect th...
Assigning value to <li> tag using its id displays me error in IE 6 and IE7,, Previously I was doing this: document.getElementById("grandtotaldisplay").innerHTML = "TOTAL PRICE : $"+variable; this throws me error in IE6 and IE7 as: Then I tried with jQuery library as suggested my others.. then also I was prompted with same error as ...
hi i have a div <div id="profile_ops" style="display:none"> <button class="ybutton" id="viewclick" >View</button> <button class="ybutton" id="editclick" >Edit</button> <button class="ybutton" id="change_pswd" >Change Password</button> ...