[jQuery] Drag and Drop

2009-07-15 Thread Sri
Hi All, I am using ui.draggable.js plugin.To drag images.It is working fine but i want to restrict dragging out of div.How can i do this?Any Suggestions?

[jQuery] Re: jCarousel Appears Vertical then Horizontal

2009-07-15 Thread Sparky12
Anyone got any other ideas ? Really appreciate any help?

[jQuery] Re: Drag and Drop

2009-07-15 Thread Theodore Ni
I'm not completely clear with what you want. Do you mean that you don't want your images to be dragged outside of a containing div? If so, you can set containment option: http://docs.jquery.com/UI/Draggable#option-containmenthttp://docs.jquery.com/UI/Draggable#option-containment Ted On Wed, Jul

[jQuery] Autocomplete Focus Issue

2009-07-15 Thread jazz
Hi Folks, i have an issue with the autocomplete focus... i am unable to focus on the selected value..the value is when i selected one value it is displaying the previous one..i tried somany ways but found no luck.. Please refer my code once: jquery.autocomplete.js:

[jQuery] Re: children() passable variables there

2009-07-15 Thread Alexandru Adrian Dinulescu
it doesnt work at all, working with 20+ rows this happens only in ie, firefox/saf/google works. --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053 CSS :

[jQuery] Re: Determine content type in $.post callback

2009-07-15 Thread bjorsq
You don't have any problems here - ajaxSubmit can use all the options that $.ajax can, so all you need to do is place a complete callback in your ajaxSubmit options. As far as I can tell from the docs, the complete callback is your only option as it gets the XHR object as a parameter - but you

[jQuery] Re: children() passable variables there

2009-07-15 Thread Liam Potter
from what I'm seeing you could accomplish this with css alone. Alexandru Adrian Dinulescu wrote: it doesnt work at all, working with 20+ rows this happens only in ie, firefox/saf/google works. --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee

[jQuery] Re: Drag and Drop

2009-07-15 Thread Liam Potter
Documentation and Demo's, made for a reason. http://jqueryui.com/demos/draggable/#constrain-movement Sri wrote: Hi All, I am using ui.draggable.js plugin.To drag images.It is working fine but i want to restrict dragging out of div.How can i do this?Any Suggestions?

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread WD.acgrs
Use $.support.cssFloat ! $.support.objectAll On Jul 14, 5:29 pm, w1ntermut3 ben.r.ca...@googlemail.com wrote: No prizes for guessing it's an IE7/6 issue I'm trying to detect IE6, with: if (($.browser.msie == true) ($.browser.version 7)){ // fail } but the client has got a version

[jQuery] Re: Determine content type in $.post callback

2009-07-15 Thread dnagir
Hi Peter, Will try tomorrow. I believe this is exactly what I am after. Thanks a lot. Cheers, Dmitriy.

[jQuery] Re: Trouble with Dialog window parameter

2009-07-15 Thread Richard D. Worth
var content = modal:true; isn't valid. You could do var options = { modal:true } and then later .dialog(options) - Richard On Tue, Jul 14, 2009 at 6:41 PM, Nick mrnickst...@gmail.com wrote: Anyone: I cant seem to get this to work. If I pass modal:true in as a variable it doesn't

[jQuery] scrolling height of the window and placing popup windows

2009-07-15 Thread snitch
Hello, for opening a PopUp Window I use the Popup.js from Adrian yEnS Mato Gondelle. Adrian has written a function to center the popup by calculating the window height/with and popup width/height as well ans putting the coord in the middle of these coordinates. Like this: function

[jQuery] Get the tagname from an event ?

2009-07-15 Thread Liam Byrne
Hi folks I have a function that operates on left and right arrow keypress, but I want to temporarily return true if they're pressed while an input has focus. One way I thought of was to check the tagname of the event ? The other way is to check the length of the input:focus array, but I

[jQuery] Re: How to implement the UI Slider

2009-07-15 Thread Richard D. Worth
On Tue, Jul 14, 2009 at 11:19 AM, Pkunzipula pkunzip...@hotmail.com wrote: Hello Experts! I have been trying to comprehend the JQuery ui slider for a solid day, and I believe that every tutorial out there skips a giant step for beginners. Do you have some links to these? It sounds like

[jQuery] Re: 3 Solitaire

2009-07-15 Thread Brett Ritter
On Wed, Jul 15, 2009 at 12:42 AM, Karl Swedbergk...@englishrules.com wrote: Interesting view about this from Douglas Crockford: ... language in all browsers has been JavaScript. In XHTML, this attribute is required and unnecessary. In HTML, it is better to leave it out. The browser knows what

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread w1ntermut3
Thanks, although it doesn't appear to be working for me. script type=text/javascript $(document).ready(function(){ sHTML = ; sHTML += boxModel: + $.support.boxModel sHTML += br/cssFloat: + $.support.cssFloat sHTML += br/hrefNormalized: +

[jQuery] Re: Get the tagname from an event ?

2009-07-15 Thread John Beppu
http://docs.jquery.com/Events/jQuery.Event#event.target On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne l...@onsight.ie wrote: Hi folks I have a function that operates on left and right arrow keypress, but I want to temporarily return true if they're pressed while an input has focus. One way

[jQuery] close event on dialog ?

2009-07-15 Thread Maskime
Hi everyone, I have ugraded JQuery to v1.3.2 But since i did that it looks like i've lost the close event on dialogs I've trying this : $('#dialog').dialog({close : function(){alert(lorem);}}); but when i click on the 'X' of the dialog nothing happens... Any idea where it could come from ?

[jQuery] Re: close event on dialog ?

2009-07-15 Thread Richard D. Worth
worksforme: http://jsbin.com/ejewu - Richard On Wed, Jul 15, 2009 at 7:59 AM, Maskime maxime.f...@gmail.com wrote: Hi everyone, I have ugraded JQuery to v1.3.2 But since i did that it looks like i've lost the close event on dialogs I've trying this : $('#dialog').dialog({close :

[jQuery] Re: Get the tagname from an event ?

2009-07-15 Thread Liam Byrne
Cheers John! Had forgotten about / omitted the .srcElement :-P L John Beppu wrote: http://docs.jquery.com/Events/jQuery.Event#event.target On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne l...@onsight.ie mailto:l...@onsight.ie wrote: Hi folks I have a function that operates on left

[jQuery] Re: close event on dialog ?

2009-07-15 Thread Richard D. Worth
Perhaps you upgraded jQuery without also upgrading jQuery UI? Note: jQuery UI 1.5 and 1.6 are only compatible with jQuery 1.2.6 jQuery UI 1.7+ is only compatible with jQuery 1.3+ - Richard On Wed, Jul 15, 2009 at 8:06 AM, Richard D. Worth rdwo...@gmail.com wrote: worksforme:

[jQuery] Re: scrolling height of the window and placing popup windows

2009-07-15 Thread Richard D. Worth
var docScrollTop = $(document).scrollTop(), docScrollLeft = $(document).scrollLeft(); See http://docs.jquery.com/CSS/scrollTop http://docs.jquery.com/CSS/scrollLeft - Richard On Wed, Jul 15, 2009 at 5:56 AM, snitch maximilian.mut...@googlemail.comwrote: Hello, for opening a PopUp Window

[jQuery] Re: close event on dialog ?

2009-07-15 Thread Maxime FAYE
erf... Thx Richard you hit the spot ^^

[jQuery] Sanitizing non printable chars in xml returned from SOAP

2009-07-15 Thread n0ah
I am making an $.ajax request to a SOAP 1.1 webservice and the service is returning non-printable chars within the XML. Since these chars aren't allowed in the 1.0 spec Firefox (not IE) is throwing an error. I have tried using the dataFilter option to remove the chars but it looks like the XML

[jQuery] div display help

2009-07-15 Thread chuck
I am having some trouble getting some divs to display dynamically. Can someone please offer a pointer? - script type=text/javascript function update(x){ var id = x.selectedIndex; var v = x.options[id].value; var f = test +

[jQuery] URL generated by Ajax

2009-07-15 Thread JD
Hi Guys, This is probably a very simple question, i'm new to JQuery but I can't find the solution. I create an AjaxReqest with a url and some post data. Is there any way that i can alert out the URL which is then generated in the call. Example url: www.yahoo.com/login postdata:

[jQuery] Jquery url encode

2009-07-15 Thread Aldo
Im using Ajax to get results back. These results are used to show data and create a link to it: Example: Name Link John Mary www.google.com/JohnMary Paul Niamh www.google.com/PaulNiamh How can I get Jquery or Javascript to url encode the link?

[jQuery] Re: URL generated by Ajax

2009-07-15 Thread Mean Mike
if you just need to see what your posting and what url its going too why not just view it in httpfox ? On Jul 15, 6:54 am, JD odonovan.jo...@gmail.com wrote: Hi Guys,     This is probably a very simple question, i'm new to JQuery but I can't find the solution. I create an AjaxReqest with a

[jQuery] jquery.calculation modification

2009-07-15 Thread introvert
Hello, I need some help on jquery.calculation plugin modification (I want to change it so that it would also read the attributes of elements if a string is passed as an attribute name). I want to change the .calc function so that I could optinally pass a string with each jquery object which are

[jQuery] Re: A job for you?

2009-07-15 Thread Geuintoo
I didn't got any answer. Mabe I was not clear: I look for a jQuery - Programmer, who I pay to devlope some code.

[jQuery] Re: URL generated by Ajax

2009-07-15 Thread Peter Edwards
Hi JD, In your success callback, you have access to ajax options through the this keyword, so you can get the full URL by doing this within the success callback: alert(this.url+'?'+this.data); peter on 15/07/2009 13:30 Mean Mike said:: if you just need to see what your posting and what

[jQuery] Re: A job for you?

2009-07-15 Thread Liam Potter
You do realise the things you asked for all most likely exist already under open source licenses? Geuintoo wrote: I didn't got any answer. Mabe I was not clear: I look for a jQuery - Programmer, who I pay to devlope some code.

[jQuery] Re: div display help

2009-07-15 Thread Liam Byrne
You've no jQuery in there for a start. Instead of var c = document.getElementByID(f); c.style.display = block; try $(#+f).show(); L chuck wrote: I am having some trouble getting some divs to display dynamically. Can someone please offer a pointer?

[jQuery] Re: A job for you?

2009-07-15 Thread Matt Zagrabelny
On Wed, 2009-07-15 at 05:58 -0700, Geuintoo wrote: I didn't got any answer. Mabe I was not clear: I look for a jQuery - Programmer, who I pay to devlope some code. Here are some thoughts... Include a link to a web page that talks about the project. What jQuery things need to be written,

[jQuery] Re: Another image rollover question

2009-07-15 Thread Liam Byrne
For something like this, you'd be best off having all 4 states of the button in a single graphic file, one under the other, and using the background-position to control it. The image would be 4 times as big as the allocated div or li, with only a quarter of it showing at a time depending on

[jQuery] Re: height/width of background image

2009-07-15 Thread Liam Byrne
After setting a src, the width and height won't be available until the image has loaded (can take 3 or ~ seconds, depending on image size). You need to trigger the calculation based on an image_1.load event firing. L weidc wrote: hi, at the moment i'm trying to get the height width of the

[jQuery] Re: Jquery url encode

2009-07-15 Thread MorningZ
Honestly, you'd be better off encoding the results on the server during the step Im using Ajax to get results back On Jul 15, 6:24 am, Aldo marcwar...@gmail.com wrote: Im using Ajax to get results back. These results are used to show data and create a link to it: Example: Name            

[jQuery] Re: div display help

2009-07-15 Thread Mean Mike
or take out your onclick from your html and in your head put this script $(document).ready(function(){ $(#t).change(function(){ var v = $(this).val(); $(#test + v).css(display,block);

[jQuery] Not able to Animate Initially Hide DIV

2009-07-15 Thread abhi
Hi All,,, I have some problem to Animate a DIV for which i have set Display property none initially I want to animate that div in perticular event here is my code html xmlns=http://www.w3.org/1999/xhtml; head runat=server title/title link href=Content.css

[jQuery] Re: Doing something before the get request

2009-07-15 Thread Fabio Milheiro
Thank you, but can I insert the parameters. I couldn't find that information anywhere else. Could you please tell me or indicate where I can see that. Regards On Jul 15, 3:16 am, James james.gp@gmail.com wrote: $.ajax({     url: 'file.html',     type: 'get',     beforeSend: function()

[jQuery] Re: Is there a way to disable jQuery's automatic timestamping of GET requests?

2009-07-15 Thread Karl Swedberg
Not sure, but have you tried using $.ajax with cache true? $.ajax({ url: 'http://api.com/json/callback', dataType: 'script', cache: true }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 14, 2009, at 1:12 AM, Dan Dascalescu wrote: If you do

[jQuery] unsubscribe

2009-07-15 Thread jake dimano

[jQuery] calling function with array arguments

2009-07-15 Thread introvert
Hello. How can I pass arguments to a function as elements of an array. For instance: var somemap = { one: 1, two: 2, three: 3}; var arguments = { one, two } --we iterate through arguments array and see which should be passed to a function: call_function(somemap['one'], somemap['two']); or

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread Jeffrey Kretz
Firstly, your original UA is probably IE7/Vista. This is a proper msie6 browser detection script: $.browser.msie6 = $.browser.msie /MSIE 6\.0/i.test(window.navigator.userAgent) !/MSIE 7\.0/i.test(window.navigator.userAgent); Secondly, the whole idea behind feature detection is to remove the

[jQuery] Re: Best practice for integrating server-side validation (jsp) with jquery validation (specially bassistance)

2009-07-15 Thread Anoop kumar V
OK - this is the approach I intend to take. Please let me know if I am on the right path - or any links or pointers would also help. My application is currently a jsp page that shows some tabs. Each tab is an object that has various properties like name, code, id etc. Clicking on each tab brings

[jQuery] Parsing XML using find() has stopped working in jQuery 1.3+

2009-07-15 Thread skube
Hi, I'm wondering if anyone might be able to shed some light on this situation. I have been using jQuery 1.2.6 to parse XML and find specific nodes. However, when I simply change the jQuery version to 1.3.2 the following fails to work in IE, though still continues to work fine in Firefox.

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread w1ntermut3
Thank you :) I'm trying to do a browser detection for client reasons :( They don't want to spend the money on coding IE6 fixes in, they're as... frustrated... with IE6 as we are, and have instructed us that any visitor reaching the site through it should be presented with a message of love,

[jQuery] how to make smooth scrolling ui- tabs like firefox using jquery

2009-07-15 Thread mona
hello friends can anybody tell me how to make scrolling tabs using jquery please send me some link or code so that i can implement it .It is very urgent.I want to make scrolling tabs like given in following link using jquery http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html

[jQuery] Correctly submitting form using Validation Plugin

2009-07-15 Thread ButtersRugby
My main issue is the submitHandler portion. I want to reset the form on submission, or be able to call the form reset as needed. As it stands now, the form works sending and recieving as needed. I just need to reset the form correctly, hopefully using the built in reset. // validate signup form

[jQuery] Detecting a redirect response to an Ajax query

2009-07-15 Thread candlerb
Is there any way to be able to detect in $.ajax whether the response involved a HTTP redirect? My backend application times out sessions, and if the next request comes in after the session has timed out, it redirects the user to / signup/login. Unfortunately, if this happens when the client

[jQuery] Re: Parsing XML using find() has stopped working in jQuery 1.3+

2009-07-15 Thread skube
FYI, This appears to be a :contains() issue and is actually an older bug which has resurfaced again with the introduction of jQuery 1.3.2 Older groups message: http://groups.google.com/group/jquery-en/browse_thread/thread/f5c36c05cfa43e9a/90e3dfd019086772?#90e3dfd019086772 Bugtracker:

[jQuery] Re: Another image rollover question

2009-07-15 Thread leofromrio
Liam, Thank you very much for your input. That worked out perfectly! It also reduced the number of server requests by a few million. Like I said before, I'm sure the code could be written a lot better, but here it is anyway: script type=text/javascript charset=utf-8 $(function() { //

[jQuery] Re: Detecting a redirect response to an Ajax query

2009-07-15 Thread Brett Ritter
On Wed, Jul 15, 2009 at 12:38 PM, candlerbb.cand...@pobox.com wrote: Is there any way to be able to detect in $.ajax whether the response involved a HTTP redirect? A redirect should return some form of 30x Header (as opposed to a 200 OK). You can check that, which is more elegant than looking

[jQuery] Re: jquery.calculation modification

2009-07-15 Thread Dan G. Switzer, II
Since you have a very specific use case, you're probably better off just writing custom logic to accomplish this task. However, one way you could hack this solution is to define a custom jQuery.fn.getValue function: jQuery.fn.getValue = function (){ return this.attr(some_str); } If the calc

[jQuery] Re: Parsing XML using find() has stopped working in jQuery 1.3+

2009-07-15 Thread skube
Although, I still think there is a BUG outstanding in 1.3.2. Using the slightly more complicated find() below with 1.2.6 works in both IE and Firefox: $(xmlInitial).find(item:has(year:contains('2009')), item:has (name:contains('2'))).each(function(){ alert($(this).children('name').text());

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread mkmanning
You could also just use conditional comments: !--[if IE 6] script src=http://path_to_ie_specific_script.js; type=text/ javascript/script ![endif]-- or set a style within the comments and detect that. On Jul 15, 8:59 am, w1ntermut3 ben.r.ca...@googlemail.com wrote: Thank you :) I'm trying

[jQuery] Re: Doing something before the get request

2009-07-15 Thread James
You can find the information on jQuery's documentation website. Here's the AJAX page: http://docs.jquery.com/Ajax Click on the jQuery.ajax(options) link and then the options tab to view available options you can set. On Jul 15, 4:10 am, Fabio Milheiro fabiomilhe...@gmail.com wrote: Thank you,

[jQuery] Re: Jquery url encode

2009-07-15 Thread James
Using the Javascript escape() function should do the job most for you of the time. On Jul 15, 3:28 am, MorningZ morni...@gmail.com wrote: Honestly, you'd be better off encoding the results on the server during the step Im using Ajax to get results back On Jul 15, 6:24 am, Aldo

[jQuery] slideUp(), slideDown() not working in IE 6, 7 on LI elements

2009-07-15 Thread Bill
Hi all, I posted a week ago about some odd behavior with slideUp() and slideDown() in IE 6, 7, and 8 (the post is here: http://groups.google.com/group/jquery-en/browse_thread/thread/1b4cda051e732376/87cb9b7657b7a4a3 ). After several hours of further investigation, it appears that jQuery isn't

[jQuery] DropDown Menu

2009-07-15 Thread Paulo Henrique
Hello guys, thanks for the help last time... now I'm coming here to ask you help to build a dropDown menu I already built one, but its positioning isn't working very well, when the dimension of the screen is redimensioned or when the page is zoomed. I had trouble creating the menu because ppl

[jQuery] Re: slideUp(), slideDown() not working in IE 6, 7 on LI elements

2009-07-15 Thread Bill
Alright, so this *is* a bug: http://dev.jquery.com/ticket/3120 Anyone have any advice on a workaround ? On Jul 15, 12:15 pm, Bill bllfr...@gmail.com wrote: Hi all, I posted a week ago about some odd behavior with slideUp() and slideDown() in IE 6, 7, and 8 (the post is

[jQuery] Re: help on function val()

2009-07-15 Thread rejome
That's exactly what I missed ! Thanks a lot :-D On 14 juil, 20:17, James james.gp@gmail.com wrote: var $selected = $radioBoutons.filter(':checked'); This removes from the $radioBoutons set of all elements that are not checked (which should end up with 0 or 1 item). On Jul 14, 2:45 am,

[jQuery] Re: calling function with array arguments

2009-07-15 Thread gil
Hi, I don't know if i understand the question, but this could help you: Calling a function that receives an array: var somemap = { one: 1, two: 2, three: 3}; call_function(new Array(somemap.one, somemap.two)); Calling a function with a object property: var somemap = { one: 1, two: 2,

[jQuery] Java Servlet with Jsonp

2009-07-15 Thread gil
Hi, i'm trying to make a jsonp servlet but it gives me an error on the response. I'm missing something? maybe on the java servlet? Servelet: HttpServletResponse response; HttpServletRequest request; response.setContentType(application/x-javascript; charset=utf-8); PrintWriter out =

[jQuery] Form validation using the validate plugin

2009-07-15 Thread pocket
Rather than write my own validation I thought i would use JQuery instead however i'm not finding this easy either. I have a few questions which I hope someone can answer. Firstly, the error messages are only appearing when I click submit. How can I get them to appear after exiting each field?

[jQuery] Re: how to select a child by an attribute

2009-07-15 Thread debashish sengupta
if it is html then why to use code go to edit then go to find type your word then click on find and from their you can change also your specific things On Wed, Jul 15, 2009 at 7:19 AM, MorningZ morni...@gmail.com wrote: See Attribute Filters http://docs.jquery.com/Selectors On Jul 14,

[jQuery] How add data in Request Body using jquery ajax

2009-07-15 Thread Nitin
Hello, I am new to jquery and so far not figured out a way on how to specify data in request body while making Jquery ajax call. I am trying to do this: var request_body = some data; $.ajax({ error:function(request){ alert('failure');

[jQuery] Slideup/down Multiple Divs

2009-07-15 Thread Nathan Chapman
$(#addURLSArea).hide(); $('.jqTransformCheckbox').click(function(){ if ($('#multCheck:checked').val() == 'on') { $(#addURLSArea).slideDown(); } else { $(#addURLSArea).slideUp(); } }); I want to use this 4 times on a form. How do I change

[jQuery] Need to delay closure of cluetip

2009-07-15 Thread hijiki7777
I have a radiobutton list, and for each button I want to show a cluetip. I use the position attributes to ensure the tooltip appears in the same place on the screen for each radiobutton. However I want to delay closing the Cluetip, so that when my mouse hovers over each radiobutton there is no

[jQuery] How to detect scroll bar shown

2009-07-15 Thread dormlock
I was wondering if there is a way either through jQuery or javascript to detect when the browser shows the scroll bars. I had an item fixed to the bottom of the browser window when the scroll bar at the bottom poped up the item was hiding behind the scroll bar. Ideally i'd like to hook an event

[jQuery] Firefox 3.5 and same-site requests?

2009-07-15 Thread Matt
In firefox 3.5, http://www.chrisevert.org/ throws an error that I haven't seen previously: [Exception... Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open] nsresult: 0x805e000a (unknown) location: JS frame ::

[jQuery] jQuery blockUI and blocking table elements

2009-07-15 Thread chrisjcarter
is there a trick to getting the blockUI plugin to work with tables? so the following html, table id=blah tr tdblah/td /tr /table i want to call, jQuery('#blah').block() and have only the table be blocked. what happens is that the page ends up being blocked, not just the table. If i

[jQuery] hover stoppropagation?

2009-07-15 Thread Simon Xiao
im sorry if im posting duplicate, but iv searched for a long while.. I have nested dom and have script: function startVisualAid(){ $(.holder *).hover( function(){

[jQuery] [autocomplete] Autocomplete bug for options.multiple along with bugfix

2009-07-15 Thread SolutionYogi
Hi, I generally participate on StackOverflow.com and found that a user reported problem with autocomplete behavior when options.multiple is true. I debugged through the autocomplete source and found that if options.multiple is true, mustMatch is false and if a user types in a word which doesn't

[jQuery] BlockUI 1.33 crashing Internet Explorer

2009-07-15 Thread JQUser
I am using the BlockUI Plugin version 1.33 with Jquery Version 1.2.1. When the application page is accessed in which the block and unblock UI calls are executed, IE is crashing randomly. Pls help what needs to be done to overcome this issue.

[jQuery] li/img click and window.keydown

2009-07-15 Thread Lideln
Hi everybody ! I have a jqModal window, and I would like to close it using the ESC key. For that purpose, I assign my modal a keydown() event, and if keyCode == 27, I close the modal. It works fine, except when I click on another element in the modal first I have to press 2 times ESC : the

[jQuery] Re: Slideup/down Multiple Divs

2009-07-15 Thread danny.copel...@gmail.com
var toggleCheckBox = function(){ if ($(this).find('.multCheck:checked').val() == 'on') { $(this).find(.addURLSArea).slideDown(); } else { $(this).find(.addURLSArea).slideUp(); } }; $('.divsClassNameGoesHere').click(function(){

[jQuery] :contains selector not working in IE

2009-07-15 Thread n0ah
I have the following code working in FF but not IE: function processSearchResult(xData, status){ var resultHTML = ; if (status == success) { $(xData.responseXML).find(QueryResult).each(function() { var x = $(xml + $(this).text() + /xml);

[jQuery] Re: children() passable variables there

2009-07-15 Thread Ricardo
Try to keep your styling separate from behaviours. CSS: tbody td { text-align: center } tbody td.first { border-left: 3px solid #EEE; text-align:left } tbody td.last { border-right: 3px solid #EEE; text-align:right } JS: $('#table tbody td') .filter(':first').addClass('first').end()

[jQuery] jEditable: Eliminate AJAX requests if data hasn’t changed

2009-07-15 Thread oliverw
Anyone see potential problems with optimizing away unnecessary ajax requests like this: $('.editable').editable(function(value, settings) { // check if changed at all if(this.revert == value) { this.reset() return } ... fire ajax request }

[jQuery] Re: BlockUI 1.33 crashing Internet Explorer

2009-07-15 Thread Josh Nathanson
Try upgrading to jQuery 1.3.2 and BlockUI 2.0. Your versions are somewhat outdated. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of JQUser Sent: Wednesday, July 15, 2009 10:08 AM To: jQuery (English) Subject: [jQuery]

[jQuery] Re: slideUp(), slideDown() not working in IE 6, 7 on LI elements

2009-07-15 Thread Leonardo K
You can put a DIV inside a LI and animate the DIV li div content here /div /li On Wed, Jul 15, 2009 at 16:31, Bill bllfr...@gmail.com wrote: Alright, so this *is* a bug: http://dev.jquery.com/ticket/3120 Anyone have any advice on a workaround ? On Jul 15, 12:15 pm, Bill

[jQuery] Add icons to your links automatically

2009-07-15 Thread Jacques Choquette - WhistlerGraphicDesign.com
HI there I am using the working with the following script Add icons to your links automatically using jQuery CSS http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html // Add pdf icons to pdf links $(a[href$='.pdf']).addClass(pdf); but I only want to

[jQuery] Re: Add icons to your links automatically

2009-07-15 Thread Charlie Griefer
On Wed, Jul 15, 2009 at 1:41 PM, Jacques Choquette - WhistlerGraphicDesign.com j...@whistlergraphicdesign.com wrote: HI there I am using the working with the following script Add icons to your links automatically using jQuery CSS

[jQuery] Re: Add icons to your links automatically

2009-07-15 Thread Charlie Griefer
On Wed, Jul 15, 2009 at 1:47 PM, Charlie Griefer charlie.grie...@gmail.comwrote: On Wed, Jul 15, 2009 at 1:41 PM, Jacques Choquette - WhistlerGraphicDesign.com j...@whistlergraphicdesign.com wrote: HI there I am using the working with the following script Add icons to your links

[jQuery] Re: DropDown Menu

2009-07-15 Thread Charlie
wouldn't take long to rip out the area maps and put in a UL based menu like superfish, would be easier to modify later also if ever need to Paulo Henrique wrote: Hello guys, thanks for the help last time... now I'm coming here to ask you help to build a dropDown menu I already built

[jQuery] dynamic extend

2009-07-15 Thread FrenchiInLA
I have hard time to find out this one. I'd like to extend an object with another array. Let's say I have an array like var $copy= $('input[id$=copy]'); I would like to extend or add element to $par = {}; as following: $copy.each(function(){ $.extend($par,{$(this).attr('id'):$(this).val()} });

[jQuery] Re: Detecting a redirect response to an Ajax query

2009-07-15 Thread candlerb
My complete() callback looks like this: complete: function(res, status) { if ( status == success || status == notmodified ) { node.replaceWith(res.responseText); } else { // Error handling here } } The login page gets inserted into

[jQuery] Re: Using jQuery to completely separate HTML from Javascript

2009-07-15 Thread Brett Ritter
On Mon, Jul 13, 2009 at 10:18 AM, Thierrythi.l...@gmail.com wrote: $(document).ready(  function() {    $(a.foo).click(foo());  } ) This is probably not quite what you desire, as it will call foo() immediately, not on click. use $(a.foo).click(foo);// --Note 'foo', reference to function,

[jQuery] Re: Detecting a redirect response to an Ajax query

2009-07-15 Thread James
jQuery does send the header: X-Requested-With: XMLHttpRequest so you can check for that on the server-side. On Jul 15, 11:47 am, candlerb b.cand...@pobox.com wrote: My complete() callback looks like this:       complete: function(res, status) {         if ( status == success || status ==

[jQuery] Re: Cycle - preload images possible??

2009-07-15 Thread whiggins
Thanks for your response! I have the photos placed within a div (#photoshow) on the html page itself - I'm curious to know how might your code be altered to preload them in this situation? Unfortunately I had no success with the script as mentioned on the ...cycle/add3.html page. What has

[jQuery] Re: slideUp(), slideDown() not working in IE 6, 7 on LI elements

2009-07-15 Thread Bill
Leonardo, thanks very much for your reply. I've updated my code, so the third wrapper contains the following: div class=wrapper h3Plain ol' UL, slideDown()/h3 ul id=menu-1-fix lidivOne/div/li lidivTwo/div/li

[jQuery] Best autocomplete plugin?

2009-07-15 Thread gil
Hi, I'm looking for an autocomplete plugin, can anyone give me suggestions? I found this one: http://plugins.jquery.com/project/autocompletex On this thread:

[jQuery] Re: Using jQuery to completely separate HTML from Javascript

2009-07-15 Thread FrenchiInLA
how about # # # $('.foo').click(function(){ var par = $(this).attr('name'); // do whatever you need with name attribution }); Thierry-32 wrote: Hi, I am trying to remove every Javascript reference from my HTML data (except the inclusion headers of course). I would like some

[jQuery] Re: BlockUI 1.33 crashing Internet Explorer

2009-07-15 Thread Vamsi Vangury
Yes True. The versions are old but the problem is it is a project constraint that they cannot upgrade the versions. On Wed, Jul 15, 2009 at 4:29 PM, Josh Nathanson joshnathan...@gmail.comwrote: Try upgrading to jQuery 1.3.2 and BlockUI 2.0. Your versions are somewhat outdated. -- Josh

[jQuery] Re: Java Servlet with Jsonp

2009-07-15 Thread gil
We fixed the problem, we had different servlet from the one we showed here (for rpivacy issues) and we try this one and worked!. We believe the problem is that in the serverlet we made several prints, ex: HttpServletResponse response; HttpServletRequest request;

[jQuery] help with Superfish menu on Joomla in IE6/7

2009-07-15 Thread kanjigirl
My Superfish menu's working fine in FF and IE8, but broken in IE6/7: http://www.redkitecreative.com/projects/checkmark/ My developer who implemented this menu for me is no longer available and I'm not sure what CSS I should be editing here - having never used Superfish before. Can someone point

[jQuery] Re: Cycle - preload images possible??

2009-07-15 Thread amuhlou
If you are going to keep the images in the HTML page itself, then you should probably just preload them in the head of your document using an array: script type=text/javascript //check to see if image object exists (real old browsers don't have it) if (document.images) {

[jQuery] Re: help with Superfish menu on Joomla in IE6/7

2009-07-15 Thread Charlie
I have lots of superfish experience, can clear up your issues for $80 US. You have a template/tag problem, was pointed out last time this site was posted kanjigirl wrote: My Superfish menu's working fine in FF and IE8, but broken in IE6/7:

[jQuery] non-ajax Post?

2009-07-15 Thread IMStarboard
There is a form that performs a post on our site that I need to insert an onclick call to perform some logging using $.get() , but the call is never executed because the form posts before the call can be executed. I believe this because if I insert an alert(test) after that call, it works,

  1   2   >