jquery

jQuery AJAX Fileupload crossbrowser support

I'm currently working on an AJAX file upload script, which works like a charm in Firefox but doesn't work in IE. this is the basic HTML I'm using: <form > <input type="file" name="FileFields" id="FileFields"/> <button type="button" onclick="uploadFile();" id="uploadButton">Upload</button> <ul id="files"/> ... other form...

jQuery: scroll menu with mouseover

Hi, I'm looking for an menu similar to the one one mercedes.com site > http://www3.mercedes-benz.com/mbcom_v4/de/en.html When you click on the combobox in the second box on the left, a menu appears with a certain hight and the possiblity to scroll up and down on mouseover. Does anybody know a plugin to realize this or has an hint h...

jQuery Error Claims jQuery Plugin Function "is not a function".

Hi Folks I'm using a jQuery.Center() plugin that I found at Andreas Lagerkvist's website. I have a control on the page called "divClipboard" that I want to appear in the middle of the screen when the user clicks a link. I call the function $('#divClipboard').center(); and it throws an error, the message being $("#divClipboard"...

jQuery Autocomplete "no result" not clickable or selectable

How to properly handle "no result" case in jQuery Autocomplete function that the "no result" is not clickable or selectable? In the "parse" part I add "no result" item: parse: function(data) { var array = new Array(); if (!data || data.length == 0) { array [0] = { data: { Title: "No results" }, value: "No results", ...

migrating to jquery 1.4

i would like to upgrade a site from 1.3.2 to 1.4 as i see there are some good performance improvements. can i simply drop this in or should i be concerned about my plugins working? is it backward compatible? what should i be worrying about? ...

Overlap content in a fancybox?

I have a fancybox modal window that loads a page of content (a form). On each input of the form there is a click event that shows a help tip to the right of the input. My question is this - how can I make an element 'breakout' from the fancybox and overlap the edge, so that it's the highest element in the z-index? I'd like the helptip...

Get last occurance in a <DIV>

I have the following JQUERY: $(function() { $('span .breadcrumb').each(function(){ $('#footer').addClass($(this).text()); }); }); So it reads the .breadcrumb and adds the text contained with text to #footer. However .breadcrumb occurs a number of time with in the breadcrumb navigation, I want it to read just the secon...

How to make javascript/jquery code error proof ?

If jQuery is included in <head> and in <head> if we have some another jQuery code and that code has an id which is a id of an HTML element, so if jQuery library and jquery code in <head> is added globally And if any page doesn't have that html element which is used by jQuery code then browser gives JavaScript error. Can I make jQuery/J...

Removing a frameset makes a very large page

I've been tasked with removing a frameset from a website (the site now needs to be indexable by various things, so the frameset must go) The frameset is made up of a left hand explorer like tree (which could have thousands of nodes). The right hand is where the main content appears. (I'll leave this question as not language specific a...

how to determine which JavaScript events are being triggered

As the title says, how can I find what JavaScript events are being triggered as I interact with a webpage? ...

drop down like Country / state and City.

Hi, I have chain of drop down like Country / state and City. Is there is any way to wait until the drop down population then proceed further? Some time its works properly. Following are code snipit Where Country Drop down always populated but State drop populate base on Country Value and City populate base on State value which from Data...

Jquery issue- can't set hidden field value

So, I'm going crazy for this. I have a simple input field inside a form tag. <body> <form action="#"> <label>Input</label> <input type="hidden" id="foo" name="foo" /> </form> I tried to set his value from a js file but in the html value attribute isn't set at all. $(document).ready(function(){ $('#foo').val('foo') ...

How to get a value of an element by name instead of ID

How could I get the value of a element by name instead of by ID eg if I use by id it would be $('#id').val(); ...

How to get Pagination plugin class names dynamically?

Hi there, I am trying to get the class names dynamically for the script below. I am using the Pagination plugin. I have different class names that are created through PHP so need to get them using jQuery dynamically. As you can see below, there are two '#hiddenresult div.result'. 'result' is the static class name that needs to change s...

jQuery LiveSearch - using table instead of list

I'm currently trying to use the jQuery Livesearch plugin (http://ejohn.org/blog/jquery-livesearch/) to use a table instead of an unordered list. I also want my search results to be shown based on the title attribute of the table row rather than the innerHTML of the table cell. This is my HTML: <div id="wrapper"> <form method="get...

jqgrid reload grid after successfull inline update / inline creation of record

Hi, I'm wondering how I can trigger reloadGrid after an inline edit of a row. <script type="text/javascript"> jQuery(document).ready(function(){ var lastcell; jQuery("#grid").jqGrid({ url:'{{ json_data_handler }}?year={{ get_param_year }}&month={{ get_param_month }}&project_id={{ get_param_project_id }}', ...

a strange $.get()

Hello everyone, I have this code, a simple jQuery GET: $.get(url, params, function(){ function_call() }) I wonder why the function_call() is never executed. The server at url is up and running and changing the function to $.ajax() shows no errors (the error option is not executed), but it's not working. Any clue? param...

prevent _doPostBack getting rendered in button markup

Hi Is it possible to prevent the _doPostBack() call getting rendered on a button? I would like add some custom logic prior to calling the postback. I have added an onClick event to the button e.g. <button id="manualSubmit" runat="server" class="manual-submit" onclick="$('#jeweller-form').hide();" /> However, this just gets render...

jQuery Tabs. Linking within tabs to tab

Update Hi guys! Got the linking working but now im facing another problem. When i've clicked the link within the tab and clicks on the "Menu"-tab again, the tabs look like shit. See working example link and code below. Rgds muttmagandi http://www.vallatravet.se/thetabs/ $(document).ready(function(){ $(".fadeOut").fadeTo(0, 0.5); ...

Looking for jquery plugin for dropdown with image, grouping and checkbox capabilities

Does anyone know of a jquery plugin for dropdowns, which supports image, grouping and checkbox capabilities? -- I need all three. Thanks in advance. ...