[jQuery] Some problems with jQuery BlockUI Plugin
I found some problems in jquery blockui plugin, I don't know whether it is my fault or the plugin's. You see the code below: <html> <script type="text/javascript" src="js/jquery-nightly.js"></script> <script type="text/javascript" src="js/jquery.blockUI.js"></script> <script type="text/javascript"> function block() { $('#waitting').show(); $.blockUI({ message:$('#waitting'), css: { cursor: 'auto' } }) } function unblock() { $.unblockUI(); $('#waitting').hide(); } </script> <body> <button onclick="block()"> OK </button>
[jQuery] Making normal functions work with jQuery
I have two functions that convert an ISO date into whatever date format I want. Currently I am using a document.write statement to write out each date, but I don't want to do that anymore. I want to make it unobtrusive, and have jquery find a class selector, and replace the content. So, my question is, how can I combine my functions that I already have created, and have it work with jQuery, so that it can look for a specific class, which contains the ISO date, and replace that? Date.prototype.customFormat=function(formatString){
[jQuery] Reading http headers out of an ajax response
Hi all, I know that jquery's ajax calls set the X-Requested-With header to 'XMLHttpRequest' for ajax requests, making it really easy for the server side to detect them. Is there any way for jquery to read the http headers out an ajax response back from the server? I can see the ones I'm interested in in the firebug console, but when I dump the XMLHttpRequest object out from inside my ajax complete method, I don't see them anywhere. Does jquery provide any tools for this? Is it possible at all in
[jQuery] jQuery allow encoding into json?
could not find a function for it. Will be creating a complicated js object on client side. Want to encode that object into json, and stuff the value into a hidden form field for POST. anybody help a nubie?
[jQuery] jquery-1.2.6.pack.js broken?
Attempting to use jquery-1.2.6.pack.js linked from http://docs.jquery.com/Downloading_jQuery resulted in a lot of "$ is not defined" errors for me. The good news is using http://dean.edwards.name/packer/ to pack the uncompressed version ( jquery-1.2.6.js ) worked nicely. Perhaps a problem with the published packed version? Cheers Ollie
[jQuery] Trying to write a MacFF2 Transparency Fix - Need help with .version
Here is my code: // Mac FireFox 2 Transparent Background Fix if ($.browser.mozilla && (browser.version < 3.0)) { $(function(){ alert('This is FireFox 2!'); $('body').css('background', 'red'); }); } I think that .version is blowing up the script. Can someone help me with what I am doing? Lemme know what I missed. Thanks. Dave
[jQuery] help with array for flot
I'm playing with the flot plugin (http://code.google.com/p/flot/) and need a little help I want to take data from a series of text inputs (Quantity/Price pairs) and plot them when a button is clicked. I just don't understand enough about javascript and arrays to know how to make an array from the inputs (I suspect it's simple) I have this test page, which uses a hardcoded array to draw the graph: http://www.monkeypuzzle.net/testfiles/jquery/flot/flot-test-1.htm How do I get from: <table>
[jQuery] IE6 secure nonsecure warning
Has anyone else noticed this on a site that uses jQuery or a jQuery plugin? IE7 and Firefox don't seem to complain, but IE6 does.
[jQuery] clueTip issue with jqueryUI
Hi, clueTips don't work with dialogs in jQueryUI. I just get regular title when I hover over the links. The code I am using for this is : HTML ================================ <div id="new_a_poll" class="flora" title="Edit Attendance Survey Settings"> <?php print T_('seconds');?>* <a href="#" onclick="return false;" class="tp_tooltip" title="|<?php print "SECONDS !!! YES SECONDS !!!";?>"><img src="../templates/images/help.gif" border="0"></a><BR /> <?php print T_('Play audio
[jQuery] Calendar Over Dialog
Does anyone know if there is any combination of plugins that would allow me to use a calendar control from inside a dialog? I have tried all combinations of jQuery UI dialog and calendar, BlockUI, and jQuery datePicker. The problem is, I guess, these calendars actually *are* modal dialogs too, and they do not know how to go over top of an already active dialog. Therefore they appear "underneath" the active dialog where the user cannot see them.
[jQuery] jQuery v1.2.6 is now Officially Released and Release Notes are Available
jQuery v1.2.6 is now official and release notes have been posted: http://docs.jquery.com/Release:jQuery_1.2.6 The biggest changes are improvements in performance, especially event handling, which is now 103% faster. Also, the Dimensions plugin is now part of core. The remaining methods of the Dimensions plugin, by Brandon Aaron, have been introduced into jQuery core, along with additional bug fixes and performance improvements. This plugin has seen considerable use amongst developers and plugin authors
[jQuery] Event propagation and anchors
This is my first post here, so hello to all subscribers! I have googled a bit for my problem, but didn't find exact answer to my problem, or I do not understand event propagation enough. The situation looks like this: I have a nested list: <ul class="someclass"> <li>1 Position... <a href="mailto:someone@somewhere">e-mail</a></ li> <li>2 Nested position <ul class="nested"> <li>1.1 Position... <a href="mailto:someone2@somewhere2">e- mail</a></li> ... </ul> </li> </ul> There's an event (click; toggle,
[jQuery] Handling errors when ajax returns html
[Apologies if this shows up twice; didn't see it after 5 hours+, sending again] I have some server-side code that responds to certain ajax requests by returning the html of new rows to insert into an existing table. This works really well, but I've been thinking about ways to handle "errors" on the server side. By "errors" I mean both actual bugs, and business rule violations that mean you can't save a record (for instance). Prior ajax apps I've done have returned xml data that gets rendered by the
[jQuery] Tooltip
Hello, I am using tooltip 1.2. There is one strange behaviour. And since now i didn't find out how to avoid. Moving over a input-field the tooltip is shown as wanted. But when the mouse is dragged accidently into the input field the tooltip remains highlighted and follows the mouse over the whole screen. Only when another Tooltip is activated the 'wrong' tooltip lowlights again. Maybe you know a solution? REgards Boris
No events for requested content
Hi. How can I set events to objects, which where called with ajax? Thanks for help!
[jQuery] jQuery 1.2.6, jqModal, IE6
Hi there. I'm using jqModal and the IE ActiveX started bleeding when I switched to the latest jQuery (1.2.6) It was ok with 1.2.3. Any ideas or confirmations?
[jQuery] Tooltip
Hello all, I was looking at tooltip examples in Tooltip plugin and just saw all examples where it makes the tooltip based off the title attribute. I was wondering if there were any other solutions? i was using a prototype based solution seen here http://blog.innerewut.de/files/tooltip/demo.html, where the tooltip is whatever you want it to be. So that div is hidden until hover over something else, so you would provide the id of the element to hover over, and the id of the tooltip that is shown after
[jQuery] Photoshop to CSS code generator uses jQuery
Hi All - I've implemented an online tool that takes PSD files from Photoshop or Gimp and generates CSS/XHTML web pages automatically. It takes hints from the layer names in the PSD file and generates jQuery code to make all sorts of dynamic things happen (image roll overs, drop down and fly out menus, etc. coming soon are tooltips, a simple ajax implementation, etc. ). All the dynamic stuff uses jQuery as the engine. I was hoping that you all might take a look and offer suggestions about how to improve
[jQuery] Troubles with tablesorter plugin using custom parser and colspanned headers
Greetings, I'm working on a reporting system for a financial institution, so my first thought was to use tablesorter. However, one of the columns consist of img tags that show stars, and the column needs to be sorted by the number of 'stars' being shown. Since I doubt there's a custom 'stars' parser type, I decided to write my own parser that splits by the tag, and counts up the .length of the split and uses that as a value. I tested this, and much to my happiness, it worked! Then, after reviewing
[jQuery] [autocomplete] JSON response
I am getting JSON response(string format) from the URL to which I am sending request. I want to use the methods formatResult to format the result. $("#month").autocomplete("Search.php", { minChars: 0, max: 12, autoFill: true, mustMatch: true, matchContains: false, scrollHeight: 220, formatItem: function(data, i, total) { if ( data[0] == months[new Date().getMonth()] ) return false; return data[0]; } }); Here, the Search.php will return a JSON (string format). But this plugin is looking for "|" symbols
More IE-JQuery conflicts?
Hi again, I'm back with my problem: I need develop an animated contents tree. Well I don't want to do something with just hide() or show() effects (well, before to know JQuery I made a lot of them with my own libraries), the question is I want to do something with a web 2.0 taste. OK, I redo my work and I develop another JS script just for IE (you can try it in here: http://www.video-oposiciones.com/privad ... idosIE.php) it works nice there but when I put it inside the intranet when it finally must
[jQuery] jQuery cycle plugin crash in IE7
I have a portfolio page with multiple slideshows (there are four tabs and each tab displays a different slideshow). All is well in Mozilla, but after a couple of clicks to change the tabs in IE, it chrashes. I have tried placing the code in the body of HTML, but still get the same crash!! Would appreciate some help with this issue! Here is my jQuery code: HEAD code: <SCRIPT type="text/javascript"> $(function() { $('ul.pics').cycle({ fx: 'fade', pause: 1 }); }); </SCRIPT>
[jQuery] markReadOnly
Hello. I'm trying to make inputs readonly on click event. At the moment I'm using the inelegant onClick="markReadOnly('name')" Does anyone know how I can implement this with in jQuery?
[jQuery] Hide/Close div when clicked outside of it.
Hi All, I am showing a div on click of a hyperlink. Now, when i click elsewhere in the document other than the div itself, then i want to hide the showing div... Is there any easy way to do this? I've already try: $('html').click(function() { $('#divLoginBox1').hide(); }); and $('body').click(function() { $('#divLoginBox1').hide(); }); but this close div when clicked inside of it. Thanks, Alex
[jQuery] Problem when trying to copy the home page design of Msn Video site
This is the msn video site: http://video.msn.com/ On the home page, we can see some small preview pictures of videos.When we move the cursor over it, the picture will disappear, and some description text about the video will show up and replace the area of the original picture. When we move the cursor out of it, the picture is back again. I am trying to imitate exactly this effect. I use both of the onmouseover and onmouseout events to do that job, and it looks just as it is the real site of msn
markReadOnly
Hello. I'm trying to make inputs readonly on click event. At the moment I'm using the inelegant onClick="markReadOnly('name')" Does anyone know how I can implement this with in jQuery? Thanks, Neil
[jQuery] Refactoring Functions
I wanted a script that would make a sticky footer, and it worked perfectly with this (where 341 is the elements to offset). var height = $(document).height(); var height = height - 341; $('#footer').css('margin-top', height); Then I want this code to re-run on browser resize. I also want to refactor the code above to use a second time. The problem is that (1) it doesn't re-run on browser resize and (2) I don't want to duplicate code. How can I refactor? var height = $(document).height(); var height
[jQuery] Collecting info on sites using jquery.
Hi All, I have been using jQuery now more then 6 months. It is amazing. Although as a Java Programmer I found it very difficult to turn my head around, and start using prototypal inheritance and all the Javascript stuff. I have checked in many Frameworks, and jQuery seemed to be the least verbose and most expressing. which was a major point when we went for jQuery. There is clear documentation how to develop plugins, also due to the YUI theatre there are plenty of info on Javascript itself as well.
[jQuery] $ cycle plugin crash: IE7.0.5730.13 crash - dxtrans.dll
I have a portfolio page with multiple slideshows (there are four tabs and each tab displays a different slideshow). All is well in Mozilla, but after a couple of clicks to change the tabs in IE, it chrashes. I have tried placing the code in the body of HTML, but still get the same crash!! Would appreciate some help in this matter! Here is my jQuery code: HEAD code: <SCRIPT type="text/javascript"> $(function() { $('ul.pics').cycle({ fx: 'fade', pause: 1 }); }); </SCRIPT>
[jQuery] Creating and manually firing events
Hi, var myButton = dojo.byId('mybutton'); var evObjclick = document.createEvent('MouseEvents'); evObjclick.initMouseEvent( 'click', true, true, null, 0, 27, 53, 27,53, false, false, false, false, 0, null ); myButton.dispatchEvent(evObjclick); I'm looking for a cross-browser solution to the above vanilla js, which works in FF but not IE. Can you do this using jquery ? Thanks
[jQuery] Add/remove class in Collapsor
Hi can anyone help? I've just downloaded the jQuery Collapsor demo (http:// plugins.jquery.com/project/collapsor) for use on a navigation system. I'm still a newbie with js and was wondering if anyone can point me in the right direction of how to add/remove a class to the trigger element (in this case a ul li). Basically in it's unopened state, i want to display a triangle pointing th the side, and then once clicked on, i want to display a triangle pointing downwards - i just need to be able to add/remove
[jQuery] jQuery + jCarousel Picture Gallery working fine in Firefox but not in IE
Hi, I'm trying to make a picture gallery using jCarousel ( http://sorgalla.com/projects/jcarousel/ ) and other jQuery features, powered by Perl/CGI and XML at the backend. The initial version of the gallery at http://gallery.naveeng.com/trek.html is working fine in both FF and IE. Clicking a thumbnail on the left scroller loads the corresponding image via jQuery in the main image area, while the previous, next buttons are also fine. I wrote a comments feature which enables a user to comment on individual
[jQuery] Calling ajax onload and image problems in IE6
I am using this technique for the onload problem specified here: http://blog.outofhanwell.com/2006/06/08/the-windowonload-problem-revisited/ I have an script element defined like this: <script defer src="/js/ie_onload.js"></script> The script file simply calls an method called init. In the init method I am making an ajax call like this: $.ajax({type: "POST", url: urlToCall, data: postData, success: successCallBack, complete: function(){ stopWorking(); $('#working').hide(); }, beforeSend: function(xhr){
[jQuery] [validate]
Hi, Is it possible for Validate to stop on the first error it encounters? I would like to display one error at a time, rather than all errors found. Thanks, Michael
page hangs
on our quiz pages clicking through the pages, just stops and hangs for ages, i am testing on an old pc here is the page: [url] http://www.avert.org/sex-quiz.php[/url] here is the code <script language="JavaScript" type="text/javascript" src="applications/quiz_app/js/jquery.js"></script> <script language="JavaScript" type="text/javascript" src="applications/quiz_app/js/quizzes.js"></script> <link rel='stylesheet' type='text/css' media='screen' href='/applications/quiz_app/css/online-quiz.css' /> <script
[jQuery] UI sortables problem
Please visit the URL below and let me know if there is any problem in using the jQuery UI sortables. http://tech-test.tutorialsforu.com/
[jQuery] Drag and Drop of Gadgets
Can I use sortables for div's that contains iFrames (Shindig gadgets)? that doesn't need refresh of iFrame? Inside that iFrame, I have placed a alert, and each time I drag it, I will get two alerts. Is there any way of not using a proxy element?
[jQuery] JQuery
www.freeservice6.blogspot.com
[jQuery] pausing a link and resuming its normal behavior
If I click a link, I want to trigger a modal, and based on a response from the modal, I either want to cancel the link click or make the link be followed. Has anyone done this sort of thing or know how to accomplish it?
[jQuery] jquery.flash error
I'm getting the error: block.call is not a function in line 95 of jquery.flash.js, as reported by firebug here's my javascript code: $('#portal').flash( { src: '"http://www.akbar.net/media/portal.swf', base: "http://akbar.net/path/file/", width: 600, height: 450, flashvars: { file: 'wudif', username: 'imran' } }, { version: 8 }, { expressInstall: true } ); html: <div id="portal">You need to install flash</div> suggestions/ideas? thanks
Next Page