jquery

How to close jQuery SimpleModal external page popup on popup page event?

Hi all, I have an asp.net c# project and need to open another page (within the project) as a popup using jQuery SimpleModel plugin, and close it when user clicks on a link on the popup page. (This link also has some serverside code.) I could open a page with this code, $('a#Test').click(function() { $.modal('<iframe src="...

Incrementally hide items from a set of matched li elements with each button click using hide(), then show() entire set at end of set

Hi, I am new to jQuery and I am having trouble with the syntax, selectors and refining when trying to create functions. I was hoping someone might be able to help. What I am trying to achieve: I have a gallery consisting of a ul with images placed in vertically stacked list items. The ul is in a fixed size wrapper with overflow:hidden ...

multiple button determine which is clicked

Hello, I have multiple buttons in a form (all are type 'submit'). I would like to determine which one of them is clicked. I am currently using: $(".MyForm").click(function() { ... } to get values from my form. Any help is greatly appreciated. ...

updating line totals on an order form with jquery

Hi, I have a form on an order page which I need to update line totals on when the user changes the quantity. I have the grand total working, but cannot get line totals because I cannot figure out how to target the correct element. The form is generated by a cms so ends up wrapped in lots of extraneous divs etc, ...this is a simplified...

How to display a Dialog on page as Rails JS response ?

I am using jquery colorbox plugin as my popup/modal dialog box solution in my site. When I give a js response to client, I want to open a popup box. I wrote the following code in my response1.js.erb $.colorbox(); I am getting the response correctly from server but while it is getting executed on the browser, firebug reports error like...

Internet Explorer won't trigger click function if display: none;

The problem is mostly summed up in the title. The website is located here: http://tinyurl.com/3abbcsr I am using the custom radio/checkbox code from accessible_custom_designed_checkbox_radio_button_inputs_styled_css_jquery/ This is the jist of their code (I modified it to allow defining different style depending on the label's title...

get value a select elements option with jQuery?

Hi, I have the following HTML: <div style="width: 143px; height: 125px; overflow: scroll;"><select size="20" style="min-width: 200px;" name="ctl00$ctl04$ctl00$ctl00$SelectResult" id="ctl00_m_g_ctl00_ctl00_SelectResult" multiple="multiple" title="selected values" onchange="GipSelectResultItems(ctl00_m_g_ctl00_MultiLookupPicker_m);" ondb...

Not getting the text box value

Hi, i am having this same issue using IE7 and jqery 1.4 problem is : i have a popup like this <div id="model_content_savefilter" style="display:none;"> <div style="display:none;" id="SaveFilterErrorMessage" class="errorMessage"></div> <table id="save_filter_modal" cellpadding="0" cellspacing="0" border="0"> <tr><td>You ...

Count the number of checked check-boxes and display them on a fixed div using jQuery

I'm trying to write a jQuery script (I have never written one before and I need help). The details are as following; I have a form with check-boxes. Each check-box has a different id and name which I will need for my own programming reasons. What I simply want is to count the number of check-boxes and simply display it on the right side ...

AJAX Call using jquery in asp.net mvc

I am making an ajax call using the following code. $.ajax( { url: '/BuildingCompany/EditAjax/' + id, cache: false, type: 'POST', data: ({ imageValue: $(this).attr("src") }), contentType: 'application/json; charset=utf-8', dataType: 'json' } In the EditAjax action...

Tips and tricks to implement a javascript web-interface using HTML image maps

Hi, I'd like to get some tips and tricks to implement a web-interface with JavaScript that would allow users to click on some predefined regions on a map and returns a list of the clicked regions when clicking on a submit button. This list will be then send to a server (for that I can use the HTTP "post" method). The first question is ...

jQuery load and SEO

Hi guys, I'm developing a web app which use jQuery's ajax load function to load content from an XML file. Is it true that web crawlers don't execute JavaScript when crawling, and if so, how can I combat this? ...

How do I implement a special event in jQuery?

I'm using this plugin to replace jQuery's imgload event with one that will fire regardless of whether the image is cached. The (minimal) documentation says to use it thus: Usage: $(images).bind('load', function (e) { // Do stuff on load }); So, two questions. One, do I just link to the plugin into my header next to jQuery? And two,...

Yes or No confirm box using jQuery

I want yes/No alerts using jQuery,instead of ok/Cancel button. jQuery.alerts.okButton = ' Yes '; jQuery.alerts.cancelButton = ' No '; jConfirm('Are you sure??', '', function(r) { if (r == true) { //Ok button pressed... } } Any other al...

How do I add a Class on a page targeting a specific URL via jQuery?

How do I add a Class on a page targeting a specific URL via jQuery? ...

Hover effects using sprites and fades in jQuery

Hi All, I would love to know how this is being achieved. I use sprites for the hover to change the look and feel of a button background by shifting the background position of the image on hover of an tag. How though, would I get this right using jQuery? http://dragoninteractive.com/ Many thanks! ...

JQuery Content Fader with Thumbnails and auto-fade

Hey there, I'm searching for a special content fader with thumbnails and automatic-fade. By searching the web I found many things, but not that what I am looking for. Most times you can slide the content but not fade, if you can fade, you can only fade pictures. I try it with the easing-Plugin, but this can't fade, only slide. Then I tr...

Trigger a pop up modal div after 1 minute

Hi Guys, Ive never used this site but really need some help with this one. I have this page http://bit.ly/d6WfDG and in the top left corner if you click learn more you will see my pop up div So i need to trigger this event but after 1 minute instead of using the link learn more. Also in the same breathe is it possible to validate and...

Work time in fullcalendar [Solution]

Full calendar have no included options to work-time feature (selecting first and last rows in agenda view for any day - where in example company is not working). I managed something like that: viewDisplay: function(view){ $.ajax({ url: 'index.php?r=calendar/Default/worktime', ...

jquery ajax method being repeated even though click event not correct

Hi There, I have some ajax on my web page, that is triggered via a click event, the javascript in question looks like this, $('.career_select .selectitems').click(function(){ var selectedCareer = $(this).attr('id'); $.ajax({ type: 'POST', url: '/roadmap/step_two', data: 'career_choic...