Thank you. What's the code if I want the index of the selected item?
On Sep 28, 12:53 am, Alex Weber [EMAIL PROTECTED] wrote:
$('#fruits').val()
On Sep 28, 2:12 am, GARIL [EMAIL PROTECTED] wrote:
How do I use jQuery to determine which item was selected from the
forms below?
Thank you
Frankly, I use jQuery because I hate Javascript and I was just afraid
frames['results'].location.href
is not compatible enough.
Thanks for your answers.
On 25 Sep., 18:27, Michael Geary [EMAIL PROTECTED] wrote:
Were you thinking that there might be a better way to do that with
jQuery? Your
I think every browser supports the frames array, but Ricardo's approach
would certainly work well if you want to play it completely safe. Give your
iframe an id= attribute and then code:
$('#theIframeID').attr({ src: theUrl });
-Mike
From: __marcus__
Frankly, I use jQuery because I hate
Sibling is an element that has the same parent as the current element.
The current element itself isn't a sibling.
The third li in the first ul has three siblings and it isn't a sibling of a
li.hilite element.
The third ul clear the question: the Nine is sibling of Eleven and Eleven is
Hello, I'm building a plugin which requires me to retrieve the css
hover color from an a element. Is this possible? Something like $
('a').css('hover:color');??? Any ideas would really help out. Thanks.
-Aaron
I'm trying to build a site that allows the elements on a page to be
perfectly centered (horizontally/vertically). When the user resizes
the window, I want the elements to stay centered and move with the
resizing. Please see this page to see what I am talking about:
http://nettuts.com/javascript-ajax/learn-how-to-create-a-jquery-plugin/
On 28 Sep., 08:51, sabrinax [EMAIL PROTECTED] wrote:
I'm trying to build a site that allows the elements on a page to be
perfectly centered (horizontally/vertically). When the user resizes
the window, I want the elements
$(#fruits option:selected).get(0).index
On 28 Sep., 08:33, GARIL [EMAIL PROTECTED] wrote:
Thank you. What's the code if I want the index of the selected item?
On Sep 28, 12:53 am, Alex Weber [EMAIL PROTECTED] wrote:
$('#fruits').val()
On Sep 28, 2:12 am, GARIL [EMAIL PROTECTED] wrote:
$(li:not(:has(a))).click( ... );
would be the shortest!
On 28 Sep., 05:06, Dave Methvin [EMAIL PROTECTED] wrote:
Attach a click event to:
liList item without link/li
Do not attach click event to:
lia href=Link 1/a/li
How about this?
$(li).not($(li:has(a))).click( ... )
I slowly discovered the jQuery is so great.
Hehe
I love it!
2008/9/28 BB [EMAIL PROTECTED]
$(#fruits option:selected).get(0).index
On 28 Sep., 08:33, GARIL [EMAIL PROTECTED] wrote:
Thank you. What's the code if I want the index of the selected item?
On Sep 28, 12:53 am, Alex Weber
I don't know anything about ASP.net, but all it needs to output is
true for valid values, false for invalids - the response is parsed
with dataType:json.
Jörn
PS: Please put the word validate in the subject of mails about the
validatino plugin!
On Sat, Sep 27, 2008 at 11:43 AM, Sun [EMAIL
I am using this script that is based on prototype for some portal
capability
- http://blog.xilinus.com/2007/8/26/prototype-portal-class --
post
- http://blog.xilinus.com/prototype-portal/test/index.html --
demo
Has a jquery guru out there done something similar??
Thanks
The issue here is that there is no text in the html node. The ''
and '' are reserved in XML, they create nodes in XML. I haven't
tried this, but you might want to try grabbing the .html() of the
html node. If you really want to gab the text you'd have to move
all the way down to the td node
Say I wanted to retrieve the a:hover's color style, would jquery be
able to handle this?
Is there something like this? $(a).css(a:hover color) that would
return the hexadecimal color value?
-Aaron
HI:
I paste my script below:
html
head
script src=http://code.activestate.com/js/jquery-1.2.1.js;
type=text/javascript/script
script language=javascript type=text/javascript
function onLoad() {
var frame1 = $(#frame1);
alert(1);
Or
$(#LHNav a).parent('li').click(...);
On Sep 28, 3:38 pm, BB [EMAIL PROTECTED] wrote:
$(li:not(:has(a))).click( ... );
would be the shortest!
On 28 Sep., 05:06, Dave Methvin [EMAIL PROTECTED] wrote:
Attach a click event to:
liList item without link/li
Do not attach click
$(.status_actions img).click(function(){
console.log(clicked!);
console.log($(this).attr(alt).val());
});
It puzzles me as to why this does not work...
can also try this.
script type=text/javascript
$( document ).ready( function () {
$( '#call' ).scrollFollow( {
container: 'wrap'
} );
} );
})(jQuery);
jQuery.noConflict();
/script
$(li:not(:has(a))).click( ... );
It's cool!
2008/9/28 BB [EMAIL PROTECTED]
$(li:not(:has(a))).click( ... );
would be the shortest!
On 28 Sep., 05:06, Dave Methvin [EMAIL PROTECTED] wrote:
Attach a click event to:
liList item without link/li
Do not attach click event to:
lia
You don't need .val() just: $(this).attr(alt)
Please write some more code, because at the moment I think it is all
right.
On 28 Sep., 17:21, SeanJA [EMAIL PROTECTED] wrote:
$(.status_actions img).click(function(){
console.log(clicked!);
console.log($(this).attr(alt).val());
Yeah, jQuery UI has something similar.
Look at this: http://ui.jquery.com/repository/real-world/layout/
On 28 Sep., 15:40, uncle [EMAIL PROTECTED] wrote:
I am using this script that is based on prototype for some portal
capability
-http://blog.xilinus.com/2007/8/26/prototype-portal-class
No, he wants to get all LIs WITHOUT an A as child.
On 28 Sep., 16:14, k3liutZu [EMAIL PROTECTED] wrote:
Or
$(#LHNav a).parent('li').click(...);
On Sep 28, 3:38 pm, BB [EMAIL PROTECTED] wrote:
$(li:not(:has(a))).click( ... );
would be the shortest!
On 28 Sep., 05:06, Dave Methvin
can also try this.
script type=text/javascript
(function($) {
$( document ).ready( function () {
$( '#call' ).scrollFollow( {
container: 'wrap'
} );
} );
})(jQuery);
jQuery.noConflict();
/script
On Sep 12, 3:35 am, Mike Alsup [EMAIL PROTECTED] wrote:
$( document
Hi Guys,
this is the Code which I am working on
p
Data which I need to select and it hasn't an attribute
span Data in a Span /span
/p
p
Data which I need to select and it hasn't an attribute
span Data in a Span /span
/p
p
Data which I need to select and it hasn't an attribute
How do I set jqmodal to trigger when a radio button is selected?
I've been trying something like this and the result is that the checkbox has
to be checked and then clicked in order to get launch
function launchChecked() {
$(#ex2).jqmAddTrigger(:checkbox);
}
The jQuery Project is pleased to announce big news regarding new support
for jQuery from Microsoft and Nokia:
http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/
Rey
jQuery Project
Duplicate post, see
http://groups.google.com/group/jquery-en/browse_thread/thread/2a2f11ddad423708?hl=en
On Sep 28, 5:14 am, Aaron McGuire [EMAIL PROTECTED]
wrote:
Say I wanted to retrieve the a:hover's color style, would jquery be
able to handle this?
Is there something like this?
Again, apologies if this is the wrong place to post, it's just that no-
one has posted in the plugins list for over a year
How do you get a new plugin added to the plugins page? Do new plugins
need to go through some kind of vetting process?
I've looked all over the site and I can't see
It is impossible for Javascript to access hover styles.
However, here is a thread where a guy explains a way to search style
tags for the hover class and replace it with regexs - should work, but
it's certainly very heavy.
http://bytes.com/forum/thread618030.html
good luck :]
On Sep 28, 1:33
Microsoft's side of the announcement
http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx
this is TOTALLY untested, but should work
$(p).click(function() {
var txt =$(this).html();
txt = $(txt).find(span).remove().text();
alert(txt);
);
On Sep 28, 2:13 pm, [EMAIL PROTECTED] wrote:
Hi Guys,
this is the Code which I am working on
p
Data which I need to
Perfect BB. Thanks to all for responding, It was very helpful.
On Sep 28, 7:38 am, BB [EMAIL PROTECTED] wrote:
$(li:not(:has(a))).click( ... );
would be the shortest!
On 28 Sep., 05:06, Dave Methvin [EMAIL PROTECTED] wrote:
Attach a click event to:
liList item without link/li
Do
SUPER quick and bare bones working example
http://pastebin.com/m6bb59575
On Sep 28, 2:26 pm, claudes [EMAIL PROTECTED] wrote:
How do I set jqmodal to trigger when a radio button is selected?
I've been trying something like this and the result is that the checkbox has
to be checked and then
Dear MorningZ ,
I don't want to remove the Span I just want to filter the text before
the Span ...
Pedram
On Sep 28, 10:22 pm, MorningZ [EMAIL PROTECTED] wrote:
this is TOTALLY untested, but should work
$(p).click(function() {
var txt =$(this).html();
txt =
that wouldn't remove the span,as the expression $(txt) creates a new
and not-on-the-DOM object, removing the span would do so just from the
jQuery object
On Sep 28, 3:51 pm, [EMAIL PROTECTED] wrote:
Dear MorningZ ,
I don't want to remove the Span I just want to filter the text before
the
Does anyone have an idea on this... or , and I don't do this well and
lot lol, but am I not being clear? I really need to figure this
out... Thanks
jeremyBass
On Sep 27, 3:21 pm, jeremyBass [EMAIL PROTECTED] wrote:
Hello, I want to reduce the header calls for a flash file used
repeatedly on a
Hmm... maybe you should use some plain Javascript:
$(p)[0].firstChild;
A bit extended:
$(p).each(function() {
console.log( this.firstChild );
});
would log all the texts from the Ps but not the texts inside the SPAN.
Maybe this helps...
On 28 Sep., 21:51, [EMAIL PROTECTED] wrote:
Dear
Ah I have found something:
$(p).contents();
I would prefer the useage of this like the following:
$(p).each(function() {
console.log( $(this).contents()[0] );
// with plain javascript:
console.log( this.firstChild );
});
On 28 Sep., 21:56, MorningZ [EMAIL PROTECTED] wrote:
that
I tested but it had two Problems
1- It Removes the Span so the solution us Make A CLONE from it
2- it Result is the Text in the Span which we don't need that so we
have to put and End(). to return to the code in below works :
I change the Code to this :
var newP=$(p).clone();
Here my solution:
$('p').click(function() {
$('p span').replaceWith(' ') // stripes the span element from
paragraphs.
alert($(p).text()); // shows the paragraphs text 'free' of spans.
});
Mauricio
-Mensagem Original-
De: [EMAIL PROTECTED]
Para: jQuery (English)
To add a new plugin you need to create an account and login. Then go to
http://plugins.jquery.com/ and you should get the option to Add a new plugin
(see toolbar on the left).
On Mon, Sep 29, 2008 at 3:13 AM, shortStormTrooper [EMAIL PROTECTED]wrote:
Again, apologies if this is the wrong place
worked swimmingly. thanks for new lesson; .change() --- i'll have to read up
more on it.
MorningZ wrote:
SUPER quick and bare bones working example
http://pastebin.com/m6bb59575
On Sep 28, 2:26 pm, claudes [EMAIL PROTECTED] wrote:
How do I set jqmodal to trigger when a radio
I think You have an God Idea But I don't know how to do this with
Contents()
On Sep 28, 11:31 pm, BB [EMAIL PROTECTED] wrote:
Have you read this?
http://groups.google.com/group/jquery-en/browse_thread/thread/f10ca88...
On 28 Sep., 22:28, [EMAIL PROTECTED] wrote:
Dear sir my solution was
I think You have an God Idea But I don't know how to do this with
Contents()
On Sep 28, 11:31 pm, BB [EMAIL PROTECTED] wrote:
Have you read this?
http://groups.google.com/group/jquery-en/browse_thread/thread/f10ca88...
On 28 Sep., 22:28, [EMAIL PROTECTED] wrote:
Dear sir my solution was
The following code works completly in FF but only partially works in
IE6.
The following line executes fine:$(#LHNav ul).hide(); but the
next line:
does not.
$(#LHNav
li:not(:has(a))).css('color','red').css('cursor','pointer').bind(click,
function(){
showHideMenus(this);
});
I
the second parameter is success, still need to eval(data) to create
those vars
On Sep 23, 11:23 am, david [EMAIL PROTECTED] wrote:
the success function takes a second parameter, the status of the
response evaluation. Can you please check it ?
On Sep 23, 2:08 am, seo++ [EMAIL PROTECTED]
Hi, I've uploaded the form with the generated HTML markup at:
http://lab.jeroencoumans.nl/register/
Thanks a lot,
Jeroen
On 27 sep, 13:26, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Yes, an example would help a lot.
Jörn
On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans
[EMAIL PROTECTED]
On Sep 27, 2008, at 11:39 PM, Brandon Aaron wrote:
I understood he was binding Jeditable to event called
editable (which is possible). So the question would have been does
LiveQuery handle other than inbuilt jQuery events?
Although maybe misunderstood the original question.
Quickly
Mike Alsup or karl I think you guys could help me on this !!
thanks
On Sep 28, 11:51 pm, [EMAIL PROTECTED] wrote:
I think You have an God Idea But I don't know how to do this with
Contents()
On Sep 28, 11:31 pm, BB [EMAIL PROTECTED] wrote:
Have you read this?
I need to know how to delete div individually, after some research I
couldn't find nothing concrete. I did a comment system using jquery
and it's working like a charm, but now when I logon as admin... I am
displaying a link in the corner of the comment that says delete
what i want to do is click
For some reason though it doesn't even do the first console.log
$(.status_actions img).click(function(){
console.log(clicked!);
});
nor will it do alert or anything else...
On Sep 28, 1:42 pm, BB [EMAIL PROTECTED] wrote:
You don't need .val() just: $(this).attr(alt)
Please write
I too am having problems with getJSON not working for everyone with
IE7. Call below:
$.getJSON(
url,
function(data){
create_touch(received entry data);
$('#loading').hide()
parse_entry_data(data)
init_interface()
}
)
It works for me with IE7, but not
This is my code:
style type='text/css'
.kwick-ul { padding:0; list-style-type:none; }
.kwick-li { margin:0; display:inline-table; padding:0; border:none}
.kwick-div { margin:0; overflow:hidden; width:60px; height:20px }
/style
ul class='kwick-ul'
li class='kwick-li'
div
Hi!
I try make slide effect for 2 tables
one table hide, in this time other table show...
How I try make it:
=
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html xmlns=http://www.w3.org/1999/xhtml;
head
For some reason it doesnt even do the first console.log though...
On Sep 28, 1:42 pm, BB [EMAIL PROTECTED] wrote:
You don't need .val() just: $(this).attr(alt)
Please write some more code, because at the moment I think it is all
right.
On 28 Sep., 17:21, SeanJA [EMAIL PROTECTED] wrote:
How do I make sure that my script doesn't execute the $
(document).ready() function until all of the external xml files that
it's referencing are loaded? I have a framework that looks something
like this:
script type=text/javascript src=jquery.js/script
script type=text/javascript
var myXmlDoc;
...I apologise for raising a problem in such an old browser, but
unfortunately I have no choice...
I am writing a few pages for a school site and am having a problems
with 1 particular page in IE6 - all works perfectly in the other
browsers I have available for testing, i.e. IE7, Firefox3
You might need to make sure you're specifying the type for the $.post.
http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype
Hi all,
I am successfully using the validation plug in and i would like a
request to make it more easier to have a form in several different
divs for a multi step layout.
I solved a multi page form by filling in already the values of the
step2 and 3 inputs and then validating it and then when
Hi all,
I am successfully using the validation plug in and i would like a
request to make it more easier to have a form in several different
divs for a multi step layout.
I solved a multi page form by filling in already the values of the
step2 and 3 inputs and then validating it and then when
I need to know how to delete div individually, after some research I
couldn't find nothing concrete. I did a comment system using jquery
and it's working like a charm, but now when I logon as admin... I am
displaying a link in the corner of the comment that says delete
what i want to do is click
nice Rey!
well, as it was my first post I had difficulty getting back here
yesterday to add that it was a css 'something' that caused me to not
see things n IE7... then it worked! and now I'm having weirdness
again... way to much juggling today so just writing back to say the
above and a
Have a look in the jQuery sintax.
There isn't: SlideInUp and SlideOutUp
Use: slideDown and slideUp instead
Correct sintax:
$('#test2').slideDown(500);
$('#test1').slideUp(500);
Mauricio
For a clean layout, I'd replace the hr stuff with clean markup and
CSS because it's definitely presentational. Also, I'd remove the
onclick hander and do the hookup for the delete link using jQuery. You
can get the comment id from either the URL in the delete link or from
the id of the parent
thanks alot for explaining with more detail I will implement your code
it makes more sense and it's more practical
I got my initial code working aswell, but as you said it won't work
with javascript turned off.
here it is anyway, it might help other people.
$('a').click(function(){
I re-use the data in the myXmlDoc variable in multiple places in the
code and in multiple functions... basically I have a bunch of global
variables and I want to make sure they're all loaded before the script
starts trying to process them.
On Sep 28, 9:26 pm, Michael Geary [EMAIL PROTECTED]
hey, everyone. how can i get the height of an element and, based on its
given height, set the position of another element from the top? for
example, if there's too much text in the content div, improves the
distance of the foot div from the top.
Hello
We are using this in our production project
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
We currently maintain a list of values.
We would like to prevent the users from entering a value outside the
list of values.
The plugin has helped us avoid select and option for
I am attemptin to use jquery to do check username while filling out a
form. I have already done it with MSAJAX but i thought it would be fun
to do it with jquery. However it does not work Can anyone point out
where i am going wrong? I am using the jquery ajax method to call a
codebehind
Hello
I need your help on this.
Example:
I have JSON data
Country Code
Belgium 106
China 103
How do I populate a HTML select dropdown box with the json data
Select Dropdown(Belgium, China)
Now when I select a value like China, it should traverse JSON and
display the code.
Can someone show
Ahh ... I guess I just misunderstood :) Yes it is possible to use LiveQuery
to bind custom events using LiveQuery.
--
Brandon Aaron
On Sun, Sep 28, 2008 at 2:48 PM, Mika Tuupola [EMAIL PROTECTED]wrote:
On Sep 27, 2008, at 11:39 PM, Brandon Aaron wrote:
I understood he was binding Jeditable
How can I detect when the user has scrolled near the end of a div with
a scroll bar so that I can add more content?
I tried something like this:
$('div#content').scroll(function(){
if ($('div#content').scrollTop() == 9083){
get_more_content();
}
});
Wierd Scenario for you
Take the following basic bit of code:
script language='javascript'
$(document).ready(function() {
var options = {
target:'#content', // target element(s) to be
updated with server response
I bet the length of the object being returned is 0. Is your selector
right?
If you could post a test page it would be much easier for someone to
help!
- ricardo
On Sep 28, 5:30 pm, SeanJA [EMAIL PROTECTED] wrote:
For some reason it doesnt even do the first console.log though...
On Sep 28,
If the element is already being cloned instead of being created again,
there is no fix. You can create/clone/append/modify an image or object
tag, but it will always need to request it's content from the server.
And using dozens of flash objects to round corners doesn't seem like a
good idea...
Thank you for the help...
And using dozens of flash objects to round corners doesn't seem like a
good idea...
Yeah I thought there would be alot of trouble to at first... but it's
better then cornflex and jcorner altogether... it's absolutely working
perfectly. the 10-12 calls are on the
76 matches
Mail list logo