select name=licenseeID id=licenseeSelectID /br
tabletrtdSelect/tdtdFileName/tdtdDate/td/tr /table
div id=tablediv/divbrbrbrbrbrbrbr
fontCompany:/font
font id=singlecompany style=display: none;/font
select name=companyID id=companySelectID WIDTH=130px /br
fontDivision:/font
font id=singledivision
Hi Matt,
Give this a shot:
$(document).ready( function(){
$( '#menu ul' ).hide();
$( '#menu li.' + $( 'body' ).attr( 'id' ) + ' ul' ).show();
});
Demo here: http://jsbin.com/ehape
Chuck Harmston
http://chuckharmston.com
On Sat, Apr 18, 2009 at 10:50 AM, Max
Does jQuery provide a way to append an element immediately before the
closing tag of another element? For instance, say I have the following
paragraph element:
pLorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
adipiscing gravida leo. In hac habitasse platea dictumst. Phasellus
Below is the call and where the code passed into the call would place
the content.
$('#aP').before();
p id=aP
$('#aP').prepend();
lorem ipsim dolor sit amet...
$('#aP').append();
/p
$('#aP').after();
On Apr 18, 11:49 pm, MauiMan2 cmzieba...@gmail.com wrote:
Does jQuery provide a way to append
I posted on the duplicate of this, so I'll try here to :)
Is there any particular reason you need JavaScript to do this,
instead
of just using CSS?
#menu ul {
display:none;
}
body#foo ul.foo, body#bar ul.bar, body#foobar ul.foobar {
display:block;
}
Waiting until domready to
Um, I have no idea what all that is for, but append already does
exactly what you're asking: it appends html as the last child of the
parent.
$('p').append('a href=http://www.hotbot.com;Remember Me?/a');
On Apr 19, 12:38 am, Josh Powell seas...@gmail.com wrote:
Below is the call and where
Sorry, it's late. I see now you're showing where each method inserts
content :P
On Apr 19, 12:38 am, Josh Powell seas...@gmail.com wrote:
Below is the call and where the code passed into the call would place
the content.
$('#aP').before();
p id=aP
$('#aP').prepend();
lorem ipsim dolor sit
Your HTML for select is not valid.
It's suppose to be in the form of:
select id=...
option value=...option/option
/select
Is there a reason you're doing it like that?
On Apr 18, 8:27 pm, neil gaojun...@gmail.com wrote:
select name=licenseeID id=licenseeSelectID /br
Thanks for your reply.
all the select elements are in a form.
But those selects can be referenced correcly after i insert some
unused element such as input type=button name=willberemove/br
fontCompany:/font
font id=singlecompany style=display: none;/font
select name=companyID
:(
replaced it and strange things do happen.
I changed my adressline to be sure that I load the new version.
First on my index page it works but I get a content could not be
loaded message in my window. Reload it and then the script's not
running.
This happens on Firefox (mac) and on IE 7 (PC
it's giving me a 503 error!
script: http://moof.be/jquery.cluetip.js:503
perhaps this helps...
On 19 apr, 05:17, Karl Swedberg k...@englishrules.com wrote:
Not sure exactly what is causing the problem, but you should upgrade
your version of jQuery to 1.3.2 and remove the reference to
hey there,
i want to make keyimage-slideshow for a website with a header navigation.
everytime you *hover a menu item*, a *slideshow of images* related to this
menu-item should start in the *keyimage-area*.
how would you build st like that ?
is it possible to make some kind of object which i
Hmmm...
On Apr 18, 2:28 am, blockedmind blockedm...@gmail.com wrote:
Nothing?
On Apr 17, 8:46 pm, blockedmind blockedm...@gmail.com wrote:
This problem occurs when $(#menu li a).fadeOut(function() {}); being
used. callback function is called 3 times 'cos there is 3 li elements.
On Apr
it's pretty good
build by jquery
Ah, it seems that jQuery 1.2.3 does not have that method..
Elements still have a scrollTop property tho, so you could try that
instead.
Not tested, but i think it should work: http://pastebin.com/m5a3326a7
On Apr 19, 2:06 am, Macsig sigbac...@gmail.com wrote:
Hi Victor and thanks for your
What about just
$('#divisionSelectID')
?
That should reference the select.
Am I missing something?
Rick
On Sun, Apr 19, 2009 at 2:27 AM, neil gaojun...@gmail.com wrote:
select name=licenseeID id=licenseeSelectID /br
tabletrtdSelect/tdtdFileName/tdtdDate/td/tr /table
div
i am thinking of doing something like a long vertical scrolling
portfolio. i have a few categories that i want to use as the
navigation items. eg. web design, digital art etc.
so i need a way of detecting if i have past, say web design and into
digital art. but not yet into the next category say
Would you mind giving us some code to look at? Or point us to a test
page? It might be easier to help you if we have something to look at.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 19, 2009, at 7:22 AM, blockedmind wrote:
Hmmm...
On Apr 18,
Make each section a div with an id. Rather than testing to see what
element has been passed (named anchors are so 1998) you'd check to see
which element contains whatever is currently front center.
On Sun, Apr 19, 2009 at 9:25 AM, iceangel89 iceange...@gmail.com wrote:
i am thinking of doing
You are going to continue to have very unsatisfactory results with
jQuery as long as you have HTML like that. Change those font tags for
proper headers or labels. If you're using some application that is
generating HTML like that, change to some other editor. Markup like
that is far more trouble
Hello,
I'm not very experienced with jQuery and I'm trying to use it on a website:
www.fallinlovewithphotography.com
On my computer (Mac OS X with MAMP) works fine but online the photos I'm
trying to slide get resized.
Can anybody tell me what i'm doing wrong or what can be the issue?
Thank
I'm using jquery to add a smooth fade effect when users mouse over a
menu item. The site has split navigation, with this effect applied to
all menu items on the page. Hovering over the main top navigation
works fine, but hovering of menu items in the second and third level
split menu (IE 7)
Hi all
I profiled my script with firebug and have seen that the filter()
function is called very often.
As far as I see this function is called when i use a selector like
$(table[name=+name+])...
Is there a possibility to speed that up?
In XSLT there is the key function.
see:
Hi all,
(I dont know if the last mensage was correctly sent)
I trying aply masks in one form, the mask stay in the same page of the
form. This form is loaded by $.ajax function. If I understand
correctly, the mask need be declared on document.ready state. So, my
form does not work.
how can I
Hello everybody,
I have a little question about the developpement of a new JQuery
plugin.
(I hove it's the right place to ask ).
I understood how to add method to a jquery object but I don't find how
to had an attribute to this objet.
My goal is to have attributes attached to my object to
I am trying to figure out how to select all the menu items that have a
particular value in a form. For example, let's say you had a form with
10 different yes/no menus, and you wanted to select all of the ones
that are currently set to yes. Is there a way to do that? I tried
doing something like:
Hi
Can you load jquery multiple times?
Is there any way to only load jquery if it haven't already been
included like if you use Wordpress some plugins needs and includes
jquery then it can be loaded many times.
That's why most people edit plugins because most plugin authors are very
obtrusive and don't understand that sometimes we would like to include the
libraries ourselves. The best way to do so is to build a plugin called
JQuery and buffer the entire page and search for the Script tag that
might
Sounds like you're looking for the .data() method. See information on
the docs:
http://docs.jquery.com/Core/data#namevalue
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 19, 2009, at 4:06 AM, David wrote:
Hello everybody,
I have a little question
There is a brandnew german jquery-forum:
http://www.jquery-board.de
I hope a lot of german understanding people will help to expand the
new german community!
Thanks for your help,
Greetings, Veela
Bump. I'm really looking for a solid tip here :). Thanks everyone.
On Apr 17, 9:48 am, kgosser kgos...@gmail.com wrote:
Here's a better example with HTML. See, I said it was hard to explain
in the first place :).
Ok, so basically think of this as a list of things where the HTML is
always
Sorry, forgot to include a link. You can see the IE bug here:
http://themes.nimblehost.com/preview/sleek/test/
On Apr 19, 10:46 pm, Jonathan wyscr...@gmail.com wrote:
I'm using jquery to add a smooth fade effect when users mouse over a
menu item. The site has split navigation, with this
$.live and Live Query are both wonderful. I am hoping to put them to
extensive use in my projects.
I have a few questions about $.live and Live Query and their effect on
performance.
Background: If I recall correctly, the original release of Live Query
could have some performance problems. I
Exactly!
Thank you very much!
On 19 avr, 17:52, Karl Swedberg k...@englishrules.com wrote:
Sounds like you're looking for the .data() method. See information on
the docs:
http://docs.jquery.com/Core/data#namevalue
--Karl
Karl
Ok thanks.
On 19 Apr, 17:37, Jordon Bedwell jor...@envygeeks.com wrote:
That's why most people edit plugins because most plugin authors are very
obtrusive and don't understand that sometimes we would like to include the
libraries ourselves. The best way to do so is to build a plugin called
Thanks.
$('select[value=yes]') should return all of the select menus with
'yes' as the chosen option.
On Apr 19, 2:42 am, ajc acuc...@gmail.com wrote:
I am trying to figure out how to select all the menu items that have a
particular value in a form. For example, let's say you had a form with
10
Since the plugin uses $.ajax(ajaxSettings) internally to retrieve the
file contents, you can pass any options you want into the ajaxSettings
option and they'll be used. So you should be able to do something like
this:
$('someelement').cluetip({
ajaxSettings: {
xhr: function() { }
}
The photos in the wedding section look fine in IE 8...
Rick
On Sun, Apr 19, 2009 at 1:18 AM, alexandruv a...@vladoiu.net wrote:
Hello,
I'm not very experienced with jQuery and I'm trying to use it on a website:
www.fallinlovewithphotography.com
On my computer (Mac OS X with MAMP) works
Have you looked into the livequery function for earlier versions of jQuery
or the .live function for the latest jQuery?
Rick
On Sat, Apr 18, 2009 at 6:02 PM, khin claudiocapistr...@gmail.com wrote:
Hi all,
(I dont know if the last mensage was correctly sent)
I trying aply masks in one
I tried that, but it didn't work for me. I'm new to jQuery, so maybe
I'm doing something silly, but here's what I had:
alert($('select[value=ext]').size());
This shows 0, when there is one menu with ext as the value. If I
remove the value expression and just use 'select', I get 9 as the
Geoff - Selectors do make some difference, they always do, but the way
I've heard that .live() works is to add an event handler on the
document root and when events bubble up to it, doing some javascript
mojo to detect what element that event happened on and seeing if it
matches the selector.
The jQuery object is array-like. To see how many results it contains,
just use .length
On Apr 19, 11:44 am, ajc acuc...@gmail.com wrote:
I tried that, but it didn't work for me. I'm new to jQuery, so maybe
I'm doing something silly, but here's what I had:
I want to make rows in a table clickable. the row already contains a
link in a TD cell which works - however, i've added a hover effect to
the table and want to copy the href from the link and add it to the
row itself
all rows in the table have class .Row to make selection through
JQuery
Just to clarify, your row can't have an href as that's not a valid
attribute, but you can put a click handler on the row and have it
access the contained anchor to get the href. This might get you
started:
$('tr.row').click(function(){
var href = $(this).find('a').attr('href');
})
Be aware
thanks - will try this - i meant grabbing the A link href and creating
an on-click event for the row - didn't look back at another page where
i built the onclick for the row by a different method
this will definitely save me time :)
On Apr 19, 3:45 pm, mkmanning michaell...@gmail.com wrote:
Ok, how about Firefox or Safari? On my computer they don't...
Rick Faircloth wrote:
The photos in the wedding section look fine in IE 8...
Rick
On Sun, Apr 19, 2009 at 1:18 AM, alexandruv a...@vladoiu.net wrote:
Hello,
I'm not very experienced with jQuery and I'm trying to use it
I am having problems with my jquery under firefox on mac os.
i have read some thing about unused js with mac and ie but i dont see
what is wrong.
one of my problems is a search component i made that submits and loads
with jquery ajax. it works fine with eveyrthing but on mac os the
results fall
hi,
your example code didn't work - is there some step i'm missing ?
here's an example of one of the rows in my table
tr class=Row
td
a href=TicketView.asp?TicketID=123USB Backup/asetup USB
backup
/td
td nowrap09-Sep-08 /td
td0809007 /td
/tr
Let's say I want my javascript to know some info, e.g. the username of
the user, and I'd like to communicate it prior to any Ajax calls. So
far I've been storing the info in a hidden field that jQuery can
access via an id. Is this the correct approach?
Thanks in advance to all for any info.
never mind - added line :
window.location=href;
to complete process
thanks again
On Apr 19, 4:35 pm, kevind kevint...@gmail.com wrote:
hi,
your example code didn't work - is there some step i'm missing ?
here's an example of one of the rows in my table
tr class=Row
td
a
Hello folks,
I'm getting an IE-only error (IE6/7) on a page for which I cannot
find a solution. IE reports an error (Unexpected call to method or
property access) at line 12. The Script Debugger is pointing to
this.appendChild(E) in jquery (v1.3.2 rev. 6246).
The context of the code is
Oddly enough, when I first viewed the wedding photos, after the first one
the others
were tiny in the upper left-hand corner.
After refreshing and re-veiwing, all looked well...
Rick
On Sun, Apr 19, 2009 at 4:08 PM, alexandruv a...@vladoiu.net wrote:
Ok, how about Firefox or Safari? On my
I did what Rick did, and tried to refresh, and the entire page disappeared
and FF got WTF Pwnt. I notice the main differences between how you do it
and how the site who made the script does it is you do not conform to proper
HTML and use img height=xxx and width=xxx / and you definably don't
set
Try doing $(#editorbox).fadeIn(500).html(field.doeditor);
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Bruce MacKay
Sent: Sunday, April 19, 2009 4:16 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] this.appendChild(E) error
Hello folks,
I'm getting
Have you tried replacing the line breaks in javascript?
var txt = row[4].replace(/\r?\n/, 'br/');
out.push('div id=sectionTextDIV')
out.push(txt);
out.push('/div');
On Apr 18, 10:12 pm, Rick Faircloth r...@whitestonemedia.com wrote:
Normally, when I'm trying to cause a passage of text to
If you use PHP then it's better to have it output the userID as a variable
already inside of JavaScript to save the extra code, or to set it as a
cookie, as a matter of fact, if you use Expression Engine, WP or most any
other major CMS, there is a cookie already set with that info so you can
just
Thanks for the reply firstly. :) Since I'm talking about a default
jQuery function I didn't give a full example. If you think that I'd
help let me give you one.
I have simplified my code for the example, here it goes:
http://blockedmind.com/jq/fadeout.html
When you click a link, the others are
Thanks Jordon - but alas this adjustment made no difference to IE.
Bruce
At 09:57 a.m. 20/04/2009, you wrote:
Try doing $(#editorbox).fadeIn(500).html(field.doeditor);
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
On Behalf Of Bruce MacKay
Sent: Sunday, April 19,
Works nicely
Thanks man for your help. I appreciated it.
Have a good 1!
Sig
On Apr 19, 5:33 am, victorg vr.gerrit...@gmail.com wrote:
Ah, it seems that jQuery 1.2.3 does not have that method..
Elements still have a scrollTop property tho, so you could try that
instead.
Not tested, but
Hi Victor,
thanks for your reply.
now it works but there is still an issue with the code:
I can scroll down and up but after scrolling up it doesn't go down
anymore (and vice-versa if I scroll up and after down I can't go up
anymore).
I don't get any errors, simply it doesn't move.
Do you have
You could keep a running count of how many li's have called fadeOut
and store it with .data(). Here's an example storing it on the parent
ul:
$(#menu ul li a).click(function(e) {
e.preventDefault();
var li = $(this).parent().siblings();
li.fadeOut(function() {
Also, I noticed that you don't have $(document).ready(function() {
surrounding the code. I did get a firebug message that the DOM
wasn't ready when the code tried to run.
Try using $(document).ready(function() { }); around the code
and see if it helps to get it to wait until the DOM is
That worked, Ricardo...to a point.
(Haven't tried your solution, Charlie...)
I actually just embedded the replace function in the code like this:
out.push('div id=sectionTextDIV' + row[4].replace(/\r?\n/, 'br/') +
'/div');
and that worked, but only for the first line break in the text.
I tried
You could do something like this:
$(document).ready(function() {
$(#menu ul li a).click(function(e) {
e.preventDefault();
var $sibs = $(this).parent().siblings();
$sibs.fadeOut(function() {
if ( $sibs.index(this) ==
On Sun, Apr 19, 2009 at 3:58 PM, Rick Faircloth
r...@whitestonemedia.com wrote:
That worked, Ricardo...to a point.
(Haven't tried your solution, Charlie...)
I actually just embedded the replace function in the code like this:
out.push('div id=sectionTextDIV' + row[4].replace(/\r?\n/, 'br/')
hmm, how can i detect whatever is currently front center?
On Apr 19, 10:17 pm, brian bally.z...@gmail.com wrote:
Make each section a div with an id. Rather than testing to see what
element has been passed (named anchors are so 1998) you'd check to see
which element contains whatever is
I was just in the process of pulling down your files again and placing
them up on a test server when I noticed that you seem to have
abandoned your attempt to use the plugin and went with a pure CSS
approach instead. Is that the case? If so, that's fine. But please let
me know so I don't
There are so many to choose from, I'd like to hear some opinions.
1. Relatively lean and fast. 200+ KB seems, to me, ridiculously large.
2. Ridiculously good-looking.
3. Compatible. Firefox, IE 6/7, Safari, etc.
Opinions?
...Rene
How can I make jQuery read say this code:
div rel=tab-1/div
div rel=tab-2/div
and replace the 'rel' with 'id' ? Or is this asking too much?
How about this?
$(div[rel]).each(function(){
$(this).attr(id, $(this).attr(rel));
});
Now, Charlie...no need to be so snippy. :o)
Just because I have complaints that JS isn't like CF in some ways,
doesn't mean I don't want to grow in my understanding and application of JS.
Anyway, your method is a lot more code, and may be slower than
using the replace in the JS.
I just wanted
wasn't meant to be quite as snippy as it came across. new laptop,
and i had set the touchpad to click on tap... well, the tap is very
sensitive and i tapped inadvertently and sent the msg prior to adding
a smiley.
don't get me wrong, there was a certain amount of snippiness
intended... but not
Hello
Can somebody maybe please give me a basic code to start testing
jQuery, cause the beginners code on this site is not doing anything
for me?
Thank you
try the following
http://www.learningjquery.com/category/levels/beginner
www.*slideshare*.net/simon/*jquery*-in-15-minutes
http://www.slideshare.net/remy.sharp/prototype-jquery-going-from-one-to-the-other
- S
2009/4/20 yrstruly anthony.apol...@gmail.com
Hello
Can somebody maybe please give
Hi there,
I just tried your local code but I seem to be having problems with the
beforeSend event
var c = 1;
$(.ic).cluetip(
{
ajaxSettings: {
cache: true,
type: POST,
data: {username:'
Ahh...found a one-letter js solution.
There is no replaceAll function in js. However, adding a g modifier
changes a single occurrence replace function to a replace all function.
So, using out.push('div id=sectionTextDIV' + row[4].replace(/\r?\n/g,
'br/') + '/div');
causes all the line feeds to
Good to see you managed it, I forgot to add the global flag. Yet,
doing that replace in your storyStruct.QGETSTORYINFO method server-
side (if that is possible, i've no idea) would certainly be a lot
faster.
cheers,
- ricardo
On Apr 20, 12:09 am, Rick Faircloth r...@whitestonemedia.com wrote:
Anyone come across something like this before?
I understand it's easy enough to keep IE 6/7 from implementing the
script -- if($.browser.msie $.browser.version 8) return; -- but
I'd like to get IE working with this if possible.
On Apr 20, 1:02 am, Jonathan wyscr...@gmail.com wrote:
Sorry,
Ok, found the solution.
I am not using the slideExpr but the parent of the container to add
slides and it works.
Also with the a pageranchorbuilder it works when I append the new
pager items.
What is missing is to keep track of images already loaded in the
jQuery script to prevent that images
79 matches
Mail list logo