[jQuery] Order of execution with onclick and click
Hi, I have an html element that has an onclick attribute set which calls a couple of JS functions. Using jquery I am adding a click event to the same element. Can anyone tell me what the expected execution of js functions will be? ex: <element id="el1" onclick="jsfunction1" /> $.("#el1").click(function () { anotherFunctionHere; });
[jQuery] hover and hoverIntent break the browser slightly
I have noticed something with the way that hover works in jQuery that breaks the default browser behavior. Normally the browser displays the href of a link in the status bar when a user hovers over it. Since hover and hoverIntent return false for all children of the hovered item onmouseover and onmouseout it overrides this behavior. Therefore when a user is hovering over links in a dropdown menu they don't see the url of the menu item they're on. I am wondering if this is a known issue that people
[jQuery] Tablesorter Questions
I'm using tablesorter (http://tablesorter.com/docs/) with paging and have a couple of questions. 1. I'm using the fixedwidth and paging. The up/down arrows in the header are overlapping the header text in some cells when I look at this in FF2 on OSX although it looks OK on IE7 on a PC. ANyone else come across this? Any suggestions? 2. For the paging component I'm looking to change from displaying page 1 of 3 in a text box to just a simple div. I'm a complete JS/jQuery n00b and looking for a hint.
[jQuery] click away from layer to disappear
jquery newbie (more designer than programmer) here... I have a button on my page that triggers (via hover) a layer pop-up. I currently have the layer pop-up disappearing once a user takes action within the layer but I would like the layer to disappear if the user clicks anywhere else on the page. I can't seem to figure out the best jquery function that would best handle this. Right now, my current line of thinking is something like the following: // while hovering over the popped up layer stay visible
[jQuery] .min.js and .pack.js
Besides file size, what is the difference between a .min and .pack version of a js file? I see this a lot with the various plugins and jquery library. What are the pitfalls and benefits of using each?
[jQuery] Cross-Domain xmlHttp
Hi All, Has anybody used jquery for cross-domain xmlHttp (AJAX) requests? Is this supported by jquery. When I say cross-domain, I mean (say) http://abc.com doing an xmlHttp request to http://def.com Cheers in advence
[jQuery] $(this) after using ajaxForm from the Form plugin?
I'm planning on using the Form plugin for an AJAX submission, where when the callback function is fired, it adds the returned data just before my the content form. Fairly standard right? Here's my HTML code: <div class="commentShell"> <div class="openComments">Comments <i>(3)</i></div> <div class="comments"> <div class="singleComment"> I know...he's so poetic isn't he? Noelle HAS been really cute lately too. <i><a href="http://www.andyandjaime.com" target="_blank">Jaime
[jQuery] Using back button causes C.easing[e.easing || (C.easing.swing ? "swing" : "linear")] is not a function
I am doing some ajax and calling a function every 5 seconds and it works perfect except when I press the back button and then gives this error on the next ajax load C.easing[e.easing || (C.easing.swing ? "swing" : "linear")] is not a function HERE IS MY CODE $(document).ready(function() { timer_set = 0; prevnext(); }); function prevnext() { //optional arguments, create the extra query string var next_param = (arguments[0]) ? '&next=' + arguments[0] : '&next=1'; var numsent_param
[jQuery] Problems to migrate from 1.1.2 to 1.1.4
I am trying to migrate my web app from jQuery 1.1.2 to 1.1.4. Just to begining I got some error when I load some pluguins. All errors are related with $... I used: script src="/InmoFusion2/libs_Ext/jquery/jquery.js"></script> <script> jQuery.noConflict(); </script> And then : <script src="/InmoFusion2/libs_Ext/jquery/deserialize.js"></script> When I try to execute the same code with 1.1.4 I get some errors: By example loading jQeury-calendar.js Runtime error: $.fn is null or not an object...
[jQuery] FadeIn problems
I have a page with several DIVs, and inside each DIV are paragraphs and headings. On the side I have a list of named anchors. My script adds an onclick event to the anchors that hides all of the DIVs, then fades the selected DIV. It looks fantastic in FireFox, but there's no fade in IE6 or IE7. And the kicker is Safari fades the DIV in, but when 100% opacity is reached, all of the paragraphs float to the top of the containing DIV, as if their positioning property was switched to absolute. Here's
[jQuery] Performance from 1.1.2 to 1.1.4
I am doing some test in order to migrate from 1.1.2 to 1.1.4... and I got some "strange" result. I have two combo, when you chose an item in the first I load the related items in the second one using an ajax call. With 1.1.2 I spend 1 second to load the second combo... With 1.1.4 I spend 8 seconds.... Any explanation?
[jQuery] Stopping a link from forwarding
I have the following code and was wondering how you stop a link from forwarding to the url when clicked? I'd assume it'd go inside the click, but couldn't find a way looking through the Visual jQuery. $("#pnav li a").click(function(){ $("#article").slideUp("slow"); }); Also, not sure if anyone will get this message. This is the 3rd response/post I've tried that has not appeared. I've waited to see if they post, but never do.
[jQuery] Possible bug in slideDown()?
I just added comments to my blog: http://www.andyandjaime.com/ When the user submits, it posts to my processing page and sends back a string, which I then display inline. I put the comment there, then use slideDown() to show it. When slideDown() occurs, the form used to post the comment also slides down (as you would expect). But the submit button slides down below the bottom of the container element. Does anyone know why this is happening?
[jQuery] cluetip issue
this is my cluetip code: $('#trip_builder_popup').cluetip({local: true, mouseOutClose: true, sticky: true, positionBy: 'auto'}); I want the box to appear in the same place every time but it is placed based on my mouse, how can i stop this as the demo page works like i want it to? -- View this message in context: http://www.nabble.com/cluetip-issue-tf4330231s15494.html#a12332590 Sent from the JQuery
[jQuery] It is possible to do in js with jquery?
Hi, don't know if it is possible to do something like this one without flash, but if it is possible can you give me some suggestion on how to do it? http://flash.html.it/movie/demo/824/effento-lente/ Thank you
[jQuery] Stop similar ajax requests?
Hi! I'm working on the next version of my web site macforbeginners.com and I'm having a problem with one of the site's features. Here's what I have created so far: I have a buch of articles with tags and I'm now developing a way to browse these tags. When a tag is hovered, I'm loading the articles which have been tagged with that tag into a div. It's nothing complicated really. When the matching articles are being loaded, a "spinner" appears, indicating that articles are being fetched. Now, here
[jQuery] Foo Framework, Rapid RIA Dev (for Prototype)
Hello all, I came across an application development thing that's built on Prototype called Foo Framework: http://foo.riiv.net/ It's fairly slick in that it takes valid XHTML and a very little bit of JavaScript to build fairly complex user interfaces. Personally, I think I'd prefer to do a lot of what it does on the server side, and the syntax is a little too much like XSL for my taste, but it makes for a pretty compelling demo. If you accept JavaScript as a requirement (which is reasonable, for many
[jQuery] Blueprint and jQuery
Building on the work done by matz in auto generating grids (http:// kematzy.com/blueprint-generator/). I've been working on a javascripty dynamicly resizing grid using jQuery. Have a look at the demo here: http://gsgd.co.uk/sandbox/blueprint/ Feedback much appreciated. Is it worth making available as a download? Worth a proper write up? I've not tested on Safari/Opera/Konqueror yet. Thanks, George.
[jQuery] Why jQuery over Mootools
I have been working with mootools for a bit the past few months and started to take a look at jQuery too see what the hype is all about from what i have heard from a co-worker. From what i see, jQuery does not offer anything that mootools does not. I mean jQuery does have $().click and i don't believe Mootools has anything like that, they just have the: $().addEvent('click', function(){}); However this is just a shortcut and not a major thing. On thing that jQuery has is that there are far more scripts
[jQuery] Problem with $(document) and actually with every $(...) call
First of all, thanks for this wonderful library. Then here is my problem. I updated my jQuery library in my application with the latest version (1.1.4) and I have the following issue: jQuery(document).ready(function() { jQuery("#user_name").focus(); }); works just fine, but my old: $(document).ready(function() { $("#user_name").focus(); }); The error I am getting is: $ is not a function. I mention that using jQuery version 1.1.3.1, the above issue is not happening. What is going on? Thanks
[jQuery] Why is the + being turned into a space?
Hello, I'm having a weird issue with data being passed through $.ajax. If I submit my form through normal means I do not witness the unexpected behavior. Only when I submit the form through $.ajax does it happen. The problem is that I'm trying to submit an email address with a + sign in it. Firebug even says that I'm submitting "email+email@domain.com" but PHP says that I've submitted "email email@domain.com". It would seem that this is PHP's fault since Firebug reports the correct data. But that's
[jQuery] Is there an autocomplete plugin that allows for a hidden field that does not show?
Hello everyone, I am new from prototype and scriptaculous and have been puzzled all day by trying to figure out this autocomplete business with jQuery. I have searched all over including the plugins page on the jquery website and cannot find what I need, an autocomplete field that will get the ID of the selection without showing it. A good example would be let's say we take the id a company was assigned to, say 3434. When the user clicks on that company, I want 3434 to be submitted with the form,
[jQuery] attr({'type':'hidden'}) in IE6
Getting an error when I tried to set a input attribute to hidden in v1.1.2, v.1.1.3.1 and v1.1.4. Using $ ("#inputID").attr({'type':'hidden'}) and $ ("#inputID").attr("type","hidden").
[jQuery] interface draggable and resizeable
Hi! I have a problem with jQuery interface library. I've got a 'script' which looks like that: http://tauri.ndl.pl/szaq/jquery/combined_2.htm I wanted to combine interfaces: Draggable and Resizeable. Everything is OK, but there is one problem - if #thumbnail is resized (to more than 130x130 px) and if I move draggable element to the bottom (near bottom border) [b]then[/b] if i want to resize thumbnail back to it's normal size (130x130), draggable elements stand still, in the bottom of #thumbnail.
[jQuery] How do you make a dive stick to the top of the screen even if you scroll down?
Hi all, I pretty much asked my question on the subject line but If it is not clear, read below: I want a <div> to stay at the top of the screen when you scroll up and down. This container div will have two divs inside, the upper one will contain 'tools' (links, serchbox, etc.), the bottom one will just contain a stub picture to toggle the 'tools' dive on and off. Thus normally the page has a small stub fixed at a top corner, when it is clicked a toolbar slides down. I wondered if this could be done
[jQuery] Help Traversing
<script type="text/javascript" src="jquery-1.1.4.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#comments span h5 a").click(function(){ var author = $(this).parent("span").next("p").text(); alert(author); }) }); </script> </head> <body> <div id="comments"> <div id="5"><span><h4>Minion</h4><h5>(<a href="#">Reply</a>)</h5></ span> Back to normal status </div> </div> I'm trying to figure out how to grab the text between the tags when reply is clicked.
[jQuery] Cycle Plugin
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face
[jQuery] Plugin Repository - Report New Bugs and Request New Features?
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey folks,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I was looking through the plugins at jquery.com/plugins/ and noticed that, even though the project pages have bug-report and feature-request tools built right in, hardly any of the plugins have anything entered for any of it. Kelvin Luck's plugins are the only ones I saw from a cursory skim through the list that are taking advantage
[jQuery] Wrong Width in Firefox
Hi, I have a gallery of images and when one is loaded it gets the width of the image and then sets the p tag underneath the image to the same width, the problem is in firefox, on SOME of the images, the width of the p tag is a pixel out, but in IE7 it displays everything correctly. here is a link to the gallery itself http://b0bd0gz.adsl24.co.uk/gallery2/ and here is a link to a screenshot of the problem http://img44.imagevenue.com/img.php?image=75951_wrong_width_122_861lo.JPG heres the code that
[jQuery] Improving jQuery Timers Applications
I am interested to hear any test reports for jQuery applications that are using AJAX, any animation for PCs that might have altered the system timer resolution. I posted an entry at my blog with discussing this, with a C/C++ utility you can use to test to see how your applications behave in normal sleep mode vs "fast Sleep" mode. http://santronics.blogspot.com/ Here is the fastsleep.cpp comments: // Utility to toggle the PC with Windows OS multi-media // resolution that speeds up the Sleep() quantum.
[jQuery] Adding a 'reset' feature to form
Hi all, I currently have your rudimentary HTML form. ( it's large and complex by nature, but lacks any fancy JS plugins etc. ) I was curious if there is a way to integrate a 'Reset All' button to clear all the values to their original values if possible, using some JQuery plugin? Something quick and hackish would work. Thanks all.
[jQuery] Passing variable in jQuery
I'm trying to get the text of what I clicked for later in the function, but can't seem to pass it. $("#pnav li a").click(function(){ var page = $(this).text(); $("#article").slideUp("slow", function(page){ alert(page); }); return false; }); If I test the alert before I go into the slideup it works, do you have to pass it a different way or am I doing it right just wrong, lol?
[jQuery] Ajax errors
I can't seem to figure out why this isn't working. request.php is working just fine. $(document).ready(function(){ $("input.search").keypress(function(){ $("select.make").removeAttr('disabled'); $("button.search").removeAttr('disabled'); }); $("select.make").each(function(i){ $(this).change(function(){ if($(this).val() > 0) { $.ajax({ type: "POST", url: "/request.php", data:
[jQuery] .ajax error, error object has responseText.
I've tried many things to fix this. In the error alert box I get: [{"id":"827","make_id":"96","name":"tC"}, {"id":"825","make_id":"96","name":"xA"}, {"id":"826","make_id":"96","name":"xB"}, {"id":"828","make_id":"96","name":"xD"}] Which is correct. $(function(){ $("input.search").keypress(function(){ $("select.make").removeAttr('disabled'); $("button.search").removeAttr('disabled'); }); $("select.make").each(function(i){ $(this).change(function(){ var
[jQuery] Can't post
I joined this group because I'm just starting to get into jQuery so I've had a few questions. I couldn't get a simple script working so I started a thread here: <a href="http://groups.google.com/group/jquery-en/browse_thread/thread/8637934b455f89bd/#"> http://groups.google.com/group/jquery-en/browse_thread/thread/8637934b455f89bd/#</a> Well I the jquery.js file uploaded to the wrong directory, my idiot mistake, well tried to reply and I couldn't. I've got better at problem solving, but stuck at the
[jQuery] An introduction to using JQuery with Lasso
jQuery is the topic this week for LassoSoft's _Tip of the Week_ (publishers of Lasso): ----- The tip of the week for August 24, 2007 introduces JQuery and shows how a simple newsticker plugin can be used with Lasso. The tip shows how Lasso can be used to automatically add the required JQuery elements to the head of the document. <http://www.lassosoft.com/Documentation/TotW/index.lasso?9302> ----- - Bil
[jQuery] amazon popup box
I am trying to create a popup box like amazon (the one you get when you hover over to see all categories). I was think that i would create a div that has absolute position and position exactly where i want it(as it will stay in the same place as the button will also). I would then create a hover effect on the over to show the box , i will explain the out hover function for this later. I would then create a out hover effect function on the div that is acting like a popup box, will explain the over
[jQuery] PDF docs for version 1.1.4
Following a request from Stefan Gabos, I've updated my PDF documentation for JQuery version 1.1.4: http://corky.net/dotan/log/2007/01/jquery-documentation-in-pdf.html I've got two PDFs, one for documentation in the JQuery distribution file itself, and one from the plugins defined in the build.xml file. The last time I did this, I created a file with documentation extracted from "all" the plugins, but I think the plugins directories are crammed with too much stuff for me to do this lazily. Hope people
[jQuery] How to create a nice looking autocomplete feature?
Hi there! I know there's a whole bunch of autocomplete modules out there, but I must say that there aren't a lot of nice ones. Facebook has one of the few, and it looks a whole lot like the one in Apple Mail [1]. How would one go forward to make a nice looking, multiple input autocomplete feature like the one in Apple Mail (or Facebook)?
[jQuery] how find this value
I have this table: <table width="98%" cellspacing="3" cellpadding="3" border="0" class="cnu"> <thead> <tr> <th><strong>Operatii</strong></th> <th><strong>TIP </strong></th> <th><strong>Denumire articol sau serviciu</ strong></th> <th><strong>UM</strong></th> </thead> </tr> <tr> <td><input type="button" class="button ccc" name="salvezidarticol" id="salvezidarticol" value="Salvez"/> <input type="hidden" value="1" name="codintern" id="codintern" class="codint"/></td> <td class="class_td"> <select id="idfelp"
Next Page