jquery

Refire certain scripts after jQuery AJAX load.

I need certain scripts to refire after an AJAX load. How could I accomplish this? ...

How can I not repeat this code in jquery?

Hi there, I am repeating an IF ELSE statement like so $('#accountLoginButton').click(function() { if($('#topSubscribe').is(":visible")) { $('#topSubscribe').slideUp(function(){ if ($('#topLogin').is(":hidden")) { $('#topLogin').slideDown("fast"); } else { $('#topLogin').slideUp("fast"); } }); } ...

JavaScript inside Ajax - Internet Explorer

I would like to add a Javascript at the end of some ajax content, It works fine on firefox but internet explorer print the script without running it. <script type="text/javascript"> $.tablesorter.addParser({ id: 'title', is: function(s) { return false; }, format: function(s) { s= s....

jQuery Tools Scrollable not quite working - neither the navigate nor mousewheel functions work

I am using the jQuery Tools Scrollable plugin - http://flowplayer.org/tools/scrollable.html#navigator I have created a scrollable with a navigator before without problems and now, for some reason I cannot get the darned thing to work. The possible reason could be that there are too many divs playing, but I need all of them because each ...

AJAX signout with Zend Framework and jQuery

When a logged user click the signout link I'd like to call the logout action without refresh the page or redirect. Any helps? Thanks! ...

Wrap text after perticular symbol with jQuery

Hi all, What im trying to do, is wrap text into div inside ll tag. It wouldn't be a problem, but i need to wrap text that appears particularity after "-" (minus) including "minus" itself THis is my html <ul> <li>Some list text - Additional text</li> </ul> As I result im trying to achieve this: <ul> <li>Some list text <spa...

jQuery/AJAX in IE : Object doesn't support this property or method

Ok, I'm stumped. Basically, this script works fine in FF, but not in IE (6,7 or 8) - in which it returns an "Object doesn't support this property or method" error. Any ideas?: function portfolioAjaxLoader(page){ $("div#portfolio_container").load("include/DCK_portfolio_gallery.inc.php?cat=" + page); } $(document).ready(function(){ $(...

jConfirm with this existing code [Solved]

Hi, I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } If I just change confirm to jConfirm this not enough to make it work... Thanks for your help Lena ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can't be opened again. ...

clear all divs' contents inside a div

I have a div <div id="masterdiv"> in which i will have several child divs. For example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="childdiv3" /> </div> I need to clear the contents of all child divs inside the master div using jquery. How to achieve it? ...

jquery Dollar sign

i have this html: <ul id="list1" class="eventlist"> <li>plain</li> <li class="special">special <button>I am special</button></li> <li>plain</li> </ul> and I have this jquery code: $('#list1 li.special button').click(function(event) { var $newLi = $('<li class="special"><button>I am new</button></li>'); var $tgt = $(event.t...

Jquery prevent repeating animations without breaking my dropdown?

http://mmowned.org/dragon/slm/menu9.html In an attempt to solve the animation queing in the old version (menu7.html) I tried using .stop() in the dropdown menu. Problem is when you "stop" the dropdown halfway through and then start it again, it breaks the menu and only extends back to where it stopped :/ I'm pretty sure this is really ...

jQuery Navigation Assistance Needed

I have a jQuery based accordion style navigation that I am trying to modify. It uses this code: $('.interior #subContent > ul > li > a.drop').click(function(){ $(this).parent().children('ul').toggle("slow"); return false; }); I need to be able to keep it open to the section the active page is on. I can highlight the active link wi...

How do I disable multiple listboxes in one go using jQuery?

I can disable one and one by doing this: jQuery('#ListBoxA').attr('disabled','true'); But how can I apply this to multiple items? This does not work: jQuery('#ListBoxA, #ListBoxB, #ListBoxC').attr('disabled','true'); UPDATE Not much markup to show.... <select id="ListBoxA" size="4" name="countrySelectBox"> <select id="ListBoxB" s...

Jquery and Intellisence in VS 2008 with hotfix and SP1

I followed Scott Guthrie's instructions as outlined atL http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisence still doesn't work. Any tips? ...

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j('#homebox') .cycle({ fx: 'fade', speed: 'fast', timeout: 9000, pager: '#home-thumbs', pagerEvent: 'mouseover', pagerAnchorBuilder: function(idx, slide) { // return sel string for existing anchor ...

Request.IsAjaxRequest returns false

I have an MVC project in which I have a form with a submit button. I have added a jquery client-side handler that intercepts the form submit event. The javascript function calls the same MVC action that would have been called without the javascript. $("form[action ='/List/CreateItem']").submit( function() { ...

Getting the url's of all open tabs with jQuery/Javascript?

I know I can read the URL of the current page, but is it possible to read the url's of all open tabs? Thanks! ...

Selecting the next sibling of $(this).parent()

I have some HTML that looks like this: <div> <div class="value"> <a href="#" class="clicker">Some Value</a> </div> <div class="heading"> Some Name<img src="loading.gif" style="visibility:hidden"> </div> </div> This could repeat several times, depending on how many values and headings need to be listed. Using jQuery, I'...

Windows 7 breadcrumbs in jQuery?

I could have swore I have seen this before, but has anyone the Windows 7 breadcrumb feature done in jQuery? ...