[jQuery] Re: what is call()

2009-10-02 Thread Karl Swedberg
On Oct 3, 2009, at 1:21 AM, runrunforest wrote: I see it is used in many plugins. I try to find document about it but no help. It's a JavaScript function: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call --Karl Karl Swedberg www.eng

[jQuery] what is call()

2009-10-02 Thread runrunforest
I see it is used in many plugins. I try to find document about it but no help.

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

2009-10-02 Thread Evgeny
Sure, here it is. Thank you! http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/people/moderate/ there are many identical forms with different data. javascript submission goes to a different url -> to wsgi application, which is set in the script /pywiki/media/scripts/people.js

[jQuery] [jcarousellite] stopping and restarting the auto scrolling

2009-10-02 Thread macsig
Hello guys, Is there a way to stop a carousel (created with jcarosellite 1.0.1) when it has ben set up with auto-scrolling? I need to be able to stop it and restart it when a button is pressed. If I can't can you please suggest me a plugin that have infinite scrolling, auto-scrolling and I can st

[jQuery] Re: why plugin function need 2 parameter sometimes

2009-10-02 Thread Mike Alsup
> 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) It all depends on how the author wrote the plugin. If t

[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

[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() 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 t

[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 > c

[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 element is not > included > into the form data, as if it were not a "successul control". > > so at this point form doesn'

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

2009-10-02 Thread Martin Tschofen
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 so that

[jQuery] Re: animation only when mouseover

2009-10-02 Thread Macsig
Any ideas? THANKS On Sep 21, 12:47 pm, Macsig 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 I scroll back u

[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 element is not included into the form data, as if it were not a "successul control

[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 returne

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig 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 header on top. > I

[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 (English)

[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 opinio

[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] 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 (http:

[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 t

[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 wrote: > also > > instead of > > $('#project1').css('display','none'); > $('#project2').css('display',''); > > it's better habit to use ".hide()" and ".sho

[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, t

[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 overfl

[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() { $(this).validate(validation_options)

[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: 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] 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 wrote: > I believe it was because I originally had "globa

[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 wrote: > Hi, > > I've a technical problem, i use jQuery Form Plugin and it's working > well except for upload file. > Effectively after u

[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 wrote: > 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 e

[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" wrote: > This is my script now. > > > $(document).ready(function() { > >         $('#testForm').bind('submit', function() { >                 $(this).validate(va

[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. T

[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 wrote: > are there any callbacks for me to hook into

[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 th

[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] 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 th

[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] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci : >>> 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(he

[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 fade-i

[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

[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 du

[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 : 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/Effec

[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 Cecil Westerhof
2009/10/2 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 That

[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] 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: 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 t

[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 ("lev2")

[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] 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 what

[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 wrote: > Here is my code: > > $.ajax({ >                 url: lUrl, >                 global: true, >                 async: false, >              

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

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

[jQuery] Re: jQuery UI Portlets & Cookies

2009-10-02 Thread Richard D. Worth
On Fri, Oct 2, 2009 at 11:06 AM, craigeves 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 so someone can edit a

[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 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 wrote: > I've updated the javascript here.http://pastebin.com/m4caef476 > > If you need any help in understanding whats happen

[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 wrote: > Hi Nalum, > Idon't think that answers my question.  I

[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 wrote: > Hi Nalum > > I have tried and amended the

[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 wrote: > How are you hiding your UL's? From my expe

[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: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Nalum : > > 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: 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 appreciate

[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: 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(); },2

[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() { $.bloc

[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 wrote: > Hi, > > Is it possible to block the entire page but then override certain divs > with an unblock command?  Basically, I want to implement

[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 cor

[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 that

[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 wrote: > 2009/10/2 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/ > > I thi

[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 how

[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 wrote: > > 2009/10/2 brian : >> >> On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons wrote: >>> >>> 2009/10/2 Dave Methvin : > Is there some easy way of forcing IE to make ajax > calls? You can use the old trick of adding a ra

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

2009-10-02 Thread Matt Kruse
On Oct 1, 1:16 pm, "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'): > type="checkbox" value="

[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 m

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

2009-10-02 Thread Nick Fitzsimons
2009/10/2 brian : > > On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons wrote: >> >> 2009/10/2 Dave Methvin : >>> 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:

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 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/ 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 live with that. --

[jQuery] Re: jQuery UI Portlets & Cookies

2009-10-02 Thread craigeves
Here it is - thanks for your help again jQuery UI Sortable - Portlets .column { width: 300px; float: left; background-color: #ee; margin-right: 25px; padding-top: 10px; padding-right: 10px;

[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 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 which > column it's in? I

[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 wrote: > 2009/10/2 brian : > > > > > > > > > On Fri, Oct 2, 2009 at 9:11 AM, Cecil Westerhof > > wrote: > > >> 2009/10/

[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 time.

[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: 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(curPo

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 brian : > > On Fri, Oct 2, 2009 at 9:11 AM, Cecil Westerhof > wrote: >> >> 2009/10/2 brian : >>> >>> 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: jQuery UI Portlets & Cookies

2009-10-02 Thread craigeves
anyone? On Oct 2, 12:08 am, craigeves 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 answer only > brings u

[jQuery] Re: Stumped. 1.3.2 breaks this script

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:29 AM, brian 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, indeed, the

[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 wrote: > > Article: > http://blog.reindel.com/2007/02/02/use-jquery-expressions-and

[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 Dulu

[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 wrote: > > 2009/10/2 Dave Methvin : >> >>> 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

[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 wrote: > Hey guys, Im n

[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: How to disable a form

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:11 AM, Cecil Westerhof wrote: > > 2009/10/2 brian : >> >> 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 fields still can be changed. I >

[jQuery] Re: something missing from my code?

2009-10-02 Thread MorningZ
$('a projTwo') you need a period before "projTwo" to tell jQuery "with this class name" so $('a.projTwo'). On Oct 2, 9:00 am, Glen_H wrote: > 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

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 brian : > > On Fri, Oct 2, 2009 at 8:32 AM, Giovanni Battista Lenoci > 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 butto

[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? Bueller?

[jQuery] Re: How to disable a form

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 8:32 AM, Giovanni Battista Lenoci 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 the valu

[jQuery] Re: How to disable a form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci : >> 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? >> >

[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:

[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] 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] 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 wrote: > h...@all. > > I have a little problem with JQuery and JSON, because it's my first > JSON testing Project. > > In the documentation i found this:http://d

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig 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 been that of the C

[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

  1   2   >