[jQuery] Sync response in ajax forms
Is it possible to display response from ajax script.... err something like this: I call ajax.php and usually i takes few seconds to finish, and I would like to update 'target' with something like text progressbar. Finding solution.... Coumputing infinity... Talking with God... Done. Currently this response is shown all at once after script finish.
[jQuery] Superfish - Bug with fix
There is an issue in the comparison of the computed string lengths and the min and max values because they are being compared as string instead of floats. The following code needs to be change from... if (emWidth > o.maxWidth) { emWidth = o.maxWidth; } else if (emWidth < o.minWidth) { emWidth = o.minWidth; } to... if ((emWidth * 1) > (o.maxWidth * 1)) { emWidth = o.maxWidth; } else if ((emWidth * 1) < (o.minWidth * 1)) { emWidth = o.minWidth; } Works great with that fix. Thanks
[jQuery] [autocomplete] Fire up on field focus
Hi, on the autocomplete demo-page I've noticed many examples that set "minChars" option to "0", giving the impression that they will fire up as soon as each input field gets the focus. However, they don't, and I have to type in at least one character to get the autocompletion working. Now, since I'd really need to autocomplete fields when they get focus, I'm wondering if I can get this in any way. Is autocomplete expected to support this feature at any time in the future? If autocomplete doesn't
using hide() and show() for navigation
I am working on a site where I have tabs that control which div is shown. The jQuery I am using to do this is: <script language="javascript" type="text/javascript"> $(function() { $('#go-home').click(function() { $('#calendar').hide(); $('#photos').hide(); $('#files').hide(); $('#home').show(); return false; }); $('go-calendar').click(function() { $('#home').hide();
[jQuery] [tooltip]
Hi, im using your jquery tooltip although I have a question about doing something bespoke I call the code to my page via $(function() { $('a,div,span,img,td,input').tooltip({ etc..... Which works fine, however, if using ajax I populate a div with external content, any title tags from the ajax request do not have the tooltip function applied to it I thought I had found a way around it by recalling $(function() { $('a,div,span,img,td,input').tooltip({ etc..... That works for the new content
[jQuery] [autocomplete] onselect handler
Hey guys, here I'm again. Is there a way to associate a callback function with the select event of an autocomplete? I want to do something like this: on select item from autocomplete, set the value of field x and hide div xpto. I looked at the format* callbacks, but it won't work in my case. Any tip? Thanks<br clear="all"> -- <a href="http://plentz.org">http://plentz.org</a>
[jQuery] .draggableDisable vs .draggable('disable') ?
Hello, I've got the jQuery in Action book and it talks about .draggableDisable() but it doesn't disable the dragging in my code... I can only get it to work with .draggable('disable') Am I missing something? Thanks...
[jQuery] $.post problem
Hi, I' m using $.post in this form: $.post("rpc.php",{data:data},function (result){$('.aDiv').html(result);}); Basically i' m searching inside a database and the results are echoed from rpc.php in this form: <ul><li class="aClass"><a href="#">Some text</a></li>...........</ ul> . Everything works fine except that the links don't work. So if i use something like:$(".aClass").each(function(){ $(this).find('a').click(function{ bla bla bla }); }); it won't work. How can i make them work? Thanks in advance.
Stuck on AJAX Chained Select Boxes
I've been trying to work on a page that is a mix of my own coding and someone else's (yeah, first mistake, I know). At this point I'm totally stuck. The intention is to have 3 select boxes side by side, with the second and third chained to load their data from the db only after the previous one has been selected. I'm pretty sure I've made somewhere near a million mistakes at this point.. So any help at all is very much appreciated. <?php session_start(); // Include MySQL class require_once('../inc/mysql.class.php');
[jQuery] Catch "generic" events
Hi, in my code I use typically something like this to catch events in DOM elements: $wnd.$(document).bind('click', function(event) {...} $wnd.$(document).bind('mouseover', function(event) {...} $wnd.$(document).bind('mouseout', function(event) {...} etc. is it possible instead catch a "generic" event and delegate externally management? For example: $wnd.$(document).bind(function(type, event) { // where type is a "string" for 'click' or 'mouseover', etc. } Thanks, Julio
[jQuery] Which attributes of a file input pass to a .php or .aspx using $.getJSON() ?
Hi all, i'm using jQuery to pass a file to a .php or .aspx page using $.getJSON() function. My problem is: how can i pass all the input file data to that page? Which attributes of the input file have i to pass? I think that i have to pass the name of the file ( and here ok, i can get it with .attr('value') ), than the real data of the file input, and this is the real problem couse i don't know how to retrive it... Can someone help me giving me some answer, hints or tutorials?
[jQuery] Using Ajax with Redirects
I have some content that loads in a dialog popup via ajax. For some reason when the URL redirects (i.e. 301, 302, etc.), the content never loads in the dialog. Is this normal behavior for ajax, or should the redirected content load? Thanks. <a href="url_that_redirects" class="myDialog">do something</a> $(".myDialog").click(function() { $(this).openDialog(); }); $.fn.openDialog = function () { var url = $(this).attr("href"); popup = $(this).dialog(); $.ajax( { url: url, success: function(message)
[jQuery] Animate children of element?
What I have is a simple series of divs, and in the divs I have a few items of content, here's an example: <div class="block in-focus"> <h3>Corporate Responsibility</h3> <img src="place1.png" width="133" height="95"> Lorem ipsum dolor sit amet. Sit amo mortus amorte. </div> Now I have CSS tied to the container CSS. So the h3, p, and img all look slightly different if the "in-focus" is present or not. If I run a standard: $(".in-focus").removeClass("in-focus",500); I can see it resize the container,
Ajax, Jquery, & being converted to &
I believe this is the reason my script is not working on a live linux server. jQuery.post("{/literal}{$base_link}do=administer&act=gametypes{literal}", {'mode': 'reorder', 'ids': jQuery.tableDnD.serialize()}); Btw, its a smarty template too. Anyway, comes out on linux looking like, jQuery.post("modules.php?name=Clan_Manager&do=administer&act=gametypes", {'mode': 'reorder', 'ids': jQuery.tableDnD.serialize()}); On Windows, jQuery.post("modules.php?name=Clan_Manager&do=administer&act=gametypes",
Navigating trough image
Hey, does anyone know (or have) a script that does the following: I have a big image. I want to zoom in on the image (fixed zoomlevel, only a small part of the image is visible). Then when I hover over the image with the mouse its scrolls trough the image in the direction of the mouse (so when the mouse is in the middle of the image nothing happens). As an extra: I'd like to have some markers (directives) on/over the image, when the marker is not in the visible area it should show a label with an
[jQuery] Anyone have jQuery emulation of box-sizing: border-box for IE?
I've searched around a bit. I can't find any jQuery script/plugin to emulate box-sizing: border-box on IE. Border-box is fantastic for form fields: .input { width: 100%; -moz-box-sizing: border-box; /* plus other vend-specific ones */ padding: 5px; } The inputs still take up 100% width but gain 5px in padding. Any hints to get this working on IE? I know IE7.js or IE8.js do this, but I'd rather not introduce yet *another* .js file when I'm already loading down on my site with jquery.js.
[jQuery] jCarousel Flickr API /.I VANT THE FULL LIST BUT HOW??(All items not in the visible range are removed from the list to keep the list small.)
jCarousel Flickr API /.I VANT THE FULL LIST BUT HOW??(All items not in the visible range are removed from the list to keep the list small.) SOMEBODIE CAN HELP ME OUT PLESE NWITH A WERSION OF THIS SCRIPT WITHOUT REMOVING THE NOT VISISBLE PARTS... I NEED THE FULL LIST... "All items not in the visible range are removed from the list to keep the list small" VEL I NEED THE FULL LIST AND I DONT VANA MAKE REQUEST ON EACH KLICK... CAN BE DONE? PLEASE IF U HAWE ANI IDEA .. EMAIL ME ! rg.rg@live.com thanx
Help with validation plugin
Hi!, i'm using validation plugin, but i have issues when i want to use it... The problem/question is how to use this plugin with asp.net controls.. i mean that all the examples that i've found, there are for input's of type text, and submit's buttons... but i would like yo know how to use it with asp:TextBoxes or asp:ImagesButtons... because i cant use it in my aspx page... thanks a lot!
507 Insufficient Storage using load() in Firefox
Hello, I get this error when I run my page on Firefox. Everything is fine in MSIE6 or MSIE7. In the Firebug console I have a POST error and this response : Insufficient Storage. The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. Here's how I call the load function : $("#I0000_entete").load("I0000_entete",{alias: 'I1107'}); $("#I0000_piedPage").load("I0000_piedPage",{}); Those pages are Java classes
[jQuery] Passing parameters to XSLT's
Hi, I'm writing some JQuery that uses the google plugin (http:// www.jongma.org/webtools/jquery/xslt/#demo) to call an xslt. This works great except that I need to somehow pass parameters to the xslt. I've read through the documentation and there is no mention that this can be done. Does anyone know if it is even possible, or suggest a different plugin that does support it? This is my code: $('#myResults).xslt({ xml: xmlData, xslUrl: "C:\MyXSL.xslt" }); I'm comfortable with using paramters in xslt,
[jQuery] HELP: a = $('<p>foo</p><p>bar</p>'); a.after('<b>xyz</b>') not adding element
Hello, has anybody managed to prepend and append elements to a set of dom elements previously created on the fly with the "$(html)" function? I've tried with append, prepend, after, before, etc without any luck... Is there a way to do it? Stephen
[jQuery] How to load redirected content in dialog?
I have some content that loads in a dialog popup via ajax. For some reason when the URL redirects (i.e. 301, 302, etc.), the content never loads in the dialog. Is this normal behavior for ajax, or should the redirected content load? Thanks. <a href="url_that_redirects" class="myDialog">do something</a> $(".myDialog").click(function() { $(this).openDialog(); }); $.fn.openDialog = function () { var url = $(this).attr("href"); popup = $(this).dialog(); $.ajax( { url:
[jQuery] [tooltip] tooltip container flowing off page in Safari 4, not resizing as should
Hi there, In my implementation of the tooltip plugin, I have notice that in Safari 4 the tooltip does not resize when the cursor moves against the window. That is, I have track set to true as default, so initially the tooltip formats so that it does not overflow over the side of the window, but then as the mouse moves it will maintain the same height and width, forcing a scrollbar when moused over in the direction of the window. Im not sure if this is just a little bug that needs to be fixed for
[jQuery] [tooltip]
Hi, im using your jquery tooltip although I have a question about doing something bespoke I call the code to my page via $(function() { $('a,div,span,img,td,input').tooltip({ etc..... Which works fine, however, if using ajax I populate a div with external content, any title tags from the ajax request do not have the tooltip function applied to it I thought I had found a way around it by recalling $(function() { $('a,div,span,img,td,input').tooltip({ etc..... That works for the new content
[jQuery] jQuery and !important
Hello, I know I should actually avoid using !important, but nonetheless I'd like to set it using jQuery's css(), but it seems to ignore setting this property completely. Anyone knows if this is supposed to work or why it does not? Regards, -- Martijn.
[jQuery] Counting Divs (IE6)
I am having a problem counting the number of divs inside a container, var cellCount = $("#cellCont").children().length; cellCount is coming up undefined in IE6. Any idea why? here's the html: <div class="block" id="cellCont"> <div class="cell" id="cellFirst"><?php include('design/print/ brochures.php'); ?></div> <div class="cell"><?php include('design/print/catalog.php'); ?></ div> <div class="cell"><?php include('design/print/annual_reports.php'); ?
[jQuery] Images shrinking?!?!
Hi there, I have a couple of image slideshows on my site and in IE occasionally the images appear shrunk down like thumbnails instead of full size. Any ideas why that might happen and what i could do to stop it? http://www.bonsaibranding.com/riverstone/home.html Thanks Jen
[jQuery] a keydown problem? :)
$(window).keydown(function(e){ if (e.keyCode == 13) sendmsg(); }); It works well on firefox and chrome but It is not work on IE7.0 ?
[jQuery] jqmodal Ajax issue
Hello, I'm new to jquery and jqmodal. I have a script that runs fine except when the URL (href) of the anchor tag is Blank or "#". so what I want to do is check for that possibility and stop the Jqmodal from acting or put up an error message, without my page being messed up. I've tried to use callbacks, but get an error that the hash is not defined. I tried to use the click event of the anchor, but the Jqmodal would load the content but only show it after clicking another anchor tag or clicking the
[jQuery] handler is undefined error
Hello guys, I'm trying to create an horizontal accordion using the code below: $(document).ready(function(){ lastBlock = $("#a1"); maxWidth = 210; minWidth = 75; $(".accordion_trigger").hover(function(){ $(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 }); $(this).animate({width: maxWidth+"px"}, { queue:false, duration: 400}); lastBlock = this; } ); }); with the following HTML: <ul class="accordion"> <li> <span id="a1" class="accordion_trigger"> <img src="images/free_thumb.jpg"
multiple rollover
hi, very new to jquery, just looking to achieve this and thought it should be straight forward but cant find any jquery examples... basically want to do this with jquery cheers for any help!
[jQuery] Download problem UI 1.7.1
Hi I'm trying to download a theme in jquery ui 1.7.1. version. The downloaded file is broken due to a fault in the path (in the developement directory) Anyone got this problem? Michael
Strange setInterval behavior
Working on a nice load transition for a portfolio section of a website. 9 images are displayed inline in a list, due to the wrapper these display as 3 rows of 3 images all blocked together. The idea is that these li's load in one by one using setInterval, with a fade in/fade slightly back out effect and then fade in on hover/fade slightly back out on mouseout. At the moment the elements load in as desired when the page first loads - but there is some pagination going on here too to view the next/previous
[jQuery] .upload doesn't work on a mac??
Hi all, I am having problems with //$('#upload_link').click(function() {alert("Upload clicked")}); $('#upload_link').upload({ when i use .upload it doesn't work with apple mac?? I doesn't open up the folder/file browser any tips, suggestions grtz
[jQuery] Bugs in jquery-1.3.2-vsdoc2.js ajax events
Hi These bugs are present in vsdoc version of jquery, jquery-1.3.2- vsdoc2.js, not in jquery-1.3.2.js. The ajax events (ajaxStart, ajaxError etc.) are broken. When you try to call them you get " 'f' is undefined". Looking at the offending code... //-- // [vsdoc] The following section has been denormalized from original sources for IntelliSense. // Attach a bunch of functions for handling common AJAX events // jQuery.each ( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split (","),
[jQuery] [Validate] Support for Validation Grouping
I'm working on integrating the validate plugin with ASP.NET. I have the basic validation working just fine but I'm running into a few limitations of the plugin now with regards to ASP.NET's concept of CausesValdiation and ValidationGroup. I envision having some sort of grouping mechanism of rules by name. I think this goes beyond ASP.NET integration as it would allow for simple validation of sub-forms. Maybe something like: $('#myform').validate({ rules: { 'SignUp' : { firstname:
[jQuery] Validation
whats the best way/plugin for validation in jquery? just wondering whats the best practice for validation if user disables js?
[jQuery] JQuery form validation not working with jsp
Hi, I am new to JQuery , can anyone tell me any example ,how to do form validation for JSP. I have two text box one for Subject and another one for email Id . Thanks, Lucky
[jQuery] Hide problem
//This might be a double post, I'm not sure... I've already posted this message about 10 minutes ago and it didn't show up yet... so... dunno Hello. I have a div with the id 'menu', inside it i have a ul, and in that i've inserted 7 li tags, each with display: inline. In each li I have a link. /* js start */ $(document).ready ( function() { $("#menu > ul > li").click ( function (event) { $(this).nextAll().hide(500); } );
[jQuery] Why isn't there any list widget?
I've searched extensively for a jquery widget that allows me to add/ remove items to a list, set font size, etc. For an example of what I mean, see here: http://www.webresourcesdepot.com/dnspinger/ Could anyone point me in the right direction?
Next Page