What I would do is just create Option object, it would do the append
automatically.
[code untested]
var routeSelect = $(#routeSelect).get(0);
routeSelect.options.length = 0; //reset to zero length
for(var i = 0; i routes.length; ++i) {
routeSelect.options[i] = new
i´m using 1.0.1
here´s part of my code:
for (i=0;idata_schools.length;i++) {
var option = $.OPTION({ value:data_schools[i][0] }, data_schools[i]
[0] );
$('#selectLocation').append(option);
}
select name=location class=vSelectField id=selectLocation
option value=
On 11/10/06, Blair McKenzie [EMAIL PROTECTED] wrote:
I dug this plugin up from the mail list. Don't know whether it's up to date though.
BlairThat is an old version. I have a newer version available at:http://www.texotela.co.uk/code/jquery/select/To add multiple options:
var myOptions = { Value 1
On 11/10/06, Sam Collett [EMAIL PROTECTED] wrote:
On 11/10/06, Blair McKenzie [EMAIL PROTECTED] wrote:
I dug this plugin up from the mail list. Don't know whether it's up to date though.
BlairThat is an old version. I have a newer version available at:
noticed the same, going to look at it.2006/10/11, Mike Alsup [EMAIL PROTECTED]:
In the attr method the following barfs:var fix = {...cssFloat: fix[float],...};___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Paul BakausWeb
The plugin is now 1.70KB when packed. At some point it would be nice
to roll the changes from the past few weeks back into SVN and
determine if it might be a core candidate at that point.
The big problem with merging into core: The currente serialize method
and the one from the form
Hi all,I noticed there was an update on the famous nifty2, which does rounded corners on elements without the use of graphics. When I saw the parsing capabilites, I thought Why not use jQuery for that.
So I went ahead and used 3 hours of my time to modify and optimize the plugin as a jQuery
Hi guys,
Just to let you know I've released a new plug-in called pager. It's
used for paginating long blocks of content in areas such as inflexible
designs. Any comments and criticism would be greatly received!
Examples and downloads are on http://rikrikrik.com/jquery/pager/
Thanks
Rik
--
Rik
This is very cool! Good work! I also like the unobstrusive way for non-_javascript_ enabled browsers.2006/10/11, Rik Lomas [EMAIL PROTECTED]
:Hi guys,Just to let you know I've released a new plug-in called pager. It's
used for paginating long blocks of content in areas such as inflexibledesigns.
My fault guys :/
That was really stupid of me.
--
Brandon Aaron
On 10/11/06, Paul Bakaus [EMAIL PROTECTED] wrote:
noticed the same, going to look at it.
2006/10/11, Mike Alsup [EMAIL PROTECTED]:
In the attr method the following barfs:
var fix = {
...
cssFloat: fix[float],
yeah, saw your change when I tried to commit :P2006/10/11, Webunity | Gilles van den Hoven [EMAIL PROTECTED]:
Paul Bakaus wrote: noticed the same,going to look at it.p.s. it is allready patched ;)___jQuery mailing listdiscuss@jquery.com
Paul Bakaus wrote:
noticed the same, going to look at it.
p.s. it is allready patched ;)
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
This is fixed in revision 420.
--
Brandon Aaron
On 10/11/06, Kelvin Luck [EMAIL PROTECTED] wrote:
I experienced similar problems last night but didn't have time to put
together a simple example test page... Not sure what but something
definitely appeared to be wrong.
On Wed, October 11,
This is a good idea!We can start a plugin development!Let's make a dev team to this!Stay beautiful!Eriksen
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
There is nothing wrong with your code. You may have another issue.
--
View this message in context:
http://www.nabble.com/Append-body-tf2419689.html#a6755973
Sent from the JQuery mailing list archive at Nabble.com.
___
jQuery mailing list
File upload is not possible using JavaScript for security reasons.
There have allready been a lot of people asking this on this list.
-- Gilles
/If you'd Googled, you'd know/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Brandon,
Is the complete v420 found here:
http://jquery.com/dev/svn/jquery/src/jquery/jquery.js
or do I still need to combine all of the other files such as ajax.js,
fx.js. etc.?
Rey...
Brandon Aaron wrote:
This is fixed in revision 420.
--
Brandon Aaron
On 10/11/06, Kelvin Luck
sdkester schrieb:
I tried appending the body with a div using the following in a js file:
$(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif
nbsp;nbsp;/p/div');
It is not working. Maybe I'm going about it wrong. I simply want to insert
the above html anywhere in the
I don't think this is a big problem, we can just rename the form's
serialize method to formSerialize or something like that. It's
unfortunate that two methods of the same name exist and it's better to
fix it now than to perpetuate it. I think the real question is
whether or not to add
Yes you do. If you use subversion and then use either ant or make the
combination of the files is as simple as a single command.
Ok. Haven't used any of those. Can you point me in the right direction?
Thanks,
Rey
___
jQuery mailing list
On 11/10/06, Paul Bakaus [EMAIL PROTECTED] wrote:
Hi all,
I noticed there was an update on the famous nifty2, which does rounded
corners on elements without the use of graphics. When I saw the parsing
capabilites, I thought Why not use jQuery for that.
So I went ahead and used 3 hours of
I use jQuery for DOM manipulation, but for data retrieval I use JSON-RPC/JavaThere's a couple of libraries you can use at
http://www.json.org/Good luck,-- Francisco Britosoftware: http://nullisnull.blogspot.comphotography:
http://www.flickr.com/photos/darkgoyleeverything else:
Hi Francisco,
Check out the following plugin for handling JSON:
http://mg.to/2006/01/25/json-for-jquery
Rey...
Francisco Brito wrote:
I use jQuery for DOM manipulation, but for data retrieval I use
JSON-RPC/Java
There's a couple of libraries you can use at http://www.json.org/
Good
Here are two good links to get you pointed in the right direction:
http://dojo.jot.com/WikiHome/Getting%20Started%20With%20Subversion
http://dojo.jot.com/Getting%20Started%20With%20Ant
--
Brandon Aaron
On 10/11/06, Rey Bango [EMAIL PROTECTED] wrote:
Yes you do. If you use subversion and then
Thank you for the suggestion. I tried that and get an operation aborted error
from IE and it won't let me load the page. Any other ideas?
Klaus Hartl wrote:
sdkester schrieb:
I tried appending the body with a div using the following in a js file:
$(body).append('div id=ajaxBusy
Are you running your code before the dom is ready?
Try this:
$(document).ready(function(){
$(body).append('div id=ajaxBusy class=ajaxBusy.../div');
});
Luke
--
zinc Roe Design
www.zincroe.com
(647) 477-6016
sdkester wrote:
Thank you for the suggestion. I tried that and get an
You were right on the money! It works now. Thank you very much!
Luke Lutman wrote:
Are you running your code before the dom is ready?
Try this:
$(document).ready(function(){
$(body).append('div id=ajaxBusy class=ajaxBusy.../div');
});
Luke
--
zinc Roe Design
Rik Lomas schrieb:
Hi guys,
Just to let you know I've released a new plug-in called pager. It's
used for paginating long blocks of content in areas such as inflexible
designs. Any comments and criticism would be greatly received!
Examples and downloads are on
Mike Alsup schrieb:
The plugin is now 1.70KB when packed. At some point it would be nice
to roll the changes from the past few weeks back into SVN and
determine if it might be a core candidate at that point.
The big problem with merging into core: The currente serialize method
and the one
Hi,
I've seen searching lately for a good way of storing preferences which a
jQuery script needs later on. The specific information the script needs
is the starting state of a div element (either open or closed). The
preferences are stored in a DB and sent from there somehow to the
browser.
Raffael Luthiger wrote:
3) Every time the page is loaded the js-script asks the server for a XML
(or JSON) file with the preferences in there.
Option 3, but save the data you got from the server in a cookie, which
you destroy after 1 day or something like that. Each time the user
changes
Raffael Luthiger wrote:
2) The js-script gets generated each time the page is called. And the
corresponding vars are set in there.
3) Every time the page is loaded the js-script asks the server for a XML
(or JSON) file with the preferences in there.
5) More (and better) ideas?
I'd use
Are the return types for various methods documented anywhere? I can
guess on most of them, but I'd like a handy cheat sheet showing that
.html('blah') returns the original element.
Things like .after() aren't at all obvious, however, and I could see a
reasonable case for it to either return the
reading a file is not possible using JavaScript for security reasons.
automatically choosing a file is not possible using JavaScript for
security reasons.
scripting a submit , in an html form, is very doable,
Google mail does it every time... so does Google docs spreadsheets!
I can't see not
Yep:
http://jquery.com/api/
On 10/11/06, Kurt Mackey [EMAIL PROTECTED] wrote:
Are the return types for various methods documented anywhere? I can
guess on most of them, but I'd like a handy cheat sheet showing that
.html('blah') returns the original element.
Things like .after() aren't at
I don't think this is a big problem, we can just rename the form's
serialize method to formSerialize or something like that. It's
unfortunate that two methods of the same name exist and it's better to
fix it now than to perpetuate it. I think the real question is
whether or not to add
Peter Woods schrieb:
The fix is quite simple, as far as I can tell... simply replace the
line in question with this:
// Handle HTML strings
var m;
if (typeof a == string) m = /^[^]*(.+)[^]*$/.exec(a);
This works and is now in SVN, tested.
} else if ( jQuery.browser.msie
Goal of the script:
Click on link, load an XML and use the content. While al this is happening I want to display a loading image.
My first code worked fine in IE and FF but was not generic:
//Code - Example here: http://www.jmslbam.nl/temp/jquery/xml/ajaxStatic.html
$(document).ready(function(){
Hi,
I'm trying to implement interface elements FX - Scroll on a page. I've
got jQuery compressed 1.0.2 rev 4.1.3 and used the automated download
packager for the interface element, which gave me a file called
interface.js. This file doesn't appear to work. Firebug gives me
missing ; before
Heh, and to think I've been using Visual jQuery all this time.
Anyway, that link's a start, but it doesn't help clarify what .after
returns, for instance.
Maybe I should go through and write all these up.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
I'd go for something like option 4, but instead of the custom attribute/DTD
stuff, just give it
a classname. i.e.:
div class=closed/div
Luke
Raffael Luthiger wrote:
Hi,
I've seen searching lately for a good way of storing preferences which a
jQuery script needs later on. The specific
Paul, nice implementation of nifty inside of jquery. Out of curiosity,
does nifty do rounded corners any differently then Dave's plugin?
http://methvin.com/jquery/jq-corner-demo.html
Quoting Sam Collett [EMAIL PROTECTED]:
On 11/10/06, Paul Bakaus [EMAIL PROTECTED] wrote:
Hi all,
I
Anyway, that link's a start, but it doesn't help clarify what .after
returns, for instance.
According to that link, .after() always returns a jQuery object. While
.html() can return either a jQuery object or a String, depending on
the arguments passed in.
If something returns a jQuery object,
Hello,
I have been trying to figure out how I could use the form plugin
(http://jquery.com/dev/svn/plugins/form/form.js). I'm aware of the examples
embedded in the code but I guess this is to advanced for me. Is there
documention for dummies somewhere on this plugin ? or a demo ?
Thank you
On Oct 11, 2006, at 15:19, Tom Elsner wrote:
div and I use slideDown() the div has a fixed height of 1px (looking
at the generated code) which breaks the html in firefox and the
animation in explorer (it slidesDown twice). It seems that the height
of the element is retained although I use
I think what he's talking about is whether or not it returns what was
just added to the document or the original element. Another example
would be whether or not .clone() return the cloned elements in the
jQuery set or the original elements. Those sorts of things aren't listed
in the
Charles Roper wrote:
http://www.sxbrc.dev/biodiversity/countyrecorders/index2.php
http://www.sxbrc.dev/biodiversity/countyrecorders/index3.php
Apologies, these links are broken. Here are the correct ones:
http://www.sxbrc.org.uk/biodiversity/countyrecorders/index2.php
Yep, that's correct, even if I can't write very clearly. ;)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Blair Mitchelmore
Sent: Wednesday, October 11, 2006 1:07 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Documentation of return objects?
I think
And if I recall correctly, .after() and its ilk return the original
element if only for the logistical difficulty of determining what part
of the (not necessarily single element wrapped. for example
$('p').after('p class=first/pp class=last/p'); is the
p.first in the jQuery set or is p.last in
**Safari only checkbox issue**
This is to let everyone know who is having issues with [EMAIL PROTECTED]
in jquery to grab checkbox tags from DOM
ex: $('#el[type=checkbox]').size()
In HTML make sure the tag case match upper or lower case,
for example
type=CHECKBOX vs type=checkbox
if the
Visual jQuery is actually fairly identical to the API. It's an oversight that I don't have the return classes. I will add that tonight :-D-- YehudaOn 10/11/06,
Kurt Mackey [EMAIL PROTECTED] wrote:Heh, and to think I've been using Visual jQuery all this time.
Anyway, that link's a start, but it
I think what he's talking about is whether or not it returns what was
just added to the document or the original element. Another example
would be whether or not .clone() return the cloned elements in the
jQuery set or the original elements. Those sorts of things aren't
listed.
Good
I have tried the revision 404 patch and the new version of
jquery that was just released and both versions do not apply the fx transitions
to html forms. Text and Images have the transitions applied to them, but not html
forms. Please note that this is only the case in IE and not in
Hi Jake.
I read over your bug ticket and believe that we are really talking
about two seperate things that just happen to find themselves at the
same spot in the code; one, can we remove or update the Connection:
close hack and two, can we add a i-really-really-really-want-xml
update.
If we
I just did up a quick and dirty test page and it is working for me.
Here is the test page: http://brandonaaron.net/jquery/form/test.html
Do you have an example where it doesn't work for you?
--
Brandon Aaron
On 10/11/06, Kolak Roy M. [EMAIL PROTECTED] wrote:
I have tried the revision 404
Just need to add this to your onclick:
onclick=$('#container').ScrollTo(800);return false;
The reason you see a flash is that it is actually jumping to the top
and then back down because the click event is not stopped.
Also, I would suggest using $(document).ready() to attach event
handlers
// wire the 'Loading...' ajax indicator
$('div id=busyLoading.../div')
.ajaxStart(function() {$(this).show();})
.ajaxStop(function() {$(this).hide();})
.appendTo('#main');
That is from the form example that emulate a google like load hope that
helps ;)
Ian, et al,
Since one has absolutely nothing to do with the other 'cept and
overridemimetype in both.
Split the unhappy couple.
My bug, about which I am really really concerned, is the ability to
go domming thru my xhtml (actually an apache index page from my server
that is configged to send
Thanks Gilles, Mark and Luke!
I was thinking about the cookie as well. But the problem I see here that
a cookie can have in the maximum the size of 4k. It's not that I would
reach the limit now, but I don't want to run into strange problems as
soon as the application get larger over time. From
Is opacity involved?
--
Brandon Aaron
On 10/11/06, Stefan Nagtegaal [EMAIL PROTECTED] wrote:
Hi list,
when you make use of the .slideUp()/.slideDown() or whatever (not
sure yet, but i think it is) kind of effect, the text on your page
seems to be non-aliased or at least not as sharpe as it
while dom dumpin in FF, I noticed that opacity never gets all the way
to 1.. I couldn't see the difference
p class=surprise ohmy style=overflow: hidden; width: 500px;
display: block; height: 77px; opacity: 0.; from jquery.com home
page.
On 10/11/06, Brandon Aaron [EMAIL PROTECTED] wrote:
Is
This is due to a bug in Firefox when changing the opacity to and from
1 it flashes. Firefox is the only browser the opacity never reaches 1.
--
Brandon Aaron
On 10/11/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
while dom dumpin in FF, I noticed that opacity never gets all the way
to 1.. I couldn't see
Hey guys,
I'm having some issues with a commenting module built using jQuery
ajaxForm(). The commenting module simply takes the data from a textarea
in a form and submits it to a Php processing script for behind the
scenes processing. Most of the time, (95%) the system performs as
intended
Why do some functions begin with '$.' such as $.each() but most don't?
If the call to $(document).ready() is from another included js file,
what's the best way make sure jQuery is loaded before calling it?
Is there a way to use each() and have it stop part way through? (I'm
using each() to
but how do I take the value of an text field, and check it against the text
in a select list? For example, if I type foo in a text field, and I have a
select list that looks like the one below it'll automatically make the
second option selected.
select
option value=1bar/option
option
From: patrickk
I´m using the plugin for DOM creation to accomplish that. see
http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype
From: Rey Bango
I tried using this plugin but it didn't seem to work with
v1.0.1. Which version of JQuery are you using?
Rey, which of the
A good approach to use with this kind of situation (where the user connection/browser/etc can't be assumed) is to implement all functionality so that it can work without JS, and then hijack the form on page load and convert it to AJAX.
Another thread on this list brought up a very elegant way to
Yikes -
this is a very active discussion group. Too much information. Please take my
email address off the list.
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
$() vs $.():$() is the 'public' scope, and those functions work with the element arrays that get selected. $.() is 'private' scope, and is used by code that works 'inside' jquery. Generally plugins can use $.(), but other code shouldn't.
As long as the file that has the $(document).ready() is
all,
I've come across a problem when using the Slider control within a
floated DIV that has been positioned next to another floated DIV with
a specified width.
The following example explains it best:
http://empireenterprises.com/_slider.html
The problem occurs in the latest FF Safari for
Hi all,
I'm using the sortable interface to create a component that can receive other components, and sort them around. However, if I add another sortable component/container inside,I cannot sort things inside of the new one. When I move a sibling component over the nested sortable container I
Raffael Luthiger wrote:
Thanks Gilles, Mark and Luke!
I was thinking about the cookie as well. But the problem I see here that
a cookie can have in the maximum the size of 4k. It's not that I would
reach the limit now, but I don't want to run into strange problems as
soon as the
On Oct 11, 2006, at 8:37 PM, Glen wrote:
I've come across a problem when using the Slider control within a
floated DIV that has been positioned next to another floated DIV with
a specified width.
The following example explains it best:
http://empireenterprises.com/_slider.html
The
I was able to do it with a slight tweak of the code posted here:
http://www.nabble.com/How-to-change-value-of-select-dropdown--tf2308098.html#a6420831
script type=text/javascript
jQuery.fn.option = function(value){
return this.each(function(){
var select = $(this)[0];
Glen wrote:
all,
I've come across a problem when using the Slider control within a
floated DIV that has been positioned next to another floated DIV with
a specified width.
The following example explains it best:
http://empireenterprises.com/_slider.html
The problem occurs in the
75 matches
Mail list logo