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
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:
>
> > $
Hi,
My ajax requests return xml, with the corresponding mime type.
I'm using $.get, as so:
$.get(
$(this).attr('href'),
function(data, textStatus)
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'
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
.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
>
&
= $('#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);
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
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
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
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
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
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:
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
*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
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
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({
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
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
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
> $(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
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:
>
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
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
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
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
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
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.
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
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
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
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,
32 matches
Mail list logo