From list at tridemail.de Mon Jan 7 03:24:13 2008
From: list at tridemail.de (Michael Borchers)
Date: Mon, 7 Jan 2008 10:24:13 +0100
Subject: [Javascript] Prototype: events on buttons
Message-ID: <000601c8510f$11f46dd0$af24a8c0@SF2003.de>
I noticed a strange behaviour in Prototype.
I simply call a function, f.e. with an simple AJAX Request, named request():
The file's name is my_file.php.
No button
When using the link, the function works fine and Firebug shows me the correct URL of the calles AJAX script,
f.e.: http::www.mydomain.com/test/my_ajax.php
But when clicking the button, the called URL is http::www.mydomain.com/test/my_file.php and nothing happens.
It only appears when working with Prototype, it works fine with normal HTML/JS.
Is this a prototype bug or feature for input buttons?
--
MfG
Michael Borchers
Tridem GmbH
http://www.tridem.de
mailto: borchers at tridem.de
Tel.: 0491 / 96 06 71 63
ICQ: 322766923
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From list at tridemail.de Mon Jan 7 03:34:26 2008
From: list at tridemail.de (Michael Borchers)
Date: Mon, 7 Jan 2008 10:34:26 +0100
Subject: [Javascript] Prototype: events on buttons
References: <000601c8510f$11f46dd0$af24a8c0@SF2003.de>
Message-ID: <000e01c85110$7f2c5ec0$af24a8c0@SF2003.de>
----- Original Message -----
From: Michael Borchers
To: [JavaScript List]
Sent: Monday, January 07, 2008 10:24 AM
Subject: [Javascript] Prototype: events on buttons
I noticed a strange behaviour in Prototype.
I simply call a function, f.e. with an simple AJAX Request, named request():
The file's name is my_file.php.
No button
When using the link, the function works fine and Firebug shows me the correct URL of the calles AJAX script,
f.e.: http::www.mydomain.com/test/my_ajax.php
But when clicking the button, the called URL is http::www.mydomain.com/test/my_file.php and nothing happens.
It only appears when working with Prototype, it works fine with normal HTML/JS.
Is this a prototype bug or feature for input buttons?
Additionally I found out that it only happens when the function name ist "request", so this might be a reserved name
Prototpye. But still I don't understand why it works called by a link and not by a button.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ovsnk-reachme at yahoo.com Wed Jan 9 06:02:39 2008
From: ovsnk-reachme at yahoo.com (Nagendra Oleti)
Date: Wed, 9 Jan 2008 04:02:39 -0800 (PST)
Subject: [Javascript] AccessKey, FireFox and Javascript
Message-ID: <772184.41283.qm@web31110.mail.mud.yahoo.com>
Hi,
I am trying to assign accesskey to a button using javascript dynamically using the following code
document.getElementById("testpage1").accessKey = "X";
This doesn't seem to work in FireFox2. Any idea this api is supported?
TIA
Nagendra Oleti
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From del at delweg.com Wed Jan 9 11:37:51 2008
From: del at delweg.com (Del Wegener)
Date: Wed, 9 Jan 2008 11:37:51 -0600
Subject: [Javascript] jQuery
Message-ID: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
Good Morning;
Is anyone familiar with jQuery?
Do the jQuery library items need to be installed on the server or are they
just included in the HTML directory for a website?
Is it easy or hard to learn?
Is there a significant gain?
Can animations be done with jQuery?
Can graphs of mathematics functions and equations be produced?
Is there a good website that gives an understandable and non-technical
overview of jQuery?
Thanks
Del
del at delweg.com
From stevec at topdogstrategy.com Wed Jan 9 12:10:11 2008
From: stevec at topdogstrategy.com (Steve Clason)
Date: Wed, 09 Jan 2008 11:10:11 -0700
Subject: [Javascript] jQuery
In-Reply-To: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
References: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
Message-ID: <47850E03.30703@topdogstrategy.com>
Del Wegener wrote:
> Good Morning;
>
> Is anyone familiar with jQuery?
Yes.
> Do the jQuery library items need to be installed on the server or are they
> just included in the HTML directory for a website?
Well, you need to put the library file on the server but it just goes
the same place as other JavaScript files, so you don't need any special
access to the server.
> Is it easy or hard to learn?
Hmm. If you know JavaScript pretty well it's relatively easy, though it
still takes some time. If you don't know JavaScript you will probably
still be able to use many features but you might pull a little hair out.
> Is there a significant gain?
There's a huge gain in development time over just writing JavaScript, in
my experience.
> Can animations be done with jQuery?
Yes. Some simple ones are built into the core library and others are
available via plug-in.
> Can graphs of mathematics functions and equations be produced?
Maybe via plug-in. Check here: http://docs.jquery.com/Plugins
> Is there a good website that gives an understandable and non-technical
> overview of jQuery?
Define non-technical. jQuery is a JavaScript library and so any
explanation is going to be as technical as an explanation of JavaScript.
The jQuery site at http://jquery.com/ has the best explanation, I believe.
And though you didn't ask, there is an active community of developers
and users and help at any level is easily available on the listserv,
though you're expected to have put in some effort before asking for
help, which is just good manners anyway.
>
> Thanks
Hope it helps.
--
Steve Clason
Boulder, Colorado, USA
(303) 818-8590
From hassan at webtuitive.com Wed Jan 9 12:34:48 2008
From: hassan at webtuitive.com (Hassan Schroeder)
Date: Wed, 09 Jan 2008 10:34:48 -0800
Subject: [Javascript] jQuery
In-Reply-To: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
References: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
Message-ID: <478513C8.6090605@webtuitive.com>
Del Wegener wrote:
> Is anyone familiar with jQuery?
In the sense that I know what it is, but I usually use Prototype
and Scriptaculous, with an occasional dollop of YUI. :-)
> Do the jQuery library items need to be installed on the server or are they
> just included in the HTML directory for a website?
It's just another file to put with the rest of your JS scripts.
> Is it easy or hard to learn?
> Is there a significant gain?
Is it easy or hard to run a marathon? :-)
I'd suggest no one can answer either of those for you -- why not
just take an hour or two to evaluate it?
As far as gain, though, being able to write, e.g.
$('foo').hide()
versus
document.getElementById('foo').style.display = "none"
is, to me, definitely a winner.
(That's Prototype syntax, BTW, but you get the idea.)
FWIW!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
From java.script at cutterscrossing.com Wed Jan 9 11:50:51 2008
From: java.script at cutterscrossing.com (Cutter (JSRelated))
Date: Wed, 09 Jan 2008 11:50:51 -0600
Subject: [Javascript] jQuery
In-Reply-To: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
References: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
Message-ID: <4785097B.3010207@cutterscrossing.com>
JQuery is ridiculously easy to learn. The core library, and additional
plugins, are standard .js files you include in your webroot sub
structure. It is incredibly powerful for something so small, can do
animations using a variety of plugins (easing is probably one of the
most popular), there are plugins for math functions,graphs and
equations. The JQuery site (jquery.com) has several different areas of
information, plus the Google Groups jquery-en list, as well as thousands
of blog postings around the web (including a few on mine).
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com
Del Wegener wrote:
> Good Morning;
>
> Is anyone familiar with jQuery?
> Do the jQuery library items need to be installed on the server or are they
> just included in the HTML directory for a website?
> Is it easy or hard to learn?
> Is there a significant gain?
> Can animations be done with jQuery?
> Can graphs of mathematics functions and equations be produced?
> Is there a good website that gives an understandable and non-technical
> overview of jQuery?
>
> Thanks
> Del
> del at delweg.com
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
From natbat at gmail.com Wed Jan 9 12:54:50 2008
From: natbat at gmail.com (Natalie Downe)
Date: Wed, 9 Jan 2008 18:54:50 +0000
Subject: [Javascript] jQuery
In-Reply-To: <47850E03.30703@topdogstrategy.com>
References: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
<47850E03.30703@topdogstrategy.com>
Message-ID:
Hello,
> > Is there a good website that gives an understandable and non-technical
> > overview of jQuery?
> Define non-technical. jQuery is a JavaScript library and so any
> explanation is going to be as technical as an explanation of JavaScript.
> The jQuery site at http://jquery.com/ has the best explanation, I believe.
Simon has a great article on jQuery for Javascript developers:
http://simonwillison.net/2007/Aug/15/jquery/
Kind regards,
Natalie
--
Natalie Downe
Senior Client-side Engineer, Clearleft
From del at delweg.com Wed Jan 9 18:13:44 2008
From: del at delweg.com (Del Wegener)
Date: Wed, 9 Jan 2008 18:13:44 -0600
Subject: [Javascript] jQuery
References: <003701c852e6$5ee5e6e0$6401a8c0@delweg>
Message-ID: <002001c8531d$a9f1eb20$6401a8c0@delweg>
Thanks for all the comments.
You have convincec me.
I guess I will now buy Jonathan Chaffer's two books and start
learning--again!
Thanks
Del
----- Original Message -----
From: "Del Wegener"
To:
Sent: Wednesday, January 09, 2008 11:37 AM
Subject: [Javascript] jQuery
> Good Morning;
>
> Is anyone familiar with jQuery?
> Do the jQuery library items need to be installed on the server or are they
> just included in the HTML directory for a website?
> Is it easy or hard to learn?
> Is there a significant gain?
> Can animations be done with jQuery?
> Can graphs of mathematics functions and equations be produced?
> Is there a good website that gives an understandable and non-technical
> overview of jQuery?
>
> Thanks
> Del
> del at delweg.com
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>
From rneilands at pulsemining.com.au Wed Jan 9 19:19:22 2008
From: rneilands at pulsemining.com.au (Roland Neilands)
Date: Thu, 10 Jan 2008 12:19:22 +1100
Subject: [Javascript] checkbox onChange delay
Message-ID: <4785729A.6070002@pulsemining.com.au>
Gday all,
I notice that this bit of code is annoyingly slow to fire in IE7, but
works immediately in FF. Checking the box in IE does nothing at all,
until the next click or key press. Is this just an IE bug or should I be
using something other than onChange for checkboxes? It works fine for
other input types. I renamed the function with the same result.
function doClose(itm) {
vJnl = document.getElementById("jnlamt" + itm);
vCls = document.getElementById("comflg" + itm);
if (parseFloat(vJnl.value) != 0 ) {
vCls.checked = false;
window.alert("Close not allowed if value is not zero.");
}
}
...
Regards,
Roland
This e-mail is solely for the use of the intended recipient and may contain information which is confidential or privileged. Any unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender via return e-mail and then delete the original e-mail.
From list at tridemail.de Mon Jan 21 06:30:50 2008
From: list at tridemail.de (Michael Borchers)
Date: Mon, 21 Jan 2008 13:30:50 +0100
Subject: [Javascript] prototype responder "un-register"
Message-ID: <004801c85c29$7550e730$af24a8c0@SF2003.de>
function refreshFavorites() {
Ajax.Responders.register({
onCreate: function(){
checkLogin();
},
});
I use the checkLogin() to see if the the user is logged in and to decide wheter to fire the parent AJAX request
or to redirect to the login page.
my problem:
the checkLogin() starts an AJAX request too. Of course I would like to keep prototype for the request,
so can I unregister and then re-register the responder or is there a better way?
--
MfG
Michael Borchers
Tridem GmbH
http://www.tridem.de
mailto: borchers at tridem.de
Tel.: 0491 / 96 06 71 63
ICQ: 322766923
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From trojani2000 at hotmail.com Sun Jan 27 19:57:36 2008
From: trojani2000 at hotmail.com (Troy III Ajnej)
Date: Mon, 28 Jan 2008 01:57:36 +0000
Subject: [Javascript] external script
In-Reply-To: <4785729A.6070002@pulsemining.com.au>
References: <4785729A.6070002@pulsemining.com.au>
Message-ID:
Is there a way to retrieve the content of an external javascript file?
That is, see its code by using alert method or something similar to it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
Climb to the top of the charts!?Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mwarden at gmail.com Sun Jan 27 20:42:39 2008
From: mwarden at gmail.com (Matt Warden)
Date: Sun, 27 Jan 2008 21:42:39 -0500
Subject: [Javascript] external script
In-Reply-To:
References: <4785729A.6070002@pulsemining.com.au>
Message-ID:
On 1/27/08, Troy III Ajnej wrote:
>
>
> Is there a way to retrieve the content of an external javascript file?
> That is, see its code by using alert method or something similar to it.
Firebug
Or put the external JS's address into the address bar
--
Matt Warden
Cincinnati, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
From dwayne.conyers at hp.com Mon Jan 28 11:15:25 2008
From: dwayne.conyers at hp.com (Conyers, Dwayne)
Date: Mon, 28 Jan 2008 17:15:25 +0000
Subject: [Javascript] external script
In-Reply-To:
References: <4785729A.6070002@pulsemining.com.au>,
Message-ID: <03376C7829F7CF419956224D727F7AFD09CC6C8F5B@G6W0267.americas.hpqcorp.net>
It can be downloaded as an image or any other file can. View source to get the URL (or referential link) to the .JS file.
--
dwacon
http://dwacon.blogspot.com
From sgchipman at gmail.com Mon Jan 28 14:52:09 2008
From: sgchipman at gmail.com (Steven Chipman)
Date: Mon, 28 Jan 2008 15:52:09 -0500
Subject: [Javascript] external script
In-Reply-To:
References: <4785729A.6070002@pulsemining.com.au>
Message-ID: <26ca962b0801281252ha9e038bi9c7c4baa87364429@mail.gmail.com>
On 1/27/08, Troy III Ajnej wrote:
>
>
> Is there a way to retrieve the content of an external javascript file?
> That is, see its code by using alert method or something similar to it.
>
Here's a bookmarklet[1] I wrote a few years ago that walks over
everything that descends from the window object and attempts to
separate out functions/booleans/numbers/objects etc that are defined
in javascript and lists them in tree format. It intentionally skips
over native objects.
Its not exactly what you want, but may point you in the right direction.
[1] http://slayeroffice.com/tools/js_tree/js_tree.js
--
S.G. Chipman
Software Engineer, Portrait Artist
http://slayeroffice.com | http://sgchipman.com
From list at tridemail.de Thu Jan 31 08:52:30 2008
From: list at tridemail.de (Michael Borchers)
Date: Thu, 31 Jan 2008 15:52:30 +0100
Subject: [Javascript] Stop button from firing
Message-ID: <000601c86418$e82ee800$af24a8c0@SF2003.de>
I have a little script that creates new rows with prototype.
When constantely hitting the executing button some rows share the same index.
How can I make my script wait getting finished before getting fired again?
Thanks
function JSONAddIndexedRow(numRowsIndex, addToElement, JSONUrl, direction) {
if($(numRowsIndex)) {
var numRows = parseInt($F(numRowsIndex));
}
if(JSONUrl != '') {
new Ajax.Request(JSONUrl + '?num_rows=' + numRows,
{
method:'post',
onSuccess: function(JSON) {
if(JSON != null) {
var JSONRows = JSON.responseText;
if(direction == '') {
direction = 'after';
}
if($(numRowsIndex).value = numRows+1) {
if($(addToElement)) {
switch(direction) {
case 'after':
new Insertion.After($(addToElement), JSONRows);
break;
case 'before':
new Insertion.Before($(addToElement), JSONRows);
break;
case 'bottom':
new Insertion.Bottom($(addToElement), JSONRows);
break;
case 'top':
new Insertion.Top($(addToElement), JSONRows);
break;
}
}
}
}
}
}
);
}
}
--
MfG
Michael Borchers
Tridem GmbH
http://www.tridem.de
mailto: borchers at tridem.de
Tel.: 0491 / 96 06 71 63
ICQ: 322766923
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From list at tridemail.de Thu Jan 31 08:55:40 2008
From: list at tridemail.de (Michael Borchers)
Date: Thu, 31 Jan 2008 15:55:40 +0100
Subject: [Javascript] Stop button from firing
References: <000601c86418$e82ee800$af24a8c0@SF2003.de>
Message-ID: <000e01c86419$58e48370$af24a8c0@SF2003.de>
----- Original Message -----
From: Michael Borchers
To: [JavaScript List]
Sent: Thursday, January 31, 2008 3:52 PM
Subject: [Javascript] Stop button from firing
I have a little script that creates new rows with prototype.
When constantely hitting the executing button some rows share the same index.
How can I make my script wait getting finished before getting fired again?
Thanks
function JSONAddIndexedRow(numRowsIndex, addToElement, JSONUrl, direction) {
if($(numRowsIndex)) {
var numRows = parseInt($F(numRowsIndex));
}
if(JSONUrl != '') {
new Ajax.Request(JSONUrl + '?num_rows=' + numRows,
{
method:'post',
onSuccess: function(JSON) {
if(JSON != null) {
var JSONRows = JSON.responseText;
if(direction == '') {
direction = 'after';
}
if($(numRowsIndex).value = numRows+1) {
if($(addToElement)) {
switch(direction) {
case 'after':
new Insertion.After($(addToElement), JSONRows);
break;
case 'before':
new Insertion.Before($(addToElement), JSONRows);
break;
case 'bottom':
new Insertion.Bottom($(addToElement), JSONRows);
break;
case 'top':
new Insertion.Top($(addToElement), JSONRows);
break;
}
}
}
}
}
}
);
}
}
ok, here is a simple trick so far:)
if($F(numRowsIndex) != numRows+1) {
instead of
if($(numRowsIndex).value = numRows+1) {
any better ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: