[jQuery] jQuery .click Function Help
I am finishing up a small script using the jQuery library, and I am struggling with a onclick function: for (i=0; i<elements.length; i++) { $('#'+settings.instancename+'-nav-'+String(i+1)).click(function() { jumpTo(i); }); } Now I know what the problem is, when I call to the function jumpTo(i), it passes i as a reference (every click ends up as 5, which is the last value of i). How can I pass the value of i, and not the reference of i?
[jQuery] Question about BlockUI Plugin.
I am trying to use it, but the "wainting" message does't appear align into the center. Is it use a css? Where could get it? Thanks.
[jQuery] plugin development
Hi; do you know any guide about plugin development except the documentation wiki page ? like a tutorial on a simple plugin? tHanks
[jQuery] I have to fire "each" and "$(this)" when doing something?
$('somediv.someclass').css("opacity",".5"); is not working and I have to use : $('somediv.someclass').each(function(){$(this).css("opacity",".5")}); But sometimes I can just go ahead without having to use "each". What's the matter, could anyone give me a hand?
[jQuery] find.click vs bind("click")
What is the difference, advantage/disadvantage of these different methods: bindEdit = function(){ $j('#edit').bind("click", function(){ var linkval = $(this).attr("href"); $j('#jobinfo').load(linkval, function(){ bindEdit(); }); return false; }); } bindEdit = function(){ $j('#jobinfo').find('#edit').click(function(){ var linkval = $(this).attr("href"); $j('#jobinfo').load(linkval, function(){ bindEdit(); }); return false; }); }
[jQuery] Instantly Turn your Computer into a Super TV
Instantly Turn your Computer into a Super TV - http://cbnk.biz/HLSTV286251KJGHEDC
[jQuery] IE will not eval this: eval("function(){alert('iesucks')}")() Any ideas?
IE doesn't seem to like to eval anonymous functions. Is there a way around this other than to strip the function wrapper? I know you should normally avoid using eval for anything but I do have a good reason for doing this.
[jQuery] New plugin: frameReady()
frameReady works a lot like $(document).ready() with a few advantages when working with frames: $.frameReady(function,target,remote,jQuery); -- Waits for the DOM to be ready in the target frame before running code. -- It can be run from within any frame or the root document. -- Function is a standard anonymous function written as though you're working with local elements. -- Target can be any valid frame reference, including nested frames and iFrames. Must be a string. -- Remote (default true) runs
[jQuery] Problem with jquery form plugin and file upload
Hello, I am having a problem with jquery form plugin when it comes to file upload. The file upload script works perfectly without the javascript and the form plugin works perfectly as long as im not uploading files. It just does not recognize the file being uploaded. Is there something special I have to do to get form plugin to recognize that it needs to upload a file? heres my code (except for the jquery and form plugin inclusion) http://pastebin.mozilla.org/10026 http://pastebin.mozilla.org/10026
[jQuery] serialize problems w/ select menu on IE
I'm using jQuery 1.1.2. I'm using this code to serialize form data before an Ajax submit. var params = $('input,select,textarea').serialize(); The form has multiple select menus. On IE 6 and IE 7 the value from one select is always blank when serialized regardless of the selected option. This is causing the form to not validate server side. The HTML for the <select> is <select name="f_state_menu"> <option value="">Select One...</option> <option>OUT-SPARE</option> <option>OUT-REPAIR</option> <option>OUT-CALIBRATION</option>
[jQuery] Reducing this code.
I am just beginning my journey with jQuery and would like to know how the following could be summarised: $(document).ready ( function() { $("fieldset input, fieldset select, fieldset textarea").focus ( function() { this.parentNode.className = "container on"; return false; } ); $("fieldset input, fieldset select, fieldset textarea").blur ( function() { this.parentNode.className
[jQuery] Building HTML and binding to an inner element.
Hi list, I'm trying to add items to an unordered list using jQuery. This is something triggered by another event, so it cannot be done within my HTML templating engine whilst building the page. I also wish to add an 'a' element within the list item which I can then use to remove the item and post an AJAX request at a later point. I had come up with the following with some assistance on #jquery: $( "<li style=\"display: none\">"+ "["+task.client.code+"] "+task.project.name+ "<br/>"+task.name+"<br/>"+
[jQuery] How to load picture after picture
I currently retrieve all pictures of my gallery with the following PHP code $files = getFiles ($d); if (count ($files) > 0) { foreach ($files as $key => $f) { echo "<img align=\"center\" src=\"$f\"> "; } } simply adding picture after picture. But since there will be many more pictures I'd like to load just the current and possibly the next one. A <prev> (disabled when current==first) and a <next> button should allow for moving through the pictures, loading the next one when needed. How could I do
[jQuery] Problem with AJAX and links
Hey folks, I've been working on this one with a little help, but i'm now stuck. I have an AJAX interface, where I want all internal links to load content into a specific div called .content. The issue is it works, except for link in content thats loaded into the div. So far, here is what I have: function hijackLinks(root) { $('a',root).bind('click', function(){ $('.content').load(this.href); return false; }); }; This is the function that I pass the clicked link in to, I take it's href and load the
[jQuery] Is jqModal not support aspx in IE6?
I use the jqModal's Current Version: 2007.02.25 +r9 in asp.net 1.1,some code is like this: <a id="DataGridResult__ctl3_aHyperLink" class="DivEnumerationQISelectorToCollectiontrigger" href="EQISelector.aspx?SampleID=fdce15dcc67b473a980aa8ced8500a6f">Go1</ a> <a id="DataGridResult__ctl6_aHyperLink" class="DivEnumerationQISelectorToCollectiontrigger" href="EQISelector.aspx?SampleID=cc3698f707d4442e85bdcc7ee5fb73d5">Go2</ a> <div class="jqmWindow" id="DivEnumerationQISelectorToCollection"> Please
[jQuery] Question about tablesorter plugin
Hi, I am using the tablesorter plugin and its great. I have one question. I allow the end users to remove rows from the table, to implement this I determine which <tr>s are selected and then call jQuery.hide(). My question: after hiding a specific row(s), how can I reinitialize the table's odd and even css settings? Is there an method I can call similar to when you sort on a specific column it resets the rows odd and even css class settings? Any help greatly appreciated. Thank you _______________________________________________
[jQuery] $().append() problem
I am appending a hidden form field similar to this: $("#some_id").append("<input type=\"hidden\" name=\"name\" value= \"some value\">"); Works fine in all Mac browsers but testing in IE6 on Windows it appears to not to get added to the DOM tree. The hidded value is not available when the form is submitted. Also tried $().html() IE6 reports "Unexpected call to method or property access"
[jQuery] Trouble with BlockUI in IE 7
(If this is a duplicate post, I'm sorry. I created it on the Nabble Forums before I joined the mailing list, so it ended up on the forum, but the mailing-list didn't accept it.) Hi, I ran into a problem with BlockUI when I tried to use it on one of my company's old sites (so please, don't get started on the awful table- based layout). The overlay and the message are incorrectly positioned. I can make it work by hacking the code to use the IE6 absolute positioning code. Here's an example page to recreate
[jQuery] Form plugin: file upload question
Hi, Question: This new feature of form plugin file upload form Mike Alsup, is it supposed to actually perform file uploads? If yes isn't supposed to upload any file into server? When I look at my php script I can't see any file uploads. In other words I can't see any file being uploaded. I'll post an example if needed, let me know. Cheers, --Kush
[jQuery] Horizontal Menu Plugin
I recall a horizontal navigation menu which when the user clicked on an option, the background-color from the selected menu item slid dynamically over to the newly clicked item. Does anyone recall the name of this plugin / feature, or the site where I might find it? I've been looking with no real success as of yet. Thanks in advance! James
[jQuery] Updated plugin: jqTOC -- table of contents
I've updated the existing plugin to work with the latest version of jQuery. In addition to being more compact, the code now: - uses fixed positioning - parameterized starting and ending header levels - parameterized TOC container Code and example is http://solidgone.com/jquery/jqTOC/jqTOC.htm. Feedback on code and functionality are welcomed. ~ ~ Dave
[jQuery] New to jQuery and struggling
I am (relatively) new to JavaScript and brand new to JS libraries. Prior to jQuery, I was using Yahoo's library, but was well-impressed with jQuery and made the move. I have a series of custom written js functions which fire-up when the DOM is ready and i am happily using jQuey's $ (document).ready(function(){}); tool in an external script kept in the head of the document. However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e. inline) but it
[jQuery] jquery modal form not loading - help!
Hi I've got a modal window that uses the thickbox and jquery scripts, but it has suddenly stopped loading, and I've no idea why :( I get the following error in my developer toolbar, as well as the pop-up not loading: Error: [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] I've looked around and found no help...the funny thing
[jQuery] Fading in Firefox?
<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> <!-- /* Font Definitions */ @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] Calendar / Schedule Component.
Calendar / Schedule I need to add a calendar/Schedule component to my web site. Any ones know some GNU component? It would be a nice plugin :-P
[jQuery] [jqUploader] What with users without flash ?
Hi ! When I start use this extension i hope that when the browser doesn't have flash field will be "normal" but not. I change (almost everything) to get this effect but the main problem is: var $el = jQuery('<' + opts.elementType + ' id="'+containerId+'" class="' + opts.cls + '" style="width:'+opts.width+'px"> [...] $this.after($el).remove(); This fragment of code removed normal file filed so when the flash wasn't install field just disappear. I removed this and change script to replace <div> content
[jQuery] viewportCenter() plugin now in beta...
Hey All, The viewportCenter() plugin is now in beta, and is available here: http://www.reindel.com/blog/src/jquery_viewport_center/ A few things to note: Unlike the center() plugin, this is a mechanism for centering in the viewport, not the parent element. You won't have to download the Dimensions plugin in order to get it to work, as it only relies on the core CSS height() and width() methods. These are the instructions that are also in the source of the HTML: "There are currently no optional settings
[jQuery] JavaScript Hijacking - Jquery among the vulnerable ones
Hello there! I'm worried about the security of Jquery and found a paper about the Javascript Hijacking that says Jquery and others frameworks are vulnerables. Please take a look. Paper: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf or http://tinyurl.com/28nzje Responses to many of the blog comments, by one of the paper's co- authors: http://www.schneier.com/blog/archives/2007/04/javascript_hija_1.html#c160667 or http://tinyurl.com/yqaoz5 I strongly recomends that
[jQuery] jQuery Development Roadmap?
Is there a jQuery development roadmap? Something that shows what fixes/features/changes are planned for future releases? I am spreading the word about jQuery to some overly cautious engineers and they are a little uncomfortable with how young and seemingly unstable jQuery is. I think one of the engineers had some exposure to earlier versions of jQuery that broke their code when they updated to a more recent version. I'm assuming it had something to to with the .find() backwards compatibility issue
[jQuery] Loading PHP via AJAX
Is it possible to load a PHP page via AJAX such that the PHP page being loaded has access to the session, objects and variables which exist in the calling page? My situation is that I would like to load one of several different forms (written in PHP) based on which link a user clicks. Essentially, they are selecting what kind of post they want to create and I want to load the appropriate form via AJAX. Those PHP forms use PHP includes, access objects and user in-page variables, so keeping that stuff
[jQuery] Woooooooooooooooooow The Best Music Search Engine
http://www.freemp3sky.com
[jQuery] JavaScript Hijacking - Jquery among the vulnerable ones
Hello there! I'm worried about the security of Jquery and found a paper about the Javascript Hijacking that says Jquery and others frameworks are vulnerables. Please take a look. Paper: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf or http://tinyurl.com/28nzje Responses to many of the blog comments, by one of the paper's co- authors: http://www.schneier.com/blog/archives/2007/04/javascript_hija_1.html#c160667 or http://tinyurl.com/yqaoz5 I strongly recomends that
[jQuery] selecting elements containing colons
I know that jQuery made the decision not to allow selection of elements with colons in them, however it is valid XML. Here is an example piece of code I am getting back from an ajax call: <item> <news:special>Free chicken!</news:special> </item> Any ideas how I can select the news:special item? ~Sean
[jQuery] JavaScript Hijacking - Jquery among the vulnerable ones
Hello there! I'm worried about the security of Jquery and found a paper about the Javascript Hijacking that says Jquery and others frameworks are vulnerables. Please take a look. Paper: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf or http://tinyurl.com/28nzje Responses to many of the blog comments, by one of the paper's co- authors: http://www.schneier.com/blog/archives/2007/04/javascript_hija_1.html#c160667 or http://tinyurl.com/yqaoz5 I strongly recomends that
[jQuery] Q: Is the $.inArray function supported?
I was going to write a similar function for some code when I noticed that $.inArray() function already exists. This appears to be undocumented, but before relying on it for my plug-in, I want to make sure it is actually "supported". Are there plans to remove this method? -Dan
[jQuery] Library showdowns
<div>I started a site to expand upon the idea of the <a href="http://jquery.com/blog/2006/10/18/zebra-table-showdown/">zerba challenge</a>.</div> <div><a href="http://js.commadot.com">http://js.commadot.com</a> (I decided not to regsiter <a href="http://jsframeworks.com">jsframeworks.com</a>)</div> <div> </div> <div><strong>Side note:</strong> <em>Drupal 5.1 is pretty awesome. I am sure I am not using it's full potential. I haven't even changed the theme yet.</em></div> <div> </div> <div>Anyway,
[jQuery] custom selecters
Hi, i need to be able to find all elements with a div id of something like divname plus some randmom number, each div id will be like this, so something like divname324 or divname453 so how can I select all divs with a name divname plus some random numbers $("#divname + random number").ajaxForm({ target: '#commentFormOutput', success: processcommentForm }); Thanks -TJ
[jQuery] need help with validation plugin and putting two input fields in 1 row...
hey. im trying to achive somthing like that: http://www.amir.cx/test10.php explain: what i have till now is that page: http://www.amir.cx/test5.php (try to submit) its prints out per row 1 error each time, for example: if telephone field having two errors its shows one at time, i.e: if the telephone field has invaild area code and telephone number, its shows first the error "error: invalid telephone country code! " and after "invaild telephone number" the problem is that i cannot set a error class
[jQuery] Animate Carousel without buttons
There is a cool a gallery carousel which uses mootools found here: http://smoothgallery.jondesign.net/showcase/gallery/ I really would like to accomplish the scrolling thumbnail carousel that he has done using jQuery. Basically the gallery thumbnails move right or left & faster or slower depending on where you mouse over on the carousel itself. There are no forward or back buttons. Works like many flash carousels. Can this be done? If so I will pay anyway to help develop this quickly. Please let
[jQuery] Displaying a rotated image
I have a lot of jpeg digital photos that display correctly in my local photo software (Mac iPhoto). However, when displaying the vertical photos on a web page, they are oriented horizontally/sideways. Is there a way to rotate the image so that it displays correctly?
Next Page