[jQuery] [JQuery 1.2.3] The load function will send two requests of images in IE 6.
Hi, I want to using load function to load other one page. But I found that images of the loaded page would be requested two times in IE 6. I guess the cause is cache machine problem of IE 6. I found the images would be requested in (clean function: div.innerHTML = wrap .... and append function : appendChild) of jquery 1.2.3 file. The attachment is an example of the problem. The attachment is a JAVA web application. Please extract the attachment to "%TOMCAT_HOME%/ webapps", and start the tomcat. The
[jQuery] How to adapt Jquery Parser
Hi everyone, I would like to do some manipulation on Jquery Parser: http://projects.allmarkedup.com/jquery_url_parser/ but as I have always used it as regular I don't know how to modify this plugin. My purpose is to add a function that will add or set a new parameter: below is the code of the current plugin: In advance thanks [code] /* =========================================================================== * * JQuery URL Parser * Version 1.0 * Parses URLs and provides easy access to information
[jQuery] Autocomplete form submit on enter problem?
Hi I've implemented the ui.autocomplete to a number of inputs and textareas on a form, they all work fine and as expected. All except one, for some reason on one of the autocomplete fields, when I've scrolled to a value in the list and press enter to select the value, the form is being submitted. I'm completely puzzled because this doesn't happen on any of the other autcomplete fields. Here is the code which initialises the autocomplete: $(function(){ // Set up the requestor field requestor_tab.setup();
[jQuery] jCarousel - custom start position / add class
Hi, thank you for this great plugin. I am using a custom starting position with the carouse. I am wondering if there is a simple way for me to change the li elements class relating to the starting position index. So if the carousel custom start position has an index of 2, only that li elements class would change to something different.. Thank you for any advice or a nudge in the right direction. =)
Pimp my jQuery: Migrating from Prototype/Scriptaculous
Pimp my jQuery: Five plugins to replace the features Prototype and Scriptaculous users expect http://www.pathf.com/blogs/2008/12/pimp-my-jquery-five-plugins-to-replace-the-features-prototype-and-scriptaculous-users-expect/
[jQuery] Image fadeIn not completing in IE
Hello As a part of a image gallery I have made this fade transition between current and next image. $p('#img-add').attr('src', imglist[index].imgurl); $p('#second-img').css('top', '-' + $p('#first-img').css('height')); $p('#second-img').fadeIn(600, function(){$p('#img-main').attr('src', imglist[index].imgurl);$p('#second-img').hide(); lock = false;}); HTML <div style="margin-bottom:5px;" class="imgI"> <div id="first-img" class="imgI"> <img id="img-main" src="" alt=""/> </div> <div id="second-img"
[jQuery] [validate] Using Rule Name in errorPlacement
Is it possible to get the failed rule name within the errorPlacement function? There are many times when my requirements want me to put error messages in different places depending on which rule failed, and I haven't been able to figure out a clean way of doing it. Something like: $("#dddForm").validate({ rules: { state: { required: function() { return $("#zip").is (":blank"); } }, zip: { zipcode: true, required: function() { return $ (this).is(":filled") && $("#state").is(":blank"); } }, }, groups:
[jQuery] Custom error message for remote validation
Hello, I'm using the jQuery Validation plugin (which is awesome by the way). I need to dynamically add a validation rule, so I use the rules("add", rules) method. I set it up to do remote validation, which works, but I want to display a custom message, not the default "Please fix this field." message. I tried to do something like this: $("#include_patterns").rules("add", { remote: "/my/remote/check_valid/", messages: { remote: "Please enter a valid pattern." } }); based on the example from http://docs.jquery.com/Plugins/Validation/rules#examples:
[jQuery] [tooltip] Image preview choppy when switching from right to left side of mouse pointer?
I've implemented http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ plugin at this test page: http://www.randomjabber.com/test/logogala/gallery_tooltip.html. I think I've implemented it correctly, but I'm not completely sure of that? It seems to work like it should when you hover over the left two images in the left two columns. But, when you hover over the images in the right column and the image preview pops up to the left of the mouse pointer instead of to the right (since the margin
[jQuery] Disable event from firing until all assigned function are complete...
I have an element and two different functions are assigned to it. One calls for carousel.next() and another triggers a navigation link to change class. I need click to be disabled until both are complete. How can I achieve that? (I am talking about $('.carousel-next') element Here is the code: function mycarousel_initCallback(carousel) { $('.navigation a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval($(this).text())); $('.navigation .selected').removeClass('selected'); $(this).addClass('selected');
[jQuery] [autocomplete] and asp.net / dotnetnuke
I want to have autocomplete work with DotNetNuke(asp.net). Did anybody did this already and if so how? The solution I am investigating now ( 2 December 2008) involves using page methods as described on http://encosia.com/2008/06/05/3-mistakes-to-avoid-when-using-jquery-with-aspnet-ajax/ with standard autocomplete functionality. Is this the right way to do it or are there other ways?
[jQuery] got thoughts for watching a UL?
Wondering if anyone has some ideas on how best to monitor a UL (or OL) for changes? At the most basic, I want the listener to know when any LI's get added to it (removed does not matter), but it would be even better if there was a superfast way to monitor the full contents for changes (or each individual LI). Thoughts? I'm looking for a very lightweight solution. Hesitant to setup a timer and have it check LI count, but can do that if that's really the best/only way. This is for an enhancement to
[jQuery] Tooltip made from two different elements. Hover() Issue
Hey. First time here. a New and Excited user to JQ. I got 2 elements: .toolTipCaller is a <B> element. .toolTip is a div with all the tooltip DOM inside of him. they are seperated elements. they r not nested one inside of the other. I dont have problems fadeIn the Div.toolTip element while hovering the B.toolTipCaller. My problem is how to close the Tooltip only if * I'm hovering out of the B.toolTipCaller, but not entering the DIV.toolTip scope. * I'm hovering out of the DIV.toolTip scope. This
[jQuery] Cluetip Title displaying in FF and IE
This is installed in Wordpress, wondering if WP default styles are causing issue? Otherwise, Cluetip works fine. Testing outside of Wordpress did not have this issue. Thanks! Jim
[jQuery] how to avoid overhead
Hi! The code: for (i = 0; i < 1600 ;i ++) { htm += '<div></div>'; } $(htm).appendTo('#parentDiv'); How can avoid overhead? thanks, Dirceu Barquette
[jQuery] listnav plugin mod
I would like to add numerical functionality to this plugin, but have been unsuccessful in getting it to work. In additition to the A, B, C...Z I would like to add an 0-9 category for names that start with a number. the way the plugin is written to auto create class names from the letters is straightforward but for the numbers I would need to show all items that start with 0-9 under the '0' class. I know what I need to do but havent been able to get it to work.
[jQuery] finding <script> tags in remote HTML
Hi all. I'm having an amazing amount of pain trying to parse and execute JS script blocks in remote HTML (in IE, typically). Here's the code in question: $.ajax({ type: "POST", url: checkFilename, dataType: "text", success: function(src){ var wtf = $(src).find("script").each(function(){ eval( $(this).text() ); }); } }); http://www.pastie.org/308878 checkFilename is just an HTML file, so src comes back with the entire source of
[jQuery] smooth text animation - what am I doing wrong?
I'm trying to simply scroll some text within a div via the animation() method it seems to be kind of jerky - especially Firefox (I've looked on both Mac & WinXP) here's a quick sample: http://www.monkeypuzzle.net/testfiles/jquery/scrolltext/ff-animated-text.htm it's actually worse within my application page - so I'm thinking there's some combination of css rules that might make things worse? Has anyone run across this one?
[jQuery] Change number of images shown
This seems like a simple thing to do put I cannot figure out how to do it. I'm implementing the jcarousel scripts but cannot figure out how to chnage the number of display pictures. Any ideas?
date picker closing
hi there i managed to set up the datepicker with the 3 drop down selects on first selection of a date from the datepicker - it makes the change and then closes. but then if you re-open and make a selection - the datepicker doesnt close anymore - even if you click the close link. any ideas? thanks!
[jQuery] Can't retrieve "title" attr from <area>; no problem with other attrs
Using: $("area").tooltip({ delay: 0, fade: 250, bodyHandler: function() { var content = $(this).attr("title"); console.log(content); return $(" ").html(content); } }); console logs empty returns and the tooltip is empty. Note that this is an issue with the "attr" method, not "tooltip". If I set "content" equal to attr("shape") or attr("name"), name attribute supplied, the method works fine. Why would the title attribute return nothing on an element that returns all other attributes normally? Here's
[jQuery] First steps in jQuery: trying to figure the syntax to mix standard Javascript with jQuery
Hello, Sorry if my question is not worded properly, I'm new to jQuery and still do not understand its syntax. I've read a lot of examples and it did not help me much. I've got this really simple JS function: function getActiveText(e) { var text = window.getSelection(); alert(text); } That returns the raw selection in an xhtml page. Now I want to limit what it returns to only what is enclosed in divs of the class "selectable". jQuery has the $('div.selectable') selector which selects all <div>
[jQuery] Getting totals per row
I'm relatively a newbie to jQuery. I am trying to create a timesheet application. One of the things I am attempting to do is have the totals column for each task. I have the several textboxes laid out beside the text name (one textbox per day, so 7 textboxes for the individual days + 1 for the total column). The textboxes are named using the following convention: ta_[taskid]_[calendar date]. The totals row is named tatoal_[taskid]. So I have something like this: <input type="text" name="ta_1_20081117"
[jQuery] with out ready event
Hi, Can we write any code out of $(document).ready(); Thanks Waiting 4 reply.
[jQuery] Selecting only partial text from div
I've a div which has lot of contents inside it... I need to display only text of length less than 100letters..anything more should be displayed only when I point to the word after it For example: <div>This is the 100th word this is</div> Here when I move my mouse from 'T' in This to 'h' in 100th I need to display "This is the 100th" and when I move my cursor to 'w' in word - I need to get "word this is" I heard about using mouse position to get this but I don't know how. Komin
[jQuery] JavaScript multithreading issues, race conditions, critical sections
Hi List, My question is not specific to jQuery and I don't wanna be offtopic, but I post there because I think there are the brightest minds of the planet regarding JavaScript development. We're building a web2.0 application and there are some singleton objects and various AJAX event handlers that manipulate them. I'm worried that race conditions can occur which have a potential to kill the client side. http://www.developer.com/lang/jscript/article.php/3592016 - This is the most relevant article
[jQuery] autocomplete plugin - newbie question
You guys, I really dig working with jQuery, very powerful stuff. I've been trying to implement the autocomplete plugin but I don't know how to ask this question, or google what I need to know. We have 6000 staff (records) here on campus and we want to be able to search them by their first & last name. I have to use an XML web service that's controlled by another group. Getting the output changed would be near impossible, so it's gotta come out this way. I curl that XML into a PHP. I pass that php
[jQuery] Can find() return elements in DOM order?
Is there a way to make $.fn.find() return the elements in the order they appear in the dom instead of grouped by selector?<div> </div><div>For example, let's say I have a form and I want to get the first form control, whether it's an input, select, or textarea. Here's some basic HTML:</div> <div> </div><div><form id="#myform"></div><div> <select>// ... //</select></div><div> <input type="text" /></div><div></form></div><div> </div><div>I thought I could do this, but it's returning the wrong
[jQuery] [tooltip]
Version 1.3, this tooltip plugin: http://docs.jquery.com/Plugins/Tooltip How can I determine with Firebug whether an element HAS gotten bound to the .toolip() successfully? I have a checkbox INPUT element that simply won't display the tooltip, although it's working perfectly for several A elements. It's not limited to only being used with anchors, is it?
[jQuery] jQuery.Validate: validating input fields with [] [validate]
Hi, Does anyone know how you can validate forms that contain [] in their name? e.g. <input type="text" name="field[2]" id="field2" class="box1" value="" /
[jQuery] jQuery plug-in to preload javascript?
Hi. There are numerous plug-ins to preload images, but is there a way to preload javascript? My application uses around 12 plug-ins and they take about 20 seconds or so to load before the page shows... so, is there a way I can display a "loading message" while I somehow preload the scripts? Thanks,
[jQuery] Image rollover using jQuery
Hello, Are there any existing jQuery plugin which can provide similar image rollover functions such as the one provided by Dreamweaver? Thanks. Ray
[jQuery] list.scrollTop is not a function when ever i using jquery auto complete
Hi, friends I am new to jquery, i am using jquery auto complete , it was working fine fing i got the below errror i.e list.scrollTop is not a function. what is the reason for this error , if any one know please send mail Thanks and Regards swamy
[jQuery] Ajax to return more values
Ho-ho-ho. I wonder what is the best practice if I want to get 2 or three values back to function with ajax. The last value would be lots of html code and first two kind of state values (number or short string). I don't like jSON a lot, since you need to return one-line response and you must be careful with a shape (" and }). Second option is having a regex to fetch first two values and all remaining is a third value. And what do you think is the best solution here? Happy December, me-and-jQuery
[jQuery] Having trouble with autocomplete - stupid newbie
You guys, I'm having problems implementing the autocomplete plugin. My page that I'm working on: I'm trying to bind ".result(function(event, data, formatted) {" to my element that's firing the autocomplete and I can't even get it to pop an alert. This is from Jorn's site. I think I can figure out how to parse the XML if I can get it to fire a result. I'm lost. Can anyone help? I just need to get that result binding to fire. Here's the code and page I'm working on. https://www.uakron.edu/ace/jquery-autocomplete/demo/index1.html
[jQuery] star rating 2.5 - select full stars only
Hi, i am using star ratin 2.5. Is there a way to restrict votes on full fill stars and use the split stars view only for displaying the results? Thanks
[jQuery] Just wondering if everyone saw this headline this morning...
*Microsoft embraces open source with jQuery* <http://ct.techrepublic.com.com/clicks?t=72798576-42149c242d5f5fe2baa82f196da90399-bf&brand=TECHREPUBLIC&s=5> Microsoft plans to integrate the JQuery library into both the ASP.NET Web Forms and ASP.NET Model View Controller frameworks. Tony Patton outlines how jQuery may work within an ASP.NET application. This came in my TechRepublic enewsletter for Web Developers this morning... Rick
[jQuery] Error in jQuery documentation?
Hello, I think i've found an error in the jQuery documentation, or i am misunderstanding something. This page: http://docs.jquery.com/CSS/offset ... states that offset() gives you 'the current offset of the first matched element relative to the viewport.' My tests seem to show that it actually gives the offset relative to the document, NOT the viewport. If it were relative to the viewport, the number should change as I scroll the document around; it doesn't. It stays the same which suggests to me
[jQuery] $.ajax "async: false" bug?
Hi, colleagues I would appreciate your opinion/advice on the following I'm trying to save extra run to the back end by overwriting JS url variable with AJAX function and activate download from the visitor's browser as described by code below. Unfortunately what happens is extra run to the back end happens in any case in spite of the fact that AJAX runs successfully. Do you think it's related to the bug ignoring "async: false," definition or it's mistake I've made and missed to catch? Thank you in
[jQuery] treeview pluging issues - .find(">.hitarea")
I am fairly new to jquery and I am trying to create a product/category browser/tree using the treeview plugin and ajax. My first simple issue is this peice of code i am trying to understand. .find(">.hitarea") what is happening here ? I understand the find functino but not sure about the chevron usage ? the overall problem is this. On viewing my list. if i click on one of the initial categories the second sub categories show up fine. I can then contract this sub list if i wish. If i leave this open
Next Page