[jQuery] 1.1 Load

2007-01-18 Thread Mungbeans
I updated to 1.1 a couple of days ago and now all my load statements ( eg: $(#selector).load(url, {stuff:stuff}, function() {alert(more stuff)}); ) have stopped working. The documentation doesn't seem to indicate any change yet now I'm getting this error message: fn.apply is not a function I'm

Re: [jQuery] 1.1 Load

2007-01-18 Thread Mungbeans
Here is the jquery code that is throwing the error: jQuery.extend({ noConflict: function() { if ( jQuery._$ ) $ = jQuery._$; }, isFunction: function( fn ) { return fn typeof fn == function; }, //

Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans
dave.methvin wrote: Do you have a form with the id of login? If not, use a different selector to get it. The key is to call the submit method on the underlying DOM object of the form. $(selector-to-your-form)[0].submit() Yes it is there. Absolutely, definitely. -- View this

Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans
malsup wrote: You don't *have* to have a submit button on the form, but you really should. What if javascript is disabled? You still want the form to work, right? You can use your image as a submit element if you like: input type=image src=myImage.gif / Actually my code starts

Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans
Olaf wrote: function submitLoginForm() { //validation is working so I know that the load form function worked // when this do, then is submitted if ( ($(#username).val()== ) || ($(#passwd).val()== )) { alert (Please complete the username and password fields.);

Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans
Olaf wrote: For what is this good? You have this in posted HTML!? I'm not sure I understand this question or its tone. I posted into Nabble in text. I have to remember to replace the lt: and gt; so it doesn't print out as html. Pity Nabble doesn't have a quote or code button to wrap

Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans
Olaf wrote: I ask why you replace in script a gif in a png and not use the png in HTML!? ( !? == rhetorical ask == no answer necessarily ) ;) I was playing around with the image formats seeing if they made to a difference to the way they displayed. The images were exactly the same. The

Re: [jQuery] List styling not working after $.ajax call

2007-01-17 Thread Mungbeans
Compare the html before and after the replace. If you are using Firefox and the Web Developer Toolbar you can examine the ajax generated source using View Source - View Generated Source. You will probably find that the html is different in some way. Also, if the styling was added using

[jQuery] Form not submitting

2007-01-16 Thread Mungbeans
I'm posting this in the hope that the mere act will help me work out what it is I'm doing wrong. I have a form: form action=index.php method=post name=login id=login ..etc. /form with a button that call up the validation function: function submitLoginForm() { if (

Re: [jQuery] Form not submitting

2007-01-16 Thread Mungbeans
dave.methvin wrote: The jQuery submit() method calls any submit event handler on the form, but doesn't submit the form. (Let the debate begin.) Ahh, that explains it. There isn't a submit button on the form. I have an image that triggers the validation. So... is there a way to

Re: [jQuery] Form not submitting

2007-01-16 Thread Mungbeans
dave.methvin wrote: $(#login)[0].submit(); Unfortunately that doesn't work either. In firebug I get: $(#login)[0].submit is not a function I get the same error with document.login.submit(); -- View this message in context:

[jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
I have a form with multiple checkboxes, each with their own unique id. How do I go about returning the ids of the selected checkboxes into an array? Sorry if this is a bit basic, but it has me stumped. -- View this message in context:

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
malsup wrote: var a[]; $(':checkbox').each(function() { if (this.id) a.push(this.id); }); I get this error: missing ; before statement var a[]; (curse my rudimentary javascript skills!) -- View this message in context:

Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans
Erik Beeson wrote: You want: var a = []; You've been doing too much C and Java :) I found this works too: a = new Array() $(':checkbox').each(function() { if (this.checked) { if (this.id) a.push(this.id); }

Re: [jQuery] Please wait.. tutorial

2007-01-01 Thread Mungbeans
AHeimlich wrote: http://www.malsup.com/jquery/block/ might interest you. Very nice! Two lines of code and my Please wait.. message was displaying like a dream. Happy New Year to everyone! -- View this message in context:

[jQuery] Please wait.. tutorial

2006-12-31 Thread Mungbeans
Does anyone know where there is a good tutorial on coding a Please wait.. sign to appear in the middle of the page whenever ajax commands are being processed? I've tried, but so far haven't had much success. -- View this message in context:

[jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Mungbeans
I have this table: table id=photographTable tr td span class=small button onclick=showPhotograph('http://localhost:11000/my.JPG', 1044, 746);return false;Show/spantd..etc../td /tr trtd...etc/td/tr /table How do I trigger the on-click event in the first cell, first row? -- View this message in

Re: [jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Mungbeans
I discovered that this: $(#photographTable tr:eq(0) td:first-child span).click(); does work. My problem was that I had to include it into the callback function attached to the ajax call that created the table. -- View this message in context:

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2006-12-18 Thread Mungbeans
Andy Matthews wrote: A more generic approach: $('#mySelect [EMAIL PROTECTED]').text(); This isn't working for me. I have a select box that looks like this before a selection is made: select name=filter id=filter class=selectbox size=1 option value=0

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2006-12-18 Thread Mungbeans
Well this doesn't work: var id = $(#filter).val();//correctly returns 1 as the value if (id != 0 ) { var strCemetery = $('#cemeteryfilter [EMAIL PROTECTED]').text(); } I'm really getting frustrated here. What is the syntax for testing each option for the matching value? -- View this

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2006-12-18 Thread Mungbeans
Brandon Aaron wrote: This has been a hot topic today. Try using the :selected selector instead of the attribute selector. $('#mySelect option:selected').text(); Ah. This is getting closer. Rather bizarrely, it returns the text for both the original selection AND the new selection,

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2006-12-18 Thread Mungbeans
dave.methvin wrote: @selected. There is always @defaultSelected if you want to know the original value, although I haven't tried it... I have - it doesn't work. This: $('#filter [EMAIL PROTECTED]').text() returns the original selected value. -- View this message in context:

Re: [jQuery] setTimeout in jquery function

2006-12-16 Thread Mungbeans
Thanks all. The solution: timeout = setTimeout(arguments.callee,5000); works well for me too. -- View this message in context: http://www.nabble.com/setTimeout-in-jquery-function-tf2830530.html#a7905216 Sent from the JQuery mailing list archive at Nabble.com.

[jQuery] setTimeout in jquery function

2006-12-15 Thread Mungbeans
I am (attempting) to convert a standard javascript function to a jquery function. It targets an image within a given div and changes it height and width. Here is the old function, where z is the image. img_act_height, max_width etc are global variables: function zoom_in() {

Re: [jQuery] setTimeout in jquery function

2006-12-15 Thread Mungbeans
Erik Beeson wrote: Also, it's bad form to use $ in a plugin function. Use jQuery(...) instead of $(...) Duly noted :) I was fully expecting someone to take me to task about the global variables... -- View this message in context:

Re: [jQuery] setTimeout in jquery function

2006-12-15 Thread Mungbeans
Erik Beeson wrote: setTimeout(self, time_length); This line is now returning an error (its on line 430): missing ] after element list gs_admin.js (line 430) [object Window] -- View this message in context:

[jQuery] Empty each text field

2006-12-14 Thread Mungbeans
I want to empty every text field in a given form. So far this isn't working: $('[EMAIL PROTECTED]text]').each(function(){ this.val = ; }); -- View this message in context: http://www.nabble.com/Empty-each-text-field-tf2824412.html#a7884125 Sent from the JQuery mailing list archive

[jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
I have just downloaded the latest and greatest and now am getting this strange error message in firebug: missing ; before statement jquery.js (line 1933) div class=buttonpanel_frontpage h1 class=contentheading_frontpage line 1933 in jquery is: 1931 // evaluate scripts within html 1932 if (

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Chris Domigan wrote: Sounds like you have a custom script being loaded in by ajax, eg .load() and eval'd which is throwing the error. Any syntax errors in your custom script? This is the offending code: function updateSectionForm(sectionidVal) { $.getJSON(index2.php,

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Erik Beeson wrote: I notice your code also has an underscore in a parameter name. Maybe try removing the underscore? Just realised you mean the parameters to the function. If I include a callback function into the JSON call, eg: $.getJSON(index2.php, {no_html:1,

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Erik Beeson wrote: You still have no_html with an underscore... I temporarily removed the underscore and then got a message that indicated that the problem was with my php code. Once I fixed that (and put the underscore in no_html back) the query ran without an error. Now all I have

[jQuery] Simple delete confirmation

2006-12-06 Thread Mungbeans
I have a table that contains a 'delete' link for each item, eg: javascript: void(0); Delete This is the function that does the work: function deleteState(stateIdVal) { delText = $(#delete+stateIdVal).text(); if (delText==Delete) {

Re: [jQuery] Simple delete confirmation

2006-12-06 Thread Mungbeans
Chris Domigan wrote: $(#delete+stateIdVal).html(Really delete?); Is that what you're after? Exactly what I'm after. I'd assumed it wasn't the correct method because of the example given. Chris Domigan wrote: Also, as a tip, instead of using javascript: calls inside your link,

[jQuery] missing ) in parenthetical

2006-11-25 Thread Mungbeans
I am trying to create and load a select box after another select box has been updated. Here is the code: function towns(){ stateVal=document.namesearch.state.value; $(li#towns).load(test.php, (state:stateVal)); } $(document).ready(function(){ $(#state).change( function() {

Re: [jQuery] missing ) in parenthetical

2006-11-25 Thread Mungbeans
Chris Domigan wrote: Replace (state:stateVal) with {state:stateVal} Ahh - thanks Chris. I would have checked with the documentation but the JQuery site was playing up last night. I see its now back to normal. (Yay!) The ajax tutorial I was following was a rather fuzzy YouTube clip, so

Re: [jQuery] Input text hover error

2006-10-01 Thread Mungbeans
Indeed: http://clotheshorse.com.au/clotheshorse/content/category/3/21/32/ http://clotheshorse.com.au/clotheshorse/content/category/3/21/32/ -- View this message in context: http://www.nabble.com/Input-text-hover-error-tf2366677.html#a6595374 Sent from the JQuery mailing list archive at

Re: [jQuery] Input text hover error

2006-10-01 Thread Mungbeans
Brandon Aaron wrote: What version of Firefox are you using? 1.5.0.7 I just played around with it myself and I'm definitely getting the errors. -- View this message in context: http://www.nabble.com/Input-text-hover-error-tf2366677.html#a6595460 Sent from the JQuery mailing list archive

Re: [jQuery] Input text hover error

2006-10-01 Thread Mungbeans
Mungbeans wrote: I just played around with it myself and I'm definitely getting the errors. A I just went into the JQuery on the site and it was showing the old file - hit reload and the new one came up - no problems since so I think it was a stupid caching error. -- View

Re: [jQuery] Passing current object to function

2006-09-30 Thread Mungbeans
Christof Donat wrote: $.fn.tableHover = function(hoverClass) { $(tr,this).click(function() { window.location.href = $(this).find('a')[0].href; }).hover(function() { $(this).addClass(hoverClass); }, function() {

[jQuery] unchange() - how does it work?

2006-09-29 Thread Mungbeans
I have a number of controls on a form that have a default onchange() function. In some places I would like to change the onchange function to something else, but I find that I have been unsuccessful in removing the default function. I have tried several different types of commands but nothing

Re: [jQuery] unchange() - how does it work?

2006-09-29 Thread Mungbeans
But, it works. $( #myradiobutton ).attr( onchange, ).change( function() { ... } ); But it doesn't work :( Whenever I try to use the .attr() function (eg: .attr( onchange, ) ) firebug tells me: .attr is not a function In other places I've had to use set() instead. -- View this

[jQuery] This mailing list software hates me

2006-09-29 Thread Mungbeans
Whenever I try to turn off the email within the mailing list options - while I am logged in - I get an email telling me: You did not give the correct password Not authenticated My mailbox is innundated. How do I become 'authenticated' ? -- View this message in context:

Re: [jQuery] Rollover

2006-09-29 Thread Mungbeans
You could add the style to the li or directly. Incidentally navigation rollovers can be handed better without javascript: http://css.maxdesign.com.au This site is on my permanent bookmarks. -- View this message in context: http://www.nabble.com/Rollover-tf2359602.html#a6574113 Sent from

Re: [jQuery] unchange() - how does it work?

2006-09-29 Thread Mungbeans
Where in the documentation does it cover handling in-line attributes? I must say that having different methods for JQuery and inline events seems counter-intuitive (even if I could get the .attr() thing to work). -- View this message in context:

Re: [jQuery] unchange() - how does it work?

2006-09-29 Thread Mungbeans
Nevermind - I think my browser cache is playing tricks with me. attr() is now working and set() isn't. -- View this message in context: http://www.nabble.com/unchange%28%29---how-does-it-work--tf2356323.html#a6575761 Sent from the JQuery mailing list archive at Nabble.com.

Re: [jQuery] Simple form setup

2006-09-01 Thread Mungbeans
For some reason, I can't seem to include more than one expression within a function. For instance: function emailForm() { ..etc.. } $(document).ready(function() { // format the form $(document).click(emailForm); //activate validation $(#sendmail).click( function() {

[jQuery] Simple form setup

2006-08-30 Thread Mungbeans
I am very, very new at JQuery and only mildly competent with javascript, so please be patient. I have a form that at present validates by js first and then the js submits the form. Of course, the form doesn't work at all if js is disabled. I want to change it so that the buttons are setup as