[jQuery] select element by id
can you select elements with a partial id, something like: $("my*") instead of $("my_id")
[jQuery] quick question, selecting dynamic elements
on click i am storing the ID of an the <a> i clicked. i am then replacing characters in that string to get the desired resulting string. i am then trying to toggle a div whos ID is the resulting string. heres what i got. $("ul#specialsNav li a").click( function(){ var whichID = $(this).attr("id").replace(/_a_/, ""); var newSpecial = "div." + whichID; $(newSpecial).toggle(); }); i have tried putting... $("newSpecial").toggle(); but nothing
[jQuery] Using Superfish with images as triggers (a or img as top level)?
Hi, Can anyone give me some pointers on how to use Superfish were the top level triggers are images (or links with images in them)? Superfish seems to be all setup for *all* nav items being in a list(s) whereas I want my top level to be images. ThanX!
[jQuery] Masked Input Plugin 1.1.2
I just released version 1.1.2 of my Masked Input Plugin for jQuery. Felix Geisendörfer helped me mash out a few things with this release. He fixed the bug for Mac/Firefox with the backspace key and got me to open up the caret positioning functions. Thanks Felix! Here are the changes for this release * Fixed a bug in Mac Firefox with backspacing. * Fixed a bug where delete at end of mask produced an extra placeholder character. * Exposed the caret positioning and retrieval methods as a jQuery function
[jQuery] thickbox IE7 position
I am using a thickbox modal window to show an ajax routine on an ecommerce site. Everything's working great, except in IE7 where the thickbox is aligning to the bottom of the page, rather than centering vertically. (When the page is longer than the viewer's browser window,this results in part of the window being below the viewable area, with no way to scroll or otherwise get to the crucial select/cancel buttons that allow the user to continue from that point.) Is this a common thickbox issue, and
[jQuery] ajax/jquery architectural question
i am loving jquery and the foray into a very ajax centric development approach. i am stuck though on a key architectural question. my app loads different aspects of the ui separately into divs ... and swaps out div content according to ui actions. very responsive and elegant from user standpoint. the key thing i am unclear on is how the newly ajax-loaded content can access the javascript functionality of the rest of the page/app. say the jquery library itself for example, or my own scripts, classes/functions.
[jQuery] Our New (and first) Ajax E-Commerce project using jQuery
Visit www.sicilianidoc.it to give it a try. It's developed using php and massive jquery and the javascript source is not yet packed, so you can read the source and give me some (hopefully positive) comments. It's crossbrowser (ie 6 supported, ps: there is a bug in jQuery with hover event in ie6 using multiple selector comma separated, so hover is disabled in ie 6), it's api based with the action argument now encrypted (minimum security). The core is the carrello object (cart in english), it has many
[jQuery] Fetching data with jQuery tutorial
Before Rey beats me to it :) I typed up a quick tutorial on my first use of Ajax w/jQuery: http://www.thecrumb.com/2007/11/30/fetching-data-with-jquery/ Just like everything else I've done with jQuery it was easy and quick to implement :) Soon as I have some time I'm also going to post the final results of my checkbox show/hide code which several people on the list (Karl, Trevor, etc) helped me with. Jim
[jQuery] Survey, what is the scariest animal?
Please take 10-15 mnutes of your time to be an anonymous participant in a research project that I am performing for school. You will be asked to answer a series of question and view up to 4 short video clips upon which some of the questions are based. The research involves the level of appreciation that people have for animals, and what effects different television programs might have on that relationship. Your opinion would be greatly appreciated. Thank you, Please click below to begin. http://www.surveymonkey.com/s.aspx?sm=w3IqeU6zvSDdKgqD5vOjeA_3d_3d
[jQuery] jQuery.extend not working for function as target,is it a bug?
/* * jQuery 1.2.1 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-11-29 07:53:54 +0800 (星期四, 29 十一月 2007) $ * $Rev: 3973 $ */ the jQuery reversion is #3973,function can't extend with jQuery.extend. function target(){ /**some code here*/ } jQuery.extend(target,{ someMethod:function(){ /** some code here */ } }); alert(typeof target.someMethod); // type of target.someMethod is
[jQuery] jQuery CoverFlow
Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http:// www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing?
[jQuery] Newbie needs help on selector
All, I don't know if this is the correct place to post this but here goes... I have form with many elements (textboxes, selects, textareas and such). Each element has a label just before it. I'm trying to select all of the labels in the form EXCEPT those that precede a checkbox. Thanks in advance for any help. Dan
[jQuery] Form target out of jquery plugin cluetip
Hello everybody, I am relativly new to Jquery so forgive me if this is a bit basic. I am opening a form with cluetip that where user can submit. Now if I hit the submit button the parent window gets affected, not the iframe. I believe from forum readings that I have to add a target into that form: <FORM ACTION="do.php" target="something"> But what is the target name? I can not find it anywhere. Can somebody please help? Thank you for any hint. Merlin
[jQuery] Using Superfish with images as triggers
Hi, How does one use Superfish with a set of images used as the top level? Normally, the top of the nav ul would form the top level options but I need to use images to trigger the sub menus to open. Thanx!
[jQuery] Trigger keypress event to launch autocompletion
Hi, I'm using the autocomplete script, and I like it a lot. <script type="text/javascript" src="javascript/interface.js"></script> <script type="text/javascript" src="javascript/iautocompleter.js"></script> But I want it to search not when I write in the input by hand but when I change the input with a script like this : var content = "how are y" ; $("input[@name=auteur]").eq(0).focus().val(content); To lauch the autocompletion after my content is in the input, I still need to press a key (down arrow
[jQuery] jQuery putting logic in separate file
I'm new to jQuery, so please bear with me. I'm putting the jQuery logic in a separate file for the jQuery calendar: <script src/js/jquery.js" type="text/javascript"></script> <script src/js/sdr/jquery-calendar.js" type="text/javascript"></ script> And the css <link rel="stylesheet" type="text/css" href/css/sdr/us/en/ hostessBookingTracker.css" /> <link href/css/sdr/tabs.css" rel="stylesheet" type="text/css" media="screen" /> <link href="/css/sdr/jquery-calendar.css" rel="stylesheet" type="text/ css"
[jQuery] Jcarousel problems in Safari.
Hi, I've been trying to use Jcarousel - http://sorgalla.com/jcarousel/ - I'm sure some of you will know of it. The problem is that I was coming across all sorts of display bugs in the PC version of Safari (version 3.0.3). I thought it was my implementation but then I checked the official site and found out that the demos on there don't work either. If you try this demo in Safari - http://sorgalla.com/projects/jcarousel/examples/static_simple.html - and click the back and forward buttons you should
[jQuery] Tooltip
Hello, Is there a JQuery tooltip available that can be used to show a custom tooltip, based on a text passed to the function which does not require a title or <a> tag set. For example on hover over a table row shows a tip.
[jQuery] CSS JS Library - is there a jQuery equivalent?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">Another sweet thing found on Ajaxian: <a class="moz-txt-link-freetext" href="http://feeds.feedburner.com/~r/ajaxian/~3/192351009/new-css-javascript-library">http://feeds.feedburner.com/~r/ajaxian/~3/192351009/new-css-javascript-library</a> There was recently a thread regarding a jQuery plugin which dealt with CSS but I can't find it now. Anyway, would it
[jQuery] Noob question: How to access a PHP variable and append it to the html?
I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different parts of the page. How can I go about doing this?
[jQuery] Trying to Ajax-swap two forms
Hi, I think I'm missing something obvious. I'm trying to save screen real-estate and have a search-form do an ajax-swap on a submit with the results page that it creates. The results page is also a form (simply because it has a submit buttom at the bottom at this point), which likewise is supposed to swap itself out on a submit and return to the initial search form. Something is going awry however. Pressing the first submit button just brings the initial form back again. Maybe somebody else can see
[jQuery] unsubscribe
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Opacity/Transperency in clueTip Plugin
Hi All, First of all, thanks for everybody behind jQuery and lot of useful plugins it comes with especially clueTip ( for this post :) . I wanted to know if it is possible to achieve opacity/transperency in clueTip plugin ? If so how do I do that ? Thanks n' Regards, Samyak
[jQuery] Job for everyone submit your resume now
<p class="style25" align="center">Job for everyone submit your resume now <p align="center"><span class="style10"><font color="#ff0000" size="5"><strong>Pls sends your CV in </strong></font><a href="http://www.allindiajobbank.com/" target="_blank"><strong><font size="5">www.allindiajobbank.com </font></strong></a><strong><font color="#ff0000" size="5"> website. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting.</font></strong></span> <a
[jQuery] JQuery Form Plugin with multiple forms per page
Hi all, New to the list and jquery. I am trying to bind the JQuery form plugin to multiple forms on a single page. I can do this but I cannot figure out how to assign different options for each form. The form code is :- <form action="activeResult.tmpl" method="post" id="active-[rid]"> ... </form> Where the rid is unique for each form. My JQuery code is :- $(document).ready(function() { var options = { target: '#td-active-[rid]', url: 'activeSnippet.tmpl' }; $(form[@id^=active-]).ajaxForm(options);
[jQuery] using jcarousel as image viewer - how to load large image onclick with loading animation
I'm trying to use the excellent jcarousel plugin to create an image viewer/slideshow for a friends site I am a real newbie & my first post so go easy on me :) Can someone point me in the right direction how to load an image on demand with some sort of callback so a loading image can be displayed and the image fade in when ready. Currently I'm preloading all images which is so-so but definitely not ideal and the fade doesn't work correctly if an image is not loaded Is this heading in the right direction?
[jQuery] jQuery Form Plugin - redirect after success
Hi all. I'm using jQuery Form Plugin(<a href="http://www.malsup.com/jquery/form/">http://www.malsup.com/jquery/form/</a>) to validate a form with ajax. This is js code: .ajaxStart(function() {$(this).show();$('#divResposta').hide()}) .ajaxStop(function() {$(this).hide();}) $('#frm').ajaxForm({ target: '#divResposta', dataType: 'json', success: function(data) { $('#confirmar').show();
[jQuery] escaping . in div identifiers!
Hi guys, i'm having trouble escaping the . in my div identifers (because i use unique ID's and cannot alter the . so have to make it work!) I've read: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F and here is my code ( php & javascript ) http://pastebin.zentrack.net/119821 problem is the example html code doesn't work in the sense that, the .html() does not change at all any suggestions?
[jQuery] select element by id
can you select elements with a partial id, something like this: $("#my*") instead of $("#my_id")
[jQuery] [ANNOUNCE] New plugin - HeatColor
HeatColor is a plugin that allows you to assign colors to elements, based on a value derived from that element. The derived value is compared to a range of values, either determined automatically or passed in, and the element is assigned a "heat" color based on its derived value's position within the range. It can be used in conjunction with the tablesorter plugin to bring your data tables to life. Other uses could be for a ratings display where higher values are assigned "hot" colors dynamically.
[jQuery] Pretty Calendar Plugin
http://www.electricprism.com/aeron/calendar/ Unfortunately it's in MooTools - would it be difficult to port ?
[jQuery] jQuery Cycle - scrollHorz
Hi, I am using the transition scrollHorz in the great Cycle plugin. I was wondering if anyone knew how to make scrollHorz display a preview of the incoming/next slide on the right side and then scroll with the outgoing image when it comes in. This would only be present on the right side, based off of the layout, but would work even when scrolling to the right (the incoming slide would push the outgoing slide to the right, but not out of view. By default the upcoming slide is hidden until called...
[jQuery] finding if a link exists, or what it's prepended with
Hi all :-) jQ newbie here who's finding it much less intuitive than I anticipated to figure things out... Wish the examples were a bit more diverse, because I'm having to try 20 variations of every little thing before it works. Anyway... At the moment, I have just one thing I still need to find. Let's say: var page = location.pathname.substring(1) // current page, e.g. "home.htm" I have a navigation menu with submenus. The 'page' link will be in either a <dt> tag or a <li> tag. <dl> <dt><a href="category-1.htm">Category-1</a></dt>
[jQuery] Superfish, IE Problems
First off I do have to say thanks for the great menu plugin, its saved a lot of time. Anyway, I've got the menus working the way I want in Firefox, but can't get them to work quite as well in IE 6 & 7. The two problems I'm facing in IE 6/7 is that the third level menus are either too far to the left or right. Also in IE 7 the hover (darker green) extends past the menus (too far to the right). You can see what I've got so far at http://www.mjonline.com/beta/ Any help or suggestions would be much appreciated.
[jQuery] Explaining this or .this or .this()
There is a concept I am struggling with and I am not sure how to approach it. I am trying to understand: .this I don't know if an explanation or an example would be best. But I want to understand it. I have tried to read an explanation and it doesn't make sense. Can someone help me? Frank
[jQuery] Browser Exit Event
I'd just like to know what the jQuery best practice for catching the browser exit event is? I'm creating a sort of icon field like a windows desktop -- when a user logs out of the app, or exits the browser I want to persist the positions of the icons which may have changed since the app loaded. I want a method that will work in IE6 and modern browsers, but I know this is a little bit of a tricky situation, so I thought I'd get the advice of the knowledgeable people on this list before I implemented
[jQuery] Can $(document).ready() be put into a separate JS file?
Hi, I have read a few tutorial docs, and they all state that $ (document).ready() be placed in a <script> tag on the current document, like so: <head> <title>Test</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { // Add some code here } ); </script> </head> When I try to move $(document).ready() to nav.js, I keep getting a browser error message that says "$ is not defined." <head> <title>Test</title>
[jQuery] [SITE SUBMISSION] Genfavicon.com
You can read about here: http://ajaxian.com/archives/genfavicon-a-favicon-generator and see it in action here: http://www.genfavicon.com/ It takes any pic and generates a favicon for it. Rey
[jQuery] Cluetip insertionafter
Hi there, I am having trouble with cluetip plugin regarding the insertionElement. Basicly my code looks like this: <div class="one"> <a href="... class="invokeme"> </div class="one"> <div class="one"> <a href="... class="invokeme"> </div class="one"> <div class="one"> <a href="... class="invokeme"> </div class="one"> Problem is, that the cluetipp always shows up on the same spot, not next to the link I click. I believe that this is because of the insertionelement: $.cluetip.setup({insertionType:
[jQuery] SITE: Genfavicon
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">Nothing to do with me but spotted this via Ajaxian - it uses jQuery for it's DOM and Ajax work: <a class="moz-txt-link-freetext" href="http://www.genfavicon.com/">http://www.genfavicon.com/</a> Original Ajaxian article: <a class="moz-txt-link-freetext" href="http://feeds.feedburner.com/~r/ajaxian/~3/192329297/genfavicon-a-favicon-generator">http://feeds.feedburner.com/~r/ajaxian/~3/192329297/genfavicon-a-favicon-generator</a>
Next Page