jquery

Can't bind JQuery Datepicker with asp:TextBox in sharepoint

Hi everybody. I have the next trouble. I am creating the web part in sharepoint. I need a Jquery datepicker. When i try to bind it with the html textbox it works. But when i try to bind it with the Asp:textbox it doesn't work. Does anyone have any ideas? Thanks. I will appreciate any help. <script type="text/javascript"> $(document...

how to fire code in case of a success or failed form validation with jquery validate

hi there, it seems that jquery validate plugin does not come with out of the box, success and failed callback options. how do i manage to launch some custom code when a form's validation fails? we need to change certain layout elements not related to the fields itself when a player enters invalid data. hope it is still possible ...

Need help with JQuery ToolTip

http://rndnext.blogspot.com/2009/02/jquery-ajax-tooltip.html I want to implement something like the link above..Now this pop up box's fetching data from some page..using PageID and what not...I want the content of that popup box to have simple HTML stuff in it..will bind it later...the one above's got Ajax that I am not familiar with.. ...

How to toggle a hidden ul by clicking a link with jquery

I have following code created dynamically with php. What I want to do is when I click class='toggle' with href of desc76, I want to show ul with id desc76. also I want to change arrowdown16.png to arrowup16.png. Then when I click it, ul will fadeOut or hidden again. class, secondul has CSS display:hidden;. I tried this, but it does ...

How to get the first row's last column of an Html table using jQuery

I have a html table and I need to get the first row's (which is not the thead part.It will be in tbody part) last columns value or text. I need the value on clicking the button btnAdd <table> <thead> <tr> <td>Name</td> <td>ID</td> </tr> </thead> <tbody> <tr> <td>Edwin</td> <td><span style='displa...

String contains

On my intranet page, I have links which end with .doc or .xls. How do I use jQuery to check if they end with .xls so I can add a little javascript to those links EDIT: This does not work: $("a.resultLink").live('click', function(event) { // do something here // ... // change .doc link behaviour var anchor = $("a:cont...

Jquery mouseover image on image with a link

Hello, I read quite a bit and I am trying to find a solution which does this: When you move your mouse over on any of the product images, a button appears which is a href link. Clicking on that button opens an overlay box. I plan to use thickbox for that. My issue is trying to figure out how to use Jquery to show that image when the...

jqModal iframe issue

I have a asp.net page (page1.aspx), inside that I have a iframe, Inside the iframe I am loading another page(page2.aspx). Inside that page(page2.aspx) I have a button. When I click on that button jqModal pops up. It comes up covering the iframe which is in page2.aspx. How can i make the jqModal div to allocate parent page(page1.aspx) ful...

When to use $.extend({...}) ?

Hi, my question is when do i should use $.extend(...) ? In many jquery plugins i see that the jquery-object itself is extended with new (global) functions: $.extend({ doSth: function() { alert('do sth here'); } } What are the advantages of extending the jquery-object instead of creating a global object containing the ...

Jquery Accordion Expand All Collapse All (Solved!)

I was looking for a way to include an "expand all" and "collapse all". I've updated the demo with the new code using a simple jquery accordion. The original code should be credited to Ryan Stemkoski at http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/ Demo: http://jsbin.com/ucalu3/5/ $(document).ready(function() { $('.q...

Jquery .after() IE problem

Hello readers, Im making a login form for a webbased game, Styled it very pretty etc. Used Cufon to markup some text. Now i have a submit button which is very standard. So i tried applying css and Cufon. Not working. Then i wrote a bit of jquery to: hide the submit button add a span with the same class after the submit button set ...

Rails not encoding nested data from POST

Hello, I am currently working on rails3 application that uses jQuery. I have a javascript plugin that returns an array of JSON data based on selections that the user has made. I have a save button that reads this array of data form the java script plug in and posts it back to the rails application to be saved. The javascript seems to be ...

jQuery function clear form and set back to onLoad status

For my jq driven form I am looking for a function that clears my form and set it back to the original stage as it was on page load but without refreshing the entire page. I use placeholder text and I have created a standard reset button. In webkit browsers it works fine. If the reset button is hit, the form returns to the original state,...

Best practice to handel ajax jquery database queries?

Hi, I have a "little" problem because I dont know whats the best way to handle ajax jquery databeas request? So far I've done it this way: For ever (single) database request I created a new .php file like: newbill.php newcosumer.php listallbills.php updatecostumer.php ..and so on and pull the data via: $.ajax({ type: "POST", u...

Use jQuery to convert TD's with DIV's with numbers into clickable links?

I have a webpage from the Fogbugz bug tracking system, and using a plugin to Fogbugz, I can insert javascript into each page. In this Fogbugz installation I have created a custom field, with the case number of a different system, and this is shown in the case listings. I'd like to make this column clickable, which would open a new tab ...

jQuery Javascript scrollTop not working as expected on Chrome to restore scrollbar position

I'm using the following jQuery Javascript to save the scrollbar position before the unload event and reapply it again: $(document).ready(function () { document.documentElement.scrollTop = $.cookie("scroll") || 0; }); window.onbeforeunload = function () { $.cookie("scroll", document.documentElement.scrollTop, { expires: 7 }); } ...

jQuery dynamicly change onlick location.href

This works in firefox but doesn't do anything in IE: $("#_results").autocomplete({ source: data, minLength: 0, select: function(event, ui) { $("#log").empty(); log(ui.item.lname + ", " + ui.item.fname + " " + ui.item.sso); ...

jQuery: How to catch keydown + mouse click event?

I have a div element. I need to catch a mouse click on this div while alt-key (keyCode = 17) is pressed. Here is what i've got to catch key press: // Html <div id="targetDiv">I want to put a ding in the universe.</div> // Java-script $(document).ready(function(){ $(window).bind('keydown', function(event){ if ( 17 == eve...

jquery-ui close dialog

I have a little problem closing my dialog box in javscript/jquery on mouse exit here is the script $().ready(function () { $(".popup").live("mouseover", function () { $(this).next().dialog(); }); $(".popup").live("mouseout", function () { $(this).next().close(); }); }); ...

Detect location of column in html5

Is there a way to detect the location or block of a column created using the -webkit-column methods? Can this column be accessed with jQuery once it is created? Is there a way to access the nodes of a specific column? Update: Is there a way to get the horizontal position of an element? ...