[jQuery] AJAX, Passing Array Data to $.get
Hi All, I have a form with approximately 20 text inputs in it. I want to pass the values in these fields to $.get all at once (as though I were submitting the form normally). So far I have: $.get("ajax-account.php", { action: 'amend', ARRAY HERE ? }, function(data) { // processing }, 'xml'); What is the easiest way to do this? Thanks, David
[Solved] Insert TR before another
Hi. My users can delete rows from a table when calling that script: $('.removeimg').click(function() { var t = this.id; $("#tr_"+t).slideUp("slow", function () { $.post("removepersqurl.php", { id: t } ); }); I now want to make a "undo" row where this row is deleted and I have no idea where to start. Thanks for your answers. Christian
[jQuery] Hi i want to bind function after ajax call.
Hi All, in my scenario i have use class on an element and attach function with that class, Now i am loading dynamic content into div .Problem is i want to bind again all the events which was use with class.So is there any way to rebind all the class event of DOM.Otherwise i have to do labour job to bind one bye one function with their class. thanks. MSK
[jQuery] jQuery security question
This may be a little off topic, or it might not be, becuase I'm not sure if this should be done through PHP or Javascript, or what. So please don't kill me if this isn't the right place to post this... Anyway, I wanna create a site that performs an algorithm on user inputed data. But I want the code to be completely unaccessable to any user. Basically the code will have value, and I don't want anybody to be able to steal it. So I need to create a page that will take the data and send it to the server,
[jQuery] Outer Empires - based around Jquery
Hello all, I've mentioned this from time to time in these discussion threads - but I'm back to talk a little more about it. My team and I have been building a browser (and iphone/ipod touch) based MMO over the past few months - the browser side of the game is almost entirely based on Jquery using Jquery's ajax methods and a number of the awesome plugins). Today we've posted a short video on youtube with a few in game bits and pieces for everyone to have a look at... the game is still a little rough
Weird Issue
I have been struggling with this Jquery-datepicker for a couple of days now. Well , right now im stuck with some weird requirement. We all know that the date picker allows us to select dates starting from today . So basically the older dates would be disabled. I want to enable the previous dates as well . basically i should be able to select any date in the month . Help me out guys . Cheers n4v33n
[jQuery] Validate textbox if another textbox is filled
Hi all, how can I validate a textbox only if another textbox is filled (by the user)? <input name="txtControl" id="txtControl "type="text" /> <input name="txtValue" id="txtValue" type="text" /> I'd like to make "required" txtValue only if the user write something in txtControl. Has anyone ideas? Thanks in advance. Luis
[jQuery] Strange animate behaviour
I get this strange jumpy animate behaviour in IE7 And in FF, chrome the animation flickers after completion. http://87.253.136.51/~gosi/nl (click trough the slides) HTML <div class="widget_portfolio"> <ul> <li class="active"> <div class="title">Duo Vertaalburo</div> <div class="indicator"> <a href="#">01</a> </div> <div class="handle"> <a href="#"></a> </div> <div class="content"> <a href="nl/zie/portfolio/2-duo-vertaalburo.html" title="Duo Vertaalburo"> <img src="files/module_portfolio/image_00002.jpg"
[jQuery] Bug report for media plugin
About the jQuery Media Plugin ( http://www.malsup.com/jquery/media/ ), there is bug in the "getSettings" function. Here is the problem codes shown below: var w = meta.width || parseInt(((cls.match(/w:(\d+)/)||[])[1]|| 0)); var h = meta.height || parseInt(((cls.match(/h:(\d+)/)||[])[1]|| 0)); In the Options documentation, you are using "width:" and "height:" as the option name. The above code just parse "/w" and "/h" that is wrong. The right code is shown below: var w = meta.width || parseInt(((cls.match(/width:(\d+)/)||[])
[jQuery] border-bottom in cells fails in FF but works in IE6 - arrgghh
Hi there I know it must be simple but I'm just stuck here :,( I have to ad a line between some rows, but not for the first col. the table has: table { border-collapse: collapse } that is fix and I can not change it. the following sample code draws the lines nicely in IE6 but in FF there's just nothing (also used color here, to see if the selectors are right): <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Unbenanntes Dokument</title> <script type="text/javascript"
[jQuery] Making a button in active
Good Afternoon (or morning depending on where you are). I really hate posting probably quite simple questions to forums, but this is really foxing me. $(".btn").click(function(){ //.btn is now NOT clickable $("#somethingElse").doStuff("slow", function(){ //.btn is now clickable }); } I've got a long navigation, and pages slide in and out of view. Troubles are, if the user impaitently clicks a load of links while the page loading and sliding in is happening,
Changing <BODY> background images - where to start?
Code within my <HEAD> Tags; <script language="JavaScript"> <!-- Activate cloaking device var randnum = Math.random(); var inum = 9; // Change this number to the number of images you are using. var rand1 = Math.round(randnum * (inum-1)) + 1; images = new Array images[1] = "bg1.jpg" images[2] = "bg2.jpg" images[3] = "bg3.jpg" images[4] = "bg4.jpg" images[5] = "bg5.jpg" images[6] = "bg6.jpg" images[7] = "bg7.jpg" images[8] = "bg8.jpg" images[9] = "bg9.jpg" // Ensure you have an array item for every
[jQuery] Span inside Anchor with event bubbling
Hi, I have such a piece of html: <li class="addToFriends"><a href="....">Something <span>INSIDE SPAN</span>something</a></li> To handle AJAX request when clicking on anchor I have registered handler on click event: $('.addToFriends a').click(function(event){ var target = $(event.target); if (target.is('a')) { // if I click on SPAN element following fragment won't execute! // do ajax request } event.preventDefault(); event.stopPropagation(); });
jquery validate plugin
Hi, I need to localize my validation plugin in general. Hence I thought I have to override the default code with this one: //further language validation $(".myForm").validate({ messages: { required: "Other language text." } }); But it's not working. Another problem is, that I can't access input names like this > name="xyz[1]" Is there a way to do so? thx TC
How to compress
Hello, how do I compress jQuery to become 19kb, as per the jQuery home page? I've got the minified version, and I sent it through YUICompressor, and it only removed 1KB from it
[jQuery] dynamic binding for events not supported by live() binding
How can i use bind() method for event binding needs to be done after some changes has been done by some ajax response?
[jQuery] [validate] other language for messages
Hi, I need to localize my validation plugin in general. Hence I thought I have to override the default code with this one: --------------------------------------------------------------------------------------------- //further language validation $(".myForm").validate({ messages: { required: "Other language text." } }); -------------------------------------------------------------------------------------------- But it's not working. Another problem is, that I can't access input names like this >
[jQuery] monitoring multiple elements
Hello all, I create dynamically some drop-down menus, all of them have an id = "drop_N" where N is a progressive. So If I have 3 (this number can change at every request) menus their ids are "drop_1", "drop_2", and "drop_3" Is there a way to monitor all of them with a single function? I mean something like $("#drop_ ...").change(function () { ... }) Can I use a regular expression? If so How? Thanks for your help and have a nice day.
[jQuery] jcarousel and ie6
hello,i'm trying without lucky to implement jcarousel in this site http://www.mercantipercaso.com/ after spent time to make it works on standard browsers,I finally see that it no works at on IE6. I've no idea on what's happening and how to make it works. please,be patience and give me a way to live in quiet. many thanks. alberto
[jQuery] Newbie needs to update existing JQuery code
Hi. I'm developing a Google Map for a client and need some basic help... This is my client's existing website and you'll see that it contains a small Google Map embedded in an iframe: http://www.bellamallorca.dk/devindex.asp Give the Stort Kort link a click and some JQuery runs and opens a pop- up containing a larger map. This is the code that executes when the Stort Kort link is clicked: <a href="#" class="enlarge_icon" onclick="$$('.hide_items').each (Element.hide);$$('.largemap').each(Element.show);frames
[jQuery] IE only browsers that break - need help
My code runs great in every browser but IE6 IE7 and IE8. it breaks and causes all scripts to fail. i setup Visual Web Developer in my VM like a blog post told me, and when i load the page i get Microsoft JScript runtime error: Object doesn't support this property or method that seem to break on this line login_button = $('#login_button'); its basically my setup for the jQuery UI dialog. This is the entire piece $(document).ready(function() { // buttons login_button = $('#login_button'); whistle_button
[jQuery] Apple Style Slider - Multiple Sliders on same page question
I would like to use the apple style slider on my site. Found great tutorials on it and have 1 working. My question is how can I have more than 1? Based on http://jqueryfordesigners.com/slider-gallery/ I set that up no problem pulling my images from the database and so on.... My question is using that example I have <div id="container_<?php echo $set_id;?>"> ...code... </div> <div id="container_<?php echo $set_id;?>"> ...code... </div> <div id="container_<?php echo $set_id;?>"> ...code... </div> The
[jQuery] Drag and Drop between Multiple Lists and Sortable
0 vote down star Hi, Wondering if people could please point me to a plugin/website that is jQuery, which will do what this Dojo example does, i.e: http://dojocampus.org/explorer/#Dojo_Drag%20And%20Drop_Lists I am wanting something similar to this as I would like to use as a means of allowing a user to administer a menu structure. Unless someone can recommend another means. Thanks. tfat.
[jQuery] logging panel?
Hi Is there any logging panel plugins that i can use? Similar to YUI's? Thanks
[jQuery] [validate] IE8 Does Not Work
I was wondering if there was an update for validate plugin because it does not work in IE8 and even though i do server side thats sucks Thanks Rick
[jQuery] inline script html vs xhtml
I am a bit perplexed at why a simple bit of code I have is firing in HTML but not in the equivalent XHTML. Here is the HTML file (that works as expected): <html> <head> <title>Text Demo</title> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <link rel="stylesheet" type="text/css" href="stylesheets/default.css"> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <!-- <script type="text/javascript" src="js/jRewriter.js" charset="UTF-8"/> --> <script type="text/javascript">
[jQuery] Reverse a collection of jQuery elements.
I need to reverse the collection jQuery returns when I use $("#some_selector").parents("li"); in order to build a path. Is this doable? It'd be nice if jQuery had a reverse() method.
Problem with gallery and .load() method
I've started form writing a simple function, which after clicking the thumbnail displays a full-size photograph in a separate DIV. $('document').ready(function() { $("#gallery a").click(function() { imgHref = $(this).attr("href"); $('#content').html('<img src="'+imgHref+'" />'); return false; }); }); Then I've created a menu, which loads next pages of my gallery by creating their filenames from identifier of certain link. $('document').ready(function() { $("#menu a").click(function()
[jQuery] Tablesorter is not enabled on my page
Hello, I am trying out the Tablesorter in Wordpress 2.7.1 to make a membership list sortable. For some reason the sortable features isn't being enabled (or at least visible). I need help find the culprit. Here are the steps I've taken so far: 1) In the header.php file I added the following code between the head tags: <head> <script type="text/javascript" src="library/scripts/jquery- latest.js"></script> <script type="text/javascript" src="library/scripts/ jquery.tablesorter.js"></script> <?php wp_head();
Hepl with login user interface!!
Hi all, I am new to ajax, meaning I know nothing what so ever of programing ajax. I want to do a simple login interface with email and password (with php), but i also want that when I press submit button it show a box with "please wait..." message (this box must slide, from the top of the page). Also this box will display errors messages such as, "invalid email or password" and so on. Any ideas if this is possible, I heard that jquery is one of the best ajax framework out there so if you guys know
[jQuery] how to use stop() properly
Hi! I have a little problem. On this page: http://www.arvag.net/test/jquery/bug/ simple box that fadeIn and fadeOut on hover event. I fixed queue problem with .stop({clearQueue:true}) but now i have some other problem. Here it will fade over the course of 2 sec. If you move your mouse away from object while it is fadeing text in the selector is staying transparent. If you move in and move out your mouse away from the object really fast, on next hover text wont be visible anymore... How can i fix
jQuery.get Help
I have the following Javascript code and I can't seem to get it to work properly... function DeleteSelectedBookmarks() { bookmarksToBeDeleted = array(); if (document.deletebookmark.elements.length == 1) { if (document.deletebookmark.deletebookmark.checked) array_push(bookmarksToBeDeleted, document.deletebookmark.deletebookmark.value); } else { checkboxes = document.deletebookmark.deletebookmark; for (i = 0; i < checkboxes.length; i++) { if (checkboxes[i].checked)
[jQuery] find reverse
Hi jQuery Group,<div> </div><div>is it possible find a node backwards instead of forwards.</div><div>i.e.</div><div> </div><div><div id="test0"></div><div> <div id="findme" /></div><div> <div><br clear="all"> </div><div>now I would like to do (remember find_reverse does not exist)</div><div>$("#findme").find_reverse("#test0");</div><div> </div><div>is there any method to do a find_reverse???</div> <div> </div><div>regards,</div><div>Peter Wraae Marino</div><div> -- Power Tumbling - <a href="http://www.powertumbling.dk">http://www.powertumbling.dk</a>
[jQuery] selecting next()'s until I reach a tag
Is there a way for me to add the next several blocks until I get to a specific tag? So let's say the code is: <h5>title</h5> description text description text <h5>title2</h5> description text description text description text <h5>title2</h5> description text Basically, I want to select all the tags until I get to the <h5>. There might be 1 tag, there might be 10 of them, but I want to traverse this structure to add all tags. Right now, I'm doing this to select 1 of the tags: $('h5').each(function(){
[jQuery] Where to find a proper slide effect?
I've searched the archives, and lot of people asked this question, but there were no answers, just links to UI docs or "that shouldn't be too hard using some css and animation..."... Anyway, I've made a demo of what I (we :) want: http://sklupc.com/slide/ The question: where to find or how to make jQuery slide effect (left) to work like scriptaculous slide effect (right) Notice that scriptaculous slide pushes the content below smoothly but jQuery slide first moves it and then slide in. jQuery Blind,
[jQuery] Reuse ajax calls
Hi ! Is there a way to store ajax calls in variables and reuse them later ? I saw that $.ajax is returning the XHR object, maybe it could be a lead ? For example, I would like to do : [code] var SClass = { oSavedAjaxRequest: null, doMyRequest: function() { if (SClass.oSavedAjaxRequest) $.ajax(SClass.oSavedAjaxRequest); else SClass.oSavedAjaxRequest = $.ajax({url: 'test.php', type: 'POST', data: {}}); } } [/code] Thank you !
[jQuery] Detect version of internet explorer using jquery
how to Detect version of internet explorer using jquery?? & also name of browser?
[ .html() ] Automatic transformation tag ??
Hi all, I use the html() function for my dialog system, and this function changes the html code... Exemple : $("#jquery_dialog").html(content_html); alert(content_html); alert($("#jquery_dialog").html()); The reply is : Alert: <form method="post" action="traitement.php"> <select name="select"> [...] </select> <br /> <input type="text" name="text" /> [...] </form> <script> /* jQuery code */ </script> Alert: <form method="post" action="traitement.php"></form> <select name="select"> [...] </select>
[jQuery] jQuery, the Ready Function, and Other Javascript - A Dirt Simple Inquiry
QUESTION: What is the general rule for using the Ready function in the presence of other Javascript? BACKGROUND: I have recently discovered that my previous problems with the customization of the jQ Impromptu plug-in could be overcome through isolation. In effect, I removed my script from the targeted document, eliminated all of my self-created jQuery methods with the exception of one, and tried the "package" in a different, separate document. Everything functioned as intended. With renewed confidence
[jQuery] MultiPage Form plugins?
I am looking for a plugin to paginate a multiple page form. I would like to decouple validation and navigation forward and back. What plugins or demos can you recommend for pagination of forms? Thanks.
Next Page