[jQuery] Is there a way to use ScrollTo after a series of other events?
<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:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] Carousel with external controls--help
Hi Jan, Thanks for the great plugin. I have a question on Carousel with external controls. Is it possible to have the external controls in a different page and make the carousel slide on another? I mean, if I click on an image/button in one page, then carousel related to that image/button should be viewed in another page. sth with onClick? It would be really nice if you could help me with this. Thanks! :)
toggle element's visibility to matching A class
I'm trying to make a "filterable" list. I have a dynamically created link list. I want the link to toggle the visibility of a matching element, dl's, class. When the "All" link is clicked I want it to show all the hidden dls. Does this make sense? The filter is for a list of events and I'm filtering the list by category. Should be pretty simple, but I'm very new to jQuery. function click_me(event){ var s = ".eventslist[id=" + this.id + "]"; $(".eventslist").toggle(); $(s).show();
jQuery: positioning a div with float
School assignment: - Add a new div with id promotiediv and put it next to the 2 other columns using float. To do this correctly, you need to calculate the available width in the container. Do this dynamically! This means that when you adjust values in the CSS file, your code won't fall apart. Use the correct methods to determine the width and don't forget about the margins!!!! - The new div contains an h3 with text 'promoties' and also a list where the elements are taken from an array. The initial
[jQuery] [validate] Remote validation
For remote validation, please show a code of check-email.php. I did not find any example. My code: $email=$_POST['email']; $existing_mails=array('mail1@example.com','mail2@example.com'); if (in_array($email, $existing_mails)) { echo false; } else { echo true; } does not work. Can you please show just small example of php code you wrote for the demo mentioned here http://docs.jquery.com/Plugins/Validation/Methods/remote#options
[jQuery] accessing 'caller' object within post
hi all, i'm having troubles accessing the 'caller object of an ajax post for instance function A () { this.avar; } A.prototype.myFun = function() { this.avar; // no problem here $.post(url,data,callback) { this.avar; // here is the problem (a) } } a = new A; --------- (a) can't access to 'this' obviously, any idea how i can do that without using 'global' variables ps: i think i post a message before i finished a little while ago .. sorry about that =x
[jQuery] accessing 'caller' object within post
hi all, i'm having troubles accessing the 'caller object of an ajax post for instance function A () { this.avar; } A.prototype.myFun = function() { this.avar; // no problem here } a = new A;
[jQuery] Hello world example - works in IE6; fails in firefox 3
Hi all, Any idea why this works in ie6 but not firefox? <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("a").click(function() { alert("Hello world!"); }); }); </script> </head> <body> <a href="#">Link</a> </body> </html>
[jQuery] Input type radio events
Hi, I'm newbie about javascript and jquery. I would like to know how can I change values of all input type checkbox to unchecked when the user changes the values to "No" answer of a input type radio. The code can be the following <form> <fieldset> <input type="radio" name="foo" />yes <input type="radio" name="foo" />no <filedset> <input type="ckeckbox" name="value" /> Value 1 <input type="ckeckbox" name="value" /> Value 2 </fieldset> <input type="submit" /> </fieldset> </form> Thank you. Regards,
[jQuery] Get all events registered for an element
Hi. As I understand, you can have custom events in jquery, like so - jQuery(elem).bind("custom", function(){}); Is there a way to see all the events an element has been registered for? -- sss http://sandesh247.googlepages.com Sent from: Pune Mh India.
[jQuery] Drag is very smooth on Firefox, but it is total screw on IE7!
I'm using jQuery UI for drag and drop and Mootol for sortable, b/c we don't use drag+drop_sort on the same element! It works very well in FF! The darging is very smooth! But in IE, it is very screw! It seems IE can parse/draw enough fast! When i dragging a item, it happens slowly. Look at this on IE7<br clear="all"><a href="http://www.trademerchants.com/delnow/kurei/ae/index_template.php">http://www.trademerchants.com/delnow/kurei/ae/index_template.php</a> And you will see my issue! Does anyone how
[jQuery] [Validate] plugin fails on Safari
Hi Folks, Wondered if anyone could help on this, I've been stuck on it for quite some time. I'm trying to validate a date field using a UK date, here's my code: $(document).ready(function(){ $('#arrival-arrival-date').datepicker({ minDate: new Date (),defaultDate: +1,dateFormat: 'dd/mm/yy',constrainInput: false }); $.validator.addMethod('ukdate', function(value, element) { var regex = /^(0[1-9]|[12][0-9]|3[01])[\/](0[1-9]|1[012])[\/] ((19|20)\d\d)$/; console.log(value.match(regex));
[jQuery] Problem with refreshing
Hello I having a problem wich I dont know how to solve. I have a list of users and each user listed have a button DELETE. When I click on that button, user is deleted. Now, when I delete user I want to update my list of users at same time. Problem is that when I delete one user, list refreshes properly, but the second time that I click on button user is not deleted. Here is my code: //this_file is the same file that contains this code. I tried #container but it is the same. //.delete is class for
[jQuery] jQuery in ASP.NET AJAX causes blank page
Hi, My page: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <!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 runat="server"> <script type="text/javascript" src="js/jquery-1.3.1.js" /> <title>hhhh</title> <style type="text/css">
[jQuery] jQuery messing with this?
I know that jQuery overwrites 'this', but I never had a problem with that until now. Maybe some of you know a better way or maybe I took a wrong turn somewhere. What I'm basically trying to do is to iterate selects (dropdowns), do something with them, and while I'm iterating selects, iterate options of a every select, it looks like this (except for the inside logic): $("select.zmiana_daty_wysylki").each(function (i) { var select = this; /* do some stuff to select */ select.find('option').each(function
[jQuery] jQuery Autocomplete Documentation for Eclipse JSDT/WTP 3 - JsDoc
I noticed while downloading jquery that there is a download of Visual Studio documentation so that you get code / autocompletion within Visual Studio. It would be really cool if you could provide documentation for Eclipse JSDT/WTP 3 that would allow the editor to provide code completion and "hover text" for jQuery. The following link takes you to the Eclipse JSDT wiki page where you'll find a "Libraries" topic that describes how to add libraries and code completion documentation to your eclipse projects.
[jQuery] Autocomplete and change event
Hi I've been using this autocomplete plugin http://www.pengoworks.com/workshop/jquery/autocomplete.htm for a while. It's been doing its job, but now I want to add a change event to that field, so - Autocomplete finds the value and - change event does some calculation based on that value (or the value entered straight by the user.) But autocomplete fires the change event of that field with its format functions. My question is if this is a known problem, if there is a quick fix, or if I have to deploy
[jQuery] ui tabs : what are the only necessary CSS files ?
Hi, I'm trying to use ui Tabs , but i don't need all the rest of the UI distribution, yet they all come into the generated download. I'm a bit lost in all those css files. What is the bare minimum css that i absolutely need to make the ui.tabs work? Thank you, Alexandre
[jQuery] Working examle of UI/Uploader
Pleas AnyBody send me Working examle of UI/Uploader on php. UI/Uploader hsn't any docs
Simple jquery function question [solved]
I'd like to ask what the "e" in the following function is for and where can I find the documentation on how to use it. $('a').click(function(e){ //what is the "e" in "function(e)" and how can I use it? }); Hope you can help me out as to what it is, what are it's properties/methods, and where is it used? I find this really interesting.
[jQuery] help to develop my Jquery Accordion
Hi, I tried for a few days to have a code "JQuery Accordion" for my menu as it is used in the Apple site. But I still have problems. So I found another nice code in the address: http://berndmatzner.de/jquery/hoveraccordion/index.php I tried to put the code to work on three levels: Menu1 Sub menu 1 Link 1 Instead of: Menu1 Link1 But always failed Any help please !!!!! I need it for my site ! all codes works nice for 2 levels but not well for 3 levels
[jQuery] Set select menu with current day
I have a var that gets set with the current day, so, today would be 22. Then, I have a select menu with all the days of the month. How could I set the selected item in the select menu to the current day that is in my var?
[jQuery] ajax loading animation attached to mouse
Hi, I'm looking for a plugin (or another easy way) to attach a custom ajax loading animation to my mouse arrow. I didn't find anything in the plugin list. Regards, Oli
Lightbox + js.js
hi .. i really need help for my little site.. http://contra-clans.net/ajax/index.html i wanna use light box and the js script that makes the slide in of the site.. but the big problem is that lightbox works just the frist time then you join the site.. then you switch to site2 .. lightbox just open the pic as a new link... so can some please post me the code that i need to put inside the html to fix this problem... it really drives me mad... working for 5 days on this problem... also i must say a
[jQuery] Internet Explorer 7 sending a POST instead of a GET request
$.ajax({ url: this.href, type: 'get', dataType: 'script', success: function(data){ I have a code like that work with all browsers buts not working with IE. IE is sending a POST instead of a GET request How do I fix this issue? Thanks
Chaining events
Hi guys I need to have load a page on a click function. However , I want the current divs children to fold out first . This is what aI have and its not working! $("a").click(function(){ $("#cont").children().hide("fold",{},1000).end().html("hello"); }); thanks
Dialogs and show/hide effects
Hi Everyone. I am new to JS, and ive been on it for days now without figureing out how to do this: I open a dialog box with a click on a link. Now, i want the dialog box to "open" up with an effect, for example blind. I can get the box to blind up/down when its already open, but i cant figure out where add the effect for it to do the effect each time i open/close a Dialog. I have tryed to put it in the ui.dialog.js under: destroy: function() { to get it to blind each time i destroy the Dialog, but
[jQuery] how to use sortable and dragable on the same element?
I'm reading about <a href="http://jqueryui.com/demos/droppable/#photo-manager">http://jqueryui.com/demos/droppable/#photo-manager</a> When i try to use sortable in the same element! I can not make it happen! When i move element to other place to sort it, the original element alwasy got back to original place! When i remove .dragable(), i can use .sortable! Does anyone know how to use sortable and dragable on the same element? <br clear="all"> -- /***************************************** @name Quoc
[jQuery] Problem with attribute setting in version 1.3.2
I have a tendency to build forms with separate buttons that require the form to have multiple action attributes. In previous versions of jQuery I would insert an event such as onclick="$( '#bookForm' ).attr ( 'action', 'index.php? pg=illustrations' ).submit ();" Functionally, I'm looking to do the same as onclick="form=document.getElementById( 'bookForm' );form.action= 'index.php?pg=illustrations'; form.submit();" but with less typing and easier to read. The jQuery code worked fine in version 1.2,
[jQuery] [Validate]e-mail validation
Hello everyone I notice that an e-mail address like admin@foo_bar.net seems to be valid for jQuery Validate (http://bassistance.de/jquery- plugins/jquery-plugin-validation/) but invalid for the PHP "filter_var" function (http://www.w3schools.com/PHP/func_filter_var.asp) The underscore caracter is valid in the username but is it valid in the domain name? I'm afraid jQuery is wrong here.
[jQuery] ThickBox - Dynamic resizing from within i-frame
I am using Thickbox to call an iframe... ie. <code> <a href="blah.html?&TB_iframe=true&height=400&width=400&modal=true" class="thickbox" title="blah">blah</a> </code> i am trying to use thickbox to display a series of i-framed forms that altogether comprise a survey. first, can i change the size of the parent thickbox from within the iframe? so, for example, if the following survey page has less text i can resize the thickbox accordingly.... if so, how? second, can you make aforementioned resize
[jQuery] jQuery UI Developer
Hello I know this isn't then general purpose for this list, but I've had a lot of trouble finding someone fluent with jQuery. By any chance, is there a good web UI developer out there with some availability and jQuery fluency? I live in the Boston, MA area. You don't have to live here, but I would give preference to anyone that has the right skills and can meet face to face occasionally. I'm rebuilding a 4 year old Internet radio web application which I feel is a big chaotic and dated. I have the
[jQuery] Best Eclipse plug-in for jQuery?
<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:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] Capturing CDATA from XML response
Hello, I've searched everywhere and can't find a specific answer to my problem. I have a certain function which posts to a backend.php file. The php file generates some XML which is returned to the callback function. The problem is that it alerts "<!--[CDATA[<li>Some element</li>]]-->" (it also adds hyphens) but it doesn't get appended. I've tried setting the 4th $.post parameter to "xml", changed the xml encoding, etc. Javascript: $.post("backend.php", { foo: bar }, function(xml) { var data = $("data",
[jQuery] problems getting HREF attribute in click event
can anyone help me to get the href attribute to send off with the function in this code please $("Item", xmlData).each(function(){ var title = $(this).find( "Text" ).text(); var url = $(this).find( "Url" ).text(); var desc = $(this).find( "Description" ).text(); $( '#wiki_article_list' ).append( '<li><a class="wikiLinks" href="'+url+'">'+title+'</a></li>' ) .click(function( event ){ event.preventDefault();
[jQuery] Validation - Creating groups on the fly
I just played with groups and error placement with the Validation plugin. It worked perfectly. I'm trying to combine it with some code that adds form fields dynamically. The validation plugin has an api to let me add rules, which works fine, but I don't seem to see a way to add groups. Am I missing it?
Select from 1 list, move to another then saving selection
I'm trying to create the following: I've seen a lot examples using a drag and drop cart method which is a little too dependent on the user's ability than what I need. Basically there will be a large list of options on the left side from which the user can select. Once selected, they can press the "right arrow" button which moves those selections from the left hand side to the right side. If unsatisfied with any of the selections, they can reverse the process the same way. Finally, a save button will
[jQuery] How to animate after a fadeIn??
Hi all, i am trying to animate poll bars after/during a fadein I have a animateResults function, handlePoll function. I have checked animateResults() and it works when i am not using it in an ajax structure ---------- function handlePoll() { $('.error').hide(); $(".voteBtn").click(function() { var poll = $("input[name=poll]:checked").val(); //alert("send selected: "+poll); if (poll == 'undefined') { alert("don't post"); $("label#poll_error").show();
[jQuery] Question about Select working with array
So I'm having trouble figuring about how to use the input from a select object onchange to pull a matching piece of data from an array and use it to change some text on a page. I've isolated what I'm trying to do on this page and commented it pretty thoroughly: http://www.tscplcommunityconnect.com/beta/pulldown-array-helpme.htm I just can't seem to find a tutorial on how to take the value from the select box and pull it's match from an array that I set up. Any help will be gratefully accepted. Thanks,
[jQuery] animate CSS margin shift onclick
Hi When an <h3> that is the header in an accordion is clicked, jQuery adds an "active" class to the h3. The stylesheet then assigns h3.active { left-margin: -25px } I would like to animate the 25 px shift from the default left-margin: 0px to -25px, and also animate the return back to 0px when another h3 header has been clicked. Can anyone help me with that code? Thank you
Next Page