[jQuery] jquery variable scope in $.post (this)
Hi All, I am using a $.post to enter some data in the db, and using the callback function to set some html on the screen based on the html that the post returned. I have the following code: $("div.input form").submit(function() { /*get form vars here to form params_hash*/ $.post("url",{params_hash_here}, function(html) { var new_var = parsing_the_response_html_here_correctly; $("div[@class=new_var_class]",this).html(new_var); }); });<br clear="all"> However, the second piece
[jQuery] lite.pl - perl script to create jquery-lite.js
Hi all, This might be useful for some of you that do not have the java jre installed and are using the jQuery svn. I have been using this like: make jquery ./lite.pl build/jquery.js build/jquery-lite.js I hope this might be useful. Somewhere I read that there might be a full set of perl tools for doing this, pack and build. But I have finaly install java on my debian box so I can just use the standard build tools. John, feel free to add this to svn in a contrib section or whereever or not. -Steve
[jQuery] A question about ajaxStart and Stop
I have tried to get it to work and I am not sure that I am using it right so if anyone could explain to me how I am supposed to use it? Where do I initilize it, what do I attach it to? It just will not work for me. I am using jQuery 1.0.2 Rev: 413 -- If there's anything more important than my ego around, I want it caught and shot now. -- Zaphod _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] parse response html
Hi All, I have the following situation. I want to use jquery to send form data to a server to save the data to a db, and then use jquery to read the server response to update some hidden id's. The basic html I have is <div class="input"> <form action="save_record" method="post"> <input id="record_id" value="0" /> <other form data> </form> </div> Initially the record_id is set to 0 in the form for a new record. Now I want to save the record with jquery with code that looks like
[jQuery] Issues with iToolTip
Hi folks, I have two issues with Interface's iToolTip. The first only concerns Firefox: Whenever I hover a tooltipped link, all flash-objects in the page are "reloaded". The other occurs in all tested browser, when I use the delay option, eg. delay: 250. When hovering several different links fast, the fadeIn animation gets queued and repeated quite often, resulting in some more odd behaviour. I extracted some kind of demo page: http://fuzz.bassistance.de/tooltipProblem/bassistance.de.htm To see the
[jQuery] today's svn test report
Hi all, I just got tools loaded to be able to run svn make and set up my system for running tests. Test results for todays svn follow: -Steve Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 $.find() (2, 93, 95) 69. Sibling Axis (//p/../) expected: [object HTMLParagraphElement],[object HTMLParagraphElement],[object HTMLDivElement],[object HTMLParagraphElement],[object HTMLUListElement],[object HTMLOListElement],[object HTMLFormElement],[object HTMLParagraphElement],[object
[jQuery] Nokia N73 and jQuery
Just ran 1) testsuite with Nokia N73 2) browser. Suprisingly it only fails 4 tests (although text and end claims 6). -cut- 12. css(Hash) (2,1,3) 13. css(String, Object) (2,1,3) 38. $.find() (1,52,53) 56. serialize() (1,0,1) Test completed in 37785 milliseconds. 6 tests of 221 failed. -cut- 1) http://joern.jquery.com/test/ 2) http://www.s60.com/business/productinfo/ applicationsandtechnologies/webrowser -- Mika Tuupola http://www.appelsiini.net/~tuupola/ _______________________________________________
[jQuery] Problem with .left() return auto in Opera --- Splitter widget
Yes, but it calculated more then I really need or want. I used a different way now, I get for every element the pixel width value via offsetWidth, get the offsetLeft value if style.left returns 'auto' and set the width and left value explicit to a pixel value. Then setting css right always to auto, so the Browser doesn't try to calculate. This seems to work quite nicely in Opera 9, IE 6 and Firefox 1.5 and means that all the other functions get pixel values. Who needs or would like a splitter widget?
[jQuery] Improved Event system & new Accordion
Hi folks, I just commited a few changes to jQuery's event system. I fixed the target property of the event.target for both IE and Safari, and modified bind: It now accepts an optional third parameter that specifies the number of times the handler has to executed. When that amount is reached, it removes the handler. All onexxx events like oneclick now use that option and potentiolly provide better performance. I updated the accordion plugin to demonstrate and test these changes: http://joern.jquery.com/accordion/accordion.html
[jQuery] SVN 1.0.3?
just saw the 1.0.3 announcement... where's the SVN? subversion/libsvn_client/checkout.c:90: (apr_err=170000) svn: URL 'svn://jquery.com/jquery' doesn't exist _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] xml / javascript help requested
> look at http://imaptools.com:8081/maps/demo.html
[jQuery] Visual jQuery Announcement
Are we or are we not html/css/javascript wizards? Someone draw up an alternate stylesheet for VjQ, and Yehuda can add a styleswitcher! :-) --Steve sivy@userwire.com | irc: monkinetic|redmonk _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Height overwrite
Hello @ all, this works not for me, what to do? <script type="text/javascript" src="jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function() { var THeight = $("textarea").height(); var Diff = 40; $('.resize').click(function(){ NHeight = (THeight + Diff); NHeight = (NHeight+"px") alert (NHeight); $('textarea').css("height","NHeight").slideDown('slow'); }); }); </script> </head> <body> <textarea></textarea> <a href="#" class="resize">höher</a> </body> </html> NHeight
[jQuery] Adding class to dynamic element
I am trying to add a class (.currenttotal) to a dynamically generated span element. How can I do this? Basically, I am pulling an xml file and using the information to create an interface. I need to add the .currenttotal class to the registeredSpan. Any ideas? $("majorname", xml).each(function(i){ var listItem = document.createElement( 'li' ); var listLabel = document.createElement( 'label' ); listLabel.style.display = '-moz-inline-box'; listLabel.style.textAlign = 'left'; var
[jQuery] Oooh! These are pretty!
Gee, if it works for everyone else I guess it's my browser that's broken somehow.... -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Stephen Woodbridge Sent: Friday, October 27, 2006 5:11 PM To: jQuery Discussion. Subject: Re: [jQuery] Oooh! These are pretty! Dave Methvin
[jQuery] Visual jQuery Announcement
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft
[jQuery] Visual jQuery Announcement
Yea, I'm going to have to agree there... the functionality of visualjquery.com is awesome, but the color scheme leaves something to be desired... -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Mike Alsup Sent: Friday, October 27, 2006 12:09 PM To: jQuery Discussion. Subject: Re: [jQuery] Visual jQuery Announcement
[jQuery] Oooh! These are pretty!
<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="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 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>
[jQuery] Oooh! These are pretty!
--
[jQuery] Oooh! These are pretty!
You may want to check out: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm The JavaScript Vector Graphics library allows functions such as: Draw Line, Circle, Ellipse (Oval), Polyline, Polygon, Rectangle using a syntax very similar to Java Swing. Quoting form the Web site: "This JavaScript VectorGraphics library provides graphics capabilities for JavaScript: functions to draw circles, ellipses (ovals), oblique lines, polylines and polygons (for instance triangles, rectangles) dynamically into
[jQuery] jQuery Button Contest: Vote it Up
As you guys know, Rey and John created a contest for the best "Powered by jQuery" button. Vote it up at <a href="http://www.dzone.com/links/build_a_jquery_button_win_some_cool_ajax_books.html">http://www.dzone.com/links/build_a_jquery_button_win_some_cool_ajax_books.html </a> Help spread jQuery!<br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Oooh! These are pretty!
>> I might be wrong, but isn't that what Canvas is for? Drawing shapes?
[jQuery] Oooh! These are pretty!
The LGPL JavaScript Vector Graphics library supports: IE 4, 5 and 6, Netscape 4 and later, Opera 5 and later, Safari, Gecko-Engine (Mozilla, Netscape 6+, Firefox), and Konqueror. http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm Maybe someone want to "jQueryize" the libraries? -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Dave Methvin Sent: October 27, 2006 12:59 PM To: 'jQuery Discussion.' Subject: Re: [jQuery] Oooh! These are pretty!
[jQuery] xml / javascript help requested
Hi, I have an application that's loading values as XML from a text file on startup. I can see the data displayed fine, but I need to get it into an array to work with. the code: // returns XML data as "<response><string>...</string><string>...</string></response> $.post("proc_loadhistory.php",{}, function(xml){ rawxml = $("string",xml).text(); // get text of each <string></string> $('#output').html(rawxml); // displays ALL <string>s clumped together outputs: "data1data2data3..."
[jQuery] Button Contest: Digg It
Guys, following up on Yehuda's email about DZone, could you guys also Digg this entry as well? http://www.digg.com/programming/Build_a_JQuery_Button_Win_Some_Cool_Ajax_Books Thanks, Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Improved Event system & new Accordion
Hi Klaus!
[jQuery] Button Contest: Digg It
Dugg <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Rey Bango Sent: Friday, October 27, 2006 11:20 AM To: jQuery Discussion. Subject: [jQuery] Button Contest: Digg It Guys, following up on Yehuda's email about DZone, could you guys also Digg this entry as well? http://www.digg.com/programming/Build_a_JQuery_Button_Win_Some_Cool_Ajax_Boo
[jQuery] interface droppable
HI, Any idea on how to let the droppable accept multiple classes? I have folders and nodes. Both Nodes and Folders can be dragged upon Folders (so there are drappable), but Nodes do not accept other itens, they are not droppable so two classes are needed... Any ideas? And before I forget: A nice weekend to everyone! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How i use the Docs
I will use the snippets from the Docu, how i must handle with This? example: <script type="text/javascript" src="jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function() { var HHH = $("p").previous(".selected"); alert (HHH); }); </script> </head> <body> <div><span>Hello</span></div> <p class="selected">Hello Again And Again <div> this give me *$("p").previous is not a function* found on Site "A" here at http://jquery.com/api/ under jQuery prev ( String expr ) Sorry,
[jQuery] Non-destructive jQuery
>> I am pretty sure I don't have any code that would be broken by the new
[jQuery] JQuery demo page vandalised.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=374165513-27102006><FONT face=Arial color=#0000ff size=2>I've restored it from there, but someone needs to clean it up still.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=374165513-27102006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
[jQuery] JQuery demo page vandalised.
Does anyone have it mirrored? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery Button Contest - Many Prizes!
Hi Everyone, To encourage people to promote the jQuery project, and get as many people involved in the community as possible, we’re holding a contest to build a “Powered by jQuery” button. Having a nicely designed button will be a good way for jQuery users to build more awareness about the project, while having something that looks cool on your site! You can check out the details on the JQuery blog found here: http://jquery.com/blog/2006/10/26/jquery-button-contest-many-prizes/ Good luck to all!
[jQuery] Sortable serialize
So I'm working on various Rails solutions using jQuery and Interface. The way Rails/Prototype handles sortables is as follows: You have a series of id's in a list: item_2, item_4, item_1, item_3, etc. Prototype serializes as: item[]=2&item[]=4&item[]=1&item=3 etc. Rails converts the serialized form into params[:item] = ["2","4","1","3"...]; in other words, a usable array. This makes it really easy to convert the array into a list of positions for the database. It seems that there's no trivial way
[jQuery] Draggable table rows
Hi all, I use the draggable plugin from http://interface.eyecon.ro/ I would like to be able to drag table rows to a trashbin icon that is located just outside the table. I have a small table with a layout similar to the following: <table> <tr id="item_1"> <td> <div id="drag_1" class="draggable"> Name 1 </div> </td> <td> <div id="drag_1" class="draggable"> <img src="icon1"> </div> </td>
[jQuery] Use native XPath if possible
How about using native XPath methods when they are available, falling back to how it is done now when those methods are not available? i.e. $("//h2", context) In Firefox / Gecko based browsers: document.evaluate('//h2', context, null, XPathResult.ANY_TYPE, null) That would hopefully improve performance. The main problem though is that more complex XPath expressions that can't be mapped to CSS may be used. I am no XPath guru, so would be unsure how to implement this. There is an implementation for
[jQuery] Non-destructive jQuery
Hi folks, I'd really like to see John's modifications to pushStack included in the jQuery core. Details here: http://www.nabble.com/Non-Destructive-jQuery-tf2482924.html I'm actually wondering if that modification would break any existing code, as end() works like before. I guess the only situation is in scenarios like this: var jq = $(); var jq2 = jq.destructiveOperation(); var jq3 = jq.anotherDestructiveOperation(); With the non-destructive pushStack implementation, this would give a different
[jQuery] Enhanced jQuery Events Module
I was saddened and chagrined to discover that the event system didn't have additional arbitrary arguments as I thought it did and so I wrote them in. I modified the event system very slightly to allow for both additional arguments and scope modification (two features of the Yahoo Event Utility I always thought were very useful when I developed with it). I have my typical level of documentation (read: as little as I can manage) at the demo page I set up ( http://jquery.offput.ca/event++/ ). It was
[jQuery] how to catach an on drag event
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE> <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV> <DIV><SPAN class=101100408-27102006><FONT face=Arial color=#0000ff size=2>I have a problem I have a table that has one column for each day of the year + 1 col for user and 1 col for the number of holidays
[jQuery] Trouble width height on slideDown
Hey, first, thanks a lot for the amazing librairy! ..but i have a little trouble width the slideDown effect. My doesn't slide down enought, so the text overflow the tag and push violently the next tag out to the bottom... you can see it here: http://www.pixoil.com/1000visages/films.html and by clicking the first button "Voir la note d'intention" i don't see what going wrong.. here, my css of the (that i want slideDown): .front p.note{ position: relative; width: 380px; font-size: 10px; color:#565656;
Next Page