jquery

jQuery Accordion /Tabs - Call different function upon load of content

I have the following markup: <body> <div id="tabs" style="float: left"> <ul> <li><a href="ajax/question_0.html" title="Question 1"><span>Question 1</span></a></li> <li><a href="ajax/question_1.html" title="Question 2"><span>Question 2</span></a></li> <li><a href="ajax/question_2.html" titl...

Posting a form to popup form using jquery and fancybox

I am trying to post from a form to another form in a fancybox ( http://fancybox.net/ ) window. For example I have a list of cities with tickboxes on a form. When the user clicks submit on the first form, I am hoping for the fancybox window to appear with another form in. There will be a textbox on the new form that has the city ids sel...

jQuery "Microsoft JScript runtime error: Object expected"

I have the below code that does not seem to work at all :( I keep getting: Microsoft JScript runtime error: Object expected The error seems to occur when the timeout is done. So if I raise the timeout with 10 seconds the error holds for another 10 seconds. I want to be able to update the number of friends online async. The number is...

jQuery live search

I really like the search function on iA and I was wondering how they did it. I found ejohn.org/blog/jquery-livesearch/ by John Resig but I still don't know how to: add the counter (128/128 - the number encreases and decreases) highlight the word I'm searching in the text ...

Return Json causes save file dialog in asp.net mvc

Hi, I'm integrating jquery fullcalendar into my application. Here is the code i'm using: in index.aspx: <script type="text/javascript"> $(document).ready(function() { $('#calendar').fullCalendar({ events: "/Scheduler/CalendarData" }); }); </script> <div id="calendar"> </div> Here is the code for Sch...

jquery selector logical AND?

In jQuery I'm trying to select only mount nodes where a and b's text values are 64 and "test" accordingly. I'd also like to fallback to 32 if no 64 and "test" exist. What I'm seeing with the code below though, is that the 32 mount is being returned instead of the 64. The XML: <thingses> <thing> <a>32</a> <-- note, a here i...

Dynamic menu items (change text on click)

Hello, i need some help with a menu. See the following menu: menu The code for this menu: <div id="menu"> <ul> <li class="home"><a href="#home" class="panel">home / <span class="go">you are here</span></a></li> <li class="about"><a href="#about" class="panel">about / <span class="go">go here</span></a></li> <li class="c...

Jquery UI datepicker

Hi all. I am trying to display a basic Jqeury datepicker in my application. When a user clicks the input field, a calendar will show up. My input field is on the bottom of the window, when the calendar pops up. It shows fine in Firefox and Chrome (above the input field) but not in IE (pops up below the input field and the calender is c...

Is there a JQuery alternative to JQTouch with better Android Support?

Basically looking for a JQuery plugin with better Android browser support than JQTouch. Or even an alternative Javascript framework with better mobile support. ...

jQuery Table - Reference User Input Row Names and Values

I have several tables which are generated by another application, which I have no control over. I am totally new to jQuery and ajax, and have only a limited knowledge of jsp. Two sample rows are: <table class="sicknessForm"> <tr id="row_0" class="datarow"> <td id="col_2"><input name="row_0-col_2" class="tabcell" valu...

How do I avoid killing the native controls on a html5-video when i've started it programmaticly?

OK, so the deal is I've started making a little videoplayer, that works by clicking a div with an image, expanding the div and the image, and then exchanges the image with a html5-videotag. the code is as below. (It's very early on, so i know theres a lot that need improving, as in not using javascript to set styles and so on, but never...

Will dynamicaly generated content via Javascript hurt SEO

This is what I would like to do. I would like to load content dynamically. Everything except the actual content will be rendered by javascript. I will place all the require information in a javascript variable or array at the bottom of the page. Then I will use javascript to place the content in the designated area. These are the types...

How can I run a function anytime anything is animated with jQuery?

Hi - I have some jQuery animations in my code to slide divs up and down in response to some mouse clicks and other logic. This is all working just peachy, however in IE 6 some of the smaller icon images on the page don't slide along with the rest of the div for some strange reason. They kind of stay put then flicker into the new positio...

Loopped slider replace slide effect to fade-out/fade-in effect on the prev and next slide functions?

function animate(dir,clicked){ u = true; switch(dir){ case 'next': t = t+1; m = (-(t*w-w)); current(t); if(o.autoHeigh...

Show/hide rows with jquery

Hi I am using some modified code from another post. Basically I want to switch between showing 10 rows of a table to showing all rows (50 for example). I have got it to show from 10 rows to all, however what I need to do now is code it so that if I click the div again it toggles or resets back to showing 10 rows. <script type="text/ja...

Javascript object key by element id? (jQuery)

Hey all, This looks like a very simple issue, but I just can't get it to work. I have a Javascript object like this: var person = {}; person.one = {gender: 'male', name: 'John'}; person.two = {gender: 'male', name: 'Doe'}; person.three = {gender: 'female', name: 'Jane'}; Then I have some HTML like so: <a id="one">click</a> <a id="t...

jQuery UI autocomplete examples

I'm hoping someone can help with this, I'm having a real difficult time getting jQueryUI's autocomplete to work with ajax in a asp.net app (not MVC). I can get it to make the ajax call but I'm not doing something right handling the response. Just for starters I'm trying to have autocomplete make an ajax call to 'GetSuggestions.aspx' wh...

jquery insertAfter or append question

I am playing around with validating form inputs. For now I'm simply having fun with displaying a message after the input. I'm using the after() method to display simple text, and when I purposely make a mistake in the box I display the message perfectly. However, if I purposely make a mistake again, it immediately adds the same message...

How to distribute the chance to display each SWF evenly among banner collection?

Hi all: I am working on The ausdcf.org to try adding several banner ads in swf format to the top. Everything starts to work, but I've got several questions that need your help: The client chose not to go with Google AdManager, but prefer a "minimal approach" to do this task. What I am trying to do is sort of "mimicking" the way Goog...

jQuery - dynamic variables?

Newbie question. Given the following html. <div id="mycontainer1" class="container"> <input type="text" class="name"/> <input type="text" class="age"/> </div> <div id="mycontainer2" class="container"> <input type="text" class="name"/> <input type="text" class="age"/> </div> I'm trying to create a function where I can pass an element...