[jQuery] Nested getJSON
Here is my code: $.getJSON("/cgi-bin/messages.cgi", { id: last_message }, function( json ) { $.each( json.messages, function( i, item ){ if ( item.command == "new" ) { $.getJSON("/cgi-bin/get_data.cgi", { id: item.id, fields: "all" }, function( json ) { $.each( json.objects, function( i, item ){ create_object( item ); //return false; }); }); } else if ( item.command == "change" ){ $.getJSON("/cgi-bin/get_data.cgi",
[jQuery] jcarousel - resize height and width
I have a project where I need to resize the images and jcarousel to match a PSD comp. Dimensions are 428/109 px and image sizes are 105/103px. I'm having issues getting jcarousel to look the same on all browsers of course. Was wondering if there's an easy way to resize jcarousel. It's such a cool little widget! Ideas? Pitfalls? Steveoh
[jQuery] Problem with display of jcarousel in IE7
Hello all, The problem I have is the jcarousel works fine in firefox on the homepage but not in IE, if you visit www.clevergreen.co.uk and scroll down to the products / manufacturers part you will see what I mean. Any help would be greatly appreciated. Thanks very much, Paul
[jQuery] jQuery Form Plugin with prepended hidden fields
Hi! I prepend some new hidden fields to my form. After that I make the form to an ajaxform with the jQuery Form plugin. It seems to work, but I miss the new hidden fields... Somebody knows the Problem?
[jQuery] fadeout response div after form submission
This is my first post so Hello to everyone on this great list ! :) I have a form which I submit thanks to the jQuery Form plugin. var pdoptions = { target: '#pdresult' }; $('#pdform').ajaxForm(pdoptions); When submitting the form I get the response in the #pdresult div and I would like to fade it out a few seconds later. How can I do that ? I tried this additional option : success: $("#pdresult").fadeOut("slow"); but it doesn't work... Thanks for your help ! G.
[jQuery] change the attribute value, when button is clicked
It is not working... I am not sure what should I do.... <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#link1').click(function(){ alert('yo'); $('#test_form').attr('action', 'there'); }); }); </script> </head> <body> <form id="test_form" action="here"> <input type="button" name="link" value="button" id="link1"/> </form> </body> </html>
[jQuery] Zoomimage
Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] New to jQuery
My experience w/ Ajax is limited at best. I've used the Spry framework to date and its great w/ the exception of it breaking in Safari. My question is why does this framework break in Safari and if jQuery doesn't how/why is it different? Thanks in advance.
Selecting the text in an input box [SOLVED]
How can I automatically highlight the text in a text field when user clicks on that text box? Thanks.
[jQuery] Cross Browser Issues - Simple use of JQuery
Hi, I have a series of nested drop down lists being used for the navigation on a website. I have added a click() event to certain elements to toggle the visibility of some nested elements. This works in Firefox and Opera perfectly but the wrong elements are being toggled in IE6. I think the problem lies within my use of $(this) or $(this).next() Can anyone let me know if there is a known bug in this area, and if possible suggest a fix/workaround. An example of this issue is at http://www.good-together.co.uk/demo.htm
[jQuery] Invite me please
Hi... I am from Kiev, Ukraine. My name is Alexandr Petrov and I am 26 years old. Now I write code for google gadget and use jquery + interface... and have a problem... I use SlideOutLeft and SlideInRight but have a shakes when SlideOutLeft finish and SlideInRight starts it's movement e.g. $('#content_div').SlideOutLeft(1000); setTimeout('_gel("content_div").innerHTML = html', 5000); $('#content_div').SlideInRight(1000); setTimeout("callBack(myFeed)", 5000); I try to fix this problem by pauses (setTimeout).
[jQuery] jcarousel using jquery - VERY slow init in IE7
I have a very simple jcarousel example that works perfectly in Firefox but takes about 20 seconds to startup in IE7. This is using jcarousel 0.2.1 and jquery 1.2.1. Here is a link to the sample (very straightforward html): http://www.azestimators.com/slide/az.htm If you can help me figure out why this takes so long with IE7 I would really appreciate it. Thanks, Tim
[jQuery] How to make the first word bold.
I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: <div id="title"> <a href="123.html">One Two Three</a> </div> INTO THIS: <div id="title"> <a href="123.html"><strong>One</strong> Two Three</a> </div> I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $("#title.a").contents(0).wrap("<strong></strong>"); Any help would be greatly appreciated.
[jQuery] jQpanels 1.0.2 Update
The jqPanles plugin has been updated to version 1.0.2. All the bugs related to the accordion behaviour have been corrected. A demo/Api is available here: http://www.andreacfm.com/examples/jQpanels/ Let me have your feedback. Andrea
[jQuery] looking for tutorial
Hi, I currently wrigth easy jQuery plugin but today I find myself in a new territory. I want to let my plugin perform a callback called as attributes: ....... success:function(){ .....} My probem is to wrigth the code that let the plugin evaluate the callback. Anyone knows if there is any tutorial on this issue?? Thnaks Andrea
[jQuery] Powered by jQuery -- ActiveState?!
so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] Feature Request: Add support for CSS position:fixed for IE6 and lower
I don't know if this is the correct forum for this type of request, but it would be extremely helpful if jQuery could apply the hacked IE css for position: fixed. I've been using the following in my conditional IE stylesheet: /* IE hacked CSS */ #topleft { position: absolute; top: expression(document.documentElement.scrollTop + Math.round(document.documentElement.offsetHeight) + 'px'); left: expression(document.documentElement.scrollLeft + Math.round(document.documentElement.offsetWidth) + 'px');
[jQuery] manipulate loaded html
Hi, I am using the jQuery 1.2.1 and I am able to load an external html document into the DOM. I would like to manipulate the loaded elements, but I haven't been able to figure out how to get references to them. $('div#g_sidebar').load('sidebar.html', new function(){ console.log('loaded sidebar'); $('div#g_sidebar').children().each(function(i){ console.log('each: %d, %s', i, this); }); }); That will successfully load the sidebar and print "loaded sidebar", but that is it. How might I get it to print
[jQuery] Safari Mac fatal error
Hi All Had some trouble today with Safari on a crApple. Thought I should pass it on in case anyone else suffers a similar fate and wants to keep what hair they have (if any) on their heads. This is a case of one browser being significantly more strict than several others. So strict it stops loading the script code when it incurs this error whereas - rightly or wrongly - most other browsers cope with the problem which is: duplicate function names Now come on, confess, what coder doesn't make liberal
[jQuery] How this can be done with jQuery
Hi, I'm a newbeeeeeeeee and need to get a simple thing done with jQuery ... which doesn't seem to be that simple to me. Want a sort of accordian effect with just one div attached to the bottom of the page which slides in/up on hover and slides out when cursor is out ... there's one more thing in between which is when the div is sliding out and you hove back it starts sliding in from that point !!! Have done a sample in flash which can be seen at http://asifrnaqvi.com/stuff/sample/del.swf Would be
[jQuery] Ingrid, jQuery Datagrid : Update, v0.9.1
Hi All, I've just posted the latest version of Ingrid datagrid plugin. Incorporates a lot of feedback I've received over the last couple weeks, including: - Row selection - Saving state (page number, column sort & direction, selected rows) - Exposed object model, added helper methods like ingrid.getSelectedRows(), ingrid.getColumn(), etc - A couple bug fixes and some general code refactoring. I confess I added way too many comments. I'll get to those later... http://www.reconstrukt.com/ingrid/
[jQuery] clicking appended element
guys, for example i want to append the <li> element dynamically and attach the click event HTML : <ul id="subs"> </ul> JS: $(document).ready(function() { ... //add dummy data for(var i = 0; i < 5; i++) { dataString +="<li><a href='#' rel='"+i+"' title='"+i+"' class='group'>"+i+"</a></li>" }; $('#subs').append(dataString); // the list is visible, now attach click event $("a").filter(".group").click(function() { alert(this.getAttribute('rel')); }); why the alert(this.getAttribute('rel'))
[jQuery] iframe bug document.defaultView.getComputedStyle(elem,null)
Hi, I found a bug with jQuery version 1.2. It concerns the following error generated by Firebug in Firefox when a iframe is present in a page. document.defaultView.getComputedStyle(elem, null) has no properties I solved it by replacing the following code with the code pasted underneath. old: (line 729) ret = prop == "display" && swap[stack.length-1] != null ? "none" : document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) || ""; new: ret
[jQuery] Future jQuery structure?
<div>jQuery</div> <div>-Core</div> <div>-UI</div> <div>--Mouse interaction</div> <div>--Widgets</div> <div>--Theme</div> <div>-Fx</div> <div>-Plugins</div>
[jQuery] cross domain ajax calls
thank you so much karl. i forgot to point out that i need a client-side solution. because, the server which is serving the xml document i need, only accepts one request per second. if you query more, the server blocks my servers ip. i need a pure java script solution. so every query will be made via users ip. but i am about to loose my hope.
[jQuery] Show me what you created using jQuery / web apps
Hi! I'd love if anyone wants to share interactive websites, or in particular web apps they have created using jQuery. I am starting to work on a simple task manager, and wanted to see what other people out there have created - what is possible, so to speak. Also, if there is any developers out there that would have fun in creating apps like calendar, contact manager, bug tracker, and some more super simple apps, I'm working on a humble small project that you could have fun working with, just contact
[jQuery] Script evaluation in IE7 fails
I have a jQuery script that loads html into the page. Sometimes, within this html I would like to put a small script to handle button functions. Such a script runs fine in FF but not in IE7 (Untested IE6) I worked around this issue for now by putting my script in a div and having jQuery evaluate the div. Is there a better way to load html (I am using $.get) into the page and have jQuery run the script in the html? jQuery 1.1.1 Thanks!
[jQuery] Manipulate elements in new window (context)
Hello, I'm using: var plan = window.open("tmp.htm", "plan"); $("#header", plan.document).hide(); $("#main").hide(); * it's bind to a button onclick event to open a new window and manipulate it, but when I execute it nothing have happened in the new window. When I trace down with firebug everything happens as expected - the #header is hidden. In the both cases the #main in the parent window is hidden. If you can point me to what is wrong, I would appreciate it. Thanks, Evgeni
[jQuery] This jQuery mailing list
I read somewhere that the jQuery mailing list was supposed to be really active. I haven't really seen a sign of that, which makes me wonder. Has the community seen it's days? Is it a safe bet to develop with jQuery - will it be supported for a couple of years by an active community? Thanks, Herb
[jQuery] Google Analytics Tracking With jQuery
I've been working on a jQuery plugin to simplify the process of adding Google Analytics tracking to a page. The bulk of the code came together pretty quickly, but I've run into a strange snag that's kept me from finishing it off. Here's what the plugin is intended to do: - Determine whether to include the SSL or non-SSL version of the GA script. - Include the GA script (currently urchin.js, soon to be replaced by ga.js) from within try/catch to help suppress any issues GA may have from time to time.
[jQuery] Accessibility, CSS
Have just joined and nervously used Jquery for the first time. Just woudering about two thngs: 1. When jquery modifies styles it seems to do in-line styles. I tend to keep all my styles external. Does it have to do it in-line? 2. I see no mention of accessibility or advice on validating or accessible javascript discussion. Why not? Thanks.
[jQuery] cross domain ajax calls
hi folks. ok. it's possible to make cross-domain ajax calls if you get json data, but i need to to pull xml. i need to get some xml data from another domain. isn't there any solution for this problem? :(
[jQuery] SITE: http://www.bankofamerica.com/
HOLY CRAP! My wife was in our BoA account this evening and they had some nice AJA and JS based interaction going on. So I thought it would be interestting to see what they were using. Sure enough, good old jQuery, right there behind the scenes. That's amazing as jQuery is one of the biggest banks in the world. Good on you John!
[jQuery] AjaxTop - New plugin
Hi, This is to let you know about the AjaxTop plugin. It provides a way to bind XML to JavaScript objects. Some of the things you can do with it are: - Load XHTML with embeded client side custom tags - Treat XML as a command format for server responses - Handle XML as semantic data (instead of XSLT) This is still experimental. Any feedback would be appreciated. Look for AjaxTop under the Ajax category or at http://ajaxtop.sourceforge.net. Matt
[jQuery] 'this.$event[...].keys' is null or it isn't an object
Hi, I've insterted in my page an external JS menu... now I see all right but when I press F5 key (or when I close the page) I see this error: Row 1 char 1 'this.$event[...].keys' is null or it isn't an object index.php?m=account_home I don't know how to resolve this problem :-( I hope you can help me.... I've tried to delete the new JS files included and I've seen (... I think) that if I delete this <script type="text/javascript" src="http://localhost/core/includes/js/ jquery.js"></script> I don't
[jQuery] Tablesorter + repeatHeaders widget bug?
Hi, I 'm using tablesorter w/ my own parser and sort table link outside the table w/ no problem. I've just a problem w/ repeatHeaders widget example available on the sample page here: http://tablesorter.com/docs/example-widgets.html If you click on one sortable header, headers are repeated 6x at the beginning of the table. I've tested w/ both IE6 and Firefox 2. If someone have a workaround for this, thanks in advance. -- David -- View this message in context: http://www.nabble.com/Tablesorter-%2B-repeatHeaders-widget-bug--tf4787613s27240.html#a13696317
[jQuery] manipulate loaded html
Hi, I am using the jQuery 1.2.1 and I am able to load an external html document into the DOM. I would like to manipulate the loaded elements, but I haven't been able to figure out how to get references to them. $('div#g_sidebar').load('sidebar.html', new function(){ console.log('loaded sidebar'); $('div#g_sidebar').children().each(function(i){ console.log('each: %d, %s', i, this); }); }); That will successfully load the sidebar and print "loaded sidebar", but that is it. How might I get it to print
[jQuery] "or" keyword in attribute selectors
Is there a syntax similar to xPath that allows you to do something like this: $('#content a[href$=.jpg or href$=.gif or href$=.png]') I know this will work: $('#content a[href$=.jpg], #content a[href$=.gif], #content a[href $=.png], ') ...but I'm just curious if an or keyword (or maybe 'pipe' | ) is accepted. Nothing I tried worked... Carter
[jQuery] ajaxContent plugin
Hi I post here to share a piece of code that I am starting to use daily to perform easy ajax calls. The plugin refers to an A tag and use the Href attributes to make the call filling up a #ajaxContent div on the page with the server resposnse. The plugin manage: 1) the display of a loading message ( an img if you want ) 2) the error message ( cutomizable) display if needed 3) the call of course 4) the loading data in the div 5) the event is click but is customizable as you prefer as of course the
[jQuery] Reflect Jquery plugin cancels links in IE
Has anyone else had this problem with using the Reflect Jquery plugin (http://jquery.com/plugins/project/reflect) where image links no longer function in IE 7 (haven't tried 6 yet). Any ideas what to do about it? FF works fine. A development example: http://damagecontrol.sterlingkcreations.com/pedals.php Thanks! - Sterling
Next Page