jquery

problems with select option text

I'm trying to get the text value of the select option here and i keep getting the value what am i doing wrong here is the code jQuery.each(jQuery('select.personalize_toggle'),function(i){ var t = jQuery(this).html(); alert(t); }); here is the html <select class=" personalize_toggle " > <option value="0" ></option> ...

Set dateformat once, so jquery and jqueryUI date picker use that date format

Is there a way for me to set the date format once to 'dd/MM\yyyy' and then have jquery's ui datepicker use that date? I don't want to set the date format everytime I use the datepicker. I am getting the format from a server-side config setting, so I can output this on every page request to a js variable on the page. ...

ipad web application: How do I prevent the keyboard from popping up on jquery datepicker.

I have a form with an date field with a jquery datepicker attached to it. When I select the date field the datepicker pops up but then the iPad keyboard slides into view and obscures the datepicker. How do I prevent the keyboard from popping up in this situation? ...

Jquery Image resizing and centering to window not working in Safari

UPDATE: So due to this page: yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/, I realized that finding the window dimensions is not safari's problem. Instead it's finding the image .width() and .height(). I tried some of the ideas on this page: http://36flavours.com/2010/01/jquery-document-ready-bug-in-sa...

Jquery tabs loads current url in tab

Using jQuery's UI Tabs. This is my code. <div id="tabs"> <ul> <li><a href="#tabs-1">Find a Category</a></li> <li><a href="#tabs-2">Business Name</a></li> <li><a href="#tabs-3">All Categories</a></li> <li><a href="#tabs-4">Business to Business</a></li> </ul> <div style="clear:both;"></div> <div id="tabs-1"><p>T...

Safari extension message to injected.js

Hi, I try to send a message from to global page to my injected.js on the moment that a setting changes: global.html function settingChanged(event) { if(event.key == 'open') { safari.self.tab.dispatchMessage('openChanged', safari.extension.settings['open']); } } safari.ex...

jGrowl: with a id inside function, won't work, only if no id?

inside a normal JS function: $('#friendsPop').jGrowl("testtmee"); Wont work, but: $.jGrowl("testmeee"); Works just fine.. I have tested everything, and if i make a link outside a function, a normal a: link like this: <a href="javascript:void(0);" onclick="$('#friendsPop').jGrowl('testme');">link</a> It works fine too. But i wish...

jQuery click detection outside of specified area problem

Hey guys, ok, so, I have a jPlayer jQuery plugin playlist hidden on my home page (http://www.marioplanet.com). Now, it is hidden by default and is only supposed to be activated upon clicking the image labeled "Music" in the upper-right-hand-corner of my header <div>. This works great, and once an end-user clicks the image, a nice, slic...

jQuery Editable / Sortable List

I am looking for a jQuery list that is editable (add, change, delete elements), what is a good starting point code base that does this? I found this one example which is great, but it doesn't add, edit or delete list items: http://jqueryui.com/demos/sortable/default.html ...

Why is SuperFish overriding all my list styles?

I'm currently using SuperFish - http://users.tpg.com.au/j_birch/plugins/superfish/#download - for the first time in a project of mine. My global navigation works as intended, however, regular page lists are displaying the same styling as my Superfish navigation. I have looked through my CSS, everything is written pseudo-like and should...

jQuery UI draggable/sortable/droppable disable drop when droppable limit is reached

JS Bin demo Task: I'm creating an event scheduler using jQuery UI. Events are of a certain length (in minutes) and they can be dragged into different days, each with their own maximum length (in minutes). In the example, each day's maximum length is 480 minutes, and no more than 480 minutes worth of "events" should be allowed to drop i...

jQuery UI Autocomplete with Chrome-like autofill

I'm using the jQuery UI autocomplete functionality and, while I've found a way to implement the autoFill function, I was looking for functionality like in the Google Chrome address bar. Where the best matching item is auto-filled, but it doesn't interrupt your typing. Any help is appreciated. ...

Passing the value to the next page without a form

I have a page I am constructing and I need to pass in the values of the option dropdowns to the next page. The problem is that these dropdowns are not in a form. http://posnation.com/test/pre_config/pre_config_step_2.html Basically what i need to pass to the next page is that when i click "Proceed To Next Step" I need to pass the ...

Getting and using values obtained from multiple text boxes via JQuery

I'm trying to get the values from multiple textboxes using JQuery. I'm a bit of a newbie with Javascript in general. I have a form with the following input element: <input name="milkman" value="jessie"/> <input name="letterman2" value="jim" /> <input name="newmilk" /> I get the values of the first two input elements using: var test...

jQuery HTML form, selected file is not available in PHP $_POST

hello, i have a form that with a link click adds a new for a file with jquery's .html() // show div to change image on product_edit.php $("#change_img").click( function () { $("#change_img_div").html('<label>Image product</label><input type="file" value="" name="item_img" id="item_img"/>').fadeIn('fast'); ...

jQuery handle Ajax timeout?

Hi, I'm trying to catch Ajax timeout error with jQuery 1.4.2, but none of tutorial I found work. In Firebug, when timeout error fires. I see uncaught exception: [object Object]. Please help me handle Ajax timeout. Here's my JS code: $.ajax({ type:"POST", url:"/data/add/", data: { "date":$("input#date").val(); },...

How do I strip the first character

I am constructing a URL and I have escape($('#count_of_stations').html() The problem is the value will come in like this 1 station 2 stations I need to strip everything other then the first character, so is there a way to sent it with the " station(s)"? ...

jQuery .each() Starting from an index other than 0

I'm just getting started with jQuery. I was using it to make a photo gallery that pulls photos and their information from Flickr. The script is shown below <html> <head> <title>Flickr Test</title> <script src="http://rhol.squarespace.com/storage/js/jquery.js" type="text/javascript"></script> <script src="http://rhol.squarespace.c...

jQuery outside events plugin not funcitoning properly.

I have downloaded the jQuery outside events plugin as Sarfraz suggested, which seems really great, except, I cannot appear to get it functioning correctly. Here is my code that I'm trying to call it with: $("#player").bind( "clickoutside", function(event){ if($('#player').is(':visible')) { $('#player').slideToggle(500); } }); ...

What is wrong with this call

$(".number_changer").attr("id")="two"; I am trying to grab the class number_changer and set the id on it to "two" invalid assignment left-hand side $(".number_changer").attr("id")="two"; ...