jquery

Customise Easy Slider 1.7 to fade not slide

I'm using this plugin: http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider I'm pretty new to jquery, and I was wondering if anyone could tell me how to change the the images to fade in and out rather than slide. (function($) { $.fn.easySlider = function(options){ // default configuration properties var...

asp.net mvc: how to detect when a page is called using ajax

how to detect when a page is called using ajax in asp.net mvc ? ...

:hover selector doesn't work with jQuery 1.4

Googled about it - found nothing. I'm talking about CSS :hover, not jQuery .hover(). So, the code: $('#something a:hover').css({'something': 'thomesing'}); works fine with 1.3, but not with 1.4. How to fix it? ...

How to make a real-time jquery effect?

Hi, i want to make a real-time feed reader, and i want a solution to make the new items coming without refreshing the page and with a scrolling effect like friendfeed. you can see what i'm talking about here: http://www.vimeo.com/4029954 I just want a function which i can call with new DIV content and then it create it above the previ...

accordion style problems

Hello, Thank you for your responce regarding the below answer: "When I need to override the styles applied by jQuery UI elements, I usually add a stylesheet that I load after the jQuery UI stylesheet and put my overrides into it, using the same selectors so that I know that my styles will take precedence. In this case look for the style...

EmptyResult jQuery callback issue with $.get

Hey Everyone- I have some code in a controller (HomeController.cs) that gets called from a $.get method in my view. View Code $(document).ready(function() { $.get("/Home/Toolbar", function(result) { $("body").prepend(result); }); }); HomeController.cs [AcceptVerbs(HttpVerbs.Get)] pub...

Multiple $.post duplicating results in DropDowns

If I use a single statement, then it works well. I mean if I use multiple $.post, as shown below, it fills both the DropDowns with the data of the second $.post. Why? The .php file contains code to dynamically fill DropDown. $.post("../Lib/filldropdown.php", {DropDownControlName: "inMemberOf", SqlQuery: "SELECT * FROM electioncategor...

jquery form not submitting

For some reason everything works with my code but the form will not submit. $(function(){ $("#dialog").dialog({ autoOpen:false, bgiframe: true, resizable: false, //height:auto, width:500, modal: true, ...

Google Maps API - point of interests

Hi. I am working now on little project. In one view i am returning data for google maps API (longitudes and latitudes). Under the map I have to implement few buttons to add point of interests on the map in this location which is actually showed. There could be some buttons/types of POI like schools, banks, atms etc. So, let's go back...

any ideas for avoiding duplicate code in C# and javascript

i have an asp.net mvc website where i build up most of the page using C# for example building up html tables given a set of data from my viewmodel i also have a lot of javascript that then dynamcially modifies these tables (add row for example). the javascript code to add a new row looks extremely similar to my "rendering" code i have ...

Web Host Updates Whole Site instead of Only The UpdatePanel

I'm having some problem finding the source of the problem, but here it goes, maybe you know the magic answer. I'm running this asp.net site with an AJAX updatePanel on my local machine, and everything works just fine, since it's where I developed it. Now, a few days ago, I uploaded the files to my web-host and assigned every single Data...

does javascript have a built in stringbuilder class?

i see a few code project solutions: but wanted to see if there was a regular implementation in javascript? ...

Simple way to replace check boxes with images in jQuery without using plugins

Hi, I would like to replace checkboxes with images however all I have come across are jQuery plugins. Is such a feature achievable in a few lines rather than a plugin? Thanks. ...

jQuery drag & drop and drag again...

Hi there, I'm working on a drag & drop page where you can drag elements from a list into various droppable containers. This works perfectly. What I am now trying to achieve is then have the ability to drag these from one container to another (or re-order them inside a container). But I cannot seem to do this. The list looks like a succ...

How to add to TOP of unordered list with jQuery

Hi All I've created a Facebook/Twitter like status update and can add the new status to an element. I recently found a great article that explains "How to add items to an unordered list using jquery" but I'm not skilled enough to edit it to make it add to the TOP of my unordered list. Any help would be greatly appreciated. ...

Jquery scroll hits twice on IE

have this code that calls an ajax whenever the scroll of a div hits the end. It's suppose to be an auto-dynamic scroll. This ajax gets the next X itens of the list. $("#gvContacts").scroll(function(){ var scrolltop=$('#gvContacts').attr('scrollTop'); var scrollheight=$('#gvContacts').attr('scrollHeight'); var windowh...

Animate floating divs when they are moved

Hi, I have two columns, the one on the left is a grid of square, floated, jQuery draggable elements. The column on the right is a jQuery drop target. So when I drop a dropabble on the target it gets appended to the right column and hidden on the left, causing the grid to move to fill the space where that one just was. Is there a way I...

jQuery get first a link from li elements

Hi, I have the following html: <ul> <li> <a href="#">link 1</a> <ul> <li><a href="#">link 2</a></li> <li><a href="#">link 3</a></li> <li><a href="#">link 4</a></li> </ul> </li> <li> <a href="#">link 5</a> <ul> <li><a href="#">link 6</a></...

CSS/Javascript (or JQuery) tutorials on combo box and Facebook-like Message composer

Hi Guys, 1) I want to redesign a combo box using CSS and (minimal or none if necessary) javascript. I was wondering if there are good tutorials out there you've come across that can help me with it. 2) For Facebook users, you are aware that you can type 1 or more recipients on the address bar and it'll create a "button" around the user...

Accessing iFrame Contents via jQuery in IE

Hey all, I'm using jQuery to try and access the contents of an iframe WYSIWYG, just to get the character count and update a counter outside the iFrame. Oddly enough, my code works fine in in Firefox, but breaks in all versions of IE. Wondering if anyone could help me out with some IE-friendly syntax? Here's what I have so far: This is ...