Very nice. I may have a need for something like this in an upcoming
project.
This truncates based on character count. What I'll ultimately need to
do is truncate text based on a maximum width. I would need to
initially display only one line with the option to show/hide any
remaining text. To do
Try this:
function displayDate(){
var date = new Date();
$(#dateandtime).text(date.toString());
}
On Aug 1, 5:56 pm, Nazgulled [EMAIL PROTECTED] wrote:
Hi,
This is my code:
function displayDate(){
var date = new Date();
$(#dateandtime).text(date);
}
This subject came up recently. Search the archive for Using part of
JQuery. The recommended solution might meet your needs?
-- Brad
On Jul 18, 6:46 am, azzozhsn.net [EMAIL PROTECTED] wrote:
Hi,
I really like JQuery, and I try to use it, and I think it's big script
in some kind 22KB! the rest
If I understand you correctly, if someone enters or clicks a URL from
another page like:
http://www.hughesnunn.com/attorneys.html#mixer
you want to display that attorney when the page loads?
If you can parse the anchor out of the URL on page load you could use
jQuery's click method to
That's just the way Gmail threads its messages. It appears the poster
replied to the original thread and changed the subject. Google Groups
noted Discussion subject changed to Binding actions after an ajax
call? by Tobias Parent.
Instead of using the actual subject Gmail uses a common index or
I recently did something like this. I need to be able to dynamically
insert new rows into a columnar form. I've stripped out a lot of the
code but hopefully this will give you some ideas
var clicked_row = $(...); // jQuery object. Clicked Row. You'll need
to specify the selector
var new_row =
Johan,
A new plugin was announced recently that might meet your requirements.
Look at this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/8248fe024532cbb9
On Jun 24, 2:22 pm, johan_vm [EMAIL PROTECTED] wrote:
Hello,
Can someone (an experienced jQuery user) help me out
match.
var new_value = $(this).val();
$(text_+index+a).val(new_value);
Incidentally, as I've used here, the .val() function is a handy shortcut for
.attr(val, ...)
I don't know what the speed difference is here but I'm guessing it'll be
pretty good.
HTH,
--rob
On 6/21/07, Brad
Imagine a table row like this
tr
td
select.../select
/td
td
input type=text ... /
/td
td
input type=text ... /
/td
td
input type=text ... /
/td
td
...
/td
/tr
Depending on the select option I need to modify or clear values in the
text inputs in the 2nd,
I'm trying to use getJSON to return some JSON from a PHP page. I can
see that the request is returning the expected response with Firebug,
but the getJSON callback isn't firing?
My PHP is simply
?
echo {ok:true,state:OUT-DECOMMISSIONED};
?
Do a need to set a special content type before
Jake,
That fixed it. Thanks!
On Jun 18, 11:41 am, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
do you have variables named OUT and DECOMMISSIONED?
or did you mean 'OUT-DECOMMISSIONED'
as in
?
echo {ok:true,state:'OUT-DECOMMISSIONED'};
?
On 6/18/07, Brad Perkins [EMAIL PROTECTED] wrote:
I'm
They are still using PHP 4, but do have the PEAR JSON library
installed. I plan to use it.
-- Brad
On Jun 18, 12:24 pm, Aaron Heimlich [EMAIL PROTECTED]
wrote:
This assumes, of course, that you:
A) Are using PHP 5.2
B) Have the json extension installed from PECL[1]
If neither of those
I'm working on a page that has a form that is dynamically generated
using jQuery. The form isn't built in one pass but progressively
based on user actions. Prior to submit the form may contain dozens of
select menus with varying option content.
The problem is that the select menu options
I'm hoping this is just a simple selector question.
I currently have this code which inserts a row at the end of a table.
$('tr class=datarow').appendTo(#my_table).html(rowcells);
I need to add a footer row to the same table. Is there a simple
modification to the the above code so that it would
tr
tdCell data 7/td
tdCell data 8/td
tdCell data 9/td
/tr
/tbody
/table
On 6/16/07, Brad Perkins [EMAIL PROTECTED] wrote:
I'm hoping this is just a simple selector question.
I
If you need documenation, this might help.
http://jquery.bassistance.de/api-browser/
FWIW, the visual jQuery site is down as well:
And another ...
div id=form_container
div id=row1.../div
div id=row2.../div -- inserted
/div
etc.
I want every inserted div to be the last div within form_container.
Thanks,
Brad Perkins
] wrote:
Try this...
$('div class=subdiv').appendTo(#font-container).html(pLorem
ipsum .../p)
Isn't chaining great?!
George
On Jun 12, 8:21 pm, Brad Perkins [EMAIL PROTECTED] wrote:
Thanks Franck!
I had something working but that is more compact.
Since I will need to place content
In a table like this:
table id=choices-table border=1 width=75%
trthItem/th/tr
tr id=row-1tdOne/td/tr
tr id=row-2tdTwo/td/tr
tr id=row-3tdThree/td/tr
/table
I want to highlight the rows when hovered. I also wan't to set a
different background color on the row when double clicked. I have the
am, Brad Perkins [EMAIL PROTECTED] wrote:
snip
Ultimately, I'd also like to prevent the double clicked row from
running code if previously double clicked.
I suppose, you could do something like:
if (this.done) return;
and this.done=true; accordingly in the function
I'm working on a web form where a user can submit queries via ajax.
The results are returned in a table. What I need to do is allow the
user to select a row from the result table via a double-click (or
check box) and have the clicked row inserted into a second table. The
second table is in a
I've been looking at the Treeview Plugin and have a few questions.
(1) When a tree is expanded I would like to style a hovered or clicked
li. The problem I'm having is that all li's in the tree get the style.
I have tried to us stopPropagation and return false but neither solve
the problem.
(2)
Given a table where the the first column of each row contains a radio
button.
Is there some jQuery selector magic that would allow me to get the
value of the cell in the 4th column when the radio button is selected?
On May 25, 3:02 pm, Jake McGraw [EMAIL PROTECTED] wrote:
Maybe, within click or change:
$([EMAIL PROTECTED]).change(function(){
$(this).parent().siblings(td:eq(3)). /* do something */;
});
So you document should look like:
tr
tdinput type=radio name=mybutton//td
td/td
td/td
I'm mainly interested in this as a debugging tool, but is it possible
at a given time to determine which jQuery objects have events bound to
them, and to get details about the bindings?
Also is it possible to determine if an object has the same event bound
more than once? I had a situation this
-elements-by-propertie...
Thanks. Excellent article!
Also recently on the list some code was posted to look at an elements
events and handlers.
I'll search for that. If anyone has can reference the thread it would
be great.
Brad
Brandon Aaron
On 5/14/07, Brad Perkins [EMAIL PROTECTED] wrote
If you are trying to use
$(this).html( $(this).html().replace(at,@) );
Could the problem be that at isn't matching lt;atgt; ?
On May 12, 11:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
The actual html reads
span class=emailsomeonelt;atgt;somehwerecom/span
I currently have this?
var params = $('input,select,textarea').serialize();
Is there a simple way to serialize all inputs expect for radio buttons?
That does the trick!
Thanks
On May 8, 2:05 pm, John Resig [EMAIL PROTECTED] wrote:
Try this:
var params = $(input,select,textarea).not(:radio).serialize();
On 5/8/07, Brad Perkins [EMAIL PROTECTED] wrote:
I currently have this?
var params = $('input,select,textarea').serialize
Thanks everyone!
-- Brad
On May 8, 2:54 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
Ah yes! You're right (as usual). :)
--Karl
_
Karl Swedbergwww.englishrules.comwww.learningjquery.com
On May 8, 2007, at 4:54 PM, Jörn Zaefferer wrote:
Karl Swedberg schrieb:
You
Rafael,
That is what I had in mind, but appears to filter out non-radio input
fields.
On May 8, 2:00 pm, Rafael Santos [EMAIL PROTECTED] wrote:
var params =
$('input,select,textarea').not([EMAIL PROTECTED]).serialize();
2007/5/8, Brad Perkins [EMAIL PROTECTED]:
I currently have
This was posted yesterday.
http://groups.google.com/group/jquery-en/browse_thread/thread/a1f207a25636fb41/f9ab9f41809c65fa?lnk=gstq=site+downrnum=2#f9ab9f41809c65fa
On 5/6/07, Matt Stith [EMAIL PROTECTED] wrote:
o.O that doesnt look good...
On 5/6/07, MrNase [EMAIL PROTECTED] wrote:
Eli,
This thread might help.
http://groups.google.com/group/jquery-en/browse_thread/thread/bb64561ee9fe2e22/fdb149e62b2bd03b?lnk=gstq=extrnum=2#fdb149e62b2bd03b
On 4/19/07, Eli [EMAIL PROTECTED] wrote:
Hey guys,
Just noticed a couple of days ago that ext now has a new 'extjs' for
jquery,
.
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Perkins
Sent: Monday, April 16, 2007 4:25 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] serialize problems w/ select menu on IE
I'm using jQuery 1.1.2.
I'm using this code
I'm using jQuery 1.1.2.
I'm using this code to serialize form data before an Ajax submit.
var params = $('input,select,textarea').serialize();
The form has multiple select menus. On IE 6 and IE 7 the value from
one select is always blank when serialized regardless of the selected
option. This
35 matches
Mail list logo