[jQuery] Re: How to manipulate an object containaing HTML

2009-10-02 Thread Julien
On 1 oct, 20:07, Karl Swedberg k...@englishrules.com wrote: Sure, you can do this with html. Inside the success callback function, do this: $(html)    .find(td)      .css('padding-left','80px')    .end()     .appendTo('#myTable'); great! that's the .end() part i was missing! Thanks, i

[jQuery] Re: IE7 does not play nice with $.load

2009-10-02 Thread Nick Fitzsimons
2009/10/2 Dave Methvin dave.meth...@gmail.com: Is there some easy way of forcing IE to make ajax calls? You can use the old trick of adding a random number to the end of the url. That's what the { cache: false } option does; see jQuery 1.3.2 line 3448 onwards: if ( s.cache === false type

[jQuery] Re: Superfish customization: change display height of submenu

2009-10-02 Thread Jacco
That's great, thanks! I'm slowly starting to understand these hooks and callback etc. I have played around with it for a while, and finally changed the onBeforeShow in sf.defaults. I couldn't get it to work with just using your example, tried different locations of putting that code. This works

[jQuery] Re: [jquery-in-place-editor] Success function

2009-10-02 Thread Cyril Lopez
2009/9/23 Cyril Lopez loveisthe...@gmail.com Hi I'm using Dave Hauenstein's Jquery in place editor ( http://code.google.com/p/jquery-in-place-editor/). I don't know how using the success function in order to display a message if server responds with a success. I tried with success :

[jQuery] (autocomplete) show selection list programatically

2009-10-02 Thread monsoon
Hi, I'm using the autocomplete plugin: http://docs.jquery.com/Plugins/Autocomplete I'd like to trigger the display of the selection list from javascript, for example when an empty textarea get's focus, when a button on the page is clicked, etc.. Is there a way to call an internal function to

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-02 Thread Junhua Gao
Thanks for all replies. i use replace(new RegExp(.\],g) to get it work. Thanks. On Fri, Oct 2, 2009 at 10:31 AM, Karl Swedberg k...@englishrules.comwrote: On Oct 1, 2009, at 5:34 PM, waseem sabjee wrote: heres an interesting way of doing var x = mystring.length; for(x; x 0; x--) {

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
I have managed to find a script that will save the position of portlets, but to one column only - plus it wont allow me to connect to another column. I need to be able to drag over to other columns and save their order. Can anyone help? Here is my code... script type=text/javascript

[jQuery] How to disable a form

2009-10-02 Thread Cecil Westerhof
I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could disable the submit button(s). But I also want the values not be changed during the submit. Is this possible? -- Cecil Westerhof

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I am trying to do the same thing, but I'm debugging something else and I haven't succeeded yet. My approach has

[jQuery] Re: How To use getJSON?

2009-10-02 Thread Colossus
Many Thanks @ All. Now it works and i have understood it! :) And the JSON validator is now in the favs. ;) On 2 Okt., 01:02, Colossus david.stoffe...@googlemail.com wrote: h...@all. I have a little problem with JQuery and JSON, because it's my first JSON testing Project. In the

[jQuery] Re: How to disable a form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could disable the submit button(s). But I also want the values not be changed during the submit. Is this possible? On the beforesubmit

[jQuery] Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
I have the following code: $(placeInDOM).replaceWith(header + fields + footer); $(placeInDOM).find(':submit').click(function() { alert(clicked the submit button); return false; }); The first statement places a form with a submit button in my page. This

[jQuery] something missing from my code?

2009-10-02 Thread Glen_H
Hey guys, Im new to Javascript and JQuery, I am trying to have a featured area on the front page to my site, basically there is a right div area which holds the picture, on the left there is a menu with 4 buttons. here is the html: div id=projectmenu ul id=projMenu lia

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci gian...@gmail.com: I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could disable the submit button(s). But I also want the values not be changed during the submit. Is this

[jQuery] Re: How to disable a form

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 8:32 AM, Giovanni Battista Lenoci gian...@gmail.com wrote: Cecil Westerhof ha scritto: I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could disable the submit button(s). But I also want

[jQuery] Re: Stumped. 1.3.2 breaks this script

2009-10-02 Thread stilfx
Article: http://blog.reindel.com/2007/02/02/use-jquery-expressions-and-ajax-to-browse-an-xml-file/ Example: http://blog.reindel.com/src/jquery_browse Script: http://blog.reindel.com/src/jquery_browse/browse.js I've also emailed the author with no response. A quick peek, anyone? Bueller?

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 brian bally.z...@gmail.com: On Fri, Oct 2, 2009 at 8:32 AM, Giovanni Battista Lenoci gian...@gmail.com wrote: Cecil Westerhof ha scritto: I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could

[jQuery] Re: How to disable a form

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:11 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2009/10/2 brian bally.z...@gmail.com: I like that idea but another might be to (after the form has submitted) add a new submit handler for the form that simply returned false. The problem with that is that the

[jQuery] Re: something missing from my code?

2009-10-02 Thread MorningZ
also instead of $('#project1').css('display','none'); $('#project2').css('display',''); it's better habit to use .hide() and .show(), which gives you more options (like animation effects if you want) as well as automatically handles different show/hide code needed for different types of DOM

[jQuery] Re: something missing from my code?

2009-10-02 Thread Chrazy
When you write: $('a projTwo').click(function() { You want to identify the correct a by its class name (projTwo). So you would want to write it as: $('a.projTwo').click(function() { Notice the difference? On 2 Okt, 15:00, Glen_H glen.f.he...@gmail.com

[jQuery] Re: IE7 does not play nice with $.load

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons n...@nickfitz.co.uk wrote: 2009/10/2 Dave Methvin dave.meth...@gmail.com: Is there some easy way of forcing IE to make ajax calls? You can use the old trick of adding a random number to the end of the url. That's what the { cache: false }

[jQuery] Re: keeping table header fix

2009-10-02 Thread Matt Zagrabelny
On Thu, 2009-10-01 at 22:25 -0400, Karl Swedberg wrote: have you tried overflow-y: auto; ? This works... (to some degree) table tbody { height: 799px; overflow-y: auto; overflow-x: hidden; } Cheers, -- Matt Zagrabelny - mzagr...@d.umn.edu - (218) 726 8844 University of Minnesota

[jQuery] Re: Stumped. 1.3.2 breaks this script

2009-10-02 Thread brian
You say it's not displaying the first few books but you don't say which those are. The first one I'm seeing is Plum Lovin'. Is that correct or not? FF3.5.3/Linux, btw. On Fri, Oct 2, 2009 at 9:04 AM, stilfx sti...@gmail.com wrote: Article:

[jQuery] Re: Stumped. 1.3.2 breaks this script

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:29 AM, brian bally.z...@gmail.com wrote: You say it's not displaying the first few books but you don't say which those are. The first one I'm seeing is Plum Lovin'. Is that correct or not? FF3.5.3/Linux, btw. Never mind,I just found the XML source. Plum Lovin' is,

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
anyone? On Oct 2, 12:08 am, craigeves craige...@googlemail.com wrote: Please can someone help? I am using the jQuery UI (sortable) Portlets code - but I want to use the jQuery cookies plugin to remember the order of the portlets. I don't know where to start - and searching the net for an

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 brian bally.z...@gmail.com: On Fri, Oct 2, 2009 at 9:11 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2009/10/2 brian bally.z...@gmail.com: I like that idea but another might be to (after the form has submitted) add a new submit handler for the form that simply returned

[jQuery] Re: Stumped. 1.3.2 breaks this script

2009-10-02 Thread stilfx
Let me clarify. This example is working, using the older version of jQuery. When I plug in jQuery 1.3.2, the first two books no longer show and it breaks the script a bit. I am trying to figure out what changed. Near the end of the script (browse.js) you will find: .filter(:gt( + parseInt(curPos

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread Nalum
Hello Craig, I've done this before by building up a string e.g. box- id1,collapsed;box-id5,not-collapsed;box-id3,collapsed|box- id4,collapsed;box-id2,not-collapsed;box-id6,collapsed; In the javascript do something like this http://pastebin.com/m90a2af6 Hope this helps, Nalum On Oct 2, 2:35 pm,

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
Thanks for this - but I don't understand where it would fit into my script? I'm only just starting in jQuery... Also, will this save the position of the portlet no matter which column it's in? It's just that it looks like it's related to a closed and expanded portlet state. Thanks for your

[jQuery] Re: How to disable a form

2009-10-02 Thread Nalum
This is a nice plugin that I've come across that I think would be able to do exactly what you want. http://malsup.com/jquery/block/ Nalum On Oct 2, 2:35 pm, Cecil Westerhof cldwester...@gmail.com wrote: 2009/10/2 brian bally.z...@gmail.com: On Fri, Oct 2, 2009 at 9:11 AM, Cecil

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread Nalum
Is the code in the original post all the code you have? On Oct 2, 3:03 pm, craigeves craige...@googlemail.com wrote: Thanks for this - but I don't understand where it would fit into my script? I'm only just starting in jQuery... Also, will this save the position of the portlet no matter

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
Here it is - thanks for your help again !doctype html html lang=en head titlejQuery UI Sortable - Portlets/title script type=text/javascript src=jquery-1.3.2.js/script script type=text/javascript src=ui.core.js/script script type=text/javascript

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Nalum mallon.l...@gmail.com: This is a nice plugin that I've come across that I think would be able to do exactly what you want. http://malsup.com/jquery/block/ I think that that is what I need. The only 'problem' is that it blocks the whole page and not only the form. But I can

[jQuery] Re: IE7 does not play nice with $.load

2009-10-02 Thread Nick Fitzsimons
2009/10/2 brian bally.z...@gmail.com: On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons n...@nickfitz.co.uk wrote: 2009/10/2 Dave Methvin dave.meth...@gmail.com: Is there some easy way of forcing IE to make ajax calls? You can use the old trick of adding a random number to the end of the

[jQuery] Show/hide effect div on mouseover

2009-10-02 Thread Mface
Hi, I have a CSS menu that I created using div that current appears using the hover function in the CSS. What I would like to do is incorporate javascript to utilise the effect of fading in when the mouse moves over the 'menu' text and then with a delay fades out when the mouse moves out of the

[jQuery] Re: is(':checked') always returns false

2009-10-02 Thread Matt Kruse
On Oct 1, 1:16 pm, bob.nel...@gmail.com bob.nel...@gmail.com wrote: I have a bunch of checkboxes that I want to have checked when the user checks a master checkbox. You are writing too much unnecessary jQuery code! HTML for master checkbox (within a container with id 'msgsInbox'): input

[jQuery] Re: IE7 does not play nice with $.load

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 10:23 AM, Nick Fitzsimons n...@nickfitz.co.uk wrote: 2009/10/2 brian bally.z...@gmail.com: On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons n...@nickfitz.co.uk wrote: 2009/10/2 Dave Methvin dave.meth...@gmail.com: Is there some easy way of forcing IE to make ajax

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread Nalum
Hello Craig, When you need to show code you should try using a site like http://pastebin.com as it'll make it easier to read and your post wont be so long. You'll need to be able to work with cookies, I would suggest this jquery plugin http://plugins.jquery.com/project/cookie. I've explained

[jQuery] Re: How to disable a form

2009-10-02 Thread Nalum
If you look at the examples you can set it to block just a specified element. On Oct 2, 3:19 pm, Cecil Westerhof cldwester...@gmail.com wrote: 2009/10/2 Nalum mallon.l...@gmail.com: This is a nice plugin that I've come across that I think would be able to do exactly what you want.

[jQuery] Block access to the page but unblock certains divs

2009-10-02 Thread samh12
Hi, Is it possible to block the entire page but then override certain divs with an unblock command? Basically, I want to implement the block function when someone clicks the submit button on a form but if they have missed a question then unblock just this question div so it's nice and clear

[jQuery] validate

2009-10-02 Thread Paul Speranza
I am having a problem getting the error container to clear out after I have fixed invalid inputs. I am using the invalidHandler option. When my form is invalid it shows a message of the number of errors (taken from the sample code) and shows the invalid messages. After I correct each error the

[jQuery] Re: Block access to the page but unblock certains divs

2009-10-02 Thread Nalum
Have a look at he last posts in this thread. http://groups.google.com/group/jquery-en/browse_thread/thread/a174d8c1fdebad65 On Oct 2, 3:32 pm, samh12 ste...@bluemania.co.uk wrote: Hi, Is it possible to block the entire page but then override certain divs with an unblock command?  Basically,

[jQuery] Re: Block access to the page but unblock certains divs

2009-10-02 Thread samh12
Hi Nalum, Idon't think that answers my question. I know I can block at page and element level however I want a mixture. I want to block the page but leave the element that's in error alone i.e. $(document).ready(function() { $('#btnSubmit').click(function() {

[jQuery] Re: Troubles altering dropdown menu code..

2009-10-02 Thread Scooby
Here is the code that I'm thinking needs to be altered: var timer; $(#menu li a).hover(function(){ $(this).parent().children(ul).slideDown(); }, function(){ var list = $(#menu ul:visible); timer = setTimeout(function(){ list.slideUp(); },200);

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: I have the following code: $(placeInDOM).replaceWith(header + fields + footer); $(placeInDOM).find(':submit').click(function() { alert(clicked the submit button); return false; }); The first statement places a form with a

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
Hi Nalum I have tried and amended the code as you suggested - but still no luck? Thanks for the tip (pastebin). Here is my full code now. Please would you take a quick look and let me know where im going wrong? http://pastebin.com/m4dab8bb2 Thanks for your help in this - it's really

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Nalum mallon.l...@gmail.com: If you look at the examples you can set it to block just a specified element. I did not look good enough then. Thanks. At the moment I am working with hide and show. But when the functionality I want is 'ready' I'll implement it. -- Cecil Westerhof

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Julien
Karl, Your explanation and also you code helped me make a big step forward in my understanding of how jQuery thinks. Your code works fine; I tested both solutions. Thanks a lot. Julien

[jQuery] Re: jQuery Navigation problems

2009-10-02 Thread Zach Schneider
well I hide the DIV with CSS visibility: hidden; and with jQuery I want to change the stylesheet and remove the visibility to visible, the problem I am having I am not that familiar with jQuery to know how to do that On Oct 1, 10:41 pm, Scooby scoob...@gmail.com wrote: How are you hiding your

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread Nalum
I've updated the javascript here. http://pastebin.com/m4caef476 If you need any help in understanding whats happening here let me know and I'll try to explain it, I'm not the best at explaining things though. Nalum On Oct 2, 4:06 pm, craigeves craige...@googlemail.com wrote: Hi Nalum I have

[jQuery] Re: Block access to the page but unblock certains divs

2009-10-02 Thread Nalum
I think you'll have to do it in such a way that it blocks the different elements individually and then unblock the ones that have errors. e.g. $('.blockMe').blockUI({message: null}); $('.error').unblock(); On Oct 2, 3:51 pm, samh12 ste...@bluemania.co.uk wrote: Hi Nalum, Idon't think that

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread craigeves
Thanks so much for this - i'll compare the script that you just submitted to the one i submitted to see where i went wrong. Thanks again Craig On Oct 2, 4:21 pm, Nalum mallon.l...@gmail.com wrote: I've updated the javascript here.http://pastebin.com/m4caef476 If you need any help in

[jQuery] Problem with URL formatting with $.ajax

2009-10-02 Thread acedanger
Here is my code: $.ajax({ url: lUrl, global: true, async: false, data:{none:none}, type: GET, dataType: text, success: function(result){ alert(result is

[jQuery] Re: jQuery UI Portlets Cookies

2009-10-02 Thread Richard D. Worth
On Fri, Oct 2, 2009 at 11:06 AM, craigeves craige...@googlemail.com wrote: Thanks for the tip (pastebin). Another really great site for sharing code is jsbin.com http://jsbin.com/ It's got a drop-down for including jQuery and jQuery UI, live preview of full page code samples, and an editor

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci gian...@gmail.com: I have the following code:        $(placeInDOM).replaceWith(header + fields + footer);        $(placeInDOM).find(':submit').click(function() {          alert(clicked the submit button);          return false;        }); The first

[jQuery] Re: Problem with URL formatting with $.ajax

2009-10-02 Thread acedanger
I believe it was because I originally had global: false. Once I changed that, the URL formatted as I expected it to. On Oct 2, 11:31 am, acedanger acedange...@gmail.com wrote: Here is my code: $.ajax({                 url: lUrl,                 global: true,                 async: false,  

[jQuery] Pick different effects with jquery

2009-10-02 Thread Thavipa
Hello everyone, Currently i'm working on a website which needs an auto play photo gallery. The admins of the website are allowed to upload 10 or more images, which will be displayed in the gallery. I am able to show those images one by one, with 1 effect (for example fade-in from left), but

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effects/fadeOut#speedcallback A question, what placeInDOM contains? is an id? the

[jQuery] Re: jQuery Navigation problems

2009-10-02 Thread Zach Schneider
alright I figured it out, by putting my removeClass after my addClasses it works great function nav_label() { $(.nav_label).children(ul).addClass(lev1).children (li).addClass(lev1).children(a).addClass(lev1).parent ().children(ul).addClass(lev2).children(li).addClass

[jQuery] Re: keeping table header fix

2009-10-02 Thread Jack Killpatrick
Hmm, I gave this a try. Setting height stretches the table rows out vertically if there are less records than the height. I tried putting a fixed height div around the table and not setting a height on the tbody, but then the tbody overflow-y never kicks in. Hmm. Also, if I set the height of

[jQuery] why plugin function need 2 parameter sometimes

2009-10-02 Thread runrunforest
I don't see how maxentries as parameter is need in this code jQuery.fn.pagination = function(maxentries, opts) in some plugins, i see everything works fine with just something like this jQuery.fn.pluginname = function(opts)

[jQuery] Re: Show/hide effect div on mouseover

2009-10-02 Thread Liam Byrne
Normally the hover function will cause the menu div to disappear in this scenario, as the mouse moves over the child elements. But if you use the hoverIntent plugin, it'll do the trick for you. Liam Mface wrote: Hi, I have a CSS menu that I created using div that current appears using the

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci gian...@gmail.com: first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effects/fadeOut#speedcallback

[jQuery] how to get at jquery elements when i'm looping through a jquery select list with 'each'

2009-10-02 Thread buildlackey
Hi. I’m doing something dumb with jquery, but I can’t put my finger on what is causing my problem. I’m trying to debug some jquery code and I wanted to list the html of each element that I’m picking up from my select list. I have a shrunken down sample of what I’m doing below..

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: 2009/10/2 Giovanni Battista Lenoci gian...@gmail.com: first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here:

[jQuery] Re: how to get at jquery elements when i'm looping through a jquery select list with 'each'

2009-10-02 Thread buildlackey
A colleague helped me with a solution: This does what I want -alert(got a label + $(this).parent().html()); seems you have to wrap the raw java script element before calling jquery functions on it. makes sense. buildlackey wrote: Hi. I’m doing something dumb with

[jQuery] Re: how to get at jquery elements when i'm looping through a jquery select list with 'each'

2009-10-02 Thread Giovanni Battista Lenoci
buildlackey ha scritto: $(div.disabled label).each ( function() { alert(got a label + this); alert(got a label + this.html()); // THIS FAILS. }); Inside each this rappresents the html object and not a jquery or javascript (not

[jQuery] Re: Pick different effects with jquery

2009-10-02 Thread Giovanni Battista Lenoci
Thavipa ha scritto: Hello everyone, Currently i'm working on a website which needs an auto play photo gallery. The admins of the website are allowed to upload 10 or more images, which will be displayed in the gallery. I am able to show those images one by one, with 1 effect (for example

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci gian...@gmail.com: Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effects/fadeOut#speedcallback That I allready found. I tried the folowing:        $(placeInDOM).replaceWith(header +

[jQuery] LI.offset and LI.position() gives erratic results

2009-10-02 Thread Kevin Dalman
I am getting erratic results when trying to get the position of a LI element. Every browser gives different results - only IE7 seems to get it right... I have a navbar UL element nested a few levels deep within DIVs that provide page structure. The UL is also nested within a SPAN (inline- block)

[jQuery] ajax submit upload file firebug... no answer

2009-10-02 Thread Harold Martin
Hi, I've a technical problem, i use jQuery Form Plugin and it's working well except for upload file. Effectively after uploading file we can't see any response in firebug. (You can see an example in the official website of jquery form plugin http://malsup.com/jquery/form/#code-samples) And in

[jQuery] Switch image source during toggle

2009-10-02 Thread Gremlyn1
I have some divs I am toggling and there is a little + sign image I want to change to a - sign image when the toggle event occurs, but can't quite figure it out. Here is the toggle code I have (taken from a helpful post on here): $j(document).ready(function() { $j('#answerbox').hide();

[jQuery] Validation: Form with multiple submit buttons having different validation rules

2009-10-02 Thread NovoGeek
Hi all, I tried searching for similar issues but couldn't find a satisfying answer. So posting it here. I have a form with multiple fieldsets which are visible conditionally. There are three submit buttons Abandon, Save and Save Continue. Each button should validate specific controls of the form

[jQuery] Re: autocomplete click send focus back to input

2009-10-02 Thread travisjbeck
I figured it out $(#myinput).autocomplete(_url,{ onItemSelect: function(){ $('#myinput').focus(); } }); although i couldnt find onItemSelect anywhere in the documentation On Oct 1, 8:46 pm, travisjbeck smoothopera...@gmail.com wrote: are there any

[jQuery] Re: load() confusion

2009-10-02 Thread James
What exactly are you trying to do? If you're trying to load HTML into a div, you can kind of imitate it with a setInterval function that periodically checks whether the content has changed or not. If the div is not empty, first you check the content and store it (or a checksum of it) somewhere.

[jQuery] Re: Ajax / Form Validation

2009-10-02 Thread James
Try putting: var validation_options = {...}; outside of $(document).ready(); On Oct 1, 5:13 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: This is my script now. script type=text/javascript $(document).ready(function() {         $('#testForm').bind('submit', function()

[jQuery] Re: Switch image source during toggle

2009-10-02 Thread James
Could you post your relevant HTML also with some kind of sample image src and what you would like it to look like after it's been toggled? On Oct 2, 6:26 am, Gremlyn1 greml...@gmail.com wrote: I have some divs I am toggling and there is a little + sign image I want to change to a - sign image

[jQuery] Re: ajax submit upload file firebug... no answer

2009-10-02 Thread James
Could you post some relevant code on how you're doing all of this? It's hard to help from only reading what you've described. On Oct 2, 5:48 am, Harold Martin hmartin...@gmail.com wrote: Hi, I've a technical problem, i use jQuery Form Plugin and it's working well except for upload file.

[jQuery] Re: Problem with URL formatting with $.ajax

2009-10-02 Thread James
Also note that setting the cache:false option will create that additional parameter with a random value. That way the browser will not find a cache with the same resource name and always requests a new page. On Oct 2, 5:42 am, acedanger acedange...@gmail.com wrote: I believe it was because I

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Julien
Here the way to enable/disable several text inputs depending on the state of checkboxes located just after each one. $(':text~:checkbox').change( function(){ $(this).prev()[0].disabled = !(this.checked); } ); Hope this can help others.

[jQuery] Validation help needed

2009-10-02 Thread coachz
when i run this.submit(); i submit my ajax request, so how can i get the validate to fire on invalidHandler and submitHandler so I will only run this.submit(); when it passes validation ? Currently the validator does not validate the form at all on submit, I need it to cancel the submit if

[jQuery] Re: Validation help needed

2009-10-02 Thread James
You should not be calling submit() first. You only call it after everything is validated. This can be as easy as a if-statement. Here's a simple example. Modify it to work with your scenrio. $(function() { $('#testForm').bind('submit', function() {

[jQuery] Re: keeping table header fix

2009-10-02 Thread Karl Swedberg
On Oct 2, 2009, at 12:11 PM, Jack Killpatrick wrote: Hmm, I gave this a try. Setting height stretches the table rows out vertically if there are less records than the height. I tried putting a fixed height div around the table and not setting a height on the tbody, but then the tbody

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Karl Swedberg
On Oct 2, 2009, at 3:02 PM, Julien wrote: Here the way to enable/disable several text inputs depending on the state of checkboxes located just after each one. $(':text~:checkbox').change( function(){ $(this).prev()[0].disabled = !(this.checked); } ); Hope this can help others. ah,

[jQuery] Re: something missing from my code?

2009-10-02 Thread Glen_H
si it would be $('#project1').hide(); $('#project2').show() instead of doing it via css? On Oct 2, 9:15 am, MorningZ morni...@gmail.com wrote: also instead of $('#project1').css('display','none'); $('#project2').css('display',''); it's better habit to use .hide()

[jQuery] tooltip - how do i remove an existing tooltip

2009-10-02 Thread cgipson
Hi, I am using tooltip in my application as a way to notify the user as to what kind of error was found in thier input field. My question is, once that error is resolved and validated correctly, is there a way i can remove the tooltip?

[jQuery] Re: iframe accesing main document functions?

2009-10-02 Thread Ivan Zuzak
Hi ximo, You want to call a function in the parent window? Are the main window and the iframe loaded from the same domain? If so, did you try calling window.parent.yourFunc(); from within your iframe? If the main window is not on the same domain as the iframe - try using the pmrpc library

[jQuery] JQuery Thickbox help

2009-10-02 Thread hoosier
Does anyone know how to manipulate the speed/transition time for both the FadeIn and FadeOut animations for ThickBox?

[jQuery] Re: how to get post data from a page loaded in iframe in parent page

2009-10-02 Thread Ivan Zuzak
Hi Nils, I must say that I didn't quite understand what you want - do you want to access data in another iframe? If so - are the iframes (or windows) which are communicating loaded from the same domain or from different domains? I suggest you check out http://www.jibbering.com/faq/#frameRef and

[jQuery] Re: Ajax results?

2009-10-02 Thread Toaster
Thanks guys Michael, that link is very helpful. I got the numbers a bit mixed up, it should be around 25 result items each made up of 12 elements with around 12 pieces of information from db/json. - so yes, 300 elements total. If you don't mind me asking, I'd like you guys to give me your

[jQuery] Re: tooltip - how do i remove an existing tooltip

2009-10-02 Thread Rick Faircloth
How about giving the tooltip an identifier, such as a class name, and remove the class once the validation is satisfied. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of cgipson Sent: Friday, October 02, 2009 1:51 PM To: jQuery

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300px so when I scroll down I'd like to always see the

[jQuery] Re: .ajax() with dataType: 'jsonp' will not use error callback if request fails

2009-10-02 Thread KeeganWatkins
I think this is a known limitation of jsonp as a technique, not a bug with jquery itself. Jsonp works by appending a script tag to the DOM, whose src attribute points to the URL you specify. The URL is expected to wrap a json object in a function call to the function you specify, and the returned

[jQuery] Form Plugin issue with multiple submit buttons

2009-10-02 Thread Evgeny
Hi I have a form with several submit buttons. I've used $(#myform).ajaxForm(options) method to make the form submittable with ajax. the problem is that no matter what button I click the form data is the same and input type=submit element is not included into the form data, as if it were not a

[jQuery] Re: animation only when mouseover

2009-10-02 Thread Macsig
Any ideas? THANKS On Sep 21, 12:47 pm, Macsig sigbac...@gmail.com wrote: Thanks, it stops the animation but now there is an other issue. Is there a way to keep the same speed for thescrolling? I mean if I set the duration up and down and I go down just, let us say, for 1/3 of the div when

[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-02 Thread Mike Alsup
I've used $(#myform).ajaxForm(options) method to make the form submittable with ajax. the problem is that no matter what button I click the form data is the same and input type=submit element is not included into the form data, as if it were not a successul control. so at this point form

[jQuery] Re: Passing arguments to an ajax call that returns automagically

2009-10-02 Thread Mike Alsup
I have a bunch of ajax events that are fired one after an other to fill different spots on the page. Hence it's important that I know which dom element each on of the resulting data is supposed to belong to. I was wondering if there is a way I can pass the id of each element into the call

[jQuery] Re: .ajax() with dataType: 'jsonp' will not use error callback if request fails

2009-10-02 Thread Mike Alsup
I think this is a known limitation of jsonp as a technique, not a bug with jquery itself. Jsonp works by appending a script tag to the DOM, whose src attribute points to the URL you specify. The URL is expected to wrap a json object in a function call to the function you specify, and the

[jQuery] Re: Pick different effects with jquery

2009-10-02 Thread Mike Alsup
Try taking a look at the wonderful cycle plugin of Mike Alsup: http://malsup.com/jquery/cycle/options.html Thanks for the comment. Here's another page to look at that shows the variety of effects available: http://www.malsup.com/jquery/cycle/multi.html

[jQuery] Re: ajax submit upload file firebug... no answer

2009-10-02 Thread Mike Alsup
Effectively after uploading file we can't see any response in firebug. (You can see an example in the official website of jquery form pluginhttp://malsup.com/jquery/form/#code-samples) You won't see the response from a file upload displayed on the Firebug console tab because that request

  1   2   >