[jQuery] click function
$(".status_actions img").click(function(){ console.log("clicked!"); console.log($(this).attr("alt").val()); }); It puzzles me as to why this does not work...
[jQuery] Loading external files
How do I make sure that my script doesn't execute the $ (document).ready() function until all of the external xml files that it's referencing are loaded? I have a framework that looks something like this: <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> var myXmlDoc; $.get('markup.xml', function(data) { myXmlDoc = data; }); $(document).ready( function() { $('#name').autocomplete($('#username', myXmlDoc).get(), { /* options */ }); $('#department').autocomplete($('#dept',
[jQuery] how to delete div individually
I need to know how to delete div individually, after some research I couldn't find nothing concrete. I did a comment system using jquery and it's working like a charm, but now when I logon as admin... I am displaying a link in the corner of the comment that says "delete" what i want to do is click delete jquery sends delete.php via ajax i know how to do this then div dissapears.... the only problem I'm having is getting the right div into the javascript function, I am very new in jquery and I had
[jQuery] Slide effect
Hi! I try make slide effect for 2 tables one table hide, in this time other table show... How I try make it: ================================================================================= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="js/jquery.js" type="text/javascript"></script> </head> <body> <br /><br /> <table cellpadding="0" cellspacing="0" border="1" width="300" height="400"> <tr> <td valign="top"> <table
[jQuery] jFrame does load with IE7
Hi All... Great to be here... So, I've finally managed to get my some lumbering code I pieced together to work with FF3. Doesn't do a thing in IE7. I know I'm not giving much to go on though I would love to hear that other are having similar problems before I attempt to be clearer. Many thanks for reading!
[jQuery] how to delete div individually
I need to know how to delete div individually, after some research I couldn't find nothing concrete. I did a comment system using jquery and it's working like a charm, but now when I logon as admin... I am displaying a link in the corner of the comment that says "delete" what i want to do is click delete jquery sends delete.php via ajax i know how to do this then div dissapears.... the only problem I'm having is getting the right div into the javascript function, I am very new in jquery and I had
[jQuery] Designing ajax applications / DOM issues
I am getting started with jQuery and I think I understand the basics. I want to get into ajax and while I can communicate with the server I don't know exactly how to structure my application so that everything fits together. What happens is that I would try to apply effects to elements that don't exist yet. For instance if I would try to assign click event handlers to certain elements within the DOM and these elements may not exist when the document loads as some of the elements are read from the
[jQuery] Simultaneous animations
This is my code: <style type='text/css'> .kwick-ul { padding:0; list-style-type:none; } .kwick-li { margin:0; display:inline-table; padding:0; border:none} .kwick-div { margin:0; overflow:hidden; width:60px; height:20px } </style> <ul class='kwick-ul'> <li class='kwick-li'> <div class='kwick-div' style='width:60px'> <div>Menu 1</div> </ div> </li> <li class='kwick-li'> <div class='kwick-div'> <div>Menu 2</div> </div> </li> <li class='kwick-li'> <div class='kwick-div'> <div>Menu 3</div> </div> </li>
[jQuery] jQuery Cycle problem in IE6...
...I apologise for raising a problem in such an old browser, but unfortunately I have no choice... I am writing a few pages for a school site and am having a problems with 1 particular page in IE6 - all works perfectly in the other browsers I have available for testing, i.e. IE7, Firefox3 (Mac+PC) & Safari 3 (Mac+PC). The page is at: http://northbaddesley-inf.hants.sch.uk/nbis/governors/aims.php Amongst others ;-) the page uses Mike Alsup's excellent Cycle plugin to "shuffle" some flash cards in
[jQuery] ajax request with datatype:script
I am trying to insert array elements through ajax request, these elements are also arrays or multidimensional arrays. here is an example main script : var list = []; $.ajax({ type: "POST", url: 'http://example.com/ids.js', data: "id=1" , dataType: "script", success: function(data){ alert( list[1][0] ); } }); ids.js contents: list[1] = [['aaa', 'bbb'], ['ccc', 'ddd']]; that would produce ' list is undefined' error but changing datatype to 'html' and adding eval() would work fine var list = []; $.ajax({
jQuery UI Tabs(ajax): Open a link in the current tab
Hi, I'm using the jQuery UI tabs with ajax page loading. so this kind of code for the tabs <div id="example" class="mytabs"> <ul> <li><a href="albums1.php">Album1</a></li> <li><a href="albums2.php">Album2</a></li> </ul> </div> Let's say that the tab displays pictures. If the user clicks on an image, I would like to open a new php file in the same tab (replacing the old content) displaying the pic and some infos How can I do that? Thx Chris
[jQuery] Works in FF but not in IE6
The following code works completly in FF but only partially works in IE6. The following line executes fine: $("#LHNav ul").hide(); but the next line: does not. $("#LHNav li:not(:has(a))").css('color','red').css('cursor','pointer').bind("click", function(){ showHideMenus(this); }); I whittled it down to just $("#LHNav li:not(:has(a))").css('color','red'); and it still did not work in IE. Any ideas? <script type="text/javascript"> $(document).ready(function() { setUpMenus(); }); function setUpMenus(){
[jQuery] jqmodal set trigger to radio button ?
How do I set jqmodal to trigger when a radio button is selected? I've been trying something like this and the result is that the checkbox has to be checked and then clicked in order to get launch function launchChecked() { $("#ex2").jqmAddTrigger(":checkbox"); } launchChecked(); $(":checked").click(launchChecked); I would prefer radio button, but checkbox is fine as well. -- View this message in context: http://www.nabble.com/jqmodal-set-trigger-to-radio-button---tp19713178s27240p19713178.html
[jQuery] Valdiation plugin request
Hi all, I am successfully using the validation plug in and i would like a request to make it more easier to have a form in several different "divs" for a multi step layout. I solved a multi page form by filling in already the values of the step2 and 3 inputs and then validating it and then when the user goes to step 2 or 3, clearing the fields. Would it be nice if there can be like a "ValidationAdd" function where you can add validation rules dynamically, so you can make a multipage form easier.
[jQuery] jQuery.getJSON response not working with IE (works perfectly in firefox,safari...)
Below is a simple jQuery.getJSON call for fetching json data through jQuery but issue i am facing is that below code works perfectly fine in firefox,safari but breaks in IE-7. I have an alert in the call back function for json response which works in firefox but in IE-7 it does not give any alert.Neither does it gives any js error. Seems control isn't coming back to the call back function. Any help would be highly appreciable, i am using jquery for the first time and really found it great except
[jQuery] NEWS: jQuery, Microsoft, and Nokia
The jQuery Project is pleased to announce big news regarding new support for jQuery from Microsoft and Nokia: http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/ Rey jQuery Project
[jQuery] $('a').css('hover:color');??? - trying to retrieve a:hover color from an element.
Hello, I'm building a plugin which requires me to retrieve the css hover color from an a element. Is this possible? Something like "$ ('a').css('hover:color');??? Any ideas would really help out. Thanks. -Aaron
[jQuery] retrieve the a.hover from an "A" element with jquery?
Say I wanted to retrieve the "a:hover's" color style, would jquery be able to handle this? Is there something like this? $("a").css("a:hover color") that would return the hexadecimal color value? -Aaron
table row slide up/down
I'm using some ajax to "expand" an item in a table, using the .after functionality of a table row, and similarly the .remove functionality to "collapse" those rows. This works fine. However, I would like to gold plate it a little bit: I'd like the rows to slide down and slide up on expand/collapse respectively. I couldn't figure out how to do this .after, and using .slideUp instead of .remove on each row kinda works, but the table looks all screwed up during the transition. Here's some relevant source
[jQuery] mootools and jquery conflict....
Hello, I have a page here where the ScrollFollow plugin for Jquery is conflicting with the phatfusion plugin in mootools. The scrollfollow is on the bottom left ribbon button. The phatfusion is on the 4 vertical photos you see in the banner area. http://67.199.21.74/default.asp I have read the page where how to fix it but I must not be doing it right. The phatfusion is working but not the scrollfollow, which works if I take out the phatfusion code. I have this in the head.... <link href="imageMenu2.css"
[jQuery] igoogle like portal in jquery, see this prototype flavor
I am using this script that is based on prototype for some portal capability - http://blog.xilinus.com/2007/8/26/prototype-portal-class <-- post - http://blog.xilinus.com/prototype-portal/test/index.html <-- demo Has a jquery guru out there done something similar?? Thanks
[jQuery] How can I use "remote" option in asp.net
Hi, everybody I have some questions for the "remote" option in asp.net page, If I have some value need to be verified in order to make it is unique, for example: ..... ..... userName:{ required: true, remote: "verify.aspx" } about the verify.aspx, I don't know how to output the result. I appreciate you feedback. thanks,
[jQuery] Resize issue
I'm trying to build a site that allows the elements on a page to be perfectly centered (horizontally/vertically). When the user resizes the window, I want the elements to stay centered and move with the resizing. Please see this page to see what I am talking about: http://www.stellamccartney.com/us/en/stellasworld/ Any help would be appreciated. When I try to resize my pages, the divs stay stationary.
[jQuery] puzzles with "siblings"
the following is the example taked from "http://docs.jquery.com/Traversing/siblings#expr" The third li in the first ul does not colored with red in my FF3.0.3 and IE6.0 I supposed this is a bug. by the way, the style in IE6.0 is ugly <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ var len = $(".hilite").siblings() .css("color",
[jQuery] [Beginer]why this script failed?
HI: I paste my script below: <html> <head> <script src="http://code.activestate.com/js/jquery-1.2.1.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> function onLoad() { var frame1 = $("#frame1"); alert("1"); var innerDoc = (frame1.get(0).contentDocument) ? frame1.get(0).contentDocument : frame1.get(0).contentWindow.document; alert("2"); var b=innerDoc.body; alert("3"); alert(innerDoc.body.scrollHeight); } </script> </head> <body> <iframe id="frame1" src="http://www.baidu.com"
[jQuery] frames['results'].location.href > jQuery
Hi, I have this line frames['results'].location.href = in my code. Can someone perhaps tell what this line would look like when I want to use jQuery to change the src of an iframe-element?
[jQuery] Traversing table
Hi! I've got a table with multiple rows which I'd like to traverse in a special way - here's the html (for better reading, I just included two rows, these rows are duplicated with different values): <tbody> <tr class="pricing"> <td>Example A</td> <td><span class="price">1,20</span> €</td> <td><span class="price">2,40</span> €</td> </tr> <tr class="calc"> <td>Calculator</td> <td><input /><span class="result">0,00</span> €</td> <td><input /><span class="result">0,00</span> €</td>
[jQuery] add/remove with ordered information
i have built a simple add/remove chapter form. when "add new chapter" clicked; ajax get fired, retrieves php file, and appends new chapter. newly appended chapter is a <li> added to ol#append-chapter. the script also keeps track of chapter count and displays current chapter count in h4. issues: 1. when i remove a chapter, it does not recalculate the number of chapters on the page. say i click add chapter 4 times (1, 2, 3, 4), if i remove chapter two, my list reorders to (1,3,4) and if i click add
[jQuery] My scripts executes two times a controller
Hi, All my controllers which are located in the default module extends 'MyZend_Default_Controller_Action' which extends 'MyZend_Default_Common_Action' which finally extends Zend_Action_Controller When I do a request for the main page (IndexController/indexAction), the scripts executes once the 'MyZend_Default_Controller_Action', but when I try to execute another controller, 'MyZend_Default_Controller_Action' gets executed twice ! I can't understand why ... I do not even know how to debug this behaviour,
[jQuery] i was patient, now i'm frustrated
How long does it take to sort out hosting issues? 1 month, 2 months? I've been reading all the comments from frustrated developers who are unable to do their job because the jQuery site does not load. I thought those people should understand the situation and be patient. Now it's my turn to complain, because now this is affecting my job. Media Template obviously don't have the knowledge or capacity to correctly host a high traffic site. What's the problem, really, i'm curious why this SERIOUS issue
[jQuery] re[jQuery] -bind, only on first "add"
Hi I have some problem to re-bind after adding data to a page using append and a click-function, never used that before! If I add one "textTag" that one can use the "removeTag" but if I add more then one "textTag" I get alla the alerts "test" on the first add and the rest gest none?? Some advise please/ Johannes // globals var i = 0; var tagArr = []; var theTag = ''; // ad new tag $('#addTag').click(function() { // grab the tag var textTag = $("#textTag").val();
[jQuery] Scrolling animation problem in Safari
Hi, Firstly, excuse my newbness if I am asking a stupid question. I have a click function on a list span that scrolls down to the top of the list to make sure the about to be revealed content is in the viewport and then shows the content. My problem is that in Safari, Opera & Chrome, when another list span is clicked, I get a nasty flash of the top of the document,(in Opera's case it scrolls up and back down again) whereas in FF & IE7, the page stays put and the next div is revealed nicely. I figure
[jQuery] problem with mouseover / mouseout
I'm trying to make script that has faded image at start 30%, after hover sets opacity to 100% and on mouse out puts it back to 30%. so i did this: $(document).ready(function(){ $('a.view').fadeTo('fast', 0.33); $('a.view').mouseover(function () { $(this).fadeTo('normal', 1); }); $("a.view").mouseout(function () { $(this).fadeTo('normal', 0.33); });
[jQuery] suggestion - enable() / disable() functions
Dear all, I like jQuery much but I do not like the way the enabling, disabling elements is handled. This is a pretty common task and the current solution based on changing attributes is not in accord with jQuery’s “write less” philosophy. The enable() / disable() functions would be MUCH more elegant and in light with the jQuery gospel. Could this be included in the next release ? Best Martin
[jQuery] jquery.form not working (comment system using jquery)
Im trying to integrate a comment system using jquery into my project but it doesn't work I need some help finding where the error could be: javascript: <script type="text/javascript"> $(document).ready(function() { jQuery('#newComment').after('<div id="error"></div>'); jQuery('#submit').after('<img src="http://192.168.0.5/flog/ loading.gif" id="loading" alt="loading..." />'); jQuery('#loading').hide(); var form = jQuery('#newComment'); var err = jQuery('#error');
[jQuery] Control form submitting
<div dir="ltr">Hi all, is there some way how to control form submittin within succes or error calback functions within beforeSubmit callback function? In my my code I validate form data at client side, when form is valid I send data to server by callback function beforeSubmit. Server does another validation and return response. By this response I need to decide whether to submit or do not submit. But then (I guess) I cannot control return value by beforeSubmit function. $(document).ready(function()
[jQuery] R: [jQuery] mouseover / mouseout
<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Ifixer try this $('a.view').css('opacity',0.33); $('a.view').hover(function() { $(this).stop().animate({ opacity : 1 }, 600); }, function(){ $(this).stop().animate({ opacity : 0.33 }, 800); }); <a style="color: rgb(91, 91, 91);" href="http://www.diegovalobra.com">Diego Valobra</a> --- <b>Sab 27/9/08, eewan <i><ifixer@gmail.com></i></b> ha scritto:
[jQuery] how to submit features to someone else's plugin (masked input)
Hello: I've added some features to Josh Bush's Masked Input plugin, but I can't seem to get in touch with him via his website. I've added a suggested setting, which suggests a character that would be used in a character position in the field, e.g. (".monthNumber").mask("99", {suggested: "0"} ) will fill in the first character in the field: 0_ and set the caret at the first non- suggested character. It also accepts a sparse array: (".incrementByHalfpoint").mask("99.9",{suggested:[,,,0]}) would initalize
[jQuery] Greetings from Boston/AJAX Experience
So i'm at the hotel bar of the conference's hotel for this weeks event, i'll be running some items on my blog with pictures and some talk of tomorrow's jQuery Event and then Mon-Wed's AJAX Experience Today is just a travel and relax day as I flew up from Florida this morning and am awaiting my cousin to get here so we can head over to Fenway Park for today's Sox/Yankees game (weather permitting, but should be good) For those coming in, these tropical storms are going to be an issue for most this
[jQuery] infinite jQuery
Hi all, I'm really excited about jQuery, just as all the rest here. I've found out that it is really easy to create an animation. However, one day I stumbled upon the following question: is it possible to run one animation infinitely (repeat one statement the whole time, in my case). Is that even possible with Javascript? And by this, I really mean: while(true); My webbrowser always seems to crash when I do infinite javascript. And I feel really dissapointed, because it looks like there is a constrait
Next Page