Regression 1.8.4 compared to 1.8.2 in manipulating disabled option of a button on a dialog ?
Hi, In 1.8.2, I have 2 functions that permits to : disable or enable a button of a dialog (ButtonDialogState). hide or show a button of a dialog (showButtonDialog) Working functions in 1.8.2 : function ButtonDialogState(sIDDialog,sLabel,bEnable){ $("#"+sIDDialog+" ~ .ui-dialog-buttonpane").children("button:contains('"+sLabel+"')").button((bEnable==true) ? "enable" : "disable" ); } function showButtonDialog(sIDDialog,sLabel,bvisible){ if(bvisible==true){ $("#"+sIDDialog+" ~ .ui-dialog-buttonpane").children("button:contains('"+sLabel+"')").show();
Attributes filters not always working when using a context
Hello all, I realized attributes filters do not work when a context is passed in some cases : $(span[style*='font-size: x-small'] > strong, context); Simpler selectors work (span[attribute] e.g.), so i came to the conclusion that it is the combination of a complex attribute filter and a context which is (sometimes) buggy. I also verified it is not because of changes in the DOM (the node exists and has the attribute). I am not sure why precisely it does not work in my case, but if it can help, here
Jquery object's context always is undefined
Hi Guys, I try to use jQuery( html, [ ownerDocument ] ) to create a element and get the jquery object. var $list = $('<ul class="list">'); console.log($list.context); // return undefined $('body').append($list); console.log($list.context); // return undefined But the jquery object's context is undefined. Even if I append it onto another element. So can anyone tell me how can I set the context to the jquery object? (Right now I just set the context as document manually... But I think it's not a good
String from Java Servlet to HTML via jQuery
Hey, I have some problems with jQuery: I want to generate dynamic html code via java serlvets. from the class LightServlet public void getAllLights(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException, InvalidSyntaxException { response.setContentType("text/xml"); PrintWriter out = response.getWriter(); out.println("<div><report>"); for (int x = 0; x < l.getLightAmount(); x++) {
.toggle disables links
I'm not sure wether this is how it's supposed to be or if one of the implementations is wrong, but here's the deal: Assuming #x and #y are links. $("#x").click(function() { $("#xi").show("fast"); });This results in #xi being displayed and the link being triggered, making you follow the link. $("#y").toggle(function() { $("#yi").show("fast"); }, function() { $("#yi").hide("fast"); });This results in #yi being displayed and the link not being triggered, you don't
"has" problem - speed...
".has('ul')" is much much much slower than ".filter(':has(ul)')". This seems counterintuitive. I've only tested this in IE7 and chrome, and the issue is much more pronounced in IE7. ====== ==IE7== ====== 3.313 seconds -- $li.has("ul"); 0.281 seconds -- $li.filter(":has(ul)"); ========== ==Chrome== ========== 0.152 seconds -- $li.has("ul"); 0.043 seconds -- $li.filter(":has(ul)"); Jquery version 1.4.2
jQuey Bug selector with Chrome and FireFox
Hi :) ( first, sorry for my poor english... :) i'm french user and try to write my best...) Here's my HTML code : ... <script type="text/javascript" SRC="../_inc/jquery.js"></script> <script type="text/javascript" SRC="./_inc/jqtemplate.js"></script> ... <body> <div class="cdrGlobal"> <div class="cdrHeader">header</div> <div class="cdrMain"> <div class="Colonne">colonne 1</div> <div class="Colonne">colonne 2</div> <div class="Colonne">colonne 3</div> <div class="Colonne">colonne 4</div> main </div>
jQuery UI Modal Dialog with Buttons inside. Issue with IE7.
So I am calling my dialog by: $edit.dialog({ modal: true, autoOpen: false, position: ['center','top'], height: 800, width: 1000, minHeight: 300, minWidth: 300 }); and my buttons by: $('.toolbar_button').button(); Everything is fine in FF3, but in IE7, when scrolling the dialog box, the buttons disappear and/or stay anchored and follow the scrolling. This is due to the "position: relative" css property that is given to it by calling
jQuery UI Demo does not work with Chrome
Hi, The Demo in Chrome 6.0.472.25 dev renders all the examples inoperable. It works in Firefox and Explorer with this url to my hard drive. file:///C:/jquery/development/demos/index.html#draggable|default But in Chrome no luck. See the attached screen capture "ChromeProblem.jpg. I tried to solve this months ago, and I discovered downlevel versions of Chrome worked. Which one?? I don't remember, but after upgrading Chrome the jQuery UI Demo always stopped working. I tried many different machines,
Problem with saving tab in cookie in jQuery tabs
Problem with saving tab in cookie in jQuery tabs
No overlay, just white div with 'False' when using modal dialog in ie6
Hi Everyone. I'm using the modal dialog within ie6 for an intranet application. When the dialog opens, instead of getting the expected translucent overlay, I get a white div with 'False' in the top left corner. I've attached a screenshot showing the problem. The code I am using to generate the dialog is as follows: dialog = $("#dialog").dialog( { bgiframe: true, autoOpen: false, closeOnEscape: true, height: 500, width: 400, modal: true }); Many thanks, EndProcess
AJAX with Firefox it works, with IE or SAFARI not
Hello, I've searched for more than 6 hours, but I can't find the problem. I hate it!!! I've written a code, which should get via AJAX the actual status of my file upload. In Firefox it works fine and the status grow up slowly. In IE for example, nothing happens... do you have any ideas? the first ajax (the get statement) works fine, i think the problem is ihte second one... this is my code (sorry the comments are in german) // Wenn das Dokument geladen ist $(document).ready(function(){
Problem using JQuery Validate with Chrom
Hi, I have a form that uses validate to confirm a checked checkbox before submitting. this works on IE and FF but not on Chrome. Other JQuerys are used on the page. Any idea why? <script type="text/javascript"> $.validator.setDefaults({ submitHandler: function() { $(form).submit(); } }); $().ready(function() { // validate signup form on keyup and submit $("#form-1").validate({ rules: { agree: "required" }, messages: { agree: "עליך לקבל את התנאים" } }); });
Using cookies makes Sortable crash
Hi. I'm using UI and sortable, and am now trying to use cookies to remember which pages are visible and not. I am using the following code: $('.expand').click(function() { var parentId = $(this).parent().attr("id"); var parentId = parentId.replace("page", "parent"); if ($('#' + parentId).is(":visible")) { $('#' + parentId).slideUp("fast", function() { $('#expand-' + parentId).attr("src", "images/sortable-expand.gif");
Scrolling does not work in dialog for IE 6
Using JQuery: 1.4.2 JQuery-UI: 1.8.2 Internet Explorer 6 When I have a long text in a dialog, scrollbar does not appear so a user can't see the whole text. Example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <link type="text/css" href="css/smoothness/jquery-ui-1.8.2.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
EmbedPicasaGallery plugin doesn't work in UI Tabs for IE and Safari
Hi! I have a webpage that uses EmbedPicasaGallery plugin to display Picasa albums. Everything works fine in Firefox, but Safari and Internet explorer simply doesn't run the plugin script. If I try plugin dirrectly without tabs, then everything is fine on all browsers. here is a link to my gallery http://www.sowhat.tk/#4
Setting Slider Range Option Misbehaving
I am developing a search form and am using jQUI sliders for many of the criteria. I wish to allow the user to select if they want to search for properties with "more", "less", or "exactly" the number of beds/baths they have selected using a buttonset. The buttonset's change behavior is described below: // Bathroom more/less/exactly behavior $('input[name="compare_baths"]').change(function () { switch ($(this).val()) { case '+': $('#slider_baths').slider('option', 'range',
TypeError: Object $ (result of expression $) does not allow calls. (Trouble getting basic jQuery working with my piece-of-crap Nokia E71x)
I'm getting this error: Here's a simplified demo: http://jsbin.com/emugo3 User Agent: NokiaE71x/ATT.03.28 Mozilla/5.0 SymbianOS/9.3; U; [en]; Series60/3.2; Profile/MIDP-2.1 Configuration/CLDC-1.1 AppleWebKit/413 (KHTML, like Gecko) Safari/413 I've tried googling this error and I've seen people with really old versions of Safari having the same issue, but I haven't seen a solution yet. Does anyone know anything I can try? Thanks. --Travis
Using Autocompletion() with Arrays that don't start at index 0
This is more of a gotcha than an error. I am using the autocompletion() UI widget on a form input field. The field is for a file name. I am dynamically generating the array for this field by looping over the file names in a specific directory. In my loop, initially I skipped any undesired names I loop over (ex. '.svn', 'thumbs.db', etc). Since these were there in my directory and were at the top of the list, my array started on index 2 instead of index 0. That caused the widget to throw an error
modal dialog keyboard disabled
jquery ui version 1.8.2 (also in 1.8.3) When using a jq ui modal dialog and google maps api V3 with a marker which contains a textarea, no keyboard input is accepted in the textarea. Any hints about how I could solve this? If I take off the modal state, it works as expected but thats not the functionality I want.
parseJSON with a string containing only a space
I'm using the jquery-ujs library with a Rails 3 project. Forms with a data-remote attribute get converted into an ajax request using ajax(). In jQuery's internals, the response from the server is passed to parseJSON() which, if the body is a whitespace only string, will raise a parser error. Rendering a response with `head(:ok)` will return a body containing only a single space and thus cause an error. I don't have any trouble making the fix with tests and submitting a pull request, but I'd like
jQuery.ajax triggers success callback on readyState=4,status=0
jQuery.ajax({ url: 'http://somewebsitethatdoesnotexist.com', success: function(){ console.log('yay') }, error: function(){ console.log('boo') } }) will print out 'yay' to the console. This is due to a workaround for opera in http://github.com/jquery/jquery/commit/c3c94823f27ee1e935586d46fd86f055f3a3d97d I'm not sure of the right way to fix it, but the most obvious hack is to: @@ -5158,7 +5158,7 @@ jQuery.extend({ return !xhr.status && location.protocol === "file:" ||
jQuery 1.4.2 Events handling and IE6
Geeting a JS error from IE 6 only in this method: handle: function( event ) { var all, handlers, namespaces, namespace, events; event = arguments[0] = jQuery.event.fix( event || window.event ); event.currentTarget = this; // Namespaced event handlers all = event.type.indexOf(".") < 0 && !event.exclusive; if ( !all ) { namespaces = event.type.split("."); event.type = namespaces.shift(); namespace = new RegExp("(^|\\.)"
draggable has premature stop in IE
I am working on an editor of sorts where portions of the document being edited can be moved around to other areas. These "blocks" move around fine in Firefox. In IE, however, we are getting a stop event in the draggable before the user lets up on the mouse, particularly when the user is dragging upwards. Here is a very stripped down version of our editor on JSBin: http://jsbin.com/uvayu3/35 We think it may have something to do with the fact that we move our placeholder out from under the helper
clone method causing Stack Overflow in IE under jQuery 1.4.2 (but not jQuery 1.3.2)
I have an application that is showing a stack overflow error in IE when moved from jQuery 1.3.2 to jQuery 1.4.2. The error occurs when calling the clone() method, passing in true to clone events with the element. I'm guessing that this is related to the change in 1.4 to clone data as well as events when passing in true to the clone() method. Is anyone familiar with this error and how I might be able to mitigate it? Thanks, Brian Dukes
Dynamic count of Tabs and a dynamic accordion in each of it
Hi, got some problems with a dynamic count of tabs and a dynamic accordion in each of it. My PHP gernerator does it somehow but the css styles from jqueryui doesn't work totally. The first accordion works fine but the others don't. Would be nice if someone has an idea. greetings from Germany, blacksh33p <link rel="stylesheet" type="text/css" href="css/dark-hive/jquery-ui.css"/> <link rel="stylesheet" type="text/css" href="css/screen.css"/ media="screen"> <script type="text/javascript" src="js/jquery.js"></script>
slideUp function doesn't work at onunload event. What is a problem?
Hi, I have some problem with onunload where I want slideUp my menu when I go out form site. I have the slideDown function fire at body onload and this function work properly. but the slideUp() at onunload not. Could anyone have any idea? My code: Copy code $(window).unload(function() { $('#menuContent1').slideUp(); alert('Handler for .unload() called.'); });and even the alert work. Only the jQuery slideUp not working.
basic selector compatablity between jquery 1.4.2 and 1.2.1
I am upgrading the jQuery version of my site from jquery 1.2.1 to 1.4.2. When using a basic id selector with an "empty" name throws a JavaScript error is thrown when using jQuery 1.4.2 but not when using jQuery 1.2.1 (see example and error below). example: $('#').addClass('current'); error: Error: uncaught exception: Syntax error, unrecognized expression: # I realize this is a JavaScript bug that should be re mediated but removing the "bad" line of js code but this has been generated onto hundreds
Custom themes will not download
I am having trouble downloading any custom theme that I create using themeroller on jqueryui.com the session just hangs and then gives up once the download button is pressed. this happens in ie 8 in windows 7 and Firefox 3.6 on OS X
Add { padding: 0.5em 1em; } to .ui-widget-header CSS
Please add something like { padding: 0.5em 1em; } to "ui-widget-header" CSS class to make widget headers look consistent with other headers and buttons.
option value=3 doesn't get appended
This has been a tricky one to figure out. I'm using jQuery to dynamically create some content, including some select boxes. To populate the select boxes I'm looping through a JSON object and as soon as I try to add an option that has a value of 3 it doesn't get added, but I'm not getting any errors either. Any Ideas? Function code is below, light red is the select portion, slightly darker red is the line where the option items are being appended. var $outcome = $('<div />').addClass('outcome').attr('id','o_'+outcome_id);
Autocomplete Displaying and Working Improperly
Hi, When trying to implement the autocomplete with combobox widget, I've had some problems. First the drop-down list of options displays in the top-left of the entire page, instead of right below the input. Here's an image of what I mean: The other error is taht when I actually submit the form, it doesn't submit the value that is actually displayed. If you need anything else from me (other screenshots, a live page, etc) let me know and I'll do my best to provide it. Thanks for the help. -Daniel Wright
Ajax Tabs Error in IE and Firefox
Hi guys, I` having problem with my ajax tabs.. sometime it works and sometimes it will give me an error.. of Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2) Timestamp: Sun, 1 Aug 2010 23:58:16 UTC Message: アクセスが拒否されました。 Line: 127 Char: 287 Code: 0 URI: http://domain.com/js/jquery-1.4.2.min.js and the ajax is not loaded.. or show Here is my code.. <script type="text/javascript" src="http://domain.com/js/jquery-1.4.2.min.js"></script>
Some issues with scroll() method.
Hi everyone, I have some problems with the scroll() methods and the css property overflow. I'm making a site with a special navigation, the width and the height of the document fit well your browser and you can access other pages with the arrows. So I set the css of the <body> to overflow: none; In Firefox there is no problems (I think with IE too), no scrollbar and no scrolling possible. Well, in Chromium (6) and Opera (10.60), you can scroll without the scrollbar, it's bad, very bad :'( So I tried
Sortbale bug?
javascript code: $(function(){ $(".cenrows").sortable({ connectWith: '.cenrows', change: function(event, ui){ alert(ui.item.parent().html()); } }); }); html code: <div class="cenrows" id="cloa"> <div class="mu_conn"> a </div> <div class="mu_conn"> b </div> <div class="mu_conn">
IE: $('<form>') don't works properly
Hi again! I have a new bug for jQuery :p ok, not is good :/ Well, is simple: if you make a <form> in IE, and don't close /> or </form>, this don't will be recognized :S Really, strange. In Chrome, Opera and Firefox works fine. Test: - Work in all: http://jsbin.com/akuye3/8 - Don't work in IE: http://jsbin.com/akuye3/9 What occur: - When you open the test page, will show an alert; - When you click in "CLICK HERE", will post page and show an alert again; In IE, the second case don't occur. See the
Script is not Clean!!!
jQuery 1.4.2 does not validate on JSlint and I don't have the time to sort these out myself. I pride myself on using 100% clean code and I can't finish JSE 8 until this is sorted out. Incidently for all of you who are wandering what's in the next version here's a summary: > More compact - less relient on global objects/values & other JavaScript files. > Regular Expression support in search terms. > Less table layout reliance. > Ajax Data / Settings support. > More future proof (HTML will no longer
Disable Autocomplete
Hi, i'm using jquery ui-autocomplete and I think that disable method doesn't work. When I called $('#input').autocomplete("disable"); autocomplete box has 0.35 opacity, but still work. Best regards. marrra
.class selector not working in IE6
Hello, I am unfortunately having some problems with JQuery of late. I am working on a project in which I need to have an AJAX application working in all major browsers, including IE6 and IE7. I have created a click event for a button of the class "update" and "delete" in which an ajax request will be sent to the server. Unfortunately in IE6 (and only IE6) the event will not fire. After much experimentation I realized that it was the class selector. Here are some code tests I have been doing to get
Tooltip 1.9m2 positioning
Using the Tooltip plugin as of jQueryUI 1.9m2, large tooltips are not positioned properly, at the top or bottom of the browser window. A test example demonstrates the issue: If the tooltip content is large enough, the tooltip scrolls off the browser screen, when the generating link is placed near the top or bottom of the window. Ideally the tooltip should be positioned so that the entire tooltip can be seen, instead of halfway off the screen. The clueTip plugin does a good job of positioning these
Next Page