Birgit Pauli-Haack schrieb:
I have some data in an js associative array:
texts = new Array;
texts.webmail = Go directly to Web e-mail. The easy way to read and
write e-mail when you are away from home.;
texts.dsl =Complete information on the DSL service.;
texts.members = Member
Will Olbrys schrieb:
here is an updated example with me being less stupid about how to use the
dollar sign function
$('rowNode', xml.responseXML).each( function(i){
var clone = $(cloneTemplate).clone();
$('#target').append(clone);
Yehuda Katz schrieb:
Mike,
It almost certainly would require dimensions.js. That said, I wouldn't
mind. I suspect that dimensions.js will become a pretty universally used
plugin in the near future. It adds some nice cross-browser stuff that's
really frequently used, and it's pretty
Sam Collett schrieb:
On 03/01/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Birgit Pauli-Haack schrieb:
I have some data in an js associative array:
texts = new Array;
texts.webmail = Go directly to Web e-mail. The easy way to read and
write e-mail when you are away from home.;
texts.dsl
On 03/01/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Sam Collett schrieb:
On 03/01/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Birgit Pauli-Haack schrieb:
I have some data in an js associative array:
texts = new Array;
texts.webmail = Go directly to Web e-mail. The easy way to read and
I appreciate you pointing out to me this syntactical error... I changed my
code accordingly:-) and I will study up some more on this topic.
Birgit
You say you have an associative array so you should use one. Abusing an
array (list) for that is considered bad practice.
var texts = {}; //
On 1/3/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Yehuda Katz schrieb:
Mike,
It almost certainly would require dimensions.js. That said, I wouldn't
mind. I suspect that dimensions.js will become a pretty universally used
plugin in the near future. It adds some nice cross-browser stuff
you've probably heard about it but just in case, visual jquery is
really helpful
http://www.visualjquery.com
ANdreas
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Welcome, Bruce! And a Happy New Year to you, too.
This discussion list is an excellent way to learn more about jQuery.
Don't be afraid to send us an email if you have a question.
In the meantime, you might find this entry on Documentation and
Support Resources helpful:
Wow, this one seems to be truly nasty. As stated by John and some others
here the code I posted does indeed work when copy and pasting it into
the firebug console. However, it does not work when it's part of a
document in a script tag! This seems to only effect FF 2.0, but is
really scary
I've just tried it in FF2.0.0.1 with Firebug 1.0b8 and I can confirm
that it runs fine when the code is pasted into Firebug, but does not
work in the browser - I get your origional results.
Tane
On 1/3/07, Felix Geisendörfer [EMAIL PROTECTED] wrote:
Wow, this one seems to be truly nasty. As
And good news: I just updated Visual jQuery with the latest plugins in svn
and jQuery 1.0.4.
-- Yehuda
On 1/3/07, Andreas Wahlin [EMAIL PROTECTED] wrote:
you've probably heard about it but just in case, visual jquery is
really helpful
http://www.visualjquery.com
ANdreas
Has anyone been able to confirm this issue in Safari?
blemming wrote:
I'm trying to put together some keyboard navigation for a plugin I am
working on but the keydown function seems to fire twice when a key is
selected in safari. Is this a bug?
Here is an example=
2007/1/3, digital spaghetti [EMAIL PROTECTED]:
I've just tried it in FF2.0.0.1 with Firebug 1.0b8 and I can confirm
that it runs fine when the code is pasted into Firebug, but does not
work in the browser - I get your origional results.
It seems to be a different behaviour when the dom is
This might be caused by the event handler being attached to the window
and document in safari but I'm unsure. Try being explicit in what you
are attaching the event too.
--
Brandon Aaron
On 1/3/07, blemming [EMAIL PROTECTED] wrote:
Has anyone been able to confirm this issue in Safari?
Hey all,
I am working on a project at http://ov.informationexperts.com/test.htm
http://ov.informationexperts.com/test.htm and the only issue I am having is
the speed of my code.
steps to test:
1. create three or more points by click in the grey box area.
2. when finish, dbl click the first
Basically, I have a list that I want to be able to navigate through the li
tags with up and down arrows. When the list is selected a function binds
keydown with:
$(document).keydown. etc.
Then when the list is not selected the keydown function is unbound with:
$(document).unkeydown.
Hello,
I like to upload an image from a form with ajax, but I don't know how it
is working. I know, I must to make an iframe, and I must to send the
file to this iframe and getting back the results, but I don't know how
it is working. I try to examine Drupal upload solution but it is to
difficult
Basically what I need help with is speeding up this app.
http://ov.informationexperts.com/test.htm
I don't think drawing with divs will ever get you good performance. DOM
operations are VERY slow. The app has to carry around all the overhead of
the DOM tree and element properties for every
Seems to me that there were some posts a while back about code profiling
maybe in firebug that would tell you how many calls you made to what
functions and maybe how much time you spent in each function, maybe not
this. But this would be the first step to optimizing your code. If you
don't
return true?? that says bubble it up! It may be that safari has an
extra 'layer' along the way.
On 1/3/07, blemming [EMAIL PROTECTED] wrote:
Basically, I have a list that I want to be able to navigate through the li
tags with up and down arrows. When the list is selected a function binds
I would return false... not not return
On 1/3/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
return true?? that says bubble it up! It may be that safari has an
extra 'layer' along the way.
On 1/3/07, blemming [EMAIL PROTECTED] wrote:
Basically, I have a list that I want to be able to navigate
Steven, thanks, I don't know where the bottle-necking is as I pointed in my
initial post, I was just seeing if anyone had away to speed it up.
Dave, I am kinda limited by what I can use. This app will be put on a chip
similar to the linksys admin panel in a router. I wanted to use flash or
$().keydown( function(e) {
if (window.event) { // IE
var keyCode = window.event.keyCode;
} else { // FF
var keyCode = e.which;
}
Stephen, thanks, I was not trying to be confrontational, I just misunderstood
what you said/meant
Karl, thanks for the clarification, i have FB 1.0b1 installed now.
Looking at the profile and following the steps i provided before, I see
where bottlenecking is; I think.
These are the top times
Ámon Tamás wrote:
Hello,
I like to upload an image from a form with ajax, but I don't know how it
is working. I know, I must to make an iframe, and I must to send the
file to this iframe and getting back the results, but I don't know how
it is working. I try to examine Drupal upload
bmsterling schrieb:
[...]
This function seems to be the heavy hitter:
[...]
I think you can apply some of the stuff posted by Karl here:
http://www.learningjquery.com/2006/12/quick-tip-optimizing-dom-traversal
That should speed up the DOM querying.
--
Jörn Zaefferer
Hi,
Today we released a new version of PokerRoom.com, the worlds 3rd
largest poker site. The site has approximately 100,000 - 200,000
visits a day and at peak we serve poker games to 25,000 - 30,000
users.
The new front-end platform is running on PHP 5 with the Smarty
Template Engine
Define a callback function in the origonal page (yourFunction), then in the
page returned by the ajax call put script that uses that function (
parent.yourFunction() ).
Blair
On 1/4/07, Ámon Tamás [EMAIL PROTECTED] wrote:
Ámon Tamás wrote:
Hello,
I like to upload an image from a form with
I've released 0.11 of the jquery-modalContent plugin with the following changes:
2006-12-19 patch from Tim Saker [EMAIL PROTECTED]
1) Keyboard events are now only permitted on visible elements
belonging to the modal layer (child elements). Attempting to place
focus on any other page element
That's fantastic news, Mattias - great job!
On 1/3/07, Mattias Hising [EMAIL PROTECTED] wrote:
Hi,
Today we released a new version of PokerRoom.com, the worlds 3rd
largest poker site. The site has approximately 100,000 - 200,000
visits a day and at peak we serve poker games to 25,000 -
The latest version of the form plugin has some new features that you
may not be aware of.
New Functions:
resetForm, clearForm and clearInputs
// invokes the form's native 'reset' method
$('#myForm').resetForm();
// clears all (appropriate) fields in the form
$('#myForm').clearForm();
// clears
Mike,
Thanks for clearInputs. Did you resolve the bug in resetForm?
-- Yehuda
On 1/3/07, Mike Alsup [EMAIL PROTECTED] wrote:
The latest version of the form plugin has some new features that you
may not be aware of.
New Functions:
resetForm, clearForm and clearInputs
// invokes the form's
Hello,
I developed a small Ajax-Chat. Now I switched to an IFrame-Solution to
outsource the chatscripts to a different server. Now I get this nasty
bug (only on Firefox 2.0. Opera and IE are fine):
[Exception... Component returned failure code: 0x80004005
(NS_ERROR_FAILURE)
Hello folks,
Can wildcards be used in the following context...
I change the ID of an a tag surrounding an icon (that when clicked
triggers a delete function) from its original setting of del to a
string containing info (pb, iA) about the item (to be deleted) by:
hi guys is me again. I ran into a problem and haven't found out a solution.
Anyways, here is the problem. when the page load, a function begin() is
called. When u right click on the text, the iniMenu() funciton is called.
When the iniMenu() is trigger it unbinds all events:
$([EMAIL
Bruce MacKay schrieb:
[...]
This only works for the first iteration. If I subsequently select
another item to be deleted, the ID of the a tag is no longer just
del and so obviously the ID of the a tag won't be changed because it
cannot be found. Is there a way that I can use some type of
This might help:
$([EMAIL PROTECTED]'del']).id(del*+pb+*+iA+*ck);
It selects any a element whose id attribute begins with del[1]
[1] http://jquery.com/docs/Base/Expression/CSS/#Supportedbutdifferent
On 1/3/07, Bruce MacKay [EMAIL PROTECTED] wrote:
Hello folks,
Can wildcards be used in the
xmrcivicboix schrieb:
[...]
What I'm trying to do is when tiny_mce is opened, I don't want any other
events to still be bounded. For instance, when tiny_mce is opened, I don't
want user to be able to right click on the text and open up another instance
of tiny_mce. [...]
If you want to
no... I have my custom contextmenu called initMenu(); if the user right
clicks my custom menu shows up. When user clicks in the body the menu
disappear and start from the beginning. If I go from begin() to edit() then
it properly unbind all events. If I go begin() initMenu() then edit() then
it
how about disabling the edit command in the menu when an editor is open
for that item?
On 1/3/07, xmrcivicboix [EMAIL PROTECTED] wrote:
no... I have my custom contextmenu called initMenu(); if the user right
clicks my custom menu shows up. When user clicks in the body the menu
disappear and
Thanks for clearInputs. Did you resolve the bug in resetForm?
Yes, resetForm does a fn test before invocation (which is a pain in IE
because IE reports that the reset method is an 'object'!)
___
jQuery mailing list
discuss@jquery.com
xmrcivicboix schrieb:
the script itself is here:
https://crux.baker.edu/~thuynh01/eip/static_pages/eip.js
You can simplify begin quite a lot:
var selectors = $([EMAIL PROTECTED]);
selectors.bind(contextmenu, function() {
$(this).css(background-color, transparent);
I am working on an application which uses a jquery to show and hide
preloaded layers sort of like netvibes.com. Another aspect of my application
involves dynamic creation of forms. When these forms are created, they are
given an ID based on an ID in the database.
It all worked out great
Hello,
I developed a small Ajax-chat. Now I switched to an IFrame-solution to
outsource the scripts to a different server. Now I get this nasty bug
(only on newest Firefox 2.0.0.1, Opera and IE are fine):
[Exception... Component returned failure code: 0x80004005
(NS_ERROR_FAILURE)
Jeremy Dill schrieb:
So,
1) Do you think it will be reasonable to use a different selector
method to access the Input elements based on a combination of form ID
and element ID, rather than strictly by element id? If so, what syntax
should I use? I have tried the context selector
You can use XMLHttpRequest to submit files. Ever. The only way to do AJAX
file subission is to create an invisible iframe and set that frame as the
target of an ordinary form. When the form is submitted, the iframe uploads
the file and downloads the resulting page and executes any script in it,
Hello again,
I found the solution: Firebug is installed and made the problem. Firebug
Beta 2 is supposed to solve this problem.
Found it in Google-Groups:
selectors.bind(contextmenu, function() { });
would not work because you're binding ALL elements that begins with 'eip-'
rather than EACH individual element.
Jörn Zaefferer wrote:
xmrcivicboix schrieb:
the script itself is here:
https://crux.baker.edu/~thuynh01/eip/static_pages/eip.js
Hi folks,
I'm creating several divs which represent rows of a table. It's not
really a table though, it's table-like using divs and spans. It works
great. Just the way I want.
But...
I'm trying to make it so that when you click on one of the rows it
changes the background color. It already
Jeremy Dill schrieb:
I am working on an application which uses a jquery to show and hide
preloaded layers sort of like netvibes.com. Another aspect of my
application involves dynamic creation of forms. When these forms are
created, they are given an ID based on an ID in the database.
Sorry. I got mixed up with another thread! :D
Blair
On 1/4/07, Hermann-Marcus Behrens [EMAIL PROTECTED] wrote:
Hello again,
I found the solution: Firebug is installed and made the problem. Firebug
Beta 2 is supposed to solve this problem.
Found it in Google-Groups:
Hi
Just getting into using js to do things. I'm just experimenting right now.
Here is my example code:
p id=member_info/p
script type=text/javascript
function findMember(form){
$(#member_info).html(form.username.value);
}
/script
form name=find_member action= method=GET
input
now what happens when I fill in a value and click is that the value I
entered into the text box appears in the member_info p ... but
disappears again almost straight away.
Try: onclick=findMember(this.form); return false;...
Without the return false in there you're going to submit the form.
I think the form may be submitting. The whole page is reloading when you
click submit. Try onClick=findMember(this.form; return false;.
Blair
On 1/4/07, Daniel McBrearty [EMAIL PROTECTED] wrote:
Hi
Just getting into using js to do things. I'm just experimenting right now.
Here is my example
it's a form.. it's submitting. you get a new page... it's gone! if you
target the form into an iframe you might get your desired results.
On 1/3/07, Daniel McBrearty [EMAIL PROTECTED] wrote:
Hi
Just getting into using js to do things. I'm just experimenting right now.
Here is my example
Daniel McBrearty schrieb:
Hi
Just getting into using js to do things. I'm just experimenting right now.
Here is my example code:
p id=member_info/p
script type=text/javascript
function findMember(form){
$(#member_info).html(form.username.value);
}
/script
form
Mike Alsup schrieb:
now what happens when I fill in a value and click is that the value I
entered into the text box appears in the member_info p ... but
disappears again almost straight away.
Try: onclick=findMember(this.form); return false;...
Without the return false in there you're
Okay, so Mike and Blair got back to you before I could, but I'm going
to answer anyway.
They're right, of course, that you need to return false, because you
want to stop the default action.
One of the great things about jQuery is that it lets you easily
separate behavior from content. So
Theres no problem with doing it like that AFAIK, jquery will take each
matched element and bind it properly.
On 1/3/07, xmrcivicboix [EMAIL PROTECTED] wrote:
selectors.bind(contextmenu, function() { });
would not work because you're binding ALL elements that begins with 'eip-'
rather than
Karl Swedberg schrieb:
Okay, so Mike and Blair got back to you before I could, but I'm going to
answer anyway.
They're right, of course, that you need to return false, because you
want to stop the default action.
One of the great things about jQuery is that it lets you easily separate
thanks a lot guys. That 's really a great response.
I got it to basically work, now I'll read through your suggestions and
clean it up. I'm still learning ... :-)
thanks again.
Daniel
On 1/4/07, Karl Swedberg [EMAIL PROTECTED] wrote:
Okay, so Mike and Blair got back to you before I could, but
On Jan 3, 2007, at 8:05 PM, Klaus Hartl wrote:
All your solutions don't take into account that IE6 will still submit
the form if you hit enter - that was discussed a while back and here's
the test page for this:
http://stilbuero.de/demo/jquery/submit_test.html
-- Klaus
Good point, Klaus. I
All your solutions don't take into account that IE6 will still submit
the form if you hit enter
Good catch, Klaus. As usual!
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hey, folks. I have a question about best practices for writing
object-oriented code for use in jQuery. I've been working through
understanding this issue and figured the geniuses on this forum would be the
ones to ask for advice.
I've created an example page with documented source (don't worry,
As several others have pointed out, the problem is that the form is
submitting. If that's not what you eventually want to happen, why not
just make the submit input into a button input (type=button)?
Daniel McBrearty wrote:
Hi
Just getting into using js to do things. I'm just experimenting
Doug Tabacco schrieb:
As several others have pointed out, the problem is that the form is
submitting. If that's not what you eventually want to happen, why not
just make the submit input into a button input (type=button)?
I'm sure you will still be able to submit the form by hitting
html
head
script src=scripts/jquery.js
type=text/javascript/script
script type=text/javascript charset=utf-8
$(document).ready(function() {
$('#submit-member').click(function() {
var username = $(this).prev().val();
$(#member_info).html(username);
return false;
});
True, but if it's not meant to be submittable, you could always just
remove the form tags as well.
Klaus Hartl wrote:
Doug Tabacco schrieb:
As several others have pointed out, the problem is that the form is
submitting. If that's not what you eventually want to happen, why not
just make
my apology. This method does work; however, it has to be this way:
selectors.bind(contextmenu, function() {
document.oncontextmenu = function(){ return false; };
eip.initMenu (this, e.clientX, e.clientY);
//I tried eip.initMenu (selectors, e.clientX, e.clientY); but didn't
Is there a way we can see this in action, I looked at the code and nothing
jumps out at me.
--
View this message in context:
http://www.nabble.com/Error%3A-%27nodeName-is-null-or-not-an-object%27-%28What-am-I-doing-wrong-%29-tf2916968.html#a8153074
Sent from the JQuery mailing list archive at
I can't seem to find the center() plugin that is listed at visualjquery.com,
anyone know where it is?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
I should have mentioned that I changed the HTML as well. I added an
ID to the submit button (submit-member). Notice how the event is
being triggered now: $('#submit-member').click(function() {...});
Since var username = $(this).prev().val() is appearing inside the
click method, $(this)
Read directories dynamically (and recursively)
http://jpassoc.com/demo/traverseDir/
the base for my dog's web pages.
http://jpassoc.com/junior/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
yep.
blockUI is indeed slow on linux. not as slow as i initally
stated (my machine was probably busy with something) but
there is about 3 seconds delay before anything happens.
unfortunately that's not a specific fault of blockUI but
a general problem with alpha transparency under linux.
alpha
Hi,
function addScript( url ) {
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.charset = 'utf-8';
script.src = url;
document.getElementsByTagName('head')[0].appendChild( script );
};
There are safari-versions
Hi Aaron,
actually this seems broken. I have tested it some weeks before, but
forgot to add a bug report.
2007/1/3, Aaron Heimlich [EMAIL PROTECTED]:
This might help:
$([EMAIL PROTECTED]'del']).id(del*+pb+*+iA+*ck);
It selects any a element whose id attribute begins with del[1]
[1]
77 matches
Mail list logo