On Apr 8, 1:56 pm, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
I'm just wondering if there is any easy way to find out the header
(th) of the table column (td)?
Say,
--
| head1 | head2 |
--
| r11 | r12 |
--
| r21
On Apr 3, 9:49 am, ab5tract [EMAIL PROTECTED] wrote:
Thank you so much man. I really appreciate it, even if I don't
understand the single-line glory of
set.push(dat.splice(Math.random()*dat.length|0, 1));
set.push(...)
Calls the push method of set, which is an array, with the
result of
On Apr 1, 9:36 am, ab5tract [EMAIL PROTECTED] wrote:
Problem:
I am creating a teaser page for a site that is coming soon. We have
a list of 20 sentences that describe the site. We want to select 5 of
those, at random and without redundancy, and display them in a div.
The display part seems
On Mar 5, 7:33 am, MorningZ [EMAIL PROTECTED] wrote:
A good trick for that is to hide the content you are manipulating, and
then for the last line of the Ready() event, do a .show() and now
the only thing the user will see is styled and complete elements
And if scripting isn't supported or
On Mar 6, 7:19 am, Drake Aedus [EMAIL PROTECTED] wrote:
I'm pretty new to jQuery, and I'm having a lot of fun with it. I tried
a quick search and didn't find anything really helpful, so maybe this
is a good question, or maybe I'm having a brain-fart...
What I am trying to do, is loop
On Feb 22, 6:49 am, Andrew Ayres [EMAIL PROTECTED] wrote:
Hi all,
I've built a JQuery website,www.constitreaty.com, and tested it
successfuly on Win XP Pro and Vista with IE6, IE7, Firefox 2 and Opera
9.25, as well as Mac OSX 10.4.8 with Firefox 2.
Try it in Safari, it looks dreadful.
On Feb 23, 4:55 am, Joe [EMAIL PROTECTED] wrote:
Yes I did. Strangely enough, what I initially wrote worked in a
simply HTML page without much else going on. I may have to parse thru
the page that I'm working on to find if there is some sort of
conflict.
The checked property is a
On Feb 22, 1:18 am, whylom [EMAIL PROTECTED] wrote:
I'm not sure what illegal Javascript syntax is.
It means that it is syntax that is not specified as being correct per
the ECMAScript specification and can therefore be expected to throw an
error before execution begins.
I just tested
On Feb 20, 9:17 pm, darki777 [EMAIL PROTECTED] wrote:
Hi,
is there any method to bind and create closures with this altered in
jQuery (with chain possibility)?? Need it on various functions. I do
not mean Events.
Anythink like this:
function myFunc()
{
}.bind(anything);
That is
On Feb 5, 7:57 pm, Snef [EMAIL PROTECTED] wrote:
Karl,
Again, many thanks. Only just one question...
I have used your one-liner like this:
$(table tr:nth-child(even)).css(background, #cc);
I played around with the :not(:first) to eliminate the first row of
each table but i do not
On Jan 17, 7:56 am, Nikola Ivanov [EMAIL PROTECTED] wrote:
Hello,
I'm working an a very simple behavior: capturing clicks on anchors.
Binding the click event and doing the rest of the logic is easy.
Problem is the middle click (opens the link in a new tab) and both
available options in
On Dec 19, 11:49 am, Monica [EMAIL PROTECTED] wrote:
Newbie here...
I have a table $(#searchDataTable), each row has an unique id. What
is the JQuery code to get the value(text) of particular cell in this
table?
Don't forget that every row has rowIndex and sectionRowIndex
properties and
On Dec 20, 2:25 am, David McFarland [EMAIL PROTECTED] wrote:
Don't forget that every row has rowIndex and sectionRowIndex
properties and every cell a cellIndex property. These are very much
faster than CSS-style selectors, e.g.:
$($('#tableID').rows[x].cells[y]).text();
Sorry,
On Dec 20, 9:41 am, Monica [EMAIL PROTECTED] wrote:
yes, this is working for me:
var tb = $(#searchDataTable);
tb[0].rows[rowid].cells[colid].innerText.
Yikes!
Let me know if this can be improved furthur...
The innerText property is a proprietary IE feature that has been
copied by some
On Nov 24, 7:46 am, yetanother [EMAIL PROTECTED] wrote:
I'm using an id tag (based on my database id) in my html to help
direct traffic. On a click I use the following which grabs the
variable from the id tag of the link:
I presume you meant the id attribute of an A element.
var myID =
On Nov 16, 1:37 am, Brook Davies [EMAIL PROTECTED] wrote:
Hello,
This is a bit OT sorry, but I don't know where else to post this JS related
question. My question is about using design patterns and OOP principles in
Javascript.
You could try news:comp.lang.javascript
URL:
On Nov 12, 5:35 pm, Michael Geary [EMAIL PROTECTED] wrote:
That's invalid JavaScript. It's not the duplicate function name that makes
it invalid, it's the fact that those are named functions at all. Even if you
reduced the code to this, it would still be invalid:
$(document).ready(
On Nov 13, 12:26 am, pd [EMAIL PROTECTED] wrote:
Hi
Just thought I'd re-iterate that I didn't post this item to whinge or
whine about dodgy code being invalid or unecessary.
No need to be defensive, you pointed out a legititmate bug. Safari
might not have the browser-share of IE or
On Sep 13, 11:21 pm, Giovanni Battista Lenoci [EMAIL PROTECTED]
wrote:
Hi, if I want to get the ul childrens of a li element I do something
like this:
$('#li_id ul')
But If I have already the jquery li object how can I do this without
getting the id of the element?
More in specific, I
On Aug 7, 2:55 pm, Mike Chabot [EMAIL PROTECTED] wrote:
jQuery 1.1.3.1 Safari Crashes
After upgrading a high-traffic Web site from jQuery 1.1.2 to jQuery
1.1.3.1, some Safari users started reporting that the Web site would
cause their browsers to crash. The crash would be that Safari would
On Jul 19, 9:13 am, jarrod [EMAIL PROTECTED] wrote:
I'm trying to write a script that responds to a keyup event in any field of a
given form. If the form is valid, the submit button of that form is enabled.
The problem is that there are several forms on the page. My script has to
enable the
On Jul 10, 4:50 am, Sean Catchpole [EMAIL PROTECTED] wrote:
I believe that learning jquery returns an array like object is more
useful than creating a .exists() function.
It seems to me that the most common reason for testing if an element
exists is to use it later, so why not:
var element;
On Jul 2, 11:45 am, John Resig [EMAIL PROTECTED] wrote:
Hi Everyone -
I'm pleased to announce the release of jQuery 1.1.3. After many months
of testing, developing, and more testing, we have a very solid release
available for download. It comes with roughly 80+ fixed bugs and a
handful of
On Jun 25, 6:42 pm, Gordon [EMAIL PROTECTED] wrote:
I am tryign to make more use of OOP techniques in JavaScript, but most
of the OOP I have done up to now has been in class-based languages,
and I'm struggling a little with the prototype based approach used in
javascript. I know this isn't
On Jun 17, 2:52 pm, Scottus [EMAIL PROTECTED] wrote:
I am using
var title = document.getElementsByTagName('title').item(0).innerHTML;
to get the content of a pages title tag.
But if the page has no title tag I get
Error: document.getElementsByTagName(title).item(0) has no properties
On Jun 15, 6:21 pm, Andronicus Riyono [EMAIL PROTECTED] wrote:
On 6/15/07, Tane Piper [EMAIL PROTECTED] wrote:
I have a 'magic' figure of 500kb - this is what I aim for on 75% of my
sites pages. That should take someone on a 56k modem no more than 10
seconds to load.
500 kilobits ?
On May 30, 5:48 am, DaveG [EMAIL PROTECTED] wrote:
How do I find the first text-node of a given DOM object?
Input: divphere is/p some text/div
Output: some text
Input: h1a href=#id1/aHeader 1/h1
Output: Header 1
I'm not sure what you are really after. If you are after the text
content
On May 28, 5:10 am, Matt Stith [EMAIL PROTECTED] wrote:
The HTML comments are to hide the script from older browsers that dont
understand javascript.
The use of HTML comments inside script elements hasn't been needed
since Navigator 2 or IE 3. I doubt that anyone is still using those
On May 25, 1:29 am, Rob Desbois [EMAIL PROTECTED] wrote:
Oh yes, sorry I forgot the ); after the function passed to $.each().
Corrected (and tested!) version is below:
It seems to me that the only jQuery function necessary is .each,
subsequent use of $ is unnecessary.
If the intention is to
On May 23, 1:29 am, Gordon [EMAIL PROTECTED] wrote:
I am writing a script that scans a list of items that each contain
form fields and doing something based on the value of the field in
each item. I came up with the following code, which does seem to work
as intended, but execution can
On May 16, 9:41 pm, Marie du Toit [EMAIL PROTECTED] wrote:
Hi,
I am trying to wrap span/span elements around the text within a
href=#/a elements, like this:
*before:*
ul id=mainlevel
lia href=# class=mainlevelLink/a/li
lia href=# class=mainlevelAnother Link/a/li
lia
On May 13, 10:28 am, Gordon [EMAIL PROTECTED] wrote:
I had previously written a javascript that scans a div inside a HTML
document for keywords and then wraps those words in hyperlinks, as
part of adynamic help system. This worked by modifying the innerHTML
of the div in question. This
On May 17, 1:49 am, Gordon [EMAIL PROTECTED] wrote:
After a day's coding, I have come up with this. It's closer to what I
need but the final link creation phase isn't there ye.t (also each
link will have attributes that point to a different URL, different
event handlers, etc, so don't think
Secret wrote:
[...]
God is the Intelligent Creator of the Universe.
Who created your god? If god had a creator, she isn't the ultimate
creator and therefore not god. If god doesn't need a creator, why
does the universe need one?
[...]
Characteristics of God: Omnipotence, Omniscience,
On May 16, 1:36 am, Jeff [EMAIL PROTECTED] wrote:
I am trying to add some functionality to my page where a user clicks
on a link which makes a menu layer visible. That part I've been able
to do. Now, I would like that DIV to disappear when the user clicks
anwhere else on that page, on
201 - 235 of 235 matches
Mail list logo