I thought to do it perhaps this way:
-First read the header (columns). Thererfor, I have to provide
something like div id=%uid%/div in it so that jQuery can read
out how many names there are and save their uids in an array
-Secondly: Go throught each tr and prove wether the first td
contains a
Hi
does this UserSubPanel is a gernal div like
div id=UserSubPanel
or an asp.net div like
div id=UserSubPanel runat=server
if the second is the case than your div cannot be found because
aps.netrwrites the id to something like div id=asp_UserSubPanel
Armand
On Wed, Apr 23, 2008 at 11:16
I tried it myself but I have probs with some things. Look at the code,
I commented it:
http://nopaste.php-quake.net/26562
E.g. I don't know how to combine $(this) in the each function with
another selector.
$(this + ' img').attr('alt') didn't work to get the content of the
'alt' attribute
On Thu, Apr 24, 2008 at 3:31 AM, KnoxBaby [EMAIL PROTECTED] wrote:
E.g. I don't know how to combine $(this) in the each function with
another selector.
$(this + ' img').attr('alt') didn't work to get the content of the
'alt' attribute (which serves to be the UID)... Same with the tid ...
Hi there !
i'm working on a plugin for my application, that needs to store the current
value of all css properties of an element in the DOM.
Do i have to store each property one by one or is it possible to just copy
the entire css in one command?
I tried:
var myEl = new Object();
myEl.css =
ah ok cool, thanks so far. I'm gonna try this out! If anybody has more
tipps on how to achieve my goal, just reply :) Thanks a lot!!!
On 24 Apr., 10:38, Aaron Heimlich [EMAIL PROTECTED] wrote:
On Thu, Apr 24, 2008 at 3:31 AM, KnoxBaby [EMAIL PROTECTED] wrote:
E.g. I don't know how to combine
hi!
i needed a fix for the color plugin so taht it works with transparent
backgrounds. I found one ticket solves it:
http://dev.jquery.com/attachment/ticket/2281/rgba.diff
but i don't understand how to actually download the resulting code. Can
someone shed a light ?
thank you,
--
Hi,
I want to display some default date in a TextBox element.
input type=text id=startDate /
I have bind datepicker to startDate with some default date On document
ready function.
jQuery('#startDate').datepicker({defaultDate: -7});
When I click on startDate input text box I do see datepicker
How do you guys test jQuery UI components? If you’re reading this,
you’re probably an expert JS developer, so you know how much the state
of JavaScript testing sucks.
Developers generally neglect JS testing because there’s really nothing
out there that let's you simulate user interactions
Your functionality is bang on what I need, thanks for sharing.
Just a few questions that I couldn't get from the webpage linked to in
the original post:
1. Is jQuery 1.2.3 a requirement?
2. What do each of the individual files do? For example, there is a
notice to download jQuery.idTabs.min.js
Yeah, the GPL 3 is viral and most open source developers don't even
realize that once they distribute apps with the open source extjs 2.1
library they will have to license their apps under GPL3.
I personally prefer LGPL. The problem for me was that ExtJS did not
open source the images and style
I was trying the yuicompressor on jcarousellite 1.0.1* and got this
error: “invalid property id” at line 239:
this is line 239:
li.css({overflow: “hidden”, float: o.vertical ? “none” : “left”});
What could be wrong?
* http://www.gmarwaha.com/jquery/jcarousellite/js/jcarousellite_1.0.1.js
Hi,
I am trying to get a field highlighter working. I have a 2 column
layout with a form in each. The form on the left is the 'original'
data and the form on the right is newly updated. I would like to look
at each form field and compare their values and if different add a
class to highlight the
Hi,
var selectors = a[href$=.pdf], [href$=.rtf], [href$=.ppt], [href
$=.txt], [href$=.mp3], [href$=.xml], [href$=.exe], [href$=.zip], [href
$=.rar], [href$=.dmg], [href$=.tar.Z], [href$=.tar.gz], [href$=.tgz];
$(selectors).not([onClick*=pageTracker._trackPageview]).click ( //
Does stuff )
So
Does it mean, that if I have PHP application, that uses javascript
under GPL3, I must release also PHP source?
MichaL
On Thu, Apr 24, 2008 at 7:16 AM, xwisdom [EMAIL PROTECTED] wrote:
Yeah, the GPL 3 is viral and most open source developers don't even
realize that once they distribute
Glad to know you solved it.
On Apr 23, 4:59 pm, s.ross [EMAIL PROTECTED] wrote:
On Apr 23, 2008, at 1:27 AM, Diego A. wrote:
Is the new link by any chance being inserted within the trigger
itself? (doesn't seem like it would work because the code takes the
href attribute from the
I think it's simple but it doesn't work... to me. ;-)
I want to fire an event when I click on that a link inside a
div...
Inside of the div id=id_div there are:
b /b
i /i
a /a
So a would be the third element but it's the first and unique
a
I tried something like that:
Hi,
Is it possible to add the string ?mytracker=yes onto the end of all
links on my page using Qjuery?
Hello everybody.
I have a form which data has to be sent to a CRM (salesforce), so in
the form action I have to include https://www.salesforce.com/
servlet/..., but I need to send emails before the form submits,
because how the form is in an external url, I can't manage the data
once the form is
do you actually have an HREF attribute to your A tag ? Because its omission
kills the click event i think.
On Thu, Apr 24, 2008 at 1:22 PM, ^AndreA^ [EMAIL PROTECTED] wrote:
I think it's simple but it doesn't work... to me. ;-)
I want to fire an event when I click on that a link inside a
Yes, href=#...
Could it be a problem?!?
I put # just in oder to make it a link...
This is what I've got into my div:
bWelcome/b i$_user/i!!! br/ a href='#' id='log_out_link'
Log out /a
On Apr 24, 1:08 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
do you actually have an HREF attribute
$('a').each(function(){
var href = $(this).attr('href');
var separator = (indexOf('?')-1) ? '' : '?';
$(this).attr('href', href+separator+'mytracker=yes');
});
On Thu, Apr 24, 2008 at 1:10 PM, denhamd2 [EMAIL PROTECTED] wrote:
Hi,
Is it possible to add the string ?mytracker=yes onto the
oups slight mistake forgot the string part in the indexOf :) here is the
correction:
$('a').each(function(){
var href = $(this).attr('href');
var separator = (href .indexOf('?')-1) ? '' : '?';
$(this).attr('href', href+separator+'mytracker=yes'
);
});
On Thu, Apr 24, 2008 at 2:51 PM,
Hi,
I need loading http request inside my div content.
I do this it
$(#content).load(http://www.google.com.br;);
but not OK ??
How i can load this page in my div ?
tks..
--
att.
Luciano M.
www.m2t.com.br
Thanks Shawn,
still not working though, i presume because .boxcontent is not a
sibling of .closeimage_left but is a sibling of .box
so would i need to find the parent div of .closeimage_left then toggle
that sibling .boxcontent?
If so, any idea how I would do it?
On Apr 24, 2:07 am, Shawn
1. Is jQuery 1.2.3 a requirement?
An excellent question, as I only tested with 1.2.3... but it's highly
probably that it works with older versions too. I'll try to test it out
later.
2. What do each of the individual files do? For example, there is a
notice to download jQuery.idTabs.min.js
The panel is asp.net Panel but if I look at generated html this is
what I see:
div id=UserPanel class=sidePanel style=text-align:left;
fieldset id=fsUserPanel
legendbUser Panel/b/legend
div id=UserSubPanel class=sidePanel
a id=link1 href=pathLink1/a
br /
On Apr 24, 2008, at 2:26 PM, MichaL Sanger wrote:
Does it mean, that if I have PHP application, that uses javascript
under GPL3, I must release also PHP source?
AFAIK if you bundle something GPL everything will become GPL. This
includes your PHP source.
However if you do not bundle GPL
You have UserSubPanel as the id.
div id=UserSubPanel class=sidePanel
But you call it as a class.
$('div.UserSubPanel a').addClass('sideLink');
Call it by the id.
$('#UserSubPanel a').addClass('sideLink');
Thanks Shawn,
however it is still not working for me, I presume because .boxcontent
is not a sibling of .closeimage_left but is a sibling of div
id=box_1 class=box
So, should I have to find the parent div then find the
sibling .boxcontent?
any idea how i would do this?
On Apr 24, 2:07 am, Shawn
Hi folks!
I wrote an article that walks through the construction of a Low Pro
behavior for jquery and explains the reasons behind coupling the
awesome low pro behavioral style with jquery:
http://sudara.modernthings.net/2008/4/23/oh-behave-the-anatomy-of-jquery-and-low-pro-behaviors
Low
Hello ppl,
I am havim problems with the jquery cycle plugin (http://
www.malsup.com/jquery/cycle/int2.html - the one titles Callbacks. I
modified it a bit so that it displays my, a bit larger images. Now, I
do not want it to display the code which prints out the code needed
the plugin to work
I wonder why this doesn't work, either it's a but or a flaw in the
documentation:
consider this code:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
style type=text/css
h1 {
Does it mean, that if I have PHP application, that uses javascript
under GPL3, I must release also PHP source?
AFAIK if you bundle something GPL everything will become GPL. This includes
your PHP source.
Just an FYI, this is only for non-commercial versions of ExtJS. I
suppose the
If Ext is GPL, then only the Ext libraries need to be GPL.
If you have code referencing Ext - that is NOT Ext, and so that specific
code does NOT need to be GPL'd.
All this means is that when you distribute your apps (sell em, give em
away, etc.), you are obligated to include the source for
Cab you provide a sentence or two explanation of what Low Pro is, and what
it does?
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sudara
Sent: Thursday, April 24, 2008 7:59 AM
To: jQuery (English)
Subject: [jQuery] Jquery and Low Pro - an
Oh, and if you modify the EXT code. Then you need to make THOSE changes
available.
But, your PHP code can be licensed however you'd like - as long as you
respect the EXT license (and PHP, and any other tools/libraries you are
using).
It does not make any sense at all that the EXT
If i use
uid = jQuery(' img', this).attr(alt);
no more code after this line is being executed :(
E.g.:
[code]
$('table tr:eq(0) td:gt(0)').each(function(i) {
// If it's a col that contains an img (than the td has the
class
'imgg')
if($(this).is('.imgg'))
Argh, 'alt' not alt :)
On 24 Apr., 16:32, KnoxBaby [EMAIL PROTECTED] wrote:
If i use
uid = jQuery(' img', this).attr(alt);
no more code after this line is being executed :(
E.g.:
[code]
$('table tr:eq(0) td:gt(0)').each(function(i) {
// If it's a col that contains an
I am havim problems with the jquery cycle plugin (http://
www.malsup.com/jquery/cycle/int2.html - the one titles Callbacks. I
modified it a bit so that it displays my, a bit larger images. Now, I
do not want it to display the code which prints out the code needed
the plugin to work
Why low pro, when jquery is already unobtrusive?
* Behaviors allow me to easily name and encapsulate functionality
that I can later reuse.
* Behaviors are inheritable, allowing me to group like things
together, and avoiding writing chunks of similar code.
* Low Pro's implementation
Could it be failing on your query?
jQuery(' img', this).attr(alt);
I beleive that there has to be something before the . The way it's set,
you're saying all img tags that are the child of nothing.
jQuery('body img', this).attr(alt);
might be better, but I don't know what you're looking for
Thanks.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, April 24, 2008 9:54 AM
To: jQuery (English)
Subject: [jQuery] Re: Jquery and Low Pro - an example
Why low pro, when jquery is already unobtrusive?
Like I said already, the error is that it has to be 'alt' not alt
cause it's a string ;)
On 24 Apr., 16:55, Andy Matthews [EMAIL PROTECTED] wrote:
Could it be failing on your query?
jQuery(' img', this).attr(alt);
I beleive that there has to be something before the . The way it's set,
Ah...thought you were just correcting your post.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of KnoxBaby
Sent: Thursday, April 24, 2008 10:18 AM
To: jQuery (English)
Subject: [jQuery] Re: jQuery to create dynamic HTML-Content in a table
Like
Argh! So simple and such a big problem when you don't know what to
do! :)
Thanks for a fast reply, the problem is solved.
Hi all,
I am new to jquery and superfish, but I am liking what I see. I am
wondering if there is a repository of superfish skins to obtain new
looks. The demo is making sense, but I see the site www.sharevault.com
uses superfish and has a different menu look.
I assume the different look is
I think I may have been looking at this a little too long or something
to cause it not to work coz it seems like it should be pretty simple
to do, but it no work for me :( What I want to do is loop through all
the dl elements within a certain div and hide all of them except for
the first one.
Never mind :)
$(#loading_icon).show();
$.post(process.asp, $('#myForm').serialize(),
function(data) {
$(#loading_icon).hide();
$(#login).text(data);
});
How do you sort a column that contains multiple tds?
Look at this example:
table cellspacing=1 class=tablesorter
thead
tr
th colspan=2first name/th
thlast name/th
/tr
/thead
tbody
tr
tdinput type=checkbox name=cb_1 //td
Here is a start.
$('input:text:enabled, select:enabled').each(function() {
var curFieldID = this.id;
var orgnlFieldID = curFieldID + '_orig';
if( $('#' + orgnlFieldID).val() != $('#' + curFieldID).val()) {
$(this).addClass('highlightchange');
}
});
It would also
Hi,
function initDashboard(){
$(document).ready(function(){
if($(.adminMsgSummary).length 0){
var theCount = $(.adminMsgSummary dl).length-1;
for(z=1;z=theCount;z++){
var theDl =
Hi Peter,
My tests confirmed the following:
1) the need to refresh all behavior after updating DOM.
Lets say you have some behavior on table and you add new rows. Those
rows will not
inherit the events and behavior already attached on table.
2)inline events on added DOM elm will not fire in
Hi Peter,
My tests confirmed the following:
1) the need to refresh all behavior after updating DOM.
Lets say you have some behavior on table and you add new rows. Those
rows will not
inherit the events and behavior already attached on table.
2)inline events on added DOM elm will not fire in
Cool, glad it worked! That's a nice-looking site.
One thing, I forgot to use my own optimization:
var zmax = 0;
$( '.draggable' ).click( function () {
$( this ).siblings( '.draggable' ).each(function() {
var cur = $( this ).css( 'zIndex');
zmax = cur zmax ?
Hello everybody. I need help with one form. I created a form which
contained data that has to be submitted both to a CRM but before the
submit, I have to send an email with the data included in the form.
As the CRM is in an external site, I can't manage the data once the
form is submitted,
How
I have a subset of links that I am trying to manipulate to create a
breadcrumb with in an application. The trouble being that typically it
seems the toggle event targets a particular element. I effectively
need to only be able to add a class attrbute to only one element out
of the subset of
How about this?
function initDashboard() {
$(document).ready(function() {
if($(.adminMsgSummary).length) {
$(.adminMsgSummary dl:not(first)).hide(fast);
}
}
}
Code not tested, but should work.
Carl
cloudsteph wrote:
I think I may have been looking at this a
Hi, I am new to jQuery and is curious if this code can be shortened
down? It feels like it can, but I couldn't find any way to use jQuery
selectors if I have a specific reference to a object.
What I want to do is to find the element to the parent of el that
the id starts with linecolorbox. I
Hi,
I'm sending an array encoded with Json in my PHP code server-side, but
when I try to fetch it in JQuery, I don't know what is the type of the
object I'm dealing with, and I can't get any information of it.
I tried to access it with object.length, object[index] and so on, but
I'm allways
Try:
alert(data['a']);
On Apr 24, 2008, at 9:32 AM, Ygor wrote:
Hi,
I'm sending an array encoded with Json in my PHP code server-side, but
when I try to fetch it in JQuery, I don't know what is the type of the
object I'm dealing with, and I can't get any information of it.
I tried to
Hi all,
I've got a row of five tabs and I'm using Klaus' Tabs plugin to handle
them. I want four of them to use the standard tab functionality. The
fifth and final tab is actually a link to a different page, but if I try
to click this link the page is loaded into the CURRENT page via the tab
are you preventing the default event from firing? make sure you put
return false; in the last line inside the .click()
or you can use .click(function(event) {
event.preventDefault();
etc...
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 24,
i know all this Guiliano, and according to what i've googled about
javascript style.border, it can retrieve the value if that value has been
set before, which is the case here.
in any case, if in the css, you 've set #id{ border: 1px solid #FF;}
then it would only make sense that
Aha, one of my favourite boolean-type if/else thingies ;)
Thanks once more, Josh - this not only works faster, it does
unexpectedly clever stuff :))
At some point I will have to do some serious optimisation on this site
- it leaks like a sub-prime mortgage investor ;) For now, though, I'm
loving
Another follow up. I ran into cases where the first few photos were
centered fine but the later ones were not. When you refreshed the page
they were all centered.
If the code is run in jquery ready() the photos may not all be loaded
yet. Fix for this is to make sure they have width and height
I need to manipulate a text input field -- enter a text and press
enter.
How do I do that?
$('div.name input').val('value').trigger(keypress, [13]);
didn't work, obviously
Thanks.
ari
Hi,
I need loading http request inside my div content.
I do this it
$(#content).load(http://www.google.com.br;);
but i hadn't sucess
How i can load this page in my div ?
tks..
Use an iframe or read up on cross domain ajax.
--Erik
On Thu, Apr 24, 2008 at 1:27 PM, Luciano Mazzetto [EMAIL PROTECTED]
wrote:
Hi,
I need loading http request inside my div content.
I do this it
$(#content).load(http://www.google.com.br;);
but i hadn't sucess
How i can load this
Karl Swedberg schrieb:
Hey guys,
Remy wrote an article about this sort of thing on
jqueryfordesigners.com the other day. In it he shows a couple
approaches that were probably better than mine, but the one he got
from me involved using .fadeTo()
this one uses two images, and it might not
Dear Alexandre,
if we take #id{ border: 1px solid #FF;} , border is shorthand
(convenience method) for border-top,border-right,border-bottom,border-left /
width - style - color, all in all twelve combinations.if it would
make sense for $('#id').css('border-color'); return
Using
IE6 / WinXP SP2 / jQuery 1.2.3.pack
Given an HTML nav list...
div id=navtoplist
ul
li class= id=tabHomea href=# id=lnkHomeHome/a/li
li class=current id=tabSCFOXa href=# id=lnkSCFox
class=TabLinks rel=SCFOXSCFox/a/li
/ul
/div
and CSS
#navtoplist a, #navtoplist a:link, #navtoplist
^AndreA^ schrieb:
Yes, href=#...
Could it be a problem?!?
I put # just in oder to make it a link...
This is what I've got into my div:
bWelcome/b i$_user/i!!! br/ a href='#' id='log_out_link'
Log out /a
why bind you not direct to the given ID, so:
$(document).ready(function(){
Hey, Here's an outline of what I'm trying to accomplish:
1) Clone one div into another...maintaining events (works)
2) Append that html into a div (works)
3) Run a search and replace on the new contents (works)
4) Keep the events (doesn't work)
Here's the code i'm using:
this should do it:
$(document).ready(function() {
$('div.adminMsgSummary dl:not(:first)').hide();
});
:-)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 24, 2008, at 10:53 AM, cloudsteph wrote:
I think I may have been looking at this a
Hi all,
For awhile now I have used a simple onerror check to show an
alternative if an img url is broken in the page. Something as shown
below. Problem with this script, it will produce an error if the
alternative image is actually not available as well. Can any one point
me to a jquery solution
var cur = $( this ).css( 'zIndex');
zmax = cur zmax ? cur : zmax;
You could also say
zmax = Math.max(zmax, this.style.zIndex);
I *think* should also work to replace that whole block of code, if you
prefer a functional approach:
$( this ).css( 'zIndex',
Math.max.apply(null,
Check out this FAQ entry:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F
Karl Rudd
On Fri, Apr 25, 2008 at 7:50 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey, Here's an outline of what I'm trying to accomplish:
1) Clone one
$('div.name input').val('value').trigger(keypress, [{
preventDefault:function(){},
keyCode:13
}]);
or in the handler:
$('div.name input').keypress(function( e, keyCode ){
keyCode = keyCode || e.keyCode;
...
...
});
...
...
$('div.name input').val('value').trigger( keypress,
Probably this can help you.
jQuery.Preload: http://flesler.blogspot.com/2008/01/jquerypreload.html
The Placeholder Mode has a notFound option to set an alternative
image.
Also, using the onComplete event, you can do something specific for
those that failed.
Cheers
--
Ariel Flesler
Cycle needs all of the images to be in the DOM - but M. Alsup made an
'add images' option to load images after Cycle has set itself up. I
couldn't get it to work right, but I think it was my fault for trying
to be clever ;)
Thread in this group here: http://tinyurl.com/6s2e2s . It has a link
to
hi, i tryed do it
http://www.malsup.com/jquery/form/#getting-started
but my form do submit normal, and not in ajax...
so no return callback function
somebody can help-me ?
thanks
code
script type=text/javascript src=lib/jquery.js/script
script type=text/javascript
Hi, Shaun
It's hard to know what you're getting at without an example?
The toggle event targets an element, hopefully the one you specified
when you called it ;) You can call it by class (thus, a set of
elements) and/or by the variety of selector options described in the
api docs
I would like to know how to append a new option to a select list. I
would also need to retreive the option value and value between the
option/option tags, and create a new option:
select name=non_academic id=non_academic
option value=/option
option value=19368ghhfh/option
option
84 matches
Mail list logo