,
cache:false,
url: url_id,
});
return false;
});
No matter what I try still same thing. Will not work in Chrome or
opera...frustrating.
Any other ideas?
Thanks,
Dave
-Original Message-
From: Andreas Möller [mailto:localhe
ideas?
Dave
,
but wont save one.
Dave
-Original Message-
From: Andreas Möller [mailto:localhe...@l8m.de]
Sent: February-01-10 1:39 AM
To: jquery-en@googlegroups.com
Subject: RE: [jQuery] Browser / AJAX help
Have you checked the console to see whether the parameter you pass to your
server side
One issue keeps nagging me
though, and that is how to deal with private functions in a
powerful yet elegant manner.
I'd recommend taking a look at the way the jQuery UI folks did it. You
can get the gist of it from ui.core.js. I didn't really appreciate
their design choices until I started
Where can I find more about those plugins?
This search turned up jScrollPane, looks like that is what you want.
http://lmgtfy.com/?q=jquery+scroll+plugin
();
$('#' +
update_target).html(response.html).slideToggle('slow').highlightFade({speed:
2000});
$('#' + form_target).slideToggle('slow');
} else {
$.unblockUI();
$('#' + form_target).html(response.html);
}
}
});
return false;
});
};
Dave
but it never gets there. If I remove the return false; it
submits http which is not what I want.
Any ideas why the uRec does nothing now?
My form submit is a button type = submit. Is that what you were saying to
change?
Thanks
Dave
the recordId
alert(form_id);
//uRec(form_id);
return false;
//or return false; both do nothing
})
/script
But not even an alert now. Man ohh man
Thanks again for your ideas.
Dave
Ok im getting closer. This gives me the id for each form being submitted,
the alert(selector); in the external js fires off so its getting the
request, but the form now does not submit...just stis there laughing at me.
Page js:
script type=text/javascript
//dummy class added to button to test it
fires off.
I think im getting there but still this is all new to me so it more trial
and error than anything.
Thanks,
Dave
-Original Message-
From: Jack Killpatrick [mailto:j...@ihwy.com]
Sent: January-16-10 7:51 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Complicated
);
}
}
});
return false;
};
If anyone could glace over the code to see if there is anything that looks
wrong or could use improvement please let me know.
Thanks again for all your time
Dave
-Original Message-
From: Jack Killpatrick [mailto:j...@ihwy.com]
Sent
In 1.4 the built in live() function has been heavily extended, so
perhaps you can switch to using that instead?
Agreed, but I think livequery should still work. The error posted
there is in blockUI and not livequery anyway. Jon Bennett, can you put
up a simple page that is a complete test case?
Ticket created: http://dev.jquery.com/ticket/5822
Google is hosting the file now, you could get it from there:
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js
If you're really stuck, you could try copying the clone function from
1.3 into 1.2.6.
Do you have a link to your leaking test case?
It works. Is there any documentation on this protocol?
Hey, Google always has something. :)
http://en.wikipedia.org/wiki/JSON#JSONP
The reason jQuery uses a random number there is so that multiple
requests can be in progress at once and will get separate functions to
run on completion.
The official forum will at http://forum.jquery.com/ so you might want
to head over there and look around. This Google group will be around
for a long time and you're free to post here, but at some point we'll
turn moderation off and within a few weeks it will most likely be
overrun by spammers.
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it.
Can you post a link to the simplest test case that shows the problem?
It is probably a simple fix.
Is #thing a THEAD or TBODY tag? That would be the only valid place to
append a TR.
to place this on the page rather thanthe same script all over
the site.
Thanks
Dave
();
}
}
});
}
I tried adding $('#new_set').die('click'); but then it never submitted.
Thanks
Dave
Ok thanks.sounds good to me.
Will check it out.
Dave
-Original Message-
From: MorningZ [mailto:morni...@gmail.com]
Sent: January-12-10 4:42 PM
To: jQuery (English)
Subject: [jQuery] Re: Disable Submit
Personally i suggest using BlockUI to overlay the whole form... that way
1
Looks good .
Thanks will try to add that to my site and see how it goes.
Dave
-Original Message-
From: Scott Sauyet [mailto:scott.sau...@gmail.com]
Sent: January-12-10 6:06 PM
To: jQuery (English)
Subject: [jQuery] Re: Disable Submit
On Jan 12, 2:49 pm, Dave Maharaj :: WidePixels.com
});
Ideas where i went wrong?
Dave
;
});
}
But no alert. Any ideas?
Thanks
Dave
-Original Message-
From: MorningZ [mailto:morni...@gmail.com]
Sent: January-12-10 3:53 PM
To: jQuery (English)
Subject: [jQuery] Re: Function help
$('#new').live('click', function() {
addRecord($(this).closest
When the button is clicked, set a variable to the current time and
return false from the handler to cancel the submit. When your ajax
completes, do a settimeout for the difference between the variable you
set and the min length of time you want to show the blockui. When the
settimeout fires it
(response.html);
// Response contains errors
} else {
// return the form with the errors
}
On Jan 10, 5:00 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
I need some help with a form.
I
Very detailed response...thank you.
I will give it a try and try an alert on different sections of the response
and see what happens.
I am using firebug to examine the response. Will check the response and
repost and say if it its 1 solid line or broke.
Thanks...will post shortly.
Dave
after the code
Dave
-Original Message-
From: Michael Geary [mailto:m...@mg.to]
Sent: January-11-10 4:36 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Re: Ajax forms help
The JSON part of your server response looks fine if you take out the two
line breaks - I assume those
.
On Mon, Jan 11, 2010 at 11:41 AM, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
My response comes back from the server looking like this: (don't
think its
right to begin with)
{data:{title:,year_rec:{year:2010},description:,id:0936d6
115e4
}
Now to display the HTML but without all the \/p\r\n
Dave
From: John Arrowwood [mailto:jarro...@gmail.com]
Sent: January-11-10 4:45 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Re: Ajax forms help
Your problem looks like it may be on the back-end. Send
:
$(response.html).hide().prependTo('#sortable').slideDown('slow');
so i would like it to be yellow for example when the user first sees the new
record then slowly fade out leaving only the record.
Thanks
Dave
Right on thanks...
I looked around but noting simple so I will def check it out.
Thanks.
Dave
-Original Message-
From: MorningZ [mailto:morni...@gmail.com]
Sent: January-11-10 7:30 PM
To: jQuery (English)
Subject: [jQuery] Re: Fade question
I used the color plugin for exactly
.
The form or the target is html code
How can I tell what the response was (true or false) and return the
appropriate html code for the appropriate form or target?
Thanks
Dave
$('t...@class^=child-]').hide().children('td');
Get rid of any @ for attribute selectors. In jQuery 1.3 we went to css
standard syntax, which does not use the @.
Am I missing something?
Well, *we're* missing something, like the markup that goes with the
code. Can you point to a sample page maybe?
Is #CalendarBody the TABLE tag? If so, you should be appending a THEAD
or TBODY tag to it.
Instead of returning HTML fragments, you might want to return JSON
I think document.title works on all browsers.
Hi
Wonder how I can convert a string to a json array.
//start code
var arrCss = [a___{'color':'red','font-weight':'bold'}, h1,h2___
{'color':'blue'}];
for(var i = 0; i arrCss.length; i++){
var snip = arrCss[i].split(___);
$(snip[0]).css(snip[1]);
}
//end code
The problem is that
It worked perfectly!
Thanks a lot.
Cheers / Dave
On Jan 5, 11:53 am, Md. Ali Ahsan Rana ranacser...@gmail.com
wrote:
for(var i = 0; i arrCss.length; i++){
var snip = arrCss[i].split(___);
eval(var temp=+snip[1]);
$(snip[0]).css(temp);
}
this may work, try it(although i didnt't
Ajax nearly always uses UTF-8 encoding. Can you switch to UTF-8 for
the page and server?
I would think the submit button data would also be included when doing
$(form_obj).serialize()?
When you submit a form manually, the value of the submit button
clicked is sent as part of the form. If you serialize the form using
Javascript, no button was clicked so none of them are serialized.
There should be an announcement of another beta within a few days. The
stack overflow has been reported/fixed.
To be sure, you're talking about this plugin?
http://plugins.jquery.com/project/color
The plugins site is due to get a redesign for the jQuery 1.4 in
January and I think that will help some of the plugins that have been
neglected. Maybe we can get some people to adopt the plugins that seem
to be
with the new record.
The new record has edit and delete which are now new to the page as they
were not there when the page originally loaded. If I click them sure enough
my edit form loads or the entry gets deleted.
Maybe Imis-understod what your trying to do.
Dave
-Original Message-
From: Jason
var o = $(#original-fields), n = $(#new-fields);
if (o != n) { // -- BRICK WALL
someAJAXFunctionThatSavesTheFieldsThatChanged();
}
How can I compare the #original-fields data with the #new-fields
data? As it is, the two always differ; I assume this is because they
are different
For some reason, it seems that the .focus() method (at least how I'm
using it) isn't properly setting the focus to what I'm specifying.
Yeah, I think that may be broken, it's already been reported.
http://dev.jquery.com/ticket/5652
everything is working. Just my var
page_target and var update_target seem to vanish in the success.
Any ideas where I went wrong or how to fix this?
Thanks
Dave
ok, I've used some code I had lying around and put dummy content in
there:http://www.tnt.be/bugs/jquery/moovsjquery/
I actually don't really see a difference on my Ubuntu box (using FF
3.6b4), but there's a huge difference on a colleague's G4 (OS X 10.4,
Firefox 3.5.5), so try to find a
I refrained from replying because the OP seemed trollish, but he has a
point, IMHO.
It would be great if someone who knew both frameworks could set up a
page that demonstrated a side-by-side case where Mootools has smoother
animations than jQuery. Otherwise it's hard do know what might be
pull a random record no
problem with $ajax and load it into my area I need, just telling the script
to get a new record duration is where im stuck.
Sorry and thanks,
Dave
-Original Message-
From: brian [mailto:zijn.digi...@gmail.com]
Sent: December-01-09 2:45 PM
To: jquery-en
Has anyone come across a simple function that will get a random record from
the db?
I just need to send a request every min or so to get new content from the db
and change the content. Pretty much like a banner rotator but used for
random content.
thanks,
Dave
How would I go about adding class to the li in this set up?
lia href=# class=filterspanall/span/a/li
lia href=# class=filterspansome/span/a/li
lia href=# class=filterspannone/span/a/li
$('a.filter').click(function(){
$(???).addClass('active');
});
Thanks
Dave
}
}
};
and jquery will ignore any fields that are not present in the form being
validated? Or when I validate my awards it will look for the User fields
since its included in the validations rules?
Thanks
Dave
('#sortable').slideDown('slow');
});
}
});
}
return false;
});
Any help would be greatly appreciated.
Thanks,
Dave
Thank you very much. I will try it out.
Dave
-Original Message-
From: Michael Geary [mailto:m...@mg.to]
Sent: November-24-09 10:02 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Create a function?
Your code could end up looking something like this:
function setValidation
load the page I get:
setValidation is not defined
Ideas where I screwed up?
Thanks again.
Dave
-Original Message-
From: Michael Geary [mailto:m...@mg.to]
Sent: November-24-09 10:02 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Create a function?
Your code could end up looking
;
});
});
}
I checked with firebug that all the scripts do infact load.
Thanks again,
Dave
-Original Message-
From: Michael Geary [mailto:m...@mg.to]
Sent: November-24-09 11:44 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Create a function?
Do you have a script tag to load your
?method=authenticatereturnFormat=json
Something like
index.cfm?fuseaction=authenticate
Then let your framework do the rest.
-dave evartt
Westside wrote:
Hi,
I'm trying to use ColdFusion and JQuery but I'm having some problems
setting/reading session variables. I have a login box that I use
That worked beautifully!!! Thanks so much for teh help.
Dave
BTW... They call me CAPTAIN OBVIOUS!!!
I have the same problem. Firefox eats up a lot of memory when open for a
long time (900k sometimes) and my toggle divs drag ass.
If I find a solution I would be happy to hear.
Thanks,
Dave
-Original Message-
From: Jason Kaczmarsky [mailto:jkaczmar...@yahoo.com]
Sent: November-23-09 10
I have a comment form that is fed by Disqus. It is in a div that is
scrolled with ui.slider.
The problem is, I determine the maxScroll by calculating teh
difference between the scrolling content and the viewport. Work great
all across the site except here.
Reason is, the var fot the div's heigh
It seems like the plugin Live jQuery might be a good answer. Any
thoughts?
Lemme know
to be able to do it.
Lemme know.
Dave
('normal').remove();
$('#' + set_id).slideToggle('slow').toggleClass(hidden);
$('#' +
request_id).html(data).slideToggle('slow').addClass('loaded');
}
});
}
return false;
});
Dave
I'm developing a comment panel for a blog that uses Disqus. The design
is really tight, and the client is insistent that THIS is the layout.
You can see it here: http://agave.purebluebeta.com/blog/2009/nov/20/test-entry/
Problem is, the height is changed AFTER my jQuery is loaded. IE,
Disqus
If the table is really big it might be better to use event delegation:
$('table').click(function(e){
var $td = $(e.target).closest('td'),
$tr = $td.parent(),
pos = $tr.children().index($td),
$up = $tr.prev().children().eq(pos),
$dn = $tr.next().children().eq(pos);
My Servlet return json string generated with json-lib... for example:
{descrizione:Questa è la descrizione del
computer,disponibile:false,id:1,nome:Computer,prezzo:
123.456}
Is this just a formatting issue, or is there really a newline in the
string Questa è la descrizione del computer ?
I'm having a bit of trouble understanding why a click event attached
to the document is being triggered when submitting a form through the
enter key.
When you press Enter, Firefox (looks like this wasn't tested in IE)
triggers the click event on the default submit button. That bubbles up
to
but this line $('#state').add(option); is not adding value to the
select box state
The .add() method only adds the option element to the jQuery object,
it doesn't modify the document. You probably wanted this:
$('#state').append(option);
Can make b behave as a ?
Why would you not just use CSS to style an a element
to be bold and not underlined?
Definitely the way to go. That way the link works with the keyboard
and screen readers as well. Apps that require the mouse drive me crazy.
({
//beforeSubmit: validate,
type:'post',
url: form_url,
data: queryString,
//target: '#domains',
//success: function(){
// $(.success).show().fadeOut(5000).slideUp();
// }
});
}
return false;
});
});
/script
Dave
Try this
var test = 3.141592;
alert(test.toFixed(2));
Has anyone come across a nice pagination script for server side processing
that has a built in history feature so if a user clicks on a link in the
pagination then hits back in the browser it will take you back to your
pagination set, not back to page 1.
Thanks,
Dave
go on strike...)
all the best
Dave
Just wondered if the Filter description could be made a little clearer
on:http://docs.jquery.com/API/1.3/Traversing
Yes, I can't say that I don't agree with you. :-)
I updated the docs to use fewer negatives. Because the function only
removes an element when it returns an actual Boolean false
My guess: If your function doesn't return false to stop the submit,
the browser will start navigating to the submit action page
immediately. It's probably starting to fade but the page changes
before it's anywhere close to done.
I already posted this on the jQuery BugTracker, but nobody seems to
notice. Maybe I can get some help here and I hope you don't regard
this a double post. (the link to the bug report
ishttp://dev.jquery.com/ticket/5482)
I noticed the bug, thanks for reporting it. Bugs are usually fixed in
.
Thank you and also for being so speedy
all the best
Dave
Any other ideas? :)
Well, from the code that you originally showed the possible causes
were pretty limited. If there is arbitrary code both before and after
that line you showed, it could be almost anything! Can you create a
simple test case?
(){
$('#' + set_id).fadeOut('fast').slideUp('slow', function () {
$(this).remove();
});
}
});
} else {
$('#'+set_id).removeClass('pre_delete');
}
return false;
});
Thanks,
Dave
Sounds good. Will give it a try and mess around with it more.
Thanks.
Dave
_
From: Michel Belleville [mailto:michel.bellevi...@gmail.com]
Sent: November-11-09 7:34 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] IE Help - Code Included
I'm not sure what it is but it's
.ajaxForm uses $.ajax, which uses XMLHttpRequest. There are some
issues with the way xhr interacts with document.domain, independent of
jQuery.
http://fettig.net/weblog/2005/11/28/how-to-make-xmlhttprequest-connections-to-another-server-in-your-domain/
Dave
: true,
success: function(response){
$('.loading').fadeOut('normal').remove();
$('#' + div_id).html(response).slideToggle('slow');
}
});
return false;
});
Thanks
Dave
:
$(#sortable).sortable('toArray')});}
});
$(#sortable).disableSelection();
});
Can someone seewhere I am going wrong here?
Thanks
Dave
I am attempting to add a class to a div before deleting it. I just cant get
the class to remove if the user selects no.
Anyone have tips or a link with suggestions? I found the jquery.confirm.js
script but unable to add a class to the element being deleted before confirm
Thanks
Dave
then the confirm message appears. If they select yes then delete
goes thru, if selected no then the added class gets removed.
Thanks again
Dave
From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
Sent: November-09-09 1:32 PM
To: jquery-en@googlegroups.com
Subject
Right on.
Thanks you.
Dave
-Original Message-
From: MorningZ [mailto:morni...@gmail.com]
Sent: November-09-09 2:25 PM
To: jQuery (English)
Subject: [jQuery] Re: Confirm Delete
$(a.delete).live('click', function (){
var url_id = $(this).attr(href);
var div_id = url_id.split
save message even though nothing saved.
So basically is there a way to set it up so every field I need checked is
set to required but it checks the server for the actual validation rules?
Thanks,
Dave
If this is UI Tabs you should ask in the jQuery UI group.
What I want is: When the user choose an item from the number1
select, the number2select will automatically change to the same
value to the number2.
Maybe something like this?
$(select[name=number1]).change(function(){
$(select[name=number2]).val(
$(this).val()
);
});
If the
For some reason, Return key doesn't invoke OK button in JQuery dialog.
Any idea what could be the issue?
Do you have some simple code demonstrating the problem? If the OK
button is a submit button in a form this generally should work, but an
example would be good.
Hello, Marty McGee here. I was hoping to open a discussion about the
benefits of extending jQuery with your own custom functions versus
simply writing your functions in JavaScript and calling them without
extending jQuery first.
I am not a fan of extending the jQuery object with unrelated
that number is never know to subtrct back from leaving me with 11
Any help would be great.
Thanks
Dave
Thanks.
that's just what I needed.
Dave
_
From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
Sent: November-08-09 3:32 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Characters in a string
On Sun, Nov 8, 2009 at 10:53 AM, Dave Maharaj :: WidePixels.com
d
?
Thanks
Dave
().fadeOut(5000).slideUp();
});
}else {
//do nothing, server will show errors on the form
}
Function validResponse(response){
var valid = false;
if (response = valid){
valid = true;
}
return valid;
}
Any help would be appreicated.
Thanks
Dave
Dave
').fadeOut('normal').remove();
$(#test).slideToggle('slow').toggleClass(hidden);
$(#testForm).slideToggle('slow');
}
Dave
1 - 100 of 658 matches
Mail list logo