Fix jQuery.ajax() errors in IE
Hi all, I thought it might be worth spreading the word about the solution of a strange problem in IE: All my jQuery.ajax() requests were kind of ignored in IE and didn't return any data. After debugging them I got a "parseerror" and a strange "Error c00ce56e" in my IE. This error code is related to an encoding error if using the UTF-8 charset. If you got a similar problem with your AJAX requests not returning any data, try out the following code to see if you also get the c00ce56e error code: $(document).ready(function()
jQuery and UI reference in chm format, always latest
I dump the raw xml API and parse it into html with DISQUS comments integration. If some one know how to dump the xml API of UI reference, please let me know. I'll pack it with jQuery API reference. Thanks Edit: I have added the UI api reference and fixed some minus bug, user experience enhances! The latest compiled chm would be here https://github.com/Yahasana/jqdoc-parser
The resizeend event
Hi guys, I was irritated how Firefox and Chrome fire the resize event multiple times while the user resizes the browser window, so I wrote a little script to deal with that... The issues... Firefox = if you resize the browser window using the "resize area" at the bottom right corner of the window, then the resize event will be fired every ~20ms for as long as you drag the corner of the window. Chrome = if you resize the browser window, the resize event will be fired twice !! Since I want to run some
Internet Explorer 9, jQuery and DivX
Hi all, Just to let you all know that when you are using IE9 and having problem with javascript execution (in this case jQuery) try to uninstall DivX and see if that help. I hope this help everyone.
This is ours side project
hi all I'm pleasure to have had a chance to contribute the code width my team, this is my project implement in my work last two years, only the close project, not release, thank for my team help, I had a chance to share my son and possessed the web. This project names component, it is client side MVC design with ajax and single page, reference for all, thank you http://jqcomp.org/
Saving current HTML code source to file
I'm new to js/jquery and this forum so please forgive my potentially off-scope js/jquery remarks. I've been running a lot of toggles to show, hide, etc... divs and other HTML elements. It's making my application incredibly nice navigation wise. Now to put myself in my users shoes. Say one user toggles on and off the things they want and don't want until they are satisfied with all the content of the screen. (That is by the way the nature of my application. A user loads in various variables via PHP
Other languages sub-forums
Would you create other sub forums for specific languages? My first speak language is Portuguese from Brazil and I participate in a Brazilian jQuery group with thousands members. It would be nice having a official jquery in pt_Br as well. Regards, Leo Balter - Web Developer @ Esporte Interativo
Animate using CSS3 instead of JavaScript
I'm converting a jQuery-based web application for use on mobile and need to make use of the hardware-accelerated performance of CSS3 animations. Ideally I'd like a plugin which overrides some of the basic animation (i.e. fade) functions to make use of CSS3. I've searched around but can't find anyone that has tackled this problem, so I'm considering writing a plugin myself. Any pointers appreciated. Thanks N
$(iframe).show() causes IE6 security prompt.
For IE6, If the "display" value of the IFRAME was set to "none", the $(iframe).show will cause IE6 security prompt poping out. The solution is using $(iframe).css("display","block") instead of $(iframe).show
Documentation as PDF for off-line reading
There really should be a PDF, or at least a single, huge HTML, version of the documentation so that one can save time by learning before using. On-line docs are good for detailed information on specifics. But they are no substitute for reading documentation beforehand, and really getting to know things. Any plans?
HTMLCollections and chaining
Quick question on the internals of jQuery and how it works with HTMLCollection objects and chaining. If I write... $('div').bind('click', function(i){...}).bind('focus', function(.){...}).yada(function(){...});...the HTMLCollection of divs is walked through for each method right? As interacting with HTMLCollections is costly, would there be an appreciable speed gain to practise a pattern such as the following whenever working with HTMLCollections? var $divs = $('div'), i = 0, singleDiv; for (;singleDiv =
Easy Fixed Header and Column Table
I spent the better part of the last couple of days trying to find a good plugin that supports fixed header and column in a table. There are several out there that look like they have gone stale (no recent updates). Most of them are reliant on a fixed table size and/or fixed column widths. Without a lot of work, none were perfect in lining up columns and headers for scrolling and all made use of multiple cropped tables to fix the columns and headers. All of this was too much work for a small
exercises together with arrows
Hello friends! I would make an educational website with exercises together with arrows. What I do is something like this but in html5 http://www.juegos.educ.ar/matematica/165-unir-con-flechas.html I'm a little lost and a little rusty with javascript. Anyone can help me to address this issue with jquery or any book that can help me with these concepts. thank you very much friends! PD: Sorry for my English.
Using jQuery with C#
SharpKit has an open-source C# interface into native jQuery So any C# developers among you guys might find it helpful for getting to know jQuery, and use jQuery in a more familiar environment. The code is open-source and well-documented using xml documentation. Check it out, it's available here: http://code.google.com/p/sharpkit/source/browse/#svn/trunk/SharpKit.jQuery SharpKit compiler enables C# developers to use this code in order to generate proper JavaScript using only C#. The compiler is free
jQuery properties that mimic DOM properties
One of the most common errors I see among new jQuery programmers is trying to access or assign DOM properties on jQuery objects. For instance, today on StackOverflow I saw this: $('input', this).checked = true; Except in the cases where the DOM property has the same name as a jQuery method, it seems like it should be possible to implement this using Javascript getters and setters.
html5 WebSockets
Saw rarely information about this feature on the internet, either missing or non-working. I think it is best to implement into the already great jQuery.
Simple file download for generated output
Hi all, Posted this as an idea proposal, not sure if that's right, basically it's a solution to a problem I had so I'm giving the code away. I found I needed to interrogate a database and save the output as a text file on the users PC. Now I could have dumped the output into a temporary file and given the user a link, but I'm lazy and didn't want the housekeeping work of tidying server files up later. If I just submitted a form and the server generated an error instead of a download then handling
Syncronize the order of variables returned by $.ajax.fail(), $.ajax.done(), and $.ajax.always()
1) Syncronize the order of variables returned by $.ajax.fail(), $.ajax.done(), and $.ajax.always(). - the reason for this is mostly to do with using the .always() callback. It's hard to tell when to treat it as a success vs a failure. There should always be a variable that contains the response from the server because even in a failure the response is useful for debugging. 2) The jqXHR object should contain a Boolean property that shows weather the response would invoke fail() vs done(). This
web-based mp3 upload + bitrate converter?
Anyone ever heard of something like this? I'm looking at expanding an in-game jukebox system for source-based games (CS:S, TF2, L4D, etc) and i have all of selecting and playing bits put together. but at the moment, if i want to add a song, i have to manually change the bitrate to soemthing a little less bandwidth heavy, and then upload via ftp I know putting together an upload system wouldnt take much, but i was curious if any of you have heard of a javascript or other web script that will convert
jQuery Watermark (light text hint over input fields)
What is Watermark? You have seen it in many websites! A watermark typically appears as light text within an input or textarea element whenever the element is empty and does not have focus. This provides a hint to the user as to what the input or textarea element is used for, or the type of input that is required. (Some watermarks such as this one can show the watermark as long as the first character is not entered). Those gray tips in below example are called watermarks This plugin is designed to
Show ver. on api.jquery.com?
I think a useful addition to the already mind-blowing api.jquery.com could be to show the current release somewhere subtle (i.e. mirror p.jq-version on jquery.com). Maybe in div#jq-interiorNavigation? Could link to homepage for easy download.
Another jQuery API Documentation
Here's another interesting jQuery API browser , built with jQuery... (Works on all modern browsers, except Firefox 3.6.) See here for documentation... Your comments?
A Tree which can be filtered or searched....
Hi, Has this been implemented using JQuery? : http://www.extjs.com/explorer/#filtertree It seems an extremely sleek and useful feature to allow searching and filtering a tree in this way. I will be greateful if someone can point me to a Jquery or other open source implementation Thanks, rkb
a little JSON content validation in globalEval
The SHOUTcast 2.0 API has an issue where sometimes requests for JSON come back as XML. By adding a couple lines of code to jQuery 1.5.1 I was able to properly deal with this by throwing an error instead of having a runtime error. I thought this may be useful for someone experiencing similar weirdness. Line 54 in jquery-1.5.1.js: // JSON RegExp rvalidfirstchar = /^(\[|{)+/, ... Around line 588 in jquery-1.5.1.js: // Evaluates a script in a global context globalEval: function( data ) { if ( data
Writing a jQuery bookmarklet
Hey guys, I've just posted a new article on my blog which describes how I recently went about developing a bookmarklet in jQuery. Please have a look, comment, and share if you like it! Thanks, John. http://johnhamelink.com
jQMobile re-positions popup every time when Android opens own virtual keyboard - I can't input anything
Actually this is a problem. But it can be a new idea. I could be wrong but I think there should be an option to disable handleWindowResize or it can run manually. Through this way, we can allow to overlap the popup with the virtual keyboard. So we can use popup like a simple div. _handleWindowResize: function(/* theEvent */) { if ( this._isOpen && this._ignoreResizeTo === 0 ) { if ( ( this._expectResizeEvent() || this._orientationchangeInProgress ) && !this._ui.container.hasClass( "ui-popup-hidden"
picture fade with tiles
I am looking for an extension to the innerfade plug in, where I can display small versions of the 4 rotating pictures under the main picture, so that the smaller pic is highlighted when the main one shows - similar to that on http://www.tottenhamhotspur.com. Is there anything out there that would do this?
jQuery Online User Group
I have started a jQuery online user group . This is a place to meet monthly to learn, share and promote jQuery, jQuery expertise and unique and interesting uses of jQuery. The group will be hosted on Yamisee and held monthly. I'll be looking for topics and speakers for each session. You can contact me on info at mercatus3 dot com if you are interested in leading a session. There is a nominal fee ($3.99) which just covers the cost of the online room and will decrease if we have regular sustained participation
Bind to all namespaces of custom jquery event
I would like a way to bind to all namespaces of an event or effectively ignore that the event is namespaced. $('#test').on('custom', function(){ ... }); $('#test').trigger('custom.namespace1'); $('#test').trigger('custom.namespace2'); The fired event of 'custom' will not be caught because it is namespaced. Something like binding to custom.* would be very useful in order to bind to all events of type custom, regardless of namespace. Stackoverflow thread that prompted this post: http://stackoverflow.com/questions/12590231/bind-to-all-namespaces-of-custom-jquery-event
Howto: get a hold of jQuery 1.4.1-vsdoc for Visual Studio
Step by step: http://www.morningz.com/2010/how-to-get-jquery-1-4-1-vsdoc/ If you're in a bind and can't get through those steps, feel free to email me (my username @ my username .com) and I'll shoot you a copy of jquery-1.4.1-vsdoc.js - Stephen ** Edit: aw heck, I can just attach the file in ".txt" form right to this post, nice ** ** Edit, take 2: guess it's up on Microsoft's CDN now: http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js ** ============================================ "If
Error for load DropDownList
i have problem in my code for load one dropdown list. my code is down. function TrazComarcaSelec(tribunal) { //alert("Função Chamada" + tribunal); var url = "ajaxTrazComarca.asp?trn=" + tribunal; try { // alert(url); $.get(url, function(xml) { // alert("Função sendo executada"); $("#loadCom").show('show'); var xml2 = $("tribunais", xml); var com = $("#ComarcaBB"); com.empty(); xml2.find("Comarcas").each(function()
more options for dialog
hi, I 'd like an option like "title-bar: false" for dialog, is that possible? Regards.
quicksearch plug-in
Hi guys, Just thought I'd let you know that I've completely revamped my jQuery plug-in, quicksearch. There's some example pages up here: http://lomalogue.com/jquery/quicksearch/ http://lomalogue.com/jquery/quicksearch/super_table.html And there's more information on Github: http://github.com/riklomas/quicksearch/ Any comments would be greatly received! Rik
Finally a way to track/debug jQuery events in most browsers.
There is a new project that provides a way to track triggering of events and event handlers. https://github.com/intervalia/triggerTracker Use triggerTracker to see what is being triggered and what function is handling the event.
swfobject with <embed> tag.
A couple of the people I work with have trouble using the swfobject script, I think javascript just intimidates them or something. So I wrote a simple little jquery script that automatically converts an <embed> tag into a swfobject embed. This probably would have been more useful 2-3 years ago when the active x issue was a big deal, but I figured it could still be useful for some people. Here's the code: $(document).ready(function(){ $("embed.flash").each(function(){ $.divTarget = $(this).attr("target");
JQuery UI Tabs documentation (my slider, Google Map, sIFR etc. not work when placed in a hidden tab)
Hi everybody Is there a special place, where to discuss the documentation of JQuery? Because I had recently an issue with the JQuery UI Tabs. I needed to hide the inactive tabs without "display:none". But when I used the resolution here: http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_work_when_placed_in_a_hidden_.28inactive.29_tab.3F Then I got some issues with white space of the page. So I would suggest this solution: .ui-tabs .ui-tabs-hide { position: absolute;
Form to upload images, input text and submit to designated titles
Hello everyone, I am interested to know if it is possible to create a jQuery plugin to do the following: Sign up/Sign in (using Facebook, Twitter, etc...) Open a form with multiple options, including: Upload image (resized to thumbnail and linked to open larger image) Enter title using drop menu (Country name, location, etc.) Enter description of image (140 characters or less) User star rating Submit User then submits form and the data gets transferred under specific country or region title. Maybe
.data() Optionally Update HTML5 Attribute
As it is now, the .data() function retrieves the data from HTML5 data-* attributes when the page loads. When data is set using the function, the DOM attribute is not updated, for efficiency. If you want the attribute to be updated as well, you have to then pass the same data to .attr() . .data( key, value, updateAttr ) What I am proposing is an optional third argument (second in the .data( obj ) signature), updateAttr . It would be a Boolean (defaulting to false ). When true , .data() would also
jQuery 1.x and 2.x detecting browser with PHP
<!doctype html> <html> <head> <meta charset="utf-8"> <?php // JQuery 1.x and 2.x URLs $jQuery1 = 'jquery-1.11.2.min.js'; $jQuery2 = 'jquery-2.1.1.min.js'; // Default $jQuery = $jQuery2; // User Agent $arr = explode(' ',mb_strtolower(str_replace(array('.','/'),' ',$_SERVER['HTTP_USER_AGENT']), 'UTF-8')); for($i=0; $i < count($arr); $i++){ if($arr[$i] == "msie"){ // Internet Explorer ? if($arr[$i+1] <= 8){ // <= 8 version ? $jQuery = $jQuery1; // Jquery 1.x } } } // Print echo '<script src="'.$jQuery.'"><script>';
Customizing the Drop down list
Hi Guys, I am not sure if a solution for this exists or all but all my searches in the google and here have gone in vain. Also, I am not sure if this can be solved by CSS itself or we need to simulate it in javascript. So, I thought of asking it both the CSS and Javascript forums. I have a form and I want to have a stylish drop down box and arrow. This is what it should look like: Now, I have implemented rounded corner input boxes but not a drop down list. Also, I am not sure about the rounded drop
Next Page