jquery

Anythingslider problem

Hi guys, i'm using the AnythingSlider, but when i only got 1 item in the slider i get a error saying "'base.$navLinks' is null or not an object" on line 149, you can see the code here: http://pastebin.com/K7EaiFuT, can anyone see what the problem is? thanks :) ...

How do I remove HTML that I place dynamically with JQuery?

So I am adding text and textbox to a page dynamically if a checkbox is selected. However, the dynamic part is that the code behind is creating a CheckBoxList and appending text from a Code table to each checkbox. Therefore, I am looking for any checkbox with the ID that contains "chkCheckBox". From there, I can check if the next to ...

Why is in when I change the height on this bit of CSS styling for a div from px to % it doesn't work?

In this code (that uses jQuery), the following line in the html #canvas { height: 500px; background: white; } sets the height on the canvas to draw on. But if you change the height to a percentage value like this: #canvas { height: 20%; background: white; } the canvas doesn't display at all. Why is that? Thanks for reading. ...

jQuery get first five <li>

<ul> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> </ul> How to add some class only for first five <li>? ...

JQuery grid vs traditional web model for pagination/sorting/filtering

We are developing some new GUI screens to display tabular data which require sorting/filtering/paging. What are the pros/cons of using a JQuery grid approach vs the "traditional" model where these functions are done on the server and where you do a new server request for each action (ie: "next page", "sort on a column", etc)? Some of t...

How do I select the 'Browse' button from a file input html element with jQuery?

I have a page that is themed with jQuery UI, but I can't find how to select the file upload 'Browse' button to theme it as well. Is there a way to do this, or is this even possible? ...

Why doesn't jQuery's $.get() insert script elements into the DOM?

I am using $.get() to retrieve an HTML snippet from a remote server and insert that snippet into the DOM. The snippet contains several basic HTML elements and a script element. All of the basic elements get inserted, but the script element does not. Example snippet: <p>This is a paragraph</p> <script type="text/javascript"> // JavaScri...

Animating the height of a continer on jQuery.load()

I'm using $('#container_div').load(url) to populate a div via ajax. I would like to animate the height to the height of the returned content but really cant figure out how to achieve this. I've tried using something like this: $('#main').fadeOut(function() { $('#main').load(url, function(data) { var newHeight = $(data).height();...

jquery code does not work in IE8 compatibility mode

The following code I cannot get to work (Jquery 1.4.2) It seems like the selector is not working cause it doesn't do anything after that with the id=p_quantity. I added the .remove() just to see if it was that line that was the trouble and it did not remove the textbox in compatibilty mode, works in regular mode and FF. Stumped!!! EDIT...

Firing the mouseleave event only when the mouse moves in a vertical direction

I have a ul which functions as the main navigation. I have one li inside that ul which, when hovered on, slides down a hidden div with a bunch of information. This div appears right below the main nav. I would like to have the div hide itself if the user moves their mouse vertically, outside the main nav. I need it to stay if they mover ...

jQuery tablesort and .empty() on ajax loaded table keeping rows

I am building a table with ajax and then attaching a jQuery tablesorter (found here). This works fine the first time. On a second time (and every one really) I empty out the rows like this: $('#tblTableName tbody tr').empty(); I then add the rows as I did before and then reattach the tablesorter. It looks fine and I show only the row...

Jquery Autocomplete with json fails

I am using the auto complete plugin by Devbridge and I have it all installed here is my code: $(document).ready(function(){ $('#request_task').autocomplete({ serviceUrl: '<%= ajax_path %>', minChars:1, width: 300, delimiter: /(,|;)\s*/, deferRequestBy: 0, //miliseconds params: { artists: 'Yes' }, ...

jQuery Cycle: How to change transition effect on a running slideshow

Hi folks, i'm using the before: option of the jQuery Cycle plugin to determine whether the user is moving to the left or right through the slideshow, and i'd like to animate accordingly (scrollLeft, scrollRight). Unfortunately, I cannot find how to alter the plugin's options (the transition effect) while it's running. Any ideas? ...

How can I get my array to work when assigning non-sequential numeric indexes in jQuery?

I have an XML file dynamically created from a database where each item has both an id and name. In the following syntax: <item> <id>1</id> <name>FirstName</name> </item> ... and so on ... I am trying to use these values for a jQuery autocomplete, where the ID will be submitted via form when the name is selected from the autocom...

How can multiple clients be notified of a single users actions? Web based channels...

Lets say we have a web based application where users login to their own channel. And our server manages and maintains a list of users, and their current ip addresses. When someone logs in, is it possible for each client to receive a notification of this users login? Equally if someone logs out, a similar notification would be generated....

Using jquery .attr - change src of iframe to be "script.php?=" + (#url).text

I have a simple text box and button. When clicked the button should change the src attribute of an iframe as follows: src="**script.php?=**(value of text box) I have managed to get the iframe to work when simply changing the src to be only the contents of the text box using this code: $(document).ready(function() { // Change iFrame...

jqueryui datepicker appears every time dialog is envoked

any help is much appreciated. Everytime: $("#myid").dialog() is opened, my datepicker also pops out, I didnt even click the input field of it. Why is so? tnx in advance. ...

Superfish dropdown clipped by table bounds

Hello, I am having a problem using Superfish dropdowns inside a jQuery grid. It looks like the dropdown is being clipped by the table bounds. I’ve researched this and it seems to be a z-index issue except that I have tried various combinations of z-index to no avail. Here’s a screenshot of what it looks like: I can post the css and ...

Geolocation not workin on Safari 5.x on Windows 7/XP

Hi, I am working on an app that uses the W3C standard geolocation API but I cannot for the life of me get it to work on Safari on my Windows 7 and XP PC. It works fine on my iPad and my iPhone. It also works perfect on Chrome (5, 6, 7 and the Canary build) and on Firefox (3.6). I don't have a Mac so I can't test it on that. IE doesn...

Alternatives to execCommand

Hi all, I'm looking to create a WYSIWYG editor, using jQuery as a framework from which I can use different methods to ease production. I do actually have a working editor at the moment, and it's working well. I use an iFrame, and set it's designMode to on and go from there. However there are a few things which are nagging me. Take as...