hi,guys
i get a form in table by jquery.
if the form like this:
table
form
tbodytbody
/form
/table
The table does not display in firefox(i use ff2.0), but it's ok in IE.
and i can find the table of dom from DOM inspector add-on, it does
exists!!
i try some lots of ways to find what
Hello,
I'm parsing this JSON:
{result:success,successText:Your changes have been saved
successfully.,errorText:,memberID:49,mode:edit,jobs:[{jobID:1,companyName:SAIC},{jobID:2,companyName:Aspentech},{jobID:3,companyName:Cardinal
Health}]}
...with this Javascript:
The a tag that was in the var div line got rendered as an actual link.
Here it is again with spaces to prevent it from being rendered as a link:
var div = div id='job + j.jobID + 'h1 id='jobTitle + j.jobID + '
style='display:inline;font-weight:normal' + j.companyName + /h1nbsp;|
a href='#'
You're using the variable j to hold a reference to each element of the
jobs array as you go through the loop. After the loop finishes, j is a
reference to the last element of that array.
Later, when the click function gets called, j still refers to that last
element - regardless of which element
Wow, thanks very much. It worked like a charm.
I hadn't used the $.each function in jQuery yet, so thank you for pointing
me to it. I suspect I'll be using it a lot more now that I know how to!
Chad
Michael Geary wrote:
You're using the variable j to hold a reference to each element of
You may want to consider looking into using jXs:
http://www.malsup.com/jquery/jxs/
The problem is XML doesn't work like HTML when inserted into the DOM, even
though it looks like HTML. I hacked up some code from jXs to convert the XML
into HTML and made it a little plugin called htmlify. I use
Johnny schrieb:
hi,guys
i get a form in table by jquery.
if the form like this:
table
form
tbodytbody
/form
/table
The table does not display in firefox(i use ff2.0), but it's ok in IE.
and i can find the table of dom from DOM inspector add-on, it does
exists!!
i try
•More than cosmetic effects (Moo.fx)
Just wondering - I don't know much about it - does Moo.fx really have
only cosmetic effects? What is meant by that anyway? I guess I have to
have a look into the slides...
-- Klaus
___
jQuery mailing list
if the form like this:
table
form
tbodytbody
/form
/table
The table does not display in firefox(i use ff2.0), but it's ok in IE.
and i can find the table of dom from DOM inspector add-on, it does
exists!!
i try some lots of ways to find what happened. And last i find.
if html like this:
Hi people,
I seem to have problems creating a reply to the messages on this list,
whenever I post a reply, it always creates a new thread rather than
continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone
else use this program/version and can tell me what I'm doing wrong. If
Michael Holloway schrieb:
Hi people,
I seem to have problems creating a reply to the messages on this list,
whenever I post a reply, it always creates a new thread rather than
continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone
else use this program/version and can
On 13/12/06, Brice Burgess [EMAIL PROTECTED] wrote:
Joan Piedra wrote:
On 12/12/06, *Aaron Heimlich* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
div#myid = SLOW!!
#myid = FAST!!
.myclass = SLOW!!
div.myclass = FAST(er)!!
LOL, I think this is
I'm sure I must be missing something basic, but I cannot persuade buttons
which I'm showing and hiding with jQ to stay on one line.
It works fine with instant show/hide, but not with speeds
(slow/medium/fast).
Any ideas/hints/help will be appreciated,
Jez
--
View this message in context:
Klaus Hartl schrieb:
Michael Holloway schrieb:
Hi people,
I seem to have problems creating a reply to the messages on this list,
whenever I post a reply, it always creates a new thread rather than
continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone
else use this
so no .click() then?
ANdreas
The best thing to do is always use .bind(event, fn) for your
events. There
is no ambiguity when you do that. Many of those confusing shortcuts
will be
going away in an upcoming version.
___
jQuery mailing list
Johnny,
If you really need that table in there, try rearranging your HTML so
that the form element is inside one of the table's cells:
table
tbody
tr
td
form ... /form
/td
/tr
/tbody
/table
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
Could you put together an example page?
--
Brandon Aaron
On 12/13/06, jazzle [EMAIL PROTECTED] wrote:
I'm sure I must be missing something basic, but I cannot persuade buttons
which I'm showing and hiding with jQ to stay on one line.
It works fine with instant show/hide, but not with speeds
On Dec 13, 2006, at 6:54 AM, Andreas Wahlin wrote:
so no .click() then?
ANdreas
The best thing to do is always use .bind(event, fn) for your
events. There
is no ambiguity when you do that. Many of those confusing shortcuts
will be
going away in an upcoming version.
I think the decision
Hey John...
In the API docs, is there any reason why EVERY one of the listings has the
word jQuery before it? Isn't that rather redundant?
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
Have you double checked to make sure the widths are set correctly? Could be
that when the buttons get longer/shorter, it bumps another button down to
the next line?
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
Andy Matthews schrieb:
Hey John...
In the API docs, is there any reason why EVERY one of the listings has the
word jQuery before it? Isn't that rather redundant?
That is how you know if a method is chainable or not. As most methods
are it may seem redundant at first glance, but it isn't of
I don't think that can be it - these are the only items on this line.
Andy Matthews wrote:
Have you double checked to make sure the widths are set correctly? Could
be
that when the buttons get longer/shorter, it bumps another button down to
the next line?
--
View this message in
I don't honestly think it'll help.
The code is simple, just
input type=button class=tohide ...input type=button class=tohide
...
with jQ:
$(.tohide).hide('slow');
Brandon Aaron wrote:
Could you put together an example page?
--
View this message in context:
I see now...apologies.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Klaus Hartl
In the process of animating, I think jQuery adds display:block to
the inline style property. It probably doesn't do this with the
instant show. My guess is this is what is happening.
Joel.
On 13/12/2006, at 9:24 PM, jazzle wrote:
I'm sure I must be missing something basic, but I cannot
I'm sure I must be missing something basic, but I cannot
persuade buttons which I'm showing and hiding with jQ
to stay on one line.
To use the effects jQuery has to make them block elements. Simple show/hide
just changes display:none so it doesn't have the problem. Set up each button
as a
Is there a changelog?
John Resig wrote:
Hi Everyone -
Another fantastic release of jQuery is ready for your consumption.
This release includes a number of bug fixes (as usual) along with some
much-needed improvements to jQuery's Ajax functionality.
As always, if you have any questions or
On 12/12/06, Robert James [EMAIL PROTECTED] wrote:
2. How do I use JQuery to manipulate hrefs?
there are a number of security locks on modern browsers that don't
allow dynamic manipulation of href. I haven't looked at your example
in detail so I am not sure you will run into it, but a lot of
Happy dance, happy dance.
Thank you all for this. Your efforts are truly appreciated.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: Tuesday, December 12, 2006 5:44 PM
To: jQuery Discussion.
Subject: [jQuery] jQuery 1.0.4 Released
Hi
Hi Mike,
I'm using TB 1.5.0.8 as well (though on a PC, so I'm not sure this will
be of great help), and I just use the Reply to Sender Only option. It
sends the email to discuss@jquery.com, and everything seems to go smoothly.
Cheers,
Chris
Michael Holloway wrote:
Hi people,
I seem to
On 12/13/06, jazzle [EMAIL PROTECTED] wrote:
I don't honestly think it'll help.
Nonsense, it does help and it helps to help those who want to help. It
allows those willing to help with limited time to just check out the
example in firebug.
I was first thinking it would be display: block also
Brandon Aaron wrote:
On 12/13/06, jazzle [EMAIL PROTECTED] wrote:
I don't honestly think it'll help.
Nonsense, it does help and it helps to help those who want to help.
That's why I did include some code.
It was as dave suggested
Just a follow up, I made a bunch of changes to the style sheet, assuming it
has something todo with background images, and still no luck.
Attached is what I am seeing.
thanks
http://www.nabble.com/file/4566/Untitled-1.png
--
View this message in context:
Hi all,
Sorry if this thread is partly offtopic, but anyone here knows if
there's an easy way to populate jScript in a external webpage in order
to use it in firebug ?
Let's say i'm on google.com and I would like to make some research on
their page, using jQuery in the firebug console would be
Let's say i'm on google.com and I would like to make some research on
their page, using jQuery in the firebug console would be handy. I know
it's possible with greasemonkey but I wonder if there's an easier way
to do this ?
Here's an example. Type the following into the firebug console:
var
Anybody know a mirror of dean edwards packer?
The .NET application doesn have thesame compression results.
Thanx
Gilles
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On 12/13/06, Dave Methvin [EMAIL PROTECTED] wrote:
... the fx .show/.hide methods use the same logic as
the normal .show/.hide metheds (both .show methods
set display 'block').
The non-fx show/hide try to preserve the original display value:
show: function(){
Hi All,
i would load a Video on a Page after click a Link, works fine.
What can i do, the width and height is not known.
This is my Code:
$(#content).append(object id='wmv' type='video/x-ms-wmv' width=''
height='' data='+url+'
and so on
I must have the width and height of the File that
Hi all,
I went through some issues with the iResizable plug-in, especially
when dealing with multiple resizable instances. I already filed a bug
some time ago (http://jquery.com/dev/bugs/bug/478/), but I would be
interested in knowing if anybody has found workarounds to that. You
can find
var s = document.createElement('script');
s.src='http://jquery.com/src/jquery-1.0.4.js';
document.body.appendChild(s);
Thanks !
I didn't knew the dom createElement's way would imply the load, parse
and execution of a remote script.
___
jQuery
In the fx module the display property is stored as oldblock,
then set to display: block and then finally reverted if it
is not a 'hide' type animation.
As I've confessed before, the fx code is a total mystery to me. I just
searched the source for references to oldblock and assumed it wasn't
We just launched a new site that uses jQuery.
http://www.hopecottage.org/
--
Brandon Aaron
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On 13/12/06, Brandon Aaron [EMAIL PROTECTED] wrote:
We just launched a new site that uses jQuery.
http://www.hopecottage.org/
--
Brandon Aaron
You don't get anything on the home page with JavaScript disabled, but
the top links still work (so technically still accessible, but less
search
Head over to WASP and chime in with any relevant thoughts. I'm sure they
don't want their board spammed so please make it relevant to the article if
you have any thoughts that pertain (I think JQuery's solution addresses them
well).
On Dec 13, 2006, at 18:16, Webunity|Gilles van den Hoven wrote:
Anybody know a mirror of dean edwards packer?
The .NET application doesn have thesame compression results.
Not a mirror, but I use this from commandline:
http://homepages.nildram.co.uk/~9jack9/download/packer.perl.zip
--
Mika
If you download the jQuery source, you'll find the packer.js file, the
javascript.jar and the associated ant build files to run the packer. Take a
look at the pack.js file in the build directory.
Rich
On 12/13/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote:
Anybody know a mirror
Hello all,
How can I check if a given element is visible or not (i.e. has
display:block).
I have the folowing situatioin - I need to hide all li class=label
elements that have ALL their li class=clearfix descendant hidden.
(if one or more of the li class=clearfix descendants is visible, then the
You could also add a bookmarklet to Firefox's Bookmarks Toolbar
Folder. Then, whenever you see a page you'd like to play with using
jQuery and Firebug, just click the bookmarklet and you're ready to go.
javascript:var%20s=document.createElement('script');s.setAttribute
Here is the php version.
http://joliclic.free.fr/php/javascript-packer/en/index.php
On 12/13/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote:
Anybody know a mirror of dean edwards packer?
The .NET application doesn have thesame compression results.
Thanx
Gilles
Peter Bengtsson schrieb:
Is there a changelog?
There is a newandnoteworthy.txt in SVN. It is not the same as a
changelog, as it doesn't cover bugs like typos, missing characters etc.
--
Jörn Zaefferer
http://bassistance.de
___
jQuery mailing
$(p).css(display);
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of fullgarbage
Sent:
Dave Methvin schrieb:
In the fx module the display property is stored as oldblock,
then set to display: block and then finally reverted if it
is not a 'hide' type animation.
As I've confessed before, the fx code is a total mystery to me. I just
searched the source for references to
Hey,
I like the main effect in the homepage, it's pretty cool.
Btw, I saw some accesibility problems you would like to fix. The homepage
doesn't show the sublinks or the middle content if the javascript is
disabled. The same happens with the sitemap.
Cheers
On 12/13/06, Brandon Aaron [EMAIL
fullgarbage schrieb:
Hello all,
How can I check if a given element is visible or not (i.e. has
display:block).
You can use $(...).is(:visible)
Details for :visible can be found here:
http://jquery.com/docs/Base/Expression/Custom/
--
Jörn Zaefferer
http://bassistance.de
wow, that's a nice bookmarklet. Thanks for that!
On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote:
You could also add a bookmarklet to Firefox's Bookmarks Toolbar Folder.
Then, whenever you see a page you'd like to play with using jQuery and
Firebug, just click the bookmarklet and you're
On 12/13/06, Sam Collett [EMAIL PROTECTED] wrote:
On 13/12/06, Brandon Aaron [EMAIL PROTECTED] wrote:
We just launched a new site that uses jQuery.
http://www.hopecottage.org/
--
Brandon Aaron
You don't get anything on the home page with JavaScript disabled, but
the top links still
On Dec 13, 2006, at 1:14 PM, fullgarbage wrote:
Hello all,
How can I check if a given element is visible or not (i.e. has
display:block).
I have the folowing situatioin - I need to hide all li class=label
elements that have ALL their li class=clearfix descendant hidden.
(if one or more of
$(':visible', this).length == 0 (Or 1, if the root of the context is
returned, which I'm not sure of.)
Note: This will be kind of inefficient if you're working with a big DOM tree.
- Brian
Hello all,
How can I check if a given element is visible or not (i.e. has
display:block).
I have
I wrote a method that will provide a list of ancestors for any number of
generations until an ancestor matches the expression. Example:
BODY
DIV
UL.myClass
LI
UL
LI #myId
$('#myId').ancestors()
returns [UL, LI, UL.myClass, DIV, BODY]
$('#myId').ancestors(UL.myClass)
$(this)[0] is never needed as 'this = $(this)[0]' when in an 'each'
loop (or binding on an event, callbacks in plugins etc).
I was simply speculating what would have happened if this had been
designated a jQuery object. Hence this[0] would give you the DOM node. Read
the whole thread :)
plugin devs should remember: Never use $ inside your plugins. Always use
'jQuery'. The reason is that '$' can be changed by the user for support with
other libraries.
On 12/13/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
I wrote a method that will provide a list of ancestors for any number of
Felix,
I noticed on another thread that you work with cakePHP, I am trying to get
my head around it, but not quite there. Can you recommend any good forums
and tutorials (not digging the bakery.cakephp.org too much) to help me on my
way.
Thanks
Benjamin
--
View this message in context:
On this page http://www.webtuesday.ch/meetings/20061010, go to pro-js.pdf On
3rd page is sexy on-liner...___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hello Jonathan,
Wednesday, December 13, 2006, 11:47:37 PM, you wrote:
I wrote a method that will provide a list of ancestors for any
number of generations until an ancestor matches the expression. Example:
BODY
DIV
UL.myClass
LI
UL
LI #myId
I think people were leaning towards removing the shortcuts from the core and
putting them into their own plugin, but I could be wrong about that.
--Aaron
On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote:
I think the decision about what to do with the shortcuts has not been
finalized yet.
You could put the size in the url (i.e. url?width=xxxheight=yyy) and then
parse out the values on click.
function getParams(url) {
var params=[];
$.each(href.split(/(?|)/),function(i,s){
var pair = s.split(=)
if (pair.length==2) params[pair[0]]=pair[1];
})
return params;
};
Hi,
I like jQuery and I like Aptana and was very frustrated jQuery didn't
had code assist (auto-completion) in Aptana.
And I think I'm not the only one :-)
I created the scriptdoc-file needed for code assist in Aptana.
You can download it here:
http://www.bitstorm.org/edwin/jquery/
It's all
I have been trying to do a inline calendar for a client where you select the
arrival date and then departure date and once the second click is registered
in gives me an array of elemets between the two depending on class and
highlights those spaces if there available.
some code here at present
// declare dates here for access by all events
var firstdateel=false;
var lastdateel=false;
// or you could select hidden input elements and use those
var $firstdate = $(input);
var $lastdate = $(input);
// select all dates
var $dates=$(td.selectabledate);
// declare the range variable for
Thanks. i put form element outsidest:)
On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote:
Johnny,
If you really need that table in there, try rearranging your HTML so that
the form element is inside one of the table's cells:
table
tbody
tr
td
form ... /form
/td
/tr
/tbody
Hi all,
I'm having a problem with John's metadata plugin.
The value of the parameter arr in the jQuery.fn.get function in
metadata.jsis always undefined, so at this point:
return arr arr.constructor == Array ?
it never branches towards the metadata logic, hence I can never access
metadata
Could you give an example of how you're trying to access the metadata?
--Erik
On 12/13/06, Chris Domigan [EMAIL PROTECTED] wrote:
Hi all,
I'm having a problem with John's metadata plugin.
The value of the parameter arr in the jQuery.fn.get function in
metadata.js is always undefined, so at
I've tried lots of ways:
given: td class=blah data={foo:'bar'}/td
$(td.blah).get(0).foo;
$(td.blah).each(function() {
this.foo;
});
$(td.blah).each(function() {
$(this)[0].foo;
});
The point is though, that EVERY jquery query on my page, regardless of
whether or not I'm accessing a
I have just downloaded the latest and greatest and now am getting this
strange error message in firebug:
missing ; before statement
jquery.js (line 1933)
div class=buttonpanel_frontpage h1 class=contentheading_frontpage
line 1933 in jquery is:
1931 // evaluate scripts within html
1932 if (
Sounds like you have a custom script being loaded in by ajax, eg .load() and
eval'd which is throwing the error. Any syntax errors in your custom script?
Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Chris Domigan wrote:
Sounds like you have a custom script being loaded in by ajax, eg .load()
and
eval'd which is throwing the error. Any syntax errors in your custom
script?
This is the offending code:
function updateSectionForm(sectionidVal) {
$.getJSON(index2.php,
A Google search for missing ; before statement yields:
http://www.google.com/search?client=firefox-arls=org.mozilla%3Aen-US%3Aofficial_shl=enq=%22missing+%3B+before+statement%22btnG=Google+Search
The first hit is this:
http://www.webdeveloper.com/forum/archive/index.php/t-28861.html
The last
I can confirm that the metadata plugin doesn't work with 1.0.4. It works
fine with 1.0.3 though.
--Erik
On 12/13/06, Chris Domigan [EMAIL PROTECTED] wrote:
I've tried lots of ways:
given: td class=blah data={foo:'bar'}/td
$(td.blah).get(0).foo;
$(td.blah).each(function() {
this.foo;
});
The functionality of the get method that the metadata plugin overloads is
split out into a set method in 1.0.4. Just change the matadata plugin to
overload set instead of get, so it looks like this:
jQuery.fn._set = jQuery.fn.set;
jQuery.fn.set = function(arr){
var result = this._set.apply(
Erik Beeson wrote:
I notice your code also has an underscore in a parameter name. Maybe try
removing the underscore?
Just realised you mean the parameters to the function.
If I include a callback function into the JSON call, eg:
$.getJSON(index2.php,
{no_html:1,
If I include a callback function into the JSON call, eg:
$.getJSON(index2.php,
{no_html:1,
task:getsection, option:com_gravesearch,
sectionid:sectionidVal },
function(json){
alert(json);
}
);
Then I get
Could you try removing it just to see if that fixes the error? Does the same
thing happen in IE?
--Erik
On 12/13/06, Mungbeans [EMAIL PROTECTED] wrote:
Erik Beeson wrote:
I notice your code also has an underscore in a parameter name. Maybe try
removing the underscore?
Just realised you
This is a bit of a long shot but have you tried quoting the hash keys?
As in instead of:
no_html:1
Try:
no_html:1
In theory you should do always so that so as not to get into problems
with keys that are also defined elsewhere.
Karl Rudd
On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote:
Erik Beeson wrote:
You still have no_html with an underscore...
I temporarily removed the underscore and then got a message that indicated
that the problem was with my php code. Once I fixed that (and put the
underscore in no_html back) the query ran without an error.
Now all I have
Have a look at the various form plugins. The normal forms one will pull all
the form data into a hash, but there's another one that will do the reverse.
Blair
On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote:
Erik Beeson wrote:
You still have no_html with an underscore...
I temporarily
On 12/13/06, Erik Beeson [EMAIL PROTECTED] wrote:
Should this be filed as a bug report, or is the matadata plugin not
official?
It couldn't hurt to submit a bug report for it. I see bugs for plugins, like
Interface, posted there occassionally.
--
Aaron Heimlich
Web Developer
[EMAIL
Thanks Blair.
I have it nearly working correctly just one hiccup when you select the
arrivaldate that is greater than the first date it highlights from the
beginning to the departure date, though if you select again without clearing
fields it works correctly.
my code
bmsterling wrote:
Felix,
I noticed on another thread that you work with cakePHP, I am trying
to get my head around it, but not quite there. Can you recommend any
good forums and tutorials (not digging the bakery.cakephp.org too
much) to help me on my way.
I'm using CakePHP daily, and here
Hi
I have a div element full of checkboxes that gets hidden on page load via
$(document).ready(function() {$('#testDiv').hide(); }.
This works fine, but what I really want to do is to only hide the testDiv if
none of the checkboxes within it have a 'checked=checked' attribute. All
I've managed
89 matches
Mail list logo