Could you please rephrase the question, although I think you maybe
looking for something like this:
JavaScript:
$(#edit_upload).click(function(){
if($(#edit_field).val() != 0) {
$(form).submit();
}
});
HTML:
form action=submit.php method=get
input type=text id=edit_field
I believe you aren't handling the session correctly, remember, AJAX
calls don't automatically attach the session ID to your URL variables,
so you have to do it manually (if it's not in the cookie), either by
directly attaching to the target url:
$.getJSON(target.php?sid=+session id,...,...);
or
Well, thats quite a lot to ask, but I'm in a giving mood:
Javascript:
$(function(){
$([EMAIL PROTECTED]).click(function(){
if(confirm(Are you sure you'd like to delete this photo?)) {
var photo_id = $(this).parent().find(input).val();
Christof:
This may be true of traditional regular expressions, which is
something you'll encounter in a college level automata class but very
rarely in the real world. The fact is that most modern, since the 80s
at least, regex implementations (JavaScript, Java, PHP,...) can handle
many
Do you have a sample page?
- jake
On 3/29/07, Yansky [EMAIL PROTECTED] wrote:
I would've thought having the gif as the div's background would be the way to
go.
Perhaps instead of appending the image onclick, you could have it there
already with a z-index that hides it, then changed the
The is() function returns true or false, the children() function
returns a set of jQuery objects.
So:
$('td').children().is('img :[EMAIL PROTECTED]')
Will return TRUE if the children contain atleast one img element with
src attribute containing 'albled' or FALSE otherwise.
While:
I wish NYC had something like this, I spent 1 1/2 hours on the
subway this morning :-(.
On 3/28/07, Toby [EMAIL PROTECTED] wrote:
That's definitely received an update recently, I was on their site the other
day, and to be fair it looks rather good now.
Nice work whoever (not sure if
First, you can not animate table rows (tr) because almost all of the motion
animations are written for block level elements. You could, however, place
the information within a couple of divs and position them to get the look
and feel you currently have with tables. This will allow you to use most
I'll just have to use rows of DIVs, each containing a
table.
--
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Jake McGraw
*Sent:* Wednesday, March 28, 2007 1:37 PM
*To:* jQuery Discussion
*Subject:* Re: [jQuery] Table of information,expanding
Have to tried ':visible' selector?
$('.hidden:visible').slideUp(fast);
- jake
On 3/28/07, Alex Ezell [EMAIL PROTECTED] wrote:
I faced a similar issue with a project I was working on. I never found a
solution. Of course, I also never bothered to post here (consider me easily
distracted). I'll
For learning how and why regular expressions work and how to use
Regular Expressions with grep, Perl, Java, .NET and PHP:
Mastering Regular Expressions 3rd Ed. by J. Friedl
For learning JavaScript Regex:
JavaScript: The Definitive Guide, Fifth Edition By David Flanagan
Both have proved quite
To quote Mastering Regular Expressions 3rd Ed. by J. Friedl:
The real problem is that on the majority of systems, you simply can't
match arbitrarily nested constructs with regular expressions.
He goes on to give the syntax for matching a SINGLE set of nested
parenthesis, it's quite convoluted.
I'd recommend JavaScript: The Definitive Guide by David Flanagan,
O'Reilly Publishing. It is the most comprehensive guide I've seen for
the inner (and I mean INNER) workings of JavaScript. It really helped
me to understand how things actually worked.
- jake
On 3/23/07, Daemach [EMAIL PROTECTED]
Bruce:
I'm not sure I fully understand what you are trying to accomplish, but
AJAX is not a replacement for SOAP/WSDL Web Services as it is strictly
limited to communication within its own domain, which flies in the
face of Web Services philosophy.
Could you provide a more concise example of
does google/yahoo/flickr/etc... manage to
allow 3rd party websites to access their hosted apis, which are resident on
the hosted server of google/yahoo/etc
-bruce
-Original Message-
*From:* Jake McGraw [mailto:[EMAIL PROTECTED]
*Sent:* Friday, March 16, 2007 9:17 AM
*To:* [EMAIL
Any way we could get this attached to whole form elements? Something like:
$(form).autoSave()?
and use jQuery's magic (meaning your meticulous programming skills),
to process all input types within the form?
- jake
On 3/15/07, matt2012 [EMAIL PROTECTED] wrote:
this looks great a few working
Assuming you identify check boxes using the name attribute, you
could just use the following:
var values = {};
$(input:checkbox).each(function(){
values[$(this).attr(name)] = $(this).attr(checked) ? true : false;
});
So, if we had:
input type=checkbox name=chk1 checked=checked/
input
Couple of things you need to do here:
1. You can not use AJAX to POST to URLs outside your current domain,
not even subdomains, so, just to be sure your requesting pages on your
current domain, change the target url from:
http://localhost/Ismart/modules/business/search.php;
to
search.php
2.
You have to attach triggers to elements AFTER they've been loaded, do
this in the callback:
$(.info).load('http://localhost/modules/esas/info.php,function(){
$(.phone).click(function(){
$(.info).slideUp(fast);
}
});
- jake
On 3/13/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
I send
A quick google and a look at Javascript The Definitive Guide:
self is also a property of the global (window) object, one which points back
at the window object such that (window.self === window) should be true (it
isn't in Internet Explorer, but it is in Gecko-based browsers, Netscape 4.78
and
spam, pay it no mind.
On 3/12/07, Chris W. Parker [EMAIL PROTECTED] wrote:
On Monday, March 12, 2007 1:53 PM Carl Parrish said:
http://www.flixster.com/servlet/invite/633050151ufbA633057778Btlkhlp3Cm
Am I supposed to click that?
___
jQuery
Jake,
That's actually a brilliant idea! Something allow the lines of:
item name=phone1 type=numeric_string max=14 min=10
descPhone Number/desc
databasetblUserProfile.fldPhone1/database
valid type=regex/^((\[0-9]{3}\))?\s*[0-9]{3,7}$//valid
/item
This is exactly what I've been looking
Are you asking which 'p' element triggered the event? If so, you can access
it using 'this' reserved word:
$(p).click(function(){
$(this).css({backgroundColor:red}); // this refers to clicked p
element
});
- jake
On 3/9/07, Abel Tamayo [EMAIL PROTECTED] wrote:
Hi all. I'd like to know if
:)
This is the documentation that I've made (sorry in spanish :-P ):
http://gat1.atica.um.es/FORJA/
Jake McGraw escribió:
Hi all, first let me say I've had an absolutely wonderful time
utilizing jQuery for all of my javascript tasks. So wonderful, that
I've convinced my boss that we should
Glen
Thanks for the pointer, I didn't explicitly write this out in my slides, but
it is something I alluded to and will speak about during my presentation.
I've also kinda ripped off firebug by showing exact DOM changes with yellow
highlighting between jQuery function calls, I think this is a
Could you provide a link or some code?
- jake
On 3/8/07, Agrawal, Ritesh [EMAIL PROTECTED] wrote:
Hi,
I am some problem with jQuery.post(url, parmas)..I use the jQuery.post and
after that I get a page which again contains some jquery scripts. But they
never get fired up. I can see the
So why don't you do this:
JavaScript:
$(function(){
$(div.opt).hide();
$(select).change(function(){
$(div.opt).hide();
$(div.+$(this).val()).show();
});
});
Document:
select name=user
option value=t1Administrator/option
option value=t2Manager/option
option value=t3Executive/option
Not exactly, to add to Chris's comment, using:
$(myele).each(function() {
// do lots of stuff
});
will scope the 'this' keyword to whatever you've selected using $('myele').
So, for example, if I had:
with(document.getElementById(myele)) {
// myele now part of scope chain, no variable
Hi all, first let me say I've had an absolutely wonderful time utilizing
jQuery for all of my javascript tasks. So wonderful, that I've convinced my
boss that we should throw out every one (we're using about 4 or 5) of the
javascript frameworks and random scripts we're currently using and
and show the difference. And I would also provide a
reference DOM API document that would describe your special classes/ids
and its resulting behaviors.
Cheers and good luck!
-jf
--- Jake McGraw [EMAIL PROTECTED] wrote:
Hi all, first let me say I've had an absolutely wonderful time utilizing
jQuery
Or, perhaps even more in line jQuery philosophy (try to reduce code as much
as possible):
$(function(){
$.get('getItems.php',{cat_id:idsource},function(xml){
$('#itemtable'+idsource).append('tabletheadtrthItems
Available/th/tr/theadtbody/tbody/table');
Jim, split it up for readability, this uses the same function I had before.
find() within the scope of the current jQuery object, which in our case
$(this) = item.../item, so find() will look within this element for
elements 'item_id' and 'item_name'. Hope this helps.
$(function(){
Jim, you can use the siblings() exactly as you put in your code, the only
thing you should watch out for is siblings() will return a group of jQuery
objects, which in your case doesn't matter as item_id only has a single
sibling, item_name. When you chain text() to a group of jQuery objects, only
No problem, welcome to jquery.
- jake
On 3/6/07, Jim Wharton [EMAIL PROTECTED] wrote:
thank you immensely for all your help. I'll start rewriting the accordion
code in a day or so.
-Jim
-Original Message-
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of *Jake McGraw
Have you tried $.getScript(test.js)?
http://docs.jquery.com/Ajax#.24.getScript.28_url.2C_callback_.29
- jake
On 3/6/07, narven [EMAIL PROTECTED] wrote:
HI,
Im really new to jquery… but I think im in love :P LOL
I've been trying to use this to load up a js file… but.. it doesn't work
Have you tried something like:
$(function(){
$(a).click(function(){
$.get(trackingURL);
return true;
});
});
I haven't tried modifying onClick, etc, I normally just put all the
directives in a script block.
- jake
On 3/6/07, Yoav Shapira [EMAIL
this to the current element, in your case
an anchor.
- jake
On 3/6/07, Yoav Shapira [EMAIL PROTECTED] wrote:
Hi,
On 3/6/07, Jake McGraw [EMAIL PROTECTED] wrote:
Have you tried something like:
$(function(){
$(a).click(function(){
$.get(trackingURL);
return true
Jim, could you post a version of the XML data you'd expect?
- jake
On 3/5/07, Jim Wharton [EMAIL PROTECTED] wrote:
Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's
methods. (I figure, if I'm already including the jquery.js file, I may as
well use the heck out of
Actually, you may want to avoid using custom attributes (expandos), problems
with this were discussed yesterday:
-
Err no, actually *expandos* refers to non-standard attributes that
get added to DOM
I've been trying to use Interface to animate various elements, specifically
using the slide functions. What I would like to do is have a div slide out
of the center of the top screen, but the styling I have in place to center
the div isn't active during the animation, only after the animation is
You can reference any attribute using the following notation:
[EMAIL PROTECTED] Starts with
[EMAIL PROTECTED] Ends with
[EMAIL PROTECTED] equals
[EMAIL PROTECTED] contains
So for your problem...
$([EMAIL PROTECTED])
Hope this helps,
- jake
On 3/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
Not sure if the source is like this too, but you haven't closed this element
(insert a /a):
a href='#' class=toggleStrikeRemove/a/td
Maybe, that'll help?
- jake
On 3/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
---Original Message---
From: Jake McGraw [EMAIL PROTECTED
Provided links are dead.
- jake
On 2/27/07, Dragan Krstic [EMAIL PROTECTED] wrote:
Please go to http://www.bydot.net/sr/rezervacije.htm and click on Rezervišite
putem mejla. http://ci/sr/rezervacije.htm# As you see, overlay is
displayed like underlay. In FF 1.5 everything is OK. Any clue?
I
Hi all, maybe I'm just missing it, but is there any way to download just the
animate() function for Interface? Before switching to 1.2, I only used the
animateClass function, which had a foot print of about 3KB, now since
animateClass has been depreciated and I can't find where to download the
You could always show the loading animation just before the ajax call and
hide it within the calls callback function:
$(#loading1).show();
$.get('handle.php',input,function(){
// Do stuff
$(#loading1).hide();
});
Not as pretty as $.ajaxStart(), but this is the only way I see to handle
multiple
Brice and Brandon, thanks for the replies, I didn't mean to cause so much
trouble ;). Since this is something I'm doing to work, I'll make use of your
fixes on Monday and let you know how it goes. Thanks again!
- jake
On 2/24/07, Brice Burgess [EMAIL PROTECTED] wrote:
Jake McGraw wrote
Javascript:
$(function(){
var popup = $(#popup).jqm();
$(a).click(function(){
popup.jqmShow();
});
});
Body:
a href=#Click me!/a
div id=popup class=jqmWindow
a href=# class=jqmCloseClose/a
br/
pHello, world!/p
/div
Crashes IE:
Line: 0
Error: Object
Thanks for the prompt reply, I normally use jqModal class on an anchor but I
wrote this version using jqmShow() because my application has a series of
events that takes place before the jqModal window has to be shown. I could
change it, but why add an anchor for the Modal window if it will never
Someone else asked this yesterday, and here is a possible solution:
http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html
You may want to search the listserv in the future, you can get your answer
faster that way.
- jake
On 2/22/07, Carl Parrish [EMAIL PROTECTED] wrote:
Mikael:
I think you would want to write to the cookie when you stop dragging the
container and actually have an updated position. Interface 'Resizables' has
you covered, bind the cookie write function to onDragStop (
http://interface.eyecon.ro/docs/resizable):
$('#window').Resizable(
Hey all, not sure if this is a bug, but I came across it today:
Let's say my document looks like this:
ul
liPick a country
select name=country
option value=usUnited States/option
option value=gbUnited Kingdom/option
option value=auAustralia/option
looking for filter not find. Try this:
$(function(){
$([EMAIL PROTECTED]).change(function(){
$(.group).hide().filter(.+$(this).val()).show();
}).val(us).change();
});
-blair
Jake McGraw wrote:
Hey all, not sure if this is a bug, but I came across it today:
Let's say my document
Since we're now getting yui-ext, which offers UI components with a
look and feel much like native MS Windows components, graphing is the
next step to allowing the little guys to provide an AJAX Office
experience. I'd like to other my help in this endeavor in whatever way
I can.
- jake
On
When you mention charting, what method would you suggest for chart
rendering? SVG?
- jake
On 2/16/07, John Resig [EMAIL PROTECTED] wrote:
Hey Everyone -
Google's Summer of Code has just opened up for 2007, and I'd love to
have jQuery be a part of it:
http://code.google.com/soc/
If you're
Which PHP array are you using to access user variables? If you're
using $_GET, then your AJAX Post variables won't show up in the
application, I usually use $_REQUEST. Also, have you thought of using
the jQuery ajax abstraction methods? Something like this should do the
trick (not tested):
] wrote:
---Original Message---
From: Jake McGraw [EMAIL PROTECTED]
Subject: Re: [jQuery] Why isn't my Ajax call working?
Sent: Feb 16 '07 22:33
Which PHP array are you using to access user variables? If you're
using $_GET, then your AJAX Post variables won't show up
Just wanted to get the word out, I'm getting javascript errors when
trying to access http://jquery.com/api/.
- jake
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Why not just do this:
$.get(page_name,input,function(data){
$(li).removeClass(wanted).removeClass(notwanted);
for (i in data) {
$(#+data[i]).addClass(wanted);
}
$(li).not(.wanted).addClass(notwanted);
});
- jake
On 2/15/07, Dominik Hahn [EMAIL PROTECTED] wrote:
My current code looks like this:
Sorry, I just saw my reply may be a little confusing, I meant to say
change your css assignments from #FFF; to #FFF (remove semicolon).
- jake
On 2/14/07, Jake McGraw [EMAIL PROTECTED] wrote:
Toby,
You can search the list here: http://www.nabble.com/JQuery-f15494.html
and I don't believe you
I don't see why this would be an issue, if you've always used
variables within PHP to determine javascript file inclusion in Smarty,
why not do the same for javascript written using jQuery?
- jake
On 2/14/07, Chris Scott [EMAIL PROTECTED] wrote:
Mike Alsup wrote:
Sticking it in the template
Matt,
Just my two cents. JQuery's selectors and transversing got me hooked,
its abstracted AJAX functions made me stay. If you're looking to
introduce jQuery to a group of developers, why not have them develop
the same application in plain jane js and then using jQuery. Compare
the flexibility
Dominik:
If you're comfortable using the json_encode function in PHP 5.2.0, you
could do the following:
Client Side (each id for select, #company for ul):
$(function(){
$(#category).change(function(){
$.getJSON('myapp.php',{category:$(this).val()},function(json){
$(#state).empty();
The $().attr(attribute name) function will return the String value
of the given attribute, you can not perform jQuery functions on a
String. To do what your doing, you could try using a regular
expression:
var link = /local/path+/^[^?]+\?(.*)$/.exec($(this).attr(href))[1];
console.log(link);
I
Not sure of any resources, but as a crash course:
If you're using the latest version of PHP (5.0.2), you can use the
function json_encode to send information from your PHP application to
jQuery, for mos tasks this is what I do:
Client Side:
$('#button').click(function(){
var input = {foo:'bar'};
For the life of me, I can not get [EMAIL PROTECTED] to work. I've already
read the
post at
http://www.nabble.com/Problem-with--%40src-tf3147226.html#a8740073
Here's the code:
$find(img).click(function(){
switch($(this).attr(src)) {
case '1.gif':
For those that don't want to upgrade to the new rev just yet, the
following line will give you access to the 'src' attribute without a
whole URL:
/\/?([^\/]*)$/.exec($(this).attr(src))[1]
Where 'this' is an image.
- jake
On 2/9/07, Brandon Aaron [EMAIL PROTECTED] wrote:
Yes it was fixed in
Very nice. Works well.
- jake
On 2/9/07, Paul Bakaus [EMAIL PROTECTED] wrote:
Hi guys,
I read threads about people not always knowing how to find out if a
site is using jQuery.
I have set up a easy but useful greasemonkey script, which adds a
small jquery icon in the bottom right corner
Paul, you can use the window object, specifically the
window.setInterval() function, in combination with one of the Ajax
abstraction methods:
var requestInformation = function () {
$.getJSON(url,input,function(output){
$(#infobox).empty().append(p+output.data+/p);
});
}
//
68 matches
Mail list logo