[jQuery] Simple .html problem in 1.4

2010-01-18 Thread Bruce MacKay
Hi folks, The following function works fine in jQ1.3, but not in jQ1.4 function getArchive(pID){ $.get(scripts/ajax_editor.asp?id=getArcepID=+pID+q= + new Date().getTime(), function(responseText){ //console.log(responseText);

[jQuery] parent selectors (I think) and tabs

2009-12-20 Thread Bruce MacKay
Hi folks, I'm hoping for some help/direction in a problem I'm having with some tab switch code (originally presented @ http://www.mind4m.com/stories.php?pageid=10) that I've introduced onto a test page @ http://rudderlive.bito.org.nz/employment_dev.asp While the tab a links are working in so

[jQuery] visible divs and selectors

2009-12-11 Thread Bruce MacKay
Hi folks, I'm having difficulty with a flicker/repaint of an 'unhidden' div in the following scenario A user clicks on a region of an image map and triggers the following function which 'unhides' previously populated divs, each with an id of the clicked region and each containing a list of

[jQuery] Re: Binding a function to 1 'a' tag - which approach is best?

2009-11-28 Thread Bruce MacKay
it's a net gain). Michel Belleville 2009/11/27 Bruce MacKay thomasba...@gmail.com Hello folks, I have some html returned via ajax that contains several 'a' tags to which I am binding a function. Both of the following methods does the job, but my perception of other posts about

[jQuery] Re: Accordion, fieldset and selectors question

2009-11-27 Thread Bruce MacKay
('h6.expand_group').removeClass('expand_group');         $(this).next('fieldset').slideToggle('fast').siblings ('fieldset:visible').slideUp('fast');         return false;     }); Regards, Adriana On Nov 26, 11:41 am, Bruce MacKay thomasba...@gmail.com wrote: Hello folks, I have

[jQuery] Binding a function to 1 'a' tag - which approach is best?

2009-11-27 Thread Bruce MacKay
Hello folks, I have some html returned via ajax that contains several 'a' tags to which I am binding a function. Both of the following methods does the job, but my perception of other posts about this general practice from more wiser folk than me is that the first method is the better method.

[jQuery] Accordion, fieldset and selectors question

2009-11-26 Thread Bruce MacKay
Hello folks, I have an operational accordion based on a series of fieldset tags (the content) and h6 tags (the triggers). It is initiated by: $('.accord h6').click(function() { $(this).next('fieldset').slideToggle('fast').siblings ('fieldset:visible').slideUp('fast'); }); The trigger

Re: [jQuery] Re: SimpleModal problem in IE7

2009-11-01 Thread Bruce MacKay
version of SimpleModal. -Eric [1] http://code.google.com/p/simplemodal/downloads/list On Oct 30, 6:20 am, Eric Martin emarti...@gmail.com wrote: Bruce, Thanks for reporting the issue. I was able to reproduce the issue and will work on a fix. -Eruc On Oct 29, 10:51 pm, Bruce MacKay b.mac

[jQuery] SimpleModal problem in IE7

2009-10-29 Thread Bruce MacKay
Hi folks, I've just updated a previously functioning piece of code that uses the simplemodal plugin - the code does an ajax call to a file containing a email form and loads it into a modal layer. The code now longer works in IE7 using the latest version of simplemodal

[jQuery] Printing contents of a tab within a lightbox-clone

2009-09-05 Thread Bruce MacKay
Hello folks, I'm having difficulty getting the contents of a particular tab within a jquery-ui Tabs collection that is present in a lightbox (Fancybox) My print.css sheet is: html, body { display:block; } body * { display:none; } #printresults { display:block!important;

[jQuery] toggle and logic confusion

2009-08-12 Thread Bruce MacKay
Hi folks, I have a set of 3 divs with a class element of hideme. Through the code that follows (it's not mine; it works!), I can click a dedicated a.tag for each div to toggle the visibility (or not) of the contents of the associated div. What I'd like to be able to achieve is that if

[jQuery] Re: toggle and logic confusion

2009-08-12 Thread Bruce MacKay
at the above link. On Aug 12, 10:00 am, Bruce MacKay b.mac...@massey.ac.nz wrote: Hi folks, I have a set of 3 divs with a class element of hideme. Through the code that follows (it's not mine; it works!), I can click a dedicated a.tag for each div to toggle the visibility (or not) of the contents

[jQuery] Re: Identifying the type of parent

2009-06-30 Thread Bruce MacKay
The answer I needed - and found in the jQuery documents - was var parentTag = $('#'+ni).parent().get(0).tagName; I should have looked more closely sooner. Cheers, Bruce At 04:58 p.m. 30/06/2009, you wrote: Hello folks, I have a function, triggered when a particular type of link is

[jQuery] Identifying the type of parent

2009-06-29 Thread Bruce MacKay
Hello folks, I have a function, triggered when a particular type of link is clicked, which collects and inserts some text after the parent of the clicked link. This function works fine when the parent is a p tag, but I'm having trouble when the link is within a list tag. In this instance I

[jQuery] Removing an emptied paragraph from the DOM

2009-06-20 Thread Bruce MacKay
Hello folks, I have an application which removes an image from within a paragraph, wraps that image in a div and places it in front of the paragraph. I now want to remove that paragraph. Why doesn't the following use of remove() not achieve my objective? I've tested the length - it is 0,

[jQuery] Re: Removing an emptied paragraph from the DOM

2009-06-20 Thread Bruce MacKay
Thanks Mauricio, I hadn't tried that angle, but unfortunately it didn't make any difference. I've also tried adding a class to the initial parent p and then trying to remove all paragraphs containing that class name - and have achieved the same nil outcome. Thanks for your input. Cheers,

[jQuery] History and ajax has me stuck

2009-06-16 Thread Bruce MacKay
Hi folks, I'm having difficulty understanding how to get Klaus's history plugin working in my application.I have an ebook application in which the page has a static index of pages which, when an individual link is clicked, a file is loaded into an adjacent div (#ebook). Upon being

[jQuery] Re: Moving a div container from within to before a p container

2009-06-08 Thread Bruce MacKay
Conventions for the JavaScript Programming Language -http://javascript.crockford.com/code.html On Jun 6, 5:11 pm, Bruce MacKay b.mac...@massey.ac.nz wrote: Hi folks, The following function takes an image tag (or table) that appears within a p tag container in the form p img text /p

[jQuery] Moving a div container from within to before a p container

2009-06-06 Thread Bruce MacKay
Hi folks, The following function takes an image tag (or table) that appears within a p tag container in the form p img text /p and wraps the image (and caption if a title is present) into a div for floating left, right, or centering. My problem is that I don't know how to shift the

[jQuery] this.appendChild(E) error

2009-04-19 Thread Bruce MacKay
Hello folks, I'm getting an IE-only error (IE6/7) on a page for which I cannot find a solution. IE reports an error (Unexpected call to method or property access) at line 12. The Script Debugger is pointing to this.appendChild(E) in jquery (v1.3.2 rev. 6246). The context of the code is

[jQuery] Re: this.appendChild(E) error

2009-04-19 Thread Bruce MacKay
Thanks Jordon - but alas this adjustment made no difference to IE. Bruce At 09:57 a.m. 20/04/2009, you wrote: Try doing $(#editorbox).fadeIn(500).html(field.doeditor); From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Bruce MacKay Sent: Sunday, April 19

[jQuery] [Quite OT] charsets, chr values, errant characters

2009-03-09 Thread Bruce MacKay
My apologies in advance for posting this question here - but I feel I've exhausted other avenues available/known to me and I don't know where else to seek help. Even direction to more appropriate forums to post such a query would be very helpful. I'm having difficulty identifying a strange

[jQuery] Re: Cancelling the behaviour of a link-initiated function

2009-02-26 Thread Bruce MacKay
I found a solution (thanks to Steven Bristol - http://codesnippets.joyent.com/posts/show/1345 - )... which namespaced the click event. Then, but detailing the id of the a tag you want to cancel, you can unbind the behaviour from that link (id) and that link only.

[jQuery] Cancelling the behaviour of a link-initiated function

2009-02-25 Thread Bruce MacKay
Hi folks, I'm after some help/ideas of how to link a couple of things together. I have a page which holds several pieces of text that are hidden on pageload. These are toggled into and out of view via a function tied to an a.showme class combo. I also have functionality to load content

[jQuery] Duplicating the last row of a table

2009-02-12 Thread Bruce MacKay
Hello folks, The code and HTML below are from a quiz editor - I have an onClick function that fires duplicateRow to add another question box onto the end of the table. Firefox does what I expect to happen - it selects the last tr row. IE7 and Safari, on the other hand, appear to treat the

[jQuery] Re: Duplicating the last row of a table

2009-02-12 Thread Bruce MacKay
Thanks RobG - sorry about the layout - I didn't send it like it appeared. I didn't notice the missing tr tags and wouldn't have thought of the tbody + id solution. Cheers, Bruce At 06:48 p.m. 13/02/2009, you wrote: On Feb 13, 1:36 pm, Bruce MacKay b.mac...@massey.ac.nz wrote: Hello

[jQuery] I can't get Shadowbox to fire!

2009-02-07 Thread Bruce MacKay
Hi folks, I've tried a zillion combinations but I can't find the one that will make Shadowbox (http://mjijackson.com/shadowbox/index.html) fire. I am running jQuery 1.3.1 and Shadowbox v2. Would someone mind checking out my test page at http://horticulture127.massey.ac.nz/dumpthis.htm and

[jQuery] Re: I can't get Shadowbox to fire!

2009-02-07 Thread Bruce MacKay
! Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Feb 7, 2009 at 2:54 PM, Bruce MacKay b.mac...@massey.ac.nz wrote: Hi folks, I've tried a zillion combinations but I can't find the one that will make Shadowbox (http://mjijackson.com/shadowbox/index.html) fire. I

[jQuery] What is IE7 barfing at this js?

2008-12-29 Thread Bruce MacKay
Hi folks, The following snippet processes a JSON string sent back to the browser (it is part of a poll) function loadResults(data) { var OPT_VOTES = 2; var total_votes = 0; for (id in data) { total_votes = total_votes+parseInt(data[id][OPT_VOTES]);

[jQuery] Selector difficulty/removeClass

2008-12-11 Thread Bruce MacKay
Hello folks, I want to remove a css class (.qyes) from every label element inside a single div (id=quiz). Each label element has an ID of the form fb*** where *** represents a unique identifier (that is not in numerical sequence and is not related to the label element's position or order

[jQuery] .serialize and form elements in tables

2008-10-03 Thread Bruce MacKay
Hello folks, I've been successfully using .serialize() to prepare input data when my form has the structure form id=processthislabel for=d1Your name/labelinput id=d1 type=text name=dStartDate etc... /form However, if the input elements are enclosed within a table structure within the

[jQuery] Re: .serialize and form elements in tables

2008-10-03 Thread Bruce MacKay
Thank you Dave. The tables were formed fine (I'd checked that) but I had managed to include duplicate form IDs in the page and once that was fixed, the .serialize() is now working as expected. Cheers, Bruce At 02:54 p.m. 4/10/2008, you wrote: That code looks okay. Have you run the HTML

[jQuery] Re: .serialize and form elements in tables

2008-10-03 Thread Bruce MacKay
I appreciate the input (no pun intended!) but that workaround didn't do the job. Cheers, Bruce At 01:54 p.m. 4/10/2008, you wrote: a quick workaround that springs to mind is $ (#form :input).serialize(); On Oct 3, 6:26 pm, Bruce MacKay [EMAIL PROTECTED] wrote: Hello folks, I've been

[jQuery] Re: .serialize and form elements in tables

2008-10-03 Thread Bruce MacKay
I haven't set breakpoints before - will follow that up now - but if it helps, my code is function saveForm(ej) { var temp=new Array(); alert(ej); temp=ej.split('*'); var sct = temp[0]; var fID = temp[1]; alert('#'+sct); var str =

[jQuery] Getting the id of the next form

2008-09-30 Thread Bruce MacKay
Hello folks, I have a page containing a number of forms e.g. div id=alerts pa href=# class=ctrl_s[an image]/a/p form id=f_alert [various form elements] /form /div div id=whodidit pa href=# class=ctrl_s[an image]/a/p form id=f_whodidit

[jQuery] [jEditable] dynamically updating a parameter value

2008-09-29 Thread Bruce MacKay
Hello folks, I want to dynamically update a parameter value when using jEditable. The following function loads a div on the current page with new content relating to an item ID of fID (selected from a list of items in another div on the page). I then use jEditable to allow the user to

[jQuery] Re: [jEditable] dynamically updating a parameter value

2008-09-29 Thread Bruce MacKay
, Bruce MacKay wrote: The following function loads a div on the current page with new content relating to an item ID of fID (selected from a list of items in another div on the page). I then use jEditable to allow the user to update the content of that item. That bit works fine on the first cycle

[jQuery] Re: [jEditable] dynamically updating a parameter value - FIXED

2008-09-29 Thread Bruce MacKay
', submitdata : function() { return {foo: fID} }, type : 'textarea', width : '95%', tooltip : Click to edit... }); At 12:51 a.m. 30/09/2008, you wrote: On Sep 29, 2008, at 11:55 AM, Bruce MacKay wrote: The following function loads a div

[jQuery] Disappearing accordion elements

2008-09-08 Thread Bruce MacKay
Hi folks, I'm having trouble with lower elements (correct usage of the term???) of disappearing under the footer div of my page. A test page is here: http://www.watereducationalliance.net/technology.asp (click on key info) In both IE7 and FF3, the lower two items of the accordion are not

[jQuery] Re: Check if window exists before opening

2008-07-02 Thread Bruce MacKay
More searching has led me to a solution, and another question $(a.openW).click( function() { var sTarget = this.href; if (!winRef.open){ winRef=window.open(sTarget); return false; }else {

[jQuery] The Cycle plugin and residue

2008-07-01 Thread Bruce MacKay
Hello folks, I'm using the Cycle plugin to display annotated slideshows - I'm having problems with it remembering and presenting the titles of previous slideshows. My sequence is this: 1. The page is loaded and the current slideshow is started $(document).ready(function() { ...

[jQuery] Re: jQuery Cycle question

2008-05-27 Thread Bruce MacKay
Hello Mike, Thanks for your interest. A link is here... http://ramosus.massey.ac.nz/jQuery.htm Cheers/Bruce At 12:24 a.m. 28/05/2008, you wrote: In its simplest form my problem is this. Suppose I have two slideshows, A and B. Slideshow A runs properly. However, when I replace

[jQuery] Re: jQuery Cycle question

2008-05-27 Thread Bruce MacKay
Thanks Mike, that did solve the problem. Cheers/Bruce At 11:25 a.m. 28/05/2008, you wrote: Hello Mike, Thanks for your interest. A link is here...http://ramosus.massey.ac.nz/jQuery.htm Cheers/Bruce Since the first slideshow was never explicitly stopped you actually have two running

[jQuery] IE7, simple AJAX, and nothing!

2008-05-12 Thread Bruce MacKay
Hello folks, I'd appreciate insight to the fault in this function which works in FF and Safari but not in IE7. Specifically, the returned ajax file is not displayed. function fnGetEbookFile(ni){ $.ajax({ url: 'textfiles/'+ni+'.txt', type: 'GET', cache: false,

[jQuery] Re: IE7, simple AJAX, and nothing - fixed!

2008-05-12 Thread Bruce MacKay
Sorry folks - I was looking in the wrong place - the file being loaded had a malformed div tag and IE7 was responding to that. Cheers, Bruce At 11:45 p.m. 12/05/2008, you wrote: On 12 Mag, 12:57, Bruce MacKay [EMAIL PROTECTED] wrote: Hello folks, uhm... it's kinda strange O_o maybe

[jQuery] Why won't this get the image's width?

2008-05-04 Thread Bruce MacKay
Hello folks, This piece of code if (($('#theImage').length0)) { var img_width = $('#theImage').width(); $.log(img_width); $(#sCaption).css(width,img_width); }; follows an ajax call to bring content to an existing div...

[jQuery] Finding the size of an image

2008-05-02 Thread Bruce MacKay
Hello folks, I am wanting to find the width of an image loaded via an ajax call so that I can alter the width of a div holding the caption for that image. The image that is loaded is always tagged with an id of 'theImage'. Each image loaded with each ajax call has a slightly different

[jQuery] Re: check/uncheck via toggle

2008-04-03 Thread Bruce MacKay
').animate({backgroundColor:'#9C3'},2000).animate({backgroundColor:'#E0F88F'},1000); } ); Karl Rudd On Thu, Apr 3, 2008 at 12:41 PM, Bruce MacKay [EMAIL PROTECTED] wrote: Hello folks, I have a table of data, with each row containing a checkbox. What I want users

[jQuery] check/uncheck via toggle

2008-04-02 Thread Bruce MacKay
Hello folks, I have a table of data, with each row containing a checkbox. What I want users to be able to do is tick the box of each row of data they want to delete (and after ticking, they will submit the form etc etc. As a visual aid, I want to alter the background colour of the row -

[jQuery] File uploading with the jQuery form plugin

2008-04-01 Thread Bruce MacKay
Hello folks, I'm having difficulty getting a successful file upload working with the form plugin for which I'd appreciate assistance. My backend is ASP - I can catch the posted elements using request.form(..), but not via the objUpload object created by my upload program (Persits.Upload) as

[jQuery] Re: File uploading with the jQuery form plugin

2008-04-01 Thread Bruce MacKay
Hi Mike, I've finally seen my problem - 6 hours after starting - the forms plugin that I was using was an old version. I downloaded the most recent version, changed the options statement appropriately, and voila - the form works as expected. Sorry for the false report. Cheers/Bruce At

[jQuery] A simple loop - but I can't do it

2008-03-07 Thread Bruce MacKay
Hi folks, I have a form (id=sshoweditor) containing - let's say 6 - fieldsets, each containing an input element. The fieldsets have a unique ID - fs0, fs1, ... fs5. I have a function that can delete any specific fieldset. My looping problem comes now - when the fieldset is removed, I want

[jQuery] Re: A simple loop - but I can't do it

2008-03-07 Thread Bruce MacKay
Thanks Jason - appreciated. At 03:33 p.m. 8/03/2008, you wrote: I think you're looking for something more like this for that last bit: $('#sshoweditor fieldset').each(function(i){ $(this).attr('id','fs' + i); }); - jason On Mar 7, 8:51 pm, Bruce MacKay [EMAIL PROTECTED] wrote: Hi

[jQuery] Replacing a string - why doesn't this work?

2008-02-13 Thread Bruce MacKay
Can someone tell me/show me what I'm doing wrong here please? I'm duplicating a fieldset that contains an input form. However, within this fieldset lies the string: a href=# onclick=showImageList(x);. ... where (x) is the zero-based number of the fieldsets in the overall form. So, for

[jQuery] Re: Replacing a string - why doesn't this work?

2008-02-13 Thread Bruce MacKay
Thank you Andrea for the solution - I'd never have gotten there. Cheers, Bruce At 10:05 p.m. 13/02/2008, you wrote: On 13 Feb, 09:05, Bruce MacKay [EMAIL PROTECTED] wrote: s=clonedRow; var myString = 'showImageList'+iRowID; var myString2 = 'showImageList

[jQuery] Re: getting the ID number of a cloned table row

2008-02-05 Thread Bruce MacKay
Thanks Charles for this full and complete response - I very much appreciate it. Cheers Bruce At 09:27 a.m. 6/02/2008, you wrote: Bruce MacKay wrote: : Hello folks, : : I'm trying to duplicate a row of an existing table using a function : adapted from : http://www.nabble.com/Add-Table-row

[jQuery] clone and replacing one string for another

2008-02-05 Thread Bruce MacKay
Hello folks, I am using the .clone() method to duplicate a fieldset containing some form elements e.g. var clonedRow = $( #sshow_input fieldset:last ).clone(); Within that cloned fieldset is a string of the form sListImage(x) where x = 1, 2, or 3 etc With each duplication I need to

[jQuery] getting the ID number of a cloned table row

2008-02-04 Thread Bruce MacKay
Hello folks, I'm trying to duplicate a row of an existing table using a function adapted from http://www.nabble.com/Add-Table-row-to12989886s27240.html#a13300133 My problem is that I cannot identify the identifier of the last row (of the original table). The last row of my table has the

[jQuery] Autogrow() pulses in IE7

2008-02-03 Thread Bruce MacKay
Hello folks, Has anyone had experience with the autogrow plugin (http://plugins.jquery.com/project/autogrow) It works like a dream in FF, but in IE7, the lower 10px of the autogrown textarea pulses up and down. I'm using v1.02 of the plugin with v.1.2.3a of JQuery Any ideas? Thanks,

[jQuery] Shadowbox and ajax-returned content?

2008-01-29 Thread Bruce MacKay
Hello all/Michael, I'm wanting to use Shadowbox in an application where the content of the page is being changed via AJAX I have added Shadow.init(); into the callback function that is fired when the page's content is repopulated. From the generated view of the source code, the div

[jQuery] Re: Shadowbox and ajax-returned content?

2008-01-29 Thread Bruce MacKay
At 04:59 p.m. 30/01/2008, you wrote: Any idea/suggestion to allow me to achieve what I'm seeking here? Can you post a demo link? That would be most helpful. Sorry, I cannot do that for a couple of days. Could we try it this way... The following code retrieves new content into an existing

[jQuery] Re: Shadowbox and ajax-returned content - solved

2008-01-29 Thread Bruce MacKay
... by reading Michael's docs a little more closely. Into the document.ready block Shadowbox.init({ skipSetup: true, // skip the automatic setup }); Into the getNextPage function Shadowbox.setup($('a.sbox'),{overlayOpacity: 0.8}); Apologies for not doing

[jQuery] styleswitcher problem

2008-01-28 Thread Bruce MacKay
Hello folks, I've just belatedly upgraded to the latest version of jQuery and am finding old plugins now misbehaving. I'm having trouble with Kevin Luck's styleswitch. FIrebug is reporting $ is not a function on the first line of this code. I can't understand it - jquery is already loaded.

[jQuery] styleswitcher problem 2 (aka $ is not a function)

2008-01-28 Thread Bruce MacKay
Bruce Date: Mon, 28 Jan 2008 22:26:03 +1300 To: jquery-en@googlegroups.com From: Bruce MacKay [EMAIL PROTECTED] Subject: styleswitcher problem Hello folks, I've just belatedly upgraded to the latest version of jQuery and am finding old plugins now misbehaving. I'm having trouble with Kevin

[jQuery] Re: styleswitcher problem 2 (aka $ is not a function)

2008-01-28 Thread Bruce MacKay
is inside a $(document).ready() ? If not, it might be getting called before the jquery.js file loads. Just grasping at straws here. --Karl _ Karl Swedberg http://www.englishrules.comwww.englishrules.com www.learningjquery.com On Jan 28, 2008, at 6:12 AM, Bruce MacKay wrote: Hi

[jQuery] clueTip and retrieved JSON strings

2008-01-23 Thread Bruce MacKay
Hello folks, I'm having a problem with clueTip overwriting or affecting the title attribute of a returned a tag. I have an application which dynamically returns the names of images in a user-selected folder. The returned strings (via JSON) appear in the form: a href=#

[jQuery] Updating the id of an a tag

2007-10-17 Thread Bruce MacKay
Hello folks, I'm having problems with the following line of code $([EMAIL PROTECTED]'del_']).id(del_*+pb+_+iA+_ck); in the function below. What I'm trying to do is replace the id of the a tag from its existing id of 'del_' to 'del_*x_y_ck', where x and y are the variables pb and iA. I

[jQuery] Re: Updating the id of an a tag

2007-10-17 Thread Bruce MacKay
On 10/17/07, Bruce MacKay mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello folks, I'm having problems with the following line of code $([EMAIL PROTECTED]'del_']).id(del_* +pb+_+iA+_ck); in the function below. What I'm trying to do is replace the id of the a tag from its existing id

[jQuery] Re: ANNOUCE: jQuery lightBox plugin

2007-10-04 Thread Bruce MacKay
to the aparence of the images in your gallery. On Oct 4, 12:28 am, Bruce MacKay [EMAIL PROTECTED] wrote: Hello, I'm having difficulty getting this plugin to work - a test page is here:http://www.thomasbaine.com/gallery.asp I'm sure I've followed the example, but obviously I'm missing something. When

[jQuery] Re: Tag Cloud

2007-09-20 Thread Bruce MacKay
At 02:28 a.m. 20/09/2007, you wrote: Is there an implementation of Tag Cloud css or logic using jquery? This might help you: http://www.nabble.com/-Plugin--DynaCloud-Plugin-tf4254840s15494.html#a12109312

[jQuery] ajaxForm and validate question

2007-09-11 Thread Bruce MacKay
Hello folks, I am using the ajaxForm plugin in combo with Jörn's validation plugin. The relevant code is below - it is called from $(document).ready(function() and it works - except for one thing. I need to click on the submit button twice in order for the validation/submit to be fired.

[jQuery] Re: ajaxForm and validate question

2007-09-11 Thread Bruce MacKay
: On 9/11/07, Bruce MacKay mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: submitHandler: function(form) { $(#cform).ajaxForm(options); } This should be submitHandler: function(form) { $(#cform).ajaxSubmit(options); } ajaxForm() binds an event handler that (among other things) calls ajaxSubmit

[jQuery] IE6 ajax oddity

2007-08-08 Thread Bruce MacKay
Folks, I have a small blog application at http://www.thomasbaine.com/thetuis.asp The application works fine in IE7 and FF on both the production server (above) and my local development machine. IE6 works fine on my local machine, but fails on the production server. By fail, I mean that

[jQuery] Re: jCarouselLite problem

2007-08-05 Thread Bruce MacKay
the attributes width and height for the images within the carousel. Try, specifying width and height attributes and lemme know if it works. -GTG On 8/3/07, Bruce MacKay mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hi folks/Ganeshji I'm having trouble getting jCaroselLite to work first time

[jQuery] Re: jCarouselLite problem

2007-08-05 Thread Bruce MacKay
of the body tag and initialize it there and see if it solves your problem... -GTG On 8/5/07, Bruce MacKay mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hi Ganeshji, I specified these attributes but the problem still remains. A test page is at http://www.thomasbaine.com/thetuis.asphttp

[jQuery] jCarouselLite problem

2007-08-03 Thread Bruce MacKay
Hi folks/Ganeshji I'm having trouble getting jCaroselLite to work first time round. When I either link to a page containing a carousel or to a thickbox containing a carousel, in neither case do the images appear when that page/thickbox is visited via the link. However, if I refresh the

[jQuery] Re: Binding problems - Thanks

2007-07-17 Thread Bruce MacKay
is not a defined plugin method (you've used it in multiple places). Did you mean to use scrollTop? Also, to catch errors in async callbacks bind an error handler using ajaxError: $().ajaxError(function(ev, xhr, opts, err){ alert(err); }) Cheers. Mike On 7/16/07, Bruce MacKay [EMAIL PROTECTED] wrote

[jQuery] Opacity problem, IE7, Tabs plugin

2007-07-17 Thread Bruce MacKay
Hi folks, I'd greatly appreciate some help with an opacity problem (I think that's what it is) on a page where I'm using the tabs plugin: http://horticulture127.massey.ac.nz/degreecdays_test.asp When I move from one tab to another in IE7, the font quality breaks up. Any suggestions?

[jQuery] Re: Binding problems (click/submit)

2007-07-16 Thread Bruce MacKay
Hi Mike, A sample page is here: http://horticulture227.massey.ac.nz/admin/prolearn13.asp?id=1which=2 Click on the [view student list] link (the 'class=gao' link); the [view search options] link which replaces it is unbound - despite my best attempts to re-bind. Thanks, Bruce original

[jQuery] changing a class depending on content

2007-07-01 Thread Bruce MacKay
Hi folks, I've tried, but I just cannot get my head in the right direction with this one. In a non-ajax application I have, if a database record is successfully updated, the return stream from the server contains an appropriate message of the form: p class=alertThe record was successfully

[jQuery] Re: changing a class depending... thanks!

2007-07-01 Thread Bruce MacKay
$(this).text(); was the key Cheers,Bruce At 11:36 a.m. 2/07/2007, you wrote: Try: $(this).html(); Or, better yet: $(this).text(); html is a function not a member variable. Karl Rudd On 7/2/07, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, I've tried, but I just cannot get

[jQuery] jEditable - sending additional param. values

2007-06-22 Thread Bruce MacKay
Hello folks, I'm wanting to incorporate jEditable into a slideshow editor I'm making. I want to be able to pass the ID of the particular slide being edited back to the server at the same time as the edited text. The js source file indicates this is possible, but I don't understand the

[jQuery] Reading a querystring to determine an action - possible?

2007-06-16 Thread Bruce MacKay
Hi folks, I'm working on a site that, by default, has a RHS sidebar. I want to be able to selective hide that sidebar based on the value of a querystring. More specifically, there are times when I need the whole page to display a large table, so when I submit a post or call to the server