[jQuery] using serialize function on <ul> tag
I'm pretty new to jQuery and have figured out how to make a sortable list update to a database using Interface for jQuery 'http:// interface.eyecon.ro/docs/sort', but I want to see if the same functionality is available with the jQuery UI. I have most of the code completed I'm just stuck using the serialize function as it only seems to return a string for a form element. Can it be used to bring a list of list-items? Or is there an alternative function I can use? I'd prefer not to use Interface for
Problem with for loop and jquery [SOLVED]
Hi I have a problem with the code below, specifically the for loop at the bottom. The object that is iterated in the for loop behaves as I would expect until it hits jquery and then "key" is always the final one (with regards to page rendering). Actually it's probably easier if I post everything, then you can run it. I'm stumped. I'd be really grateful for any help you can offer me. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> New Document </title> <meta
[jQuery] A easy way to switch an <ol><li></li></ol> to <textarea>
Hello and best wishes, I've a website on which I am putting a lot of code (<pre>) that is already transform in <ol></ol> but those <ol> are not easy to use with copy/paste.. As http://www.learningjquery.com/ , I'de like to put a button for a nice switch between <ol class="pre2ol"> and <textarea>, over any <ol class="pre2ol"> My blog software gives me originally <pre>. Website : http://www.sakeco.net/blog Thanks for technics and advices.
Ajax help [SOLVED]
I am trying to retrieve some value from a php onsubmit. I am stuck. Can someone help please? here is my code $(function(){ $.ajax({ $('#myForm').submit(function() { success: function(msg){ $('td#myerror').html(msg);}); }); in the php I catch the error and I can echo it. The best I got for it to display, but displays the error on page load is $(function(){ $.ajax({ type: "POST", url: "submit.php", data: "do=info", success: function(msg){ $('td#error').html(msg);}
Persistence [SOLVED]
Hello, I am using this example http://interface.eyecon.ro/demos/sort.html Can it be made to remember the position that you set in case you refresh the browser, or go to another page and then hit the back button? Thank you.
[jQuery] Need
Hi, I recently started learning about jQuery and I have not worked much on javascript. I am basically a server side java developer. I need some help from experienced jQuery developers for below issue.. I have a table which has 6 menu items (anchor tags)... Selected Menu Item will have black.jpg image in <td> tag's background while all the other tabs will have red background. There is blackl.jpg and blackr.jpg image in case of first and last selected menu and redl.jpg and redr.jpg in other cases....
[jQuery] Tablesorter 2.0.1 removing rows and resorting
I'm having problems with tablesorter 2.0.1 and removing rows. I'm allowing users to remove rows, and after a removing a row using a call to remove() I'm calling trigger("update"), but if I remove a row and then resort it brings back the row I just removed. It looks like trigger("update") rebuilds the cache which should ignore the row I just removed, but it always comes back. Any ideas, or am I just totally missing something here?
[jQuery] [ANNOUNCE] jQuery.Collection released
Hi everyone I added the first release of this small, but useful plugin I made. As most plugins I made, is more oriented to devs, maybe can perform as utilitary for some other plugin. While doing jQuery.Rule, I realized how easy it is, to generate other kind of collections, with the same (collection) functionality that the jQuery object has, by using many of its functions. This plugin will generate collection classes, that will include jQuery's functions (or equivalent) to work on its elements. These
[jQuery] reload of main page
Hello, How can i make it happen, that after closing thickbox or something else the page reloads? my problem is that after loggin in the menu should get an other content.. i hope you understand what i mean... thx.
[jQuery] [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
Hi I'd like to announce my latest jQuery plugin. I hope you'll find it useful. FEATURES: # Antialiased # Very Fast # Support for any size radius and border width with minimal performance increase # No excanvas # Current layout is maintained # Works with all tested positions/display/floats # Supports fluid layouts # Original div still shows through, so can easily do hover/background effects # Script is only 4.0k uncompressed Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari
[jQuery] problems to animate in IE
Why this doesn't work in IE? $("#nav > ul > li > a").hover(function () { $(this).animate({ marginTop: "-3px", }, 200 ); },function(){ $(this).animate({ marginTop: "0", }, 200 ); }); -- View this message in context: http://www.nabble.com/problems-to-animate-in-IE-tp14746811s27240p14746811.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Pagination stop propagation
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Anyone have an idea why i cant cancel the the normal action of the button in this example? <a class="moz-txt-link-freetext" href="http://www.d-scribe.de/webtools/jquery-pagination/demo.htm">http://www.d-scribe.de/webtools/jquery-pagination/demo.htm</a> y download the page and modified it, only function pageselectCallback(page_id, jq){ $('#Searchresult').text("Showing
[jQuery] Sorting numerically based on number of occurrences
Hello, Hopefully someone can give me a few pointers on how to impliment this, i'm not sure if its a jquery only or some sort of jquery / standard javascript hybrid solution that is needed. I'm looking to grab a set of 10 to 20 names from a XML file, and then sort them based on the number of times the occur in the XML file. So say i have <xml> <name>John</name> <name>Smith</name> <name>Jones</name> <name>Doe</name> <name>Jones</name> <name>Smith</name> <name>Jones</name> </xml> I want to pull these
[jQuery] html character encode
I have a form that on submit is doing an update/insert to a database via ajax. When it is an insert and it is successful I append a row to a table with the elements they entered (they are not sent back from the server, just a success, error result is returned). Maybe I have to send them back in the response to properly do this? I dont know. Is there any function in javascript/jquery to convert characters such as "<" and ">" to their html code equivalents or must I write a function to do this myself(I
[jQuery] sort existing <li> elements
i'm looking for a plugin or code to sort an existing list of li elements, without going back to the server. anyone seen this already?
[jQuery] $.load() javascript problems in IE and Safari
As many others have already noted, if your page makes an AJAX call that returns javascript and HTML, for some reason IE and Safari are unwilling to execute any of the javascript. Looking through the jQuery code, I noticed that there *used* to be an evalScripts function in the same object as the load function, but that is deprecated in light of the fact that there is now a globalEval function that should be called with certain of the the HTML injection methods. However, after numerous tests, it seems
[jQuery] Bug with dimensions height() fn in IE7
This is a cross post from the UI mailing list -- I mistakenly put it there when it should have been here. Sorry about that! I have a div that has a height of 80%, and this line: $('.class:first').height() works fine in firefox, but when I try to use it in IE7 it always returns 1. Is there a known workaround for this?
[jQuery] File - initial path
I need to select initial path in the dialog box in a input file. This is possible? var input = $(":file").css({<ADD HERE>}); Tks, Joel Lobo
[jQuery] n00b q
This is probably one of those asked-and-answered questions, but I didn't turn it up in a Google search, doc search, or search of this group. Here it is: I want to click a link to slide a div down and the next click slide it back up. Toggle with an effect. Because I am not triggering the effect off a click on the element whose visibility I want to toggle, the Event.Toggle method doesn't seem to fit. Here's the point I've reached, which doesn't quite work. I'm sure there is a really easy way to do
[jQuery] accessing 2d array
Hi , I have just started writing php code. One of my friends suggested I use jQuery framework. I am using the jQuery.get( url, data, callback ) as: $.get("../../trial1.php", {checkID: checkBoxID, radioID: radioButtonID, sDate: startDate, eDate: endDate}, function(data, data1){ alert("Data Loaded: " + data); } and what the php returns is a 2-d array. I would like to know if its possible to receive a 2d array and how I can access it. Any information would be appreciated. Thank you
[jQuery] Check/Uncheck all checkboxes
I have a page that looks like this: <div class="table-of-contents"> <div class="chapters-title"> <h3><input type="checkbox" id="chaper-01" /><label for="chapter-01">Chapter title</label></h3> </div> <ul class="pages-container"> <li> <div class="pages"> <ul> <li><input type="checkbox" id="page-01" /><label for="page-01">Page title</label></li> <li><input type="checkbox" id="page-02" /><label for="page-01">Page
[jQuery] Check/Uncheck all checkboxes
I have a page that looks like this: <div class="table-of-contents"> <div class="chapters-title"> <h3><input type="checkbox" id="chaper-01" /><label for="chapter-01">Chapter title</label></h3> </div> <ul class="pages-container"> <li> <div class="pages"> <ul> <li><input type="checkbox" id="page-01" /><label for="page-01">Page title</label></li> <li><input type="checkbox" id="page-02" /><label for="page-01">Page
[jQuery] [attribute=value] selector in ie7
hi. in ff 2.0.0.11 the selector works as expected. in ie7 it fails to select anything. example on documentation page http://docs.jquery.com/Selectors/attributeEquals also look different in said browsers. is this a bug?
[jQuery] jqModal and cleaning up after itself
Perhaps this is a non-standard way to use jqModal, but I use it pretty much exclusively for dynamic form popups. My modal DIVs are dynamically generated and have iframes for content. My use case is: 1) open Modal_1 (generates a div with id="div_order" containing an iframe with id="if_order") 2) close Modal_1 3) open another new copy of Modal_1 (page now has two iframes with id="if_order") 4) try to refer to $("#if_order") and you get one confused browser (Firefox) and plenty of "undefined"s ... My
[jQuery] Determine if element is fluid?
Hi Does anyone know how to determine if an element is fluid or not ? - i.e. whether it's width is fixed - or not. Jonah
[jQuery] ANDing selectors
What is the best way to select all elements with "classX and not classY"?
[jQuery] invoking an element dinamically
Hi everyone, I need assistance with some "how-to". I'm new to jq, so a little help would be much appreciated. I have a function that receives a value each time an <a href> is clicked, for every click I get a different value, I want to use this value a ID in the "td" of a table, such "td's" are already ID'ed with the value I want, so I can later manipulate them, for things such as to hilight or remove the element from the DOM, etc. This is a piece of the code: function ofertaDetalle(idoferta){ //
[jQuery] autocomplete + bgiframe
Hi! I'm currently trying out this autocomplete plugin: http://code.google.com/p/jqac/ http://plugins.jquery.com/project/jqac I have to add bgiframe functionality for IE6 and have some trouble doing that. Here's my code: http://www2.hemsida.net/badtant/test/auto/test.html I've added this line: $(".jqac-menu").bgiframe(); At a first glance it seems to work bet when scrolling in the suggestion box the select behind it suddenly appears. How can I get around this? Thanks! /Niklas
[jQuery] File upload with AJAX
Hello people. I want to know if is possible to send a file using the Ajax method. If it is possible, how I do this? Thanks!!
[jQuery] using jqueryimpromptu plugin and submit with validation
I am a jquery newbie who is trying to use the jquery impromptu plugin to create an "ok/Cancel" button which does some validation before it submits. I currently have a working form which uses a standard javascript confirm prompt - but I want it to be fancier -smile. This is what I have - how do I convert it to the impromptu plugin? Thanks [code] in header javascript... function CheckYears(form) { var year = form.elements['year[]']; var numyearSelected = 0; for (var i = 0; i < year.length; i++) { if
[jQuery] Problem with jQuery plugin: validation
Hi. First of all thanks for the great work! I am using the jquery validate plugin and it works great in safari, firefox and ie7 but in ie6 it has a problem in line 1222, its the url validation regex. If I remove the entire rule then it works in ie6. I'm using jquery 1.2.1 and the plugin is 1.1.1 thanks, Erik
[jQuery] cycle over URLs returned from JSON request
I am trying build a slide show using the Cycle plugin. My (simple) code issues a JSON request (getJSON) to obtain the URLs of a few images. The images are displayed but the cycle method does not work, ie. all the images are displayed, no 'cycle' happens. Images are not hosted on the same machine as the one that replies to the JSON request. Am I missing something ? Below is an excerpt of my code: Thanks. ---------------- $(document).ready(function(){ $.getJSON('http://localhost:8501/testing/wwf_broadcast_json_4.cfc?method=wwf_feed&count=4&t_keyword='+word+'&i_keyword='+word,
[jQuery] close menu on mouseout
Hi, I am using the accordion script on a site I have developed, and I'm struggling to figure out how to close all items, when you're moving the mouse outside the menu. Any suggestions? I'm not that into jquery scripting yet. I guess its just a quick code one must add in the accordion.js Many thanks, Ola
[jQuery] add changing URL string to address for AJAX a la Gmail 2
Hi everyone, I'm working on a simple project and I'm going to use jQuery's .load function to switch between content pages so that the page does not have to unload and reload. I'm doing this because my page needs a flash music player on it and this allows for uninterrupted music. I'd like a way to do something similar to what Gmail does now. For example, when I click on a message the address in the address bar changes to: "<a href="http://mail.google.com/mail/#inbox/11757de76c56c762">http://mail.google.com/mail/#inbox/11757de76c56c762</a>"
[jQuery] Stopping click event action in safari 1.3 ( click(function(){return false;}); )
Hi, I've got a very simple tab interface which works perfectly, except in Safari. The click event is carried out, then the link is followed even with return false in the click event function. I've simplified everything to the following code, but the tabs are still treated as in-page anchors rather than simple click handles. (normally, of course, the tabs() would initialise by hiding the non-current months and would toggle a 'hidden' class on months you clicked on, etc. It's just an alert to illustrate)
[jQuery] how can i access and manipulate iframe elements in ie6
hi guys, im developing for internet explorer 6 and i am making a jquery generated iframe, now after making this iframe, i want to be able to insert 'onlick=("function()")' this code on the body tag, of the page inside the iframe. is that possible? thanks, dan
tags / links with jquery
Hi: I'm a newbie with jquery. I've seen forms in some websites that allows a user to enter data in free form and links those attributes together. For example in the area for 'interests', the user could enter stuff like ' swimming, squash and running'. Then hyperlinks appear under 'Swimming' 'Squash' and 'Running'. Once you click on those links... people with those common interest are returned. I'm assuming that it does call a database, could this be achieved with jquery ? if so how? or are there
Modify the interface sortserialize output. [SOLVED]
Hi, I am working on a website with a few friends and am loving jQuery (its my first time using this library). I also found the interface library and it makes life so easy. Is it possible to add more information to the hash that is output buy the serialize function? Right now the has looks like: sort1[]=buddylist&sort2[]=one&sort2[]=image&sort3[]=two&sort3[]=three This string is passed via AJAX to a php script which then explodes it by the &, and adds it to a database. array( sort1[]=buddylist, sort2[]=one,
[jQuery] tags / links with jquery
Hi: I'm a newbie with jquery. I've seen forms in some websites that allows a user to enter data in free form and links those attributes together. For example in the area for 'interests', the user could enter stuff like ' swimming, squash and running'. Then hyperlinks appear under 'Swimming' 'Squash' and 'Running'. Once you click on those links... people with those common interest are returned. I'm assuming that it does call a database, could this be achieved with jquery ? if so how? or are there
[jQuery] tags / links with jquery
Hi: I'm a newbie with jquery. I've seen forms in some websites that allows a user to enter data in free form and links those attributes together. For example in the area for 'interests', the user could enter stuff like ' swimming, squash and running'. Then hyperlinks appear under 'Swimming' 'Squash' and 'Running'. Once you click on those links... people with those common interest are returned. I'm assuming that it does call a database, could this be achieved with jquery ? if so how? or are there
Next Page