[jQuery] beginner selector question
hello, I'm wondering if there is such a thing as: $("div").hover( function(){ $(this."p").show(); }, function(){ $(this."p").hide(); } ); I know the above code is useless because of the use of "this" but I wonder if there's a selector that does this? the objective would be to show/hide the paragraph inside the div which is being hovered <div> <h1></h1> </div> <div> <h1></h1> </div> <div> <h1></h1> </div> ... thank you
[jQuery] error with $(this).val(value) in IE 6.x
for some empty select elements inside form and table I've done something like that: $.each( $('#form_table .mt_type'), function() { elemId = $(this).attr('id'); //alert(elemId); $(this).html('\ <option value="0">-- wybierz --</option>\ <option value="1">val1</option>\ <option value="2">val2</option>\ <option value="3">val3</option>\ <option value="4">val4</option>\ '); // both of following give me error in IE6, FF and Opera report no problem. $(this).val(0); $('#'+elemId).val(0); } ); I set the val
[jQuery] ajax textStatus documented?
Is ajax textStatus documented anywhere? I am looking for a list of textStatus values.
[jQuery] Tabs 3 Ajax issue
Hello dear JQ community, I'm having some problems regarding the Tabs 3 Plugin: My page has a div container called "maincontent" which contains all the data except the navigation, footer, etc. I use this container to store content served by my phpscript and to load other content dynamically via AJAX. Let's say I request a page like index.php?action=showusers (as a HTTP GET request, NOT AJAX) Then "maincontent" should contain all the info about the users. However, I also integrated a navigation based
[jQuery] Photo Crop proposal
Hi, (pls excuse dbl post) I would like to get feedback on: 1) Would a photo crop plug-in be useful to others? 2) How doable is it in JQuery? 3) Would anyone be interested in a bounty on it? ($$$) Please see the video of my prototype here: http://www.hdgreetings.com/view.aspx?name=JQuery%20Crop%20Prototype&video=http://download.hdgreetings.com/crop.flv So the basic features are: - Photo cropping with aspect ratio locking - Face cropping (elliptical crop) - Straighten photo with real time adjustments
[jQuery] New to JQ
Hi All, I'm a newbie to jQ and would like to use it/implement for a site. The goal i'm trying to achieve is similar to site http://www.mariusroosendaal.com/ in appearance but in functionality i would like it to load content via Request and then slide the box down with the containing content while simultaneously closing any open ones. Here's what i have so far: <script> $(document).ready(function(){ $("headline a").click(function(){ $(".content:visible").slideUp("slow"); $(this).parent().next().load("test.xml").slideDown("slow");
[jQuery] DataTables plugin
Hello all, I've recently being trying out jQuery for the first time and it has been absolutely outstanding. I'm currently working on a project that needs tables with filter, pagination, sorting etc, and I found that no one plugin does all of this, so I thought it would be interesting to try and create my own. As a result I've bashed out the DataTables plugin, and I thought it'd post it to see what you all think! http://plugins.jquery.com/project/DataTables Thanks Allan -- View this message in context:
[jQuery] DataTables plugin
Hello all, I've recently being trying out jQuery for the first time and it has been absolutely outstanding. I'm currently working on a project that needs tables with filter, pagination, sorting etc, and I found that no one plugin does all of this, so I thought it would be interesting to try and create my own. As a result I've bashed out the DataTables plugin, and I thought it'd post it to see what you all think! http://plugins.jquery.com/project/DataTables Thanks Allan -- View this message in context:
[jQuery] Error when tablesorter is applied to empty table
I'm using the tablesorter plugin in a web application that sometimes outputs empty tables. I'm trying wherever possible to catch these instances and skip the output of the table altogether when necessary, but it begs the question: Is there a way to avoid errors when tablesorter tries to sort an empty table? Thanks, Owen
[jQuery] beginner question on show/hide and reusing functions
I'm new to (writing anything myself with) jQuery, so bear with me if this is a boneheaded question. I'm trying to build a box that starts with six options, then if you click one of them, that content fades out, and is replaced with the content for that option. (You're given a different search box for each one). This is the code I have to show and hide. It sort-of works. It's certainly not optimal. In the actual code I have five more of that second function, each one specific to the div that is revealed.
[jQuery] jTip
Hi Group! I am very new to jQuery, and I need help! I am trying to make jTip work the way i want. I found this http://15daysofjquery.com/jquery-tooltips/21/ and from that I made this http://www.visual-astma.dk/js/ And with a few modification I almost got it working the way I want... But what do I want? Yes, I want a "tooltip" that you can move the mouse over and when the mouse leaves the tooltip it fades out. This part works! Hurray! But when you leave the link without touching the tooltip, the tooltip
[jQuery] How to use data() ?
Hi :) I was interested to see the new data method (is it a 'method'?) and imagine I should be using it with the shopping basket I'm building. But I can't work out how to use it properly! I presently have code like this: $( 'form.basket .productchoice:last[value]' ).val( productid ) ; $( 'form.basket .myproduct:last > span' ).html( product ) ; $( 'form.basket .description:last[value]' ).val( number ) ; $( 'form.basket .price:last[value]' ).val( unitprice.toFixed(2)
[jQuery] Simple AJAX Call to Google Maps
I'm having trouble taking various fields from a form, concatenating them and then sending it off to do a local business search on Google maps. I'll send the results to a lightbox for users to click, which will return the location information to another text field. Sorry, i'm new to the jQuery/JS scene! Any ideas to go forward? Thanks!
Innerfade Crashes Safari 2.0.4
Hello, I'm having a problem with the innerfade plug-in causing Safari 2.0 to crash. It works fine on every other browser. I'm also using the the perciformes suckerfish plug-in on the same page. As soon as Safari tries to load the page it crashes, if I relaunch the application the page will load and work fine. I'm using Safari 3, but my client still uses 2 so I need to find a solution. Any input would be greatly appreciated.
[jQuery] Loading a js file with the ajax content
i already have a base javascript file containing $ (document).ready()...... but i am loading a content using ajax into a div container for those items i just need to load a js file with a $ (document).ready().... can any one help me.... regards vimal das
[jQuery] [autocomplete] Multiple values to autocomplete
hi guys, i m new in the list, i want to know how can i add multiple values using autocomplete in a single text field, just like gmail when we add email address in to field. can i capture a keypress event, so that a list is again opened when i press a seperator ? Please let me know thanks :)
[jQuery] livequery help
how do i access the url of an <a> tag matched by jquery? when i was not using livequery, i could just do $(item)[0] but that doesn't seem to be working anymore, as its returning an http document now. here's my code: container.find("a.vote").livequery('click', function(e){ e.preventDefault(); $.post("http://www.shadowpush.com/vote4/", {vote4: $(this)[0]} , function(data){ $("#table").html( data ); }); }) suggestions? thanks
Help With this Ajax function !!! Please
Hi .. why this function does`t work [code] <script> function loadpage(url, div) { $(div).html("ccccccccc"); } </script> <a href="#" onClick="return loadpage('aaa.htm', 'subcontent');">test</a> [/code] How , why ... Many Thanks!!!
[jQuery] Modal Dialog in blockUI
Is it possible to show an external webpage inside of a blockUI modal dialog? I'd like to call another page via ajax and populate the dialog instead of using a reference to a hidden div, etc.
ajax trouble :(
So I have a little form that allows you to add a new category to the site using ajax. When I actually try and use this code below it just alerts an error. When I manually type in the url that it's posting it returns the proper XML document that I need. But if i use the ajax the error function alerts. Any ideas why? $(document).ready(function(){ $("#cat_btn").click(function() { var cat = $("input[@name=new_category]").val(); if(cat != "") { $.ajax({ type: "POST",
[jQuery] livequery help
hi, how can I access the URL of an <a> tag - when I was using the non- livequery version of this ajax form, I could just use $(this)[0] but that's returning an html document now, and $(this).href is undefined. var container = $("#table"); container.find("a").livequery('click', function(e){ e.preventDefault(); $.post("http://www.domain.com/vote4/", {vote4: $(this)[0]} , function(data){ $("#table").html( data ); }); }) much appreciated
newbie question
<div id="content"> <table> <tr><td><a href="xxxx">under table</a></td></tr> </table> <a href="y">just hyperlink</a> <font>somthing <a href="y">under font</a></font> </div> I want to addClass to all hyperlink under #content how could I?
[jQuery] jquery docs - example not working
why does this jquery example for val(val) of radio buttons not work ? http://docs.jquery.com/Attributes/val
[jQuery] textarea remplacement
Hi, I'm searching for a textarea remplacement. Thanx for your help
[jQuery] validating dynamically generated data
I need to validate some dynamically generated form data to ensure clients can't order more of something than we have in stock. I can't set static comparisons. Here is my html: <form action="addtocart.php" method="post"> <input type="submit" class="addtocart" value="add selected items to cart" /> <div class="instock"> <h4>manual 1</h4> <div class="qty" title="90">90</div> <input name="150" type="text" id="150" class="order-qty" /><label for="150">Qty:</label> </div> <div class="instock"> <h4>manual
[jQuery] [autocomplete] Hyperlinks in returned list
To follow up from the discussion on: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ @Chris THANKS! your solution works eactly how I was hoping, a nice touch disabling the textfield... @Jorn: Top quality work. Thanks for the swift response. I have implemented the solution provided by Chris. If there is another way please let me know. The example is now live at: http://www.theINtoy.co.uk, try using gerrard as the search string. Cheers
[jQuery] preset selection of radio buttons
what is correct way to preset selection of radio buttons? <!DOCTYPE html> <html> <head> <title></title> <script src="/lib/jquery/jquery-1.2.3.min.js"></script> <script src="/lib/jquery/jquery.field.js"></script> $("#radioname:checked").val(["0", "1"]); }); </script> </head> <body> <div> <input type="radio" id="radioname" name="radioname" value="0" /> <input type="radio" id="radioname" name="radioname" value="1" /> <input type="radio" id="radioname" name="radioname" value="2" /><br/
[jQuery] jQuery Conference
Just watched John's video on What's Next for jQuery and Javascript ( http://vimeo.com/984675 ) and he mentioned a conference. I will definitely be attending, but need to know where I'm going and when! Anyone have any details on this?
[jQuery] Superfish pathClass problem
http://www.i-cre8.co.uk/sf-menu/index.php I have a demo menu here which I have applied the pathClass option to but the current class is not being applied. why ? The links that have attached pages are Link One, Longer Link 2 and Sub 2.1, have I done something wrong ? Regards, Dave Buchholz I-CRE8 http://www.i-cre8.co.uk Skype: I-CRE8
[jQuery] Syntax confusion
X-no-archive:yes Is the comma after line 1854 valid syntax or is it an error? // Init the element's event structure 1854 var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}), 1855 handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){ 1856 // returned undefined or false 1857 var val; 1858 1859 // Handle the second event of a trigger and when 1860 // an event is called after a page has unloaded 1861 if ( typeof jQuery == "undefined" || jQuery.event.triggered
[jQuery] preset selection of radio buttons
(I hate this google group -- can't edit posts) I need to know how to preset multiple radio buttons Revised sample code: <!DOCTYPE html> <html> <head> <title></title> <script src="/lib/jquery/jquery-1.2.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#radioname:checked").val(["0", "1"]); }); </script> </head> <body> <input type="radio" id="radioname" name="radioname" value="0" /> <input type="radio" id="radioname" name="radioname" value="1" /> <input
[jQuery] Has anyone ever done a newsletter signup?
Hello. I'm trying to patch together something like the newsletter signup on http://www.gimme.no except with jQuery and perhaps Facebox. I haven't gotten around to finding the PHP code I'll be needing either. When I do, it'll probably be something so bloated that I'll have to spend hours trying to clean it up. I'm just curious if anybody's already done this and presently feel happy enough to maybe share their code with me? Much obliged, Kyrre
[jQuery] function not showing scrollbars in IE6
I've got a page that has 3 forms on it and using a dropdown to select which form to show. It's letting the admin create 3 other types of users. It works fine in Safari, Firefox and IE7, but in IE6 when a form is shown that expands past the bottom of the page, it displays everything, but the window's scrollbars do not appear. If I manually resize the browser, it still doesn't show scrollbars, but will show all of the content. I've tried turning the display to none and then back to block on the main
[jQuery] need some help with selecting text nodes
Hi everybody, new member here. I have a project with the following snipped of code: =====start html===== <div class="line"> <div name="tln4" id="tln4" class="ln tln"> <!----> </div>As I remember, Adam, it was upon this fashion <div name="tln5" id="tln5" class="ln tln">5</div>bequeathed me by will but poor a thousand <div name="tln6" id="tln6" class="ln tln"> <!----> </div>crowns, and, as thou say'st, charged my brother, <div name="tln7" id="tln7" class="ln tln"> <!----> </div>on his blessing, to
[jQuery] droppable() question
I have a list of pictures that I would like to allow the user to drag and drop to a trash can. All works fine except an unwanted get request is made on the picture, after it is trashed. Here is the code: ============ $(document).ready(function(){ $(".photos img").draggable(); $("#trash").droppable({ accept: "img", drop: function(ev, ui){ var url = window.location + "/photos/" + ui.draggable.attr("id"); $.post(url, {'_method': "delete"}, function(){ $(ui.draggable).remove(); }); return false; } });
[jQuery] event data ?
Hi I got a problem ... I have more than 1 buttons and each buttons has unique name. I assign / bind the button with function like this : $('.mybutton').bind('click',function(btn){ alert( btn.id); } ); every time i click on the buttons the alert always show undefined. How to get the ID of button who clicked ? i want to get the id, change the button to disabled ... how to do that one ... and what is event.data actually is thanks !
[jQuery] [treeview] Giving more parameters to the async load function ?
Hello, In the treeview plugin in async mode, a parameter "root" is given to the json call in the file jquery.treeview.async.js, it helps identifying what branch of the tree is requested. But I am trying to handle all my application's tree by the same servlet (same url parameter from treeview script), but with just the id of the node, it is not possible. So I was trying to get this work but didn't find a "best solution". What I first though about setting "richer" id, by adding some more information
[jQuery] Firing a jQuery function from loaded content via the load method
Firing a jQuery function from loaded content via load method. It seems to work fine in FF and IE but Safari wont make it happen :( Thanks for the help.
[jQuery] [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S.
[jQuery] Background image change fade transition
Hi all I've just started using jQuery (it's great!) and I'm looking to re- factor what I have written to have a fade transition between each image change. Any ideas would be greatly appreciated! My code is below, many thanks in advance! :) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script
Next Page