[jQuery] Return object from ajax
Hello! Why return one object from php script called from $.post (); Example: $.post("example.php", "{A:'A'}", function (data) { alert(data.err) }); example.php print "{ "; print " err: 'teste' "; print "} "; This script not runnable correctly. Sorry my VERY BAD ENGLISH! rs... cya :P mmoreira
[jQuery] New jQuery release, but what about documentation
<!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.6000.16544" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2>It's all well and good that the jQuery team is coming out with new release, but what about the equally important documentation issue?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>1.2.1 has been out since what Aug? Sept? And documentation still isn't
[jQuery] Filter back the text highlighted with Chili
Hi all! I want to show some CSS code in a textarea with the help of Chili showing the code with syntax highlight, so the user can edit easily the code. But, how to get back the code without the element created by the Chili? thks in advance to anyone who want to reply. MarcelloP
[jQuery] Fixed table header
Hi all, I apologize if this is a little OT, but I've been at this for a couple hours now and am not making any head way. So I'm hoping one of the guru's on the list might point me in the right direction. My goal is simple - I need a table with a fixed header. I've found a few sites that purport to do this with pure CSS, but applying their methods to my table are failing in FF and requiring a good deal of changes to my structure. (different changes for each method I find). I need this to work in both
[jQuery] ClockPick and IE7
Josh, I just found this group so I thought I would post my problem here. I have ClockPick working very well with Firefox. I tried this with IE7 and all I get is a Grey box at the bottom of the page. I created a plain html page with only the js and css files needed to make ClockPick work and got the same result. I commented out position:absolute in the css file and now I see all the text but it is not positioned correctly. I can run your demo just fine with IE7 so I must be doing something wrong but
[jQuery] Access Methods outside plugin
i use a jsGrid plugin, but i need access a the method(populate) populate outside the plugin. How its possible. I try: $.jQuery.fn.jsGrid.populate(); $.jQuery.fn.jsGrid.fn.populate(); $.jsGrid.populate(); etc and nothing working!! Please helpme
[jQuery] tablesorter IE6 date sorting bug
Hi all, I was going to post this in the jQuery plugins group, but I see traffic there is next to nil. I've been using jQuery and its associated plugins for about six months now. I lurk this group a lot and have learned a ton from everyone here, so thanks! Now, on to my question. I've been using the awesome tablesorter plugin for awhile now and have come across a scenario where FF behaves differently than IE. Visit this page in IE6 and try to sort twice on the first column. http://gtvault.com/tablesorter/tablesorter.htm
[jQuery] Ajax Working in Firefox 2.0.0.11 but not in IE6 or IE7
I am working on building a shopping cart and wanted to utilize jQuery's ajax methods to enhance some response times. If you go to http://www.blueskyvineyard.com/dry-wine and add an item to the cart, then either click the "+" or "-" to increase or decrease the quantity, it works just as expected in Firefox. However, in either flavor of IE, it will only increment or decrement once, and then will stop functioning. Here is my current code: jQuery(document).ready(function(){ jQuery("#highlight").animate({
[jQuery] Events don't work after load content using $.get
Hi everyone, I have an event that is not being listened and I can't figure out why. The thing is that everything is working fine while all my html code is static, but as soon as I modified it with some data pulled from the db, the click() events doesn't trigger the actions any more. What I'm doing wrong? I hope you can help, Thanks, Leon. -- View this message in context: http://www.nabble.com/Events-don%27t-work-after-load-content-using-%24.get-tp14374018s27240p14374018.html Sent from the jQuery
[jQuery] Remy's been hiding something
So stud jQuery coder Remy Sharp has been hiding something. Something that he let out of the bad today. Its a new site that will help designers become proficient in jQuery. http://jqueryfordesigners.com/ Very stealthy Remy! Rey...
[jQuery] Weird exception when extending Array
Hi all I've a strange issue that bugs me... Everything works fine in a page we've got, but when I add this simple function to one of our js files Array.prototype.contains = function (value){ var i; for (i=0; i < this.length; i++) { if (this[i] === value) { return true; } } return false; } and reload the page I get this exception: elem.className has no properties http://localhost:8080/atalaya-web/js/jquery-1.2.1.js Line 617 This is because this function remove: function( elem, c ){ elem.className
[jQuery] get a hash into a form (interface)
I am using the following interface demo page: http://interface.eyecon.ro/demos/sort.html where I want to put the hash in a input field. I need the hash from the sort 3 (3rd column). Okay this is a part of the code with a form added: --Code----------------------------------------------------- ==some more functions and code here== function serialize(s) { serial = $.SortSerialize(s); alert(serial.hash); }; </SCRIPT> <form action="" method="post"> <input name="serial" id="serial" value="" /> <p class="submit
[jQuery] recognizing a new class appended
Hi, This is frustrating! First, because I'm having a problem I can't solve. Second, because I can't track down the solution (though I know I've seen it before- albeit months ago). After something is clicked, this code is executed: $("#commenting").append("<span class='commentTag'>"+fill+"</span><span class='deleteTag'>x</span>"); Now, as you can probably infer from the "x" and class name for the second span, I want to be able to click on the span deleteTag and have it remove the element prior. However,
[jQuery] calling ajax with url parameter
Hello, I'm pretty new to jQuery and want to implement some ajax. I have a html like this: <a id="item1" href="process.php?a=1&b=2">click here</a> <div id="result"></div> After learning jQuery a little while, I got the way to call ajax something like this: $(document).ready(function() { $('#item1').click(function() { $('#result').load('process.php', {parameters will be passed here}); return false; }); }); from what I learnt, the parameters will be passed in format: {'a' : value, 'b': value} My question,
[jQuery] Autocomplete row colors
I might be a little dense here, but when using Jorn's autocomplete plugin (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/), I don't see any way to determine/intercept when the hints div has been displayed. What I'm after is to make the results have alternating row colors. I have some items that will word-wrap to two or more lines, but there is no clear distinction when this happens. Anybody have any tips on this? Will I need to setup something with the formatItem() or formatResult()
[jQuery] Turn HTML tables into graphs using flot
I'd been playing with jQuery and building tables from JSON data, and then flot came along right at the same time I was working on a project that required graphing data that was already in tables. I wrote a plugin to help me out that I think other people might find useful: http://blog.rebeccamurphey.com/2007/12/17/graph-table-data-jquery-flot/ usage: $('#myTable').graphTable({series:'columns'}); It's got a bunch of other properties too -- to choose which part of the table you want to use, where the
[jQuery] help using selectors to set a hidden field value
Hi all, Pretty basic but Im having some difficulty. When my form is submitted, I want to capture all the form element textfield values where the name begins with 'rlinehval-' and put them into a hidden field value with the id "updstr" as a semicolon delimited list for a db update. I read through the selector docs but this doesnt seem to work. Using Jquery I am trying this: $(document).ready(function(){ $('[@name^=rlinehval-]').each(function(){ var sv = this.value + ";"; $("#updstr").val(sv); });
[jQuery] jQuery Form Plugin > Doesn't execute on returned forms?
I have a form that is submitted via the jQuery Form Plugin to a PHP page which then returns another form in its place. The second form looks identical to the first however this second form will not submit via the jQuery Form Plugin. It's as if the jQuery Form Plugin script at the top of the original page doesn't exist. Do I have to somehow reinitialize the jQuery Form Plugin to recognize the returned form? http://mammoth.t1shopper.com/voip/ajaxform.html
[jQuery] Re[jQuery] naming JAddTo plugin
As I put more features into my JAddTo plugin, it's quickly turning from a "Add To These Social Networking Sites" plugin into a more general "Add a list of links" plugin. Given this, I was thinking of renaming it. What do you think of JLinksList? I'm open to suggestions if anyone has a good naming idea. The plugin-currently-known-as-JAddTo is available from: http://www.jasons-toolbox.com/JAddTo/ -Jason Levine -- View this message in context: http://www.nabble.com/Renaming-JAddTo-plugin-tp14372447s27240p14372447.html
[jQuery] Re[jQuery] naming JAddTo plugin
As I put more features into my JAddTo plugin, it's quickly turning from a "Add To These Social Networking Sites" plugin into a more general "Add a list of links" plugin. Given this, I was thinking of renaming it. What do you think of JLinksList? I'm open to suggestions if anyone has a good naming idea. The plugin-currently-known-as-JAddTo is available from: http://www.jasons-toolbox.com/JAddTo/ -Jason Levine -- View this message in context: http://www.nabble.com/Renaming-JAddTo-plugin-tp14372447s27240p14372447.html
[jQuery] namespacing confusion
ok so I'm a little confused. Ive read through several articles about namespacing and I've looked over several plugins to get a feel for the structure. The plugins for reference are cluetip and cycle. So it looks like there are 2 ways to go about namespacing. Version A or B? Is there any reason to use one over the other? Any help with clarifying greatly appreciate! Version A $.fn.myNamespace = function(){ return this.each(function(i){ dosomething; }); }; $.fn.myNamespace.outerFunc1 = function(){ //
[jQuery] Getting .html() AND the container element
(Apologies of this double-posts somehow; lots of trouble with Google Groups earlier, haven't seen the message come up yet, so:) For an Ajax application I'm working on, I need to POST the HTML contents of an element including the element itself. So if I have <div class="example" id="example10"> Lorem ipsum <strong>dolor sit amet</strong>. </div> I need to grab that entire bit as a single string, including the first div and it's attributes. The only way I can figure to do this is to .wrap() the entire
[jQuery] PHP Framework Integration
I would like to know how If I can have rights to use this Framework alongside a Framework which will enable JavaScript callbacks and cool functionality like Ajax within the new PHP Framework. Although I can make my own I am not going to be able to maintain this part of the Framework in future. This is why I believe integrating the two Server - Client Side Frameworks will make a fabulous combination. Please send me your views. I will release the Qlite Framework on Jan 01 2008 @ qlite.co.uk but I will
[jQuery] parent of "this"
Hello, i need get the this's parent div, something like this: <div> <a href="#" class="close">Close</a> </div> and in code.. $(".class a").click(function(){ $(this < div).slideUp(); //here }); that way many buttons will work with no ids and with the same code! how can i do it? i don't wanna use ids... sorry my bad english thanks!
[jQuery] If I'm using toggle, how do I check if it's shown or hidden?
Hi, I'm using the toggle method to show/hide divs $('#giftMsg').toggle(); But how do I check if a div is currently displayed or not? I've discovered that there is no such thing as a "shown()" or "hidden()" method. - Dave
[jQuery] Shared variables, events, and namespaces...
Just wondering what would be the best way to handle shared variable(s) between different events... for example: var ele = '#foo'; $(document).ready(function() { $(ele). // ... Do something with 'ele'... }); $(window).load(function () { $(ele). // ... Do something with 'ele'... }); To me, the above seems a little sloppy... Is there a good way to contain the variable "ele" within it's own (relevant) namespace? Maybe I should be learning/reading about classes (OOP) and jQuery? Am I thinking
[jQuery] $(document).ready same es Dean Edwards solution
Hello, this is my first post. I'm working with jQuery since a month and I have one problem. The $ (document).ready event doesn't work properly, manly I get the fouc in IE and Opera. As far as I have red the Dean Edwards solution (http:// dean.edwards.name/weblog/2006/06/again/) is implemented in jQuery ($ (document).ready ). For now I'm fixing this issue loading a css dinamically that contains a class to hide the elements that trigger fouc. My main question is, does the $(document).ready include
[jQuery] Cycle Plugin help request (IE6/7 issue)
Hey guys and gals... I'm having a little issue with this plugin and was wondering if you could help. In my free time, I produce html templates from other designer's PSDs and today I'm having an issue with a slideshow I've implemented. Everything works fine in Firefox/ Safari (both platforms) but IE is choking completely. You can see my example here... http://www.objectivegiant.com/test/trc/index.html I've followed the examples on the Cycle demo pages very closely. The only thing different I've done
[jQuery] animation: sequential showing / hiding : how-to?
hi! i'm displaying a series of graphical items in one command: $('div.items").show("slow"); now, it was suggested by my mate that they appear one after the other, according to, say, their order of appearance in the html markup. of course i could use the callback of each show so taht the next one only start when current is finished animating, but i don't know in advance the amount of divs there will be so i'm kind of stuck on how to achieve that. Has anyone achieved something like that? Any clue would
[jQuery] new jARIA plugin
Hello all, Because 1) I haven't been able to find much about jQuery and WAI-ARIA (Accessible Rich Internet Applications), and 2) I wanted to try to get my head around ARIA, I've written a jARIA plugin. code: http://www.outstandingelephant.com/jaria/jARIA.js docs: http://www.outstandingelephant.com/jaria It should make implementing ARIA in jQuery-based Web apps relatively simple. Any comments, questions or suggestions are more than welcome. I apologize if I've reduplicated anyone's effort. Best, Chris
[jQuery] Display all records using tablesorter pagination plugin
All, I'll looking to add a default option to the drop down list for the jQuery paging plugin for the jquery tablersorter. I want to be able to select an option "all" that will display all the records returned to the page. Any examples or pointers to examples of this would be good would be great. Cheers Simon
[jQuery] [SITE SUBMISSION] YourDoorandMore.com
Here's a new site from Jim Priest: http://www.yourdoorandmore.com/ "Your Door and More helps you share the joy and excitement of owning a home by providing personalized pen and ink illustrations of your door, front porch, or home."
[jQuery] help on accessing "this" inside callback function of a object
hi, Sorry if the subject sounds crazy. I have this MainPage object below function MainPage(){ this.init = function(){ $('#sample').click(function(){ // here is my problem, inside this anonymous function how can I access the method_one function? this.method_one(param_1, param_2); }); } this.method_one = function(param_1, param_2){ $(param_1).load(param_2); } } Thanks james
[jQuery] **SPAM** [SITE SUBMISSION] Finnish National Broadcasting Company
Spam detection software, running on the system "rio.rio.ee", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: http://www.yle.fi/ Seems to use at least Tabs 3 (Klaus's tabs), jCarousel and hoverIntent. -- Mika Tuupola http://www.appelsiini.net/ [...] Content analysis details: (7.7 points,
[jQuery] [ANNOUNCE] Plugin Authors - PLEASE READ!!!
If you are a plugin author, please be sure to test your plugin(s) with the upcoming release of jQuery, v1.2.2. John made an announcement today about it and having compatibility is extremely important. Following are the details of the release from John's email: Please use the unpacked version, it'll make it easier for us to spot/close bugs. http://code.jquery.com/jquery-1.2.2b.js Here's the full list of closed bugs: http://dev.jquery.com/report/22 If you spot a bug, please submit it to the bug tracker:
[jQuery] jQuery in the wild
Stumbled across this site today that is actually quite impressive: <a href="http://drawter.com/">http://drawter.com/</a><br clear="all"> -- Benjamin Sterling <a href="http://www.KenzoMedia.com">http://www.KenzoMedia.com </a> <a href="http://www.KenzoHosting.com">http://www.KenzoHosting.com</a> <a href="http://www.benjaminsterling.com">http://www.benjaminsterling.com</a>
[jQuery] Draggable Counting
<span style="font-family: trebuchet ms,sans-serif;">I am making something for fun here:</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"><a href="http://www.commadot.com/jquery/magicTriangle.php" target="_blank"> http://www.commadot.com/jquery/magicTriangle.php</a></span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">My question is: How
[jQuery] no server response from .ajax call
Hi, im pretty new with the jquery stuff.. and i appear to be missing one giant big step. I want to do a simple ajax call, and post a variable to a php file that will then do something and return a result that the ajax will then display in the page.... i even tried the ajax example on this page http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery but the damn thing gives me an error... for testing i am using the following.. $(document).ready(function() { $("a").click(function() { $.ajax({
[jQuery] $.append(html, callback); ?
Hi there, I struggle with execution time of JS. As any line after some other does not wait for the line before to be executed, my script works sometimes ... and sometimes not. It looks like that: $.ajax({ ... success: function(msg){ if (msg!='') { $("#"+eleID+" .message .content").empty().append(msg); onReadyStuff(eleID); } } }); Most times I execute the script, "onReadyStuff()" is
[jQuery] dynamic form: how to allow several inputs with same name ?
hello! this is slightly off topic as it is more a javascript/html question than just jquery, but it will be implemented in jquery so i thought you guys could be bothered with this :) in short: i have a form where i ask "how many weeks" via a text input, that the user must reply with the relevant number. Now, i need to embed a dynamically display a small form for each week. So if user says "4" weeks, i need four times a small questionnaire asking 3 questions to describe that week, where one question
Next Page