[jQuery] Problems with Jquery 1.3 and Google web optimizer?

2009-11-08 Thread the_woodsman
Hi, When migrating to JQ 1.3.2, we seem to have found an issue with our Google Web Optimizer (GWO) experiments. there seems to be a race hazard of some kind before GWO redirects to an alternate page version. The error is along the lines of "document.body does not exist"... when we roll back to J

[jQuery] Re: AJAX - ignore mime type

2009-03-31 Thread the_woodsman
html in the first place. > > --Klaus > > On 30 Mrz., 15:37, the_woodsman wrote: > > > Hi, > > > My ajax requests return xml, with the corresponding mime type. > > > I'm using $.get, as so: > > >         $

[jQuery] AJAX - ignore mime type

2009-03-30 Thread the_woodsman
Hi, My ajax requests return xml, with the corresponding mime type. I'm using $.get, as so: $.get( $(this).attr('href'), function(data, textStatus)

[jQuery] Can I use a selector instead of this fn to check for .jpg?

2009-01-06 Thread the_woodsman
Hi all, I have a function that determines (a bit hackily!) if an image is a jpeg. isJpeg=function(src) { mySplit=src.split('.'); extension=mySplit[mySplit.length-1]; isJpg=(extension=='jpg' || extension=='jpeg' || extension=='JPG'

[jQuery] Re: is it possible to get result of this

2009-01-02 Thread the_woodsman
Well, it all depends how you're intending to save the shirt customisations in the back end! Assuming you're saving some list of images for shirts (along with their positions) in your database, there's no reason this couldn't be done via ajax. I'd advise, however, making this save in a traditiona

[jQuery] Re: .html() only works on original source?

2009-01-02 Thread the_woodsman
.bind('hide', function(){ }); > $('form').hide(); > > But I couldn't find it. I think Ariel Fresler was involved with it. In > case he's reading this I bet he would be kind enough to provide you > with a link :) > > cheers, > - ricardo > &

[jQuery] Re: .html() only works on original source?

2008-12-31 Thread the_woodsman
= $('#form').children(':input').each(function(){ >    var t = $(this); >    t.data('value', t.val() ); > > }).end().remove(); > > //append and fill > oldform.appendTo('body').children(':input').each(function(){ >      var t = $(this);

[jQuery] .html() only works on original source?

2008-12-30 Thread the_woodsman
Hi all, I'm trying to save the content of a form into a hidden div, so I can bring it back later. However, I also want to save the user's progress on the form. I thought I could just dump $('#form').html() into the hidden div, but this seems to only remember the original html, no new value attri

[jQuery] Problems using $.load() on remote contentw ith a large dropdown (select)

2008-11-19 Thread the_woodsman
Hi all, I have a html page with a massive (200+ options) drop down: United Kingdom Afghanistan Aland Islands etc etc! By itself, this paeg loads fine. When I try to ajax load it using .load, the select box doesn't render properly in any browser - IE gives an empty select, and dumps the co

[jQuery] Best event for changing the content of a div?

2008-11-05 Thread the_woodsman
Hi, I want to change the content of a div asap. I know about document.ready, but if possible I'd rather do this earlier. I'd also rather do it as an event instead of loading a script file after the div appears in the page. I tried the load() event, but this didn't seem to fire at all. Anyone g

[jQuery] Using JQ to parse strings (IE?)

2008-10-30 Thread the_woodsman
Hi, I hope someone has some tips/advice on this one! I've noticed my code has an issue in IE. I try to apply JQ to a string, as so: $(htmlString).find(someSelector) //htmlString is basically an entire page, someSelector is an ID But IE never finds the elements, even though FF does. I assume

[jQuery] Re: requesting and sending JSON in a ruby on rails app

2008-05-07 Thread the_woodsman
Well, I don't use RoR or treeview, so my advice is more general... jQuery("#prop-tree").treeview({ url: "tree/self_and_children" }); a) No idea what this actually achieves, but I think the goal is to set the content type header. Using Firefox (with Firebug/Developer Exte

[jQuery] Re: Simple Ajax calls to server for data

2008-05-04 Thread the_woodsman
If your AJAX call returns JSON, you might be better off using the JSON specific ajax methods. If you're new to JQ and JS, do you use Firebug in Firefox? With that tool, you can more easily check what's being returned from your ajax call etc. On May 4, 9:18 pm, dineshv <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Way to designate links as form submitters?

2008-05-01 Thread the_woodsman
Hey, THis shouldn't be tricky, as long as you cna easily find which form you want to submit! Are there multiple forms on the page to choose between? Something like this *should* submit the first form on the page (untested) ... $('.submitLink') .click( function() { $('form').get(0).submit(); r

[jQuery] Re: Problems with jqm in IE

2008-05-01 Thread the_woodsman
*bump* :) Any ideas? Thanks! On Apr 29, 10:49 pm, the_woodsman <[EMAIL PROTECTED]> wrote: > Hi guys, > > After some laborious use of alerts, I've tracked down my bug in IE, > and it relates to $().jqm(). > > I think It's a live query style issue (I'm n

[jQuery] Problems with jqm in IE

2008-04-29 Thread the_woodsman
Hi guys, After some laborious use of alerts, I've tracked down my bug in IE, and it relates to $().jqm(). I think It's a live query style issue (I'm not actually using live query!). I have a function that attaches events to elements, and this is called again when new elements are added via AJAX

[jQuery] Re: should be using .find . . .

2008-04-21 Thread the_woodsman
Dude - you're not passing the result of the .find into append, you're passing the original html param! Does the result of find return what you want? On Apr 21, 7:39 am, hubbs <[EMAIL PROTECTED]> wrote: > I cannot get it to work, here is what I tried: > > function loadTest() { > $.ajax({

[jQuery] Re: Drag and Drop question

2008-04-06 Thread the_woodsman
Do you have firefox and firebug? Just run console.log(ui) to dump all the fields and methods of the object to the firebug console... should be a useful place to start! On Apr 5, 8:08 pm, chris <[EMAIL PROTECTED]> wrote: > I am still having problems with this. I can't find anything on the web

[jQuery] Re: jQuery in IE7

2008-03-31 Thread the_woodsman
I'm no expert, and you don't provide any information about the errors in IE. Random guess: > $(document).ready( Have you tried quoting document, i.e $('document')? On Mar 30, 7:27 pm, Tolik Piskov <[EMAIL PROTECTED]> wrote: > Hello! > > I was trying to start learning jQuery, but faced a proble

[jQuery] Re: Accessing Parent Classes variables from $.Post function

2008-03-27 Thread the_woodsman
Can you not just make a new reference before the ajax call? DB_info.prototype.get_column_details = function(obj, table, column) { someRef=this; //or DB_info.prototype, or whatever you prefer $.post(this.db_info_script, { action: "get_column_details", table

[jQuery] Re: Set src of image in containing div of this div ?

2008-03-26 Thread the_woodsman
> $(this).parent().parent('.display img').attr('src', val); I think with a bit mroe debugging you can crack this - one thing that looks suspect is parent().parent('.display img'), surely nothing's going to have an image as a parent? I would assume you're looking for something more like parent().p

[jQuery] Re: form+ajax

2008-03-09 Thread the_woodsman
I think we can. Look at the ajax form plugin (http://www.malsup.com/jquery/form/), which can seamlessly convert your forms to ajax and give you the resulting page. Then, you just have to put these into your div, using .html() or somesuch. On Mar 8, 12:42 pm, mauro <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: ajax/jquery

2008-03-08 Thread the_woodsman
Well, you'll have to make all your forms work traditionally, and use JQ to override them, using things like the ajax form plugin etc. Similiarly, any UI widgets you use should build themselves from existing markup on the page. For very complicated interfaces, it might be easier to provide a pure

[jQuery] Re: toggle() animation - maybe there is a neater way to do this?

2008-03-08 Thread the_woodsman
Have you looked at JQ's built in toggle event? You won't have to keep track of even/odd clicks at all if you use that... On Mar 8, 8:53 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Not sure if this is neater, but it does have fewer lines of code: > > var stoggle = false; > $("#button").click(f

[jQuery] Re: calling a php function with jquery

2008-03-05 Thread the_woodsman
Erm, there's a few hurdles in front of you... In short, you have to: - make a URL that runs the php script- this should work via your browser (helloscript.php?user=bob, perhaps), - call this URL via ajax, and insert the output into the current page. On Mar 5, 5:18 pm, everdream <[EMAIL PROTECT

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread the_woodsman
To my knowledge, the main motivation for using ready and similar is that otherwise, you have to pay close attention to where your scripts are included in your page to ensure everything that the script relies on has already been added to that page. For example, if your script affects all .someClass

[jQuery] Re: Probs..

2008-02-25 Thread the_woodsman
Hi, I think what you're after is generally referred to as lightbox. A JQ implementation: http://leandrovieira.com/projects/jquery/lightbox/ Enjoy! On Feb 25, 8:50 am, Sandeep <[EMAIL PROTECTED]> wrote: > Hey Folks! > This is Sandeep & new to this group, I want help in AJAX. IN AJAX how a > f

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-24 Thread the_woodsman
Seriously, if you want this to scale when you have more names in the future, it'd be better to do at least some of the work server side, if you can- perhaps put all names in a span with class personName, then play around with those elements in JQ on the client side.

[jQuery] Re: Accessing jQuery functions from outside

2008-01-31 Thread the_woodsman
Have you tried putting the fn outside of document ready, and then calling it in both document ready and the onclick? Btw, you don't put the "javascript:" in an onclick, only in a href, that might cause problems too... On Jan 31, 1:44 pm, wyo <[EMAIL PROTECTED]> wrote: > I've some functions which

[jQuery] Re: Is this the best way?

2008-01-31 Thread the_woodsman
Assuming that the level starts at 0, I think you could apply successive not filters to the Jquery selection, the first eliminating level=0, the second eliminiating level=1, etc... On Jan 31, 3:46 am, Danny <[EMAIL PROTECTED]> wrote: > jQuery does not have a built-in selector to compare the values

[jQuery] Overriding form submissions in a way that deals with this.form.submit()

2008-01-31 Thread the_woodsman
Hi everyone, I'm using Jquery to override form submits, i.e: var tabsForms=$('#'+el.id+' form'); tabsForms.submit(function(){... Pressing submit works fine with this approach, but there's existing code in the form inputs, such as onclick=this.form.submit. When the form is submitted this wa

[jQuery] Accessing URL params direct in JS files?

2008-01-22 Thread the_woodsman
Hi, This is perhaps bordering on a general JS question, but here goes: I'd love to pass GET params (&dog=1&cat=2 etc) to JS files, not just HTML files. For example,