jquery

jQuery Autocomplete using extraParams to pass additional GET variables

I am referring specifically to the jQuery Autocomplete v1.1 plugin by Jörn Zaefferer [source: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/] as there seems to be quite a few variations of this plugin. I'm trying to pass additional parameters to the server when the user starts typing because I have multiple fields that...

Not Equal To notation in Javascript to use in jQuery

Hello, Is this the notation to use for Not Equal To in JS, in jquery code !== OR != None of them work Here is the code I am using var val = $('#xxx').val(); if (val!='') { alert("jello"); } Thanks Jean ...

Jquery Ajax list element refresh, highlight new items?

Hi, What I'm doing is refreshing a <ul> that contains a load of tweets from twitter, is it possible to somehow highlight which items in the list are new since the refresh? Thanks ...

How do I keep this from pushing down?

http://removed.com/jquery/test.html Playing with jQuery and upon pressing "More" on the top left, it pushes down the "Brown" layer. How can I keep the brown layer steady? It happens in Chrome, but not Firefox. ...

Why this jquery plugin not working with 1.4.2

http://plugins.jquery.com/project/semantictabs What is the means of this Status - Recommended for 1.0.x I'm using this plugin code as it is http://plugins.jquery.com/files/jquery.semantictabs.js_4.txt then this ( I'm also using prototype.js onsite) jQuery.noConflict(); jQuery(document).ready(function(){ $("#mytabset").semanti...

Jquery cookie plugin - set cookie when user submits form

Hello I would like to set a cookie when a user submits a form. I am working with some legacy code that sets a cookie based on a user checking a checkbox, but would like this to simply set the cookie when a user submits a form. Here is what i have, which works when a checkbox is checked: $().ready(function() { $('.application-form...

Get Imagesize in jQuery

Hello, I want to get the imagesize in jquery, I have this code. It works to the point of alert (v); I wonder what is wrong with the rest when v actually contains a value. var v = $('#xxx input').val(); alert (v); var newImg = new Image(); newImg.src = v; var height = newImg.height; var width = newImg.width; ...

jqGrid tableToGrid "options" parameter

Basics Hi all, I have see the tableToGrid method (by Peter Romianowski) defined as tableToGrid(selector, options) on the jqGrid wiki, but cannot find anywhere that has documentation of the options Does anyone know about these or where to find them? EDIT: Thanks Oleg, resolved! More What Im actually trying to do is encase the resultin...

How to Open Multiple PopUp windows with JQuery on form submission (popUps should be relative to form submited data)?

I have A HTML form like this: <form> <fieldset class="ui-widget-content ui-corner-all"> <select id="Streams" class="multiselect ui-widget-content ui-corner-all" multiple="multiple" name="Streams[]"> <option value="35"> Example Name (35)</option> <option value="44"> Example Name (44)</option> <option value="5698"> Example...

jQuery stopPropagation bubble down

I have a div with a link inside of it: <div id="myDiv"> <a href="http://www.lol.com"&gt;Lol&lt;/a&gt; </div> Clicking the <div /> should go somewhere, but clicking the child <a /> should go to www.lol.com. I've seen from previous questions and the jQuery website that .stopPropagation prevents bubbling upwards, but how do I prevent...

Error message: "$(window).width is not a function"

Hi all, i am trying to use a jQuery scrollbar called "Jscrollhorizontalpane". when i am trying to use it i get the following error message: "$(window).width is not a function" in firebug's console. i am new to jQuery do this might be very basic but still, i dont know what that means and why there is a problem. the scroller comes in a ...

image protection in rails

Hello, I am looking for ways to protect my product images and I don't know if there's anything out there better than what I've already found: disable right click, use a transparent image in front of your picture and watermarking. Obviously none of them is perfect but I was curious if someone came up with a better solution to this proble...

Jquery Ajax refresh not working in IE.

Hi, I have a <ul> which refreshes every ten seconds to check if there have been any new tweets (its pulling from a twitter feed). This works fine in Firefox and Chrome etc, but it does not work in any version if Internet Explorer. My code is as follows: setInterval(function() { $("#banter .scroll-pane").load(location.href+" #banter...

How can't center the elements inside this jQuery iframe (div?)

I can't center the elements inside the iframe on this page: http://ada.kiexpro.com/test/instruments.html (click Open iFrame Modal) html: <h2>Intrument's name</h2> <p>View full-size photo <a href="iframeModal.html?placeValuesBeforeTB_=savedValues&TB_iframe=true&height=500&width=320&modal=true" title="add a caption to title attr...

Automatically change div on mouseover and on timer

I'm a bit o a noob so any help would be great... What I need to do is have it so that the div associated to a specific li can change on hover as well as automatically change on a timer so that it scrolls through the option. here is my code: <script type="text/javascript"> $(function () { $("#switches li").mouseover(functio...

jQuery: color change doesn't work with Chrome and Safari

hi, could you explain me why the following code doesn't work in Chrome and Safari, but only in Firefox ? if ($(this).css("color") == "Fuchsia"){ $(this).css("color","#000000"); } This is the link: http://www.sanstitre.ch/drupal/portfolio?tid[0]=38 If you scroll down and up you'll see "Eternal Tour" becoming purple and black again, ...

How do I make a timeline with jScrollHorizontalPane & jQuery?

I'm trying to make a timeline with jScrollHorizontalPane & jQuery. I've come this far: http://bewoog.nl/isabella/dev/history.html. This timeline starts in the past though and I want it to start in the present, so the scrollbar needs to start on the right side (see the timeline on the british council venice biennale website). I can imagi...

Whats the best to resize a north panel dynamically in jquery.ui layout plugin?

Hi all! I m using jquery ui layout to create 3 panel on a webpage, north, west and center. The north panel needs to be auto sized based on the contents added via ajax calls. The contents are block level. so i am using this function to resize the north panel when a block is added to north panel .. layout.sizePane('north',layout.state.n...

jQuery add border to table.

Hi, I'm a jQuery noob, I tried this: <input value="1" type="checkbox" name="mytable" id="checkbox2" style="float:left;" /> {literal} <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(function() { //checkbox $(".mytable").click(function(){ $(".myta...

Calling a function when a scrollbar appears in an IFrame

I got an IFrame, in the onload event i set the height of the frame: function resizeFrame() { $("#iframeID").height($("#iframeID").contents().find("body").outerHeight(true)); } Problem is: When the content of the frame is increasing without a postback (javascript or Async Postback with Ajax), a scrollbar appears. I found a solution for...