jquery

jquery Selectors

Hello , I'm writing a simple code using jQuery, in which I need to call a function for a series of selectors and eliminate some functions being called for a particular selector, for example $('#id1, #id2, #id3').click(function() { function1(); function2(); function3(); // rest of my code }); I don't wanna call some functions fo...

Stripping texts in a variable : javascript

Hello, Consider variable like var url='http://www.example.com/index.php?id=ss'; or var url='http://www.example.com/dir1/dir2/index.php'; In these variables, i want to get only the domain part i.e http://www.example.com, stripping out other texts. Is this possible in ordinary javascript or jquery ? Please help ...

yahoo like button

Dear expert I want to know how to create yahoo mail like button (Check Mail button). If it's possible to create using jquery please provide step by step details. I am novice in this world. [Sorry for poor English knowledge] Thanks MH ...

jQuery: Updating an option's text inside a select after the option has already been added?

I've searched all around for a solution and have found nothing. Here is some sample code: $('#myselect').append( '<option id=\'myoption\'></option>' ); $('#mytextfield').change(function() { $('#myoption').html($(this).val); }); so, i want to change the select option's html whenever my text field is changed. any ideas? thanks! ...

JQuery : Can i have 2 tabs in the same page?

Hi, i'm trying to have 2 tabs in the same page, but the first works great, and the second doesn't work at all. It is possible to have 2 tabs in the same page, if yes, how can i manage that? Both have the same code ... example : $('#tab1').tabs(); and the other $('#tab2').tabs(); Thank you My HTML: <section> <div id="radioprog"> ...

Javascript autosubmit form

I have a form that I need to submit automatically... (the fields are already filled and its complicated to explain why but it IS necessary to do it this way).. I know how to autosubmit the form using Javascript but the only problem I have is that there is more than 1 submit button.. and I need 1 in particular to be submitted... thanks in...

Jquery and ASP multiviews

Hey I am having a problem getting my $(function () { to run after page load in asp with multiviews. I have a masked input for the text fields which just point to the textfields so they work. however when I am doing my conditional validation on various properties within different views. do I have to split up my view? right now I am callin...

check for overlap

Hi everyone, I'm using FullCalendar and just wanted to know how I can check for overlap date and time. I have a start and an end date but dont know how I can accomplish this. Any suggestion/ideas/inputs would be helpful. Regards, Yuepheng ...

CKEditor "s.document.getWindow().$ is undefined" error in Lightbox

I have a Content Management System where I'm using CKEditor to edit content loaded from a hidden form field on the page. When you click an edit button, CKEditor appears in a lightbox with the content inside. I'm using CKEditor 3.3, Lightbox_Me (http://buckwilson.me/lightboxme/), and jQuery 1.4.2 The code mostly works fine, however when ...

Problem in algorithm with jquery.ajax in cycle

Hello everybody. I want to make some ajax requests in cycle with jquery.ajax method. And I must handle the link request id(some information passed to server) -> server response after all requests done. And so on I have not any information about request id in server response. How could I handle this? May be handle request data in callbac...

jQuery SlideUp on a row with hidden columns

Hi, I've got a table and when I remove a row it animates with slideUp. $(id).find("td div").slideUp I used this trick to use slideUp on a row : link text There is no problem when all columns are displayed, but when I have hidden columns, it just removes the row with no animation. I guess it is a normal behaviour from slideUp, but is...

jQuery AutoSuggest Plugin - preFill options not working.

I'm using this jQuery AutoSuggest Plugin. It's pretty well documented, but there is a built-in option called preFill that doesn't seem to be working. A few people including myself have had this issue on their support forum. We may just not be entering the option in correctly. There's not a good example in the documentation for how to e...

getting values from an array (JS / jQuery)

I'm passing an array to a function I want to be able to show or hide columns in a table depending on what's passed. So, if I pass 1,3,4 columns 1 3 and 4 should show - column 2 should not. I can handle the show/hide bit. I'm just not sure how to grab the values from the array ...

Remove cookie from XMLHttpRequest object

I am making an ajax call with jquery like: $.ajax({ url: "path/to/webservice.asmx" beforeSend: function(xmlHTTPRequest) { //modify headers here //remove cookies } success: function() { //do stuff } } What I would like to do in the beforeSend function is take the incoming xmlHTTPRequest varia...

jQuery Slide Right/Left

I have the following JS: $(document).ready(function () { $(".LeftColumn").hide(); $(".SidebarToggle").toggle(function () { $(this).addClass("active"); $(this).text("Hide Sidebar"); $(this).attr("title", "Hide Sidebar"); //$(".LeftColumn").fadeIn("fast"); $(".LeftColumn").show("slide", { di...

jQuery: identify that the DOM has changed

edit: changing .ready() call per Matt's suggestion. I use jQuery to configure some stuff like so: $(function () { $('.myThing').each(function() { ... configure it ... }); }); My problem is when a new element gets added to the DOM after .ready() has been called. The configuration is not performed on those elements...

click event does not fire when coupled with css :active

I have created a navigation menu where, when clicking on a link, a jquery dialog box opens. On these same links in my css I have: .navigationLinkButton:active { background:rgb(200,200,200); } The dialog box is attached simply with: $("#link").click(function() {$(this).dialog("open")}); Occasionally (about every 4-5 clicks) when a us...

Populate hidden form element value with the value of a text field on form submit (jQuery)

I want to automatically populate a hidden form element with the value of what is entered in a single line text field in a form when submitted. How would this be done with jQuery? Thanks for any suggestions. <form> <input type="hidden" id="username" name="username" value="" /> <input type="text" id="email" name="email" value="some.email@...

When should $(document).ready be used?

I've noticed that $(document).ready(..) causes a noticable delay in applying javascript effects. However I also understand that just having the effect in a <script> can not always work because the DOM may not be ready. When should you always put your code in $(document).ready and when is it ok to bring it out into a global <script> tag...

Place variable in div id

I want to use an incremental div id, so that all my id are unique, therefore I can use jquery effects to modify them independently. I hope my question makes sense. If i need to elaborate please let me know. div id ="name_$id" ...