[jQuery] :eq vs :nth?
I've searched the groups but I can't seem to find any related talk on this. What, if any, is the difference between using :eq(n) and :nth(n)? I'd like to know before I start standardizing on one or the other. Thanks, Matt Penner
[jQuery] Using JQuery in firefox extension
hi I try to use JQuery in firefox extension and have some trouble. for example: $('img').click(function() { alert('hello')};); // no error, but no use either. or window.content.$('img').click(function() { alert('hello')});); // it will raise a error about content.$ is not a function or window.content.eval('$("img").click(function() { alert("hello")});); // could not use eval How should i do to use JQuery in firefox extension? thanks lucemia
[jQuery] Windows Tips and Tricks
Speed up your system, repair registry base, uninstall hidden windows components and get rid of boring errors with powerful tips and tricks. <a href="http://windowsxpsp2pro.blogspot.com">http://windowsxpsp2pro.blogspot.com </a>
[jQuery] Good Javascript editor or IDE?
I've just started developing with jQuery in the last month. I usually use VS 2005 or Notepad++ for my JavaScript. It's features are pretty much nil as far as intellisense goes. Mainly all they do is syntax highlighting and formatting. What recommendations on JavaScript editors or IDEs does anyone have? Is there something sophisticated enough that can have intellisense with jQuery or my own objects in external js files? Thanks, Matt
[jQuery] can jquery handle onclick with mouseover
Can jquery handle mouseover, mouseout and onclick in one function. I need a mouseover to change the image. I need to keep the image if the image is clicked, and not, if the image is not clicked. I need to clear the function if another image is clicked. I have tried this code structure but no success. Any help would be appreicated. $(function() { $("#fast").click(function(){linkOver('fast');view("hid1"); }).mouseover(function(){linkOver('fast')}).mouseout(function(){ if($(this)=="click"){
[jQuery] Determine DOM element based on mouse position
I need a way of determining a parent element of the element at the mouse position at the time of a double click. Specifically I'd need to find the 'parent' header (H1, H2, H3, etc) based on the DOM element that a user clicks on. Parent in this case being the closest header in the stack, since DOM elements are not children of header tags. Thus, in a document structure below, when the user clicks on paragraph 2, the h3 DOM element is returned, click on paragraph 3 and the second h2 is returned (where
[jQuery] Best way to select a cell in a table?
You're right GTG. I found this out quickly after my post. I'm using the following: $('tr:eq(2) td:eq(3)') which seems to get exactly the one cell I'm looking for. Just for sake of argument this is a very simple example. I use variables in my code and I have only one table on the page. If I had multiple tables this would indeed return multiple elements unless I selected the individual table as well. At least this is my understanding. Matt ________________________________________ From: <a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a>
[jQuery] Unable to replicate what seems like a simple element via jQuery
Hello everyone, After spending quite some time trying to figure this out, I have resorted to asking for help because after trying what seems like everything, I have yet to find a solution. So maybe someone could help me out/point me in the right direction or offer some function names. I have tried everything in regards to the .css() function, .load() and removeAttr and attr() function to no avail. Something in my javascript design process is failing me. Well enough of the introduction, what I am
[jQuery] plugin tabs and form
Hi, I installed this plugin (stilbuero.de) and I got a problem that I can't resolve: I have a form in my third tab an when I click on submit the page reload but go to the first tab. How I can stay on the same tab ? I try this (but I really not a coder !) and it doesn't work: $("form")[2].submit( function() { return $('#container').triggerTab(3); } ); Thanks -- View this message in context: http://www.nabble.com/plugin-tabs-and-form-tf4215068s15494.html#a11991878 Sent from the JQuery mailing list
[jQuery] plugin tabs and form
Hi, I installed this plugin (stilbuero.de) and I got a problem that I can't resolve: I have a form in my third tab an when I click on submit the page reload but go to the first tab. How I can stay on the same tab ? I try this (but I really not a coder !) and it doesn't work: $("form")[2].submit( function() { return $('#container').triggerTab(3); } ); Thanks -- View this message in context: http://www.nabble.com/plugin-tabs-and-form-tf4215068s15494.html#a11991878 Sent from the JQuery mailing list
[jQuery] Split list digests for the mainlist
Hello, I think it's a good idea there are split lists but is it somehow possible to inject good ideas or decisions made in those split lists into the main list in the form of digests/split list post. I think the lists most eligible for this are the plugins and the new docs list. I never subscribed to the other lists because the mainlist is so active already recieving more information about jQuery feels like an overload. This is just my opinion, any comments would be much appreciated! -- David Duymelinck
[jQuery] How to read value of a file input field?
Hi I just found the jQuery group and joined. I absolutely jQuery after discovering the Thickbox. I need some help with this task. I have an asp.net page for uploading photos. I want to show a preview of the image once i have browsed for and selected the image using the file input. How can get the value of the file input? I then want to pass this value to the src of an image. I assume this is possible. Thank you Ashok
[jQuery] Importing New CSS
Hello, I am trying to create new CSS Selectors from the results of an Ajax call. The server returns the string: ------------------------------- fielset{ border.... } legend{ some values... } ------------------------------- Can I append this to my document? Can I replace existing values? What is the best way to dynamically manipulate CSS selectors in this manner without applying each individually via $("legend").css({ color: "red", background: "blue" });
[jQuery] IS condition true like an if statement?
I'm trying to create a link that when clicked will produce an alert if there are any visible divs (all .detail divs are hidden by default). I have the following function but it doesn't seem I'm doing it correctly; nothing happens regardless of the visibility status of the divs. $("a.saveConfig").click(function() { $('div.detail').is(':visible'), (function () { alert('Hey this works'); }); }); Is there a better way to do an if statement using JQuery selectors or is there something
[jQuery] animate navigation effect
Is it possible to make the animate navigation by jquery like below site http://www.cyberexpert.com.hk
[jQuery] BlockUI fade out - Possible to disable for some instances?
Hi everyone! I was wondering, and this question is mainly pointed to Mike, if I could disable the fade-out on the BlockUI within the BlockUI function? I am using it to display a confirmation box, and if it is selected it displays another box, loads something with Ajax and then displays a "Hurray" box if successful. When the fade out is used the old boxes can sometimes be shown in the background with the overlay. Kind regards, Magnus
[jQuery] :eq vs :nth?
Ah, thanks for that. I'll check the code next time. Matt ________________________________________ From: <a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a> [mailto:<a href="mailto:jquery-en@googlegroups.com"> jquery-en@googlegroups.com</a>] On Behalf Of Karl Swedberg Sent: Friday, August 03, 2007 2:18 PM To: <a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a> Subject: [jQuery] Re: :eq vs :nth? They're the same, so you can use whichever you prefer. From
[jQuery] Coldfusion 8 / Javascript image cropper
This demo uses Prototype and Scriptaculous, but there's no reason that it shouldn't be able to use jQuery: http://cfsilence.com/blog/client/index.cfm/2007/8/2/Introducing-cfImageCropper--Custom-Tag-For-Client-Side-Image-Cropping
[jQuery] "Eloquent JavaScript" hyper-book
Hi, Just wanted pass along a site I just came across that is a well-done "hyper-book" titled Eloquent JavaScript. It covers everything from basic variables, strings, etc. to DOM, regular expressions and OOP. As the author states, it's aimed at the beginner JavaScript programmer, but experienced users can find information of some use. A nice touch is the "click-to-run" code samples that launch in a console attached to the foot of the browser. They even feature an off-line download of the hyper-book
[jQuery] Help with dblclick
I have a bunch of events and I loop through them. I would like to create a double-click effect so that I call function "eventDoubleClick" but I want that event to pass its index value, as such: for (i=0, i<arrayLength; i++) { $t("#event_" + i).dblclick(function () {eventDoubleClick(i)}); } Basically all the above does is then setup so that all the event dblclicks are calling eventDoubleClick(i) which uses the last i value; instead of setting them up as eventDoubleClick(1), eventDoubleClick(2), ....
[jQuery] forcing string literals
Hi all - I have a JSON response with a parameter like count: 0; But if I try appending this value in a chained command, jQuery interprets this as false and not a string literal. eg $("counts_col").append(json.count); Is there a trick to making 0 a string literal and not a boolean false? eval()? Thanks!
[jQuery] Scrolling a div area without scrolling the page?
Hi, I don't know if jquery will be able to address this but I thought I would try anyway. Is there a way to scroll a div area (which has an overflow:auto) to an anchor point within the div without scrolling the page (i.e., the page should remain stationary)? I've coded a basic html example at http://matthewmoore.info/jquery/example.html. You'll see the page scroll when you click on a letter at the top of the div. Any ideas? Thanks in advance, Matthew
[jQuery] Coder vs Designer?
Good catch Klaus & Christof. I am a coder and relatively new to CSS. I do have a little tenancy towards classitis which I am trying to cure myself of. Thanks for the good suggestions! Matt -----Original Message----- From: <a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a> [mailto:<a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a>] On Behalf Of Christof Donat Sent: Friday, August 03, 2007 2:16 AM To: <a href="mailto:jquery-en@googlegroups.com">jquery-en@googlegroups.com</a>
[jQuery] select .change event not firing on up/down arrow press
Hi, wondering if anyone knows why this might be happening: I've attached a .change event to a set of <select> boxes: $('#ml_cartItems select[@id^=qty_]').change(function() { var productID = this.id.split('_')[1]; MLStore.changeItemQty( productID, $(this).val() ); }); The change event fires fine when the user changes the select box using the mouse, but not when the keyboard up/down arrow keys are used. Know why? Related question.... the MLStore.changeItemQty() function makes an ajax call. I don't
[jQuery] Superfish, Click no Hover
I'm trying to modify superfish to open when u click on the parent link, insead of when you hover over it, but I'm not having any luck. I'm not that great at js when it comes to writing it from scratch, but I can take what you give me and run with it. Any suggestions would be helpful. Thanks!
[jQuery] Two words for Jquery
jQuery Rocks!!!!!! oh... possibly will add two more words; Thank you :) I'm not the best scripter and jquery has simply allowed me to accomplish with my own personal site sooooo much more than I would have otherwise attempted. You people behind jquery are genious and your work is great, thanks. Kiwwwi.
[jQuery] Image Rollover
Hi fellow members, I have to accomplish the following for same page side navigation: pseudo code: nav 1 - mouseout image1, mouseover image2 click image, fn(view div) css display:block shows text on same page if "click" show image 2 - if !click show image1 nav(n) the same as above If click nav2 - nav(n) revert back to image1 I am not sure how to accomplish this. here is my code. $(function() { $("#fast").click(function(){view('hid1')}).mouseover(function() {linkOver('fast')}) .mouseout(function(){
[jQuery] Show all?
What I am looking for is a way to hide the last one of these that was clicked. I tried saving the object that was last used in a var but that didnt work. I thought then maybe I could create some kind of "close all" that would close all the other layers but not the one we have clicked to show. <span style="font-family: courier new,monospace;">$('#Location').click(function() { </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
[jQuery] Do you think jQuery's documentation is enought?
What do you think about this question? Do you think jQuery's documentation is enought? Personally i think jQuery's documentation isn't enought. So i'm looking to <a href="http://docs.mootools.net/">MooTools documentation</a> and <a href="http://demos.mootools.net/">demos</a> then i'm looking to <a href="http://docs.jquery.com/">jQuery's documentation</a> (dude where is demos? xD) comparing both documentations and thinking jQuery's documentation isn't enought. However, i want to know what do you think
[jQuery] Find nested elements within a div
I am trying to get all of the check box elements within a div element. Some are also inside a span element within the div. When I do $("#checkGroup/input[@type=checkbox]"), I get the first 5 checkboxes but the remaining 4, the ones within the span, aren't included. How can I select all of the check boxes regardless if they are in a span or not? Here is my html code: <div id="checkGroup"> <input type="checkbox" name="chk1" /> Option 1<br /> <input type="checkbox" name="chk2" /> Option 2<br /> <input
[jQuery] multiline string
hi, I am trying to use the jQuery .after() function. I have something like this .. $('p').after('<p class="main"><a href="#">sample</a>'); I want to transform it into something like this to make the code much easier to read $('p').after(' <p class="main"> <a href="#">sample</a> '); how can I achieve this? Thanks james
[jQuery] radiobutton is checked?
How can I check with jQuery whether or not a radiobutton is checked?
[jQuery] Datepicker. Hide dates from next/prev month
Hi all. Right now the default behaviour of Kevin's datepicker, http://kelvinluck.com/assets/jquery/datePicker/v2/demo/, is to show the dates from the previous/next month as well as the dates from the current month. What would be the easy way to make the datepicker show the dates from the current month only? Thank you
[jQuery] UI upload
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=406041909-03082007><FONT face=Arial size=2>hi!</FONT></SPAN></DIV> <DIV><SPAN class=406041909-03082007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=406041909-03082007><FONT face=Arial size=2>i just saw that there is an upload UI planned: <A href="http://docs.jquery.com/UI/Upload">http://docs.jquery.com/UI/Upload</A></FONT></SPAN></DIV>
[jQuery] New to jQuery: Problem setting current time to some element
Hi, This is my code: function displayDate(){ var date = new Date(); $("#dateandtime").text(date); } $(document).ready(function(){ setInterval('displayDate()', 1000); }); But it doesn't work, however, if I have this: $("#dateandtime").text("some text"); The content of the <span> element with "dateandtime" id selector will change to "some text". I don't understand why it doesn't change when I have this: $("#dateandtime").text(date); I'm new to jQuery, please advise... Thanks in advance.
[jQuery] Draw line or polygon like Google Map?
Hello, Did you played with Google Map? Google Map allow you to draw lines or polygon by providing points array. So wouldn't it be great if we have plugin using jQuery to do the same thing, but no need to related to map, just a general drawing library? howa
[jQuery] Allowing a .click() function to occur as many times as needed in tandem with .load() ?
Hello everyone, I am just about ready to throw my darn computer out the window here :P. What I am doing is quite simple, I am using the .load() function to call upon a function, like so: $("div.vote_against_selected").click(function(){ //first load content $("div.fake").load("/stories/vote/1/" + $storyid); )}; I should note that div.fake does NOT exist, as I do not want anything loaded, because I change the div myself, via the .html() function, like so: $first_new_votes_for = $votes_for * 1 + 1;
[jQuery] slideUp/Down flicker with 1.0.4
Upon upgrading to jQuery 1.0.4 some of my slideUp/Down elements started to flicker. With 1.0.3 this problem did not exist. http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown5.html http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown6.html (Click the blue box in the corner). Am I missing something obvious or is this just css problem? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Apple style gallery popup
Hi people, I'm trying to create a gallery animation similar to the one here: http://www.apple.com/macosx/leopard/features/desktop.html When the user clicks on the pic, I want the larger version to expand from the thumbnail version to the bigger version, moving from the thumbnails picture into the centre of the screen as it grows. I've tried using the interface effects plugin (Grow/Shrink), but I don't know how to get the movement from thumb position to centre of the screen. Can anyone help me please?
[jQuery] Coder vs Designer?
It seems that before Web 2.0 and jQuery type frameworks it was easier to separate server code from web presentation. Now, especially with AJAX, things seem to be blurring again. In my present job we don't have a designer, so us coders are the designer. I don't mind but I'd still like to keep the two separated as much as possible. For instance, in one of my projects we show students the courses they have taken. If the student hovers over a course I have a jTip like feature that loads the details
Next Page