[jQuery] how does jQuery's timeout used?
i would like to handle the timeout situation with jQuery but could not find a lot of information on that. i know you can specify timeout:5000 as the ajax parameter. but what happens when it times out? i tried it and it does not do anything. what i want is a simple alert() to show when it times out in 5 seconds. how can i accomplish that? thanks.
[jQuery] jQuery (Superfish) conflicting with swfobject
Hi all, I've been playing around with a dropdown style with help from the fantastic Superfish addin. It looks great in firefox so far, and to a limited extent internet explorer.... http://cressaid.brettjamesonline.com/staley/bigtest.html This is the page with swfobject disabled (put a typo in to stop swfobject.js loading). This gets rid of all flash content on the page. The internet explorer dropdown works, although its width and height is a bit messed up. http://cressaid.brettjamesonline.com/staley/products-mining.html
[jQuery] Weird problems in IE7 using blur() and $, ff to slow?
I have a table full of cells where i want the user to be able to click on a cell to convert it to an input box for editing (ala excel editing). When the user leaves the "cell" (onblur event) i want to check the content of the input for any changes, and if changed post it to the server with an .ajax call. In FF it works almost perfectly, except if i click fast from cell to cell, then it somtimes "misses" and altough the previous is converted back to text and saved to db, the new one is not "selected".
[jQuery] Applying a string as a function?
I am completing a new plugin where I have a function JSON option to fade in instead of just show(). So the code is: settings.fadeIn?$box.fadeIn():$box.show(); settings.fadeIn is passed as a true or false value in the plugin function settings parameter: var settings = { ... fadeIn : true, .... }; What I prefer is to define the option as a string: var settings = { ... show:: "fadeIn", // default is .show() .... }; and apply it accordingly. The only way I can think of doing it is with eval(), which
[jQuery] Select box show/hide
Does anyone have any examples of how I could use a select box to show/ hide different divs on a page. To take it a level further, I would also like the same behavior to work if images are clicked. A little background: I'm tring to build a payment options page and have a list of payment icons (Visa, MC, AmEx, etc) as well as a select box that lists the options. The page would have all the forms in their own DIVs with an ititial value set to hide();. clicking on an image would result in showing the
[jQuery] Permission denied to get property Window.node Type
Inside http://www.insiderec.com/ When I clicked on the bottom left text to open a popup image the following error occurs, "Permission denied to get property Window.node Type." With the alert which is indicated only in firefox. Working fine with IE. Please tell me how should I solved this problem.
[jQuery] Tell-a-friend script?
I am looking for a 'tell-a-friend' jquery script to use on a static html webpage. Does anyone know if there is one available? If not, am willing to pay for someone to write it for me. Am also looking for a jquery ajax contact form to use on a static html webpage if anyone knows of one. Best Regards -- View this message in context: http://www.nabble.com/Tell-a-friend-script--tf4584690s27240.html#a13087221 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] appending html from ajax call
Hi, New to JQuery, got some questions: $.ajax({ url: "MyPage", success: function(msg){ $(msg).appendTo('body'); } msg is a html page, and it works, now I try to get only the 'h1' elements by doing this: $(msg).find('h1').appendTo('body'); and I see nothing, the javascript console in Safari says: Value undefined (result of expression ret[i].getElementsByTagName) is not object. Any hint on this? Thanks.
[jQuery] jQuery CSS and Superfish not working w/IE
I've got the following site I am working on ( http://www.tolerase.com/test2.php ) and the drop down nav is working as intended on Firefox but in IE it is all over the place. I know the problems are CSS related, can anybody with experience with Superfish and CSS help me understand how I need to tweak my CSS to display nicely in IE? thanks.
[jQuery] jQuery documentation, Aptana and scriptDoc support
I'm just crawling back into the programming world after a long hiatus, and noticed a new "generate HTML docs" button in Aptana. If you follow the scriptDoc standards, it generates a pretty decent output with one click. Their code assist functionality pulls from these scriptDoc blocks as well which should mean easier coding with plugins if plugin authors start using that standard. The one missing param in their list is @example, so I'm hoping that engine can be extended. More documentation here: http://aptana.com/docs/index.php/Documenting_your_code_using_ScriptDoc
[jQuery] jQuery and .Net Postbacks
Hi guys, I'm having problems with .Net postbacks and jQuery. When I first come to the web page I'm working on, everything works fine: all elements that should be present, are. All events are properly attached to their respective elements. It's all honky dory (pardon the cliche), until I send data to the server and get a postback response. All events are lost and the elements act completely unpredictably. Any ideas what might be happening? Your help is much appreciated. Best, RDO
[jQuery] tablesorter options not working
Hi all. I've the following code: jQuery('#bid_requests_for_part').tablesorter({ sortColumn: 'Vendor', sortClassAsc: 'headerSortUp', sortClassDesc: 'headerSortDown', headerClass: 'header', stripingRowClass: [ 'even', 'odd' ], stripeRowsOnStartup: true }); The sorting portion works, but none of the options are taking effect. Except headerClass -- that is setting the class of the <th> elements. Beyond that, nothing; no striping, no table header styles. I've included the <thead> and <tbody> elements
[jQuery] [PREVIEW] another future grid: jquery.KIKEgrid alpha...
http://www.ita.es/jquery/kikegrid.htm This is a preview of something I'm working on. You can see a first integration of plugins "jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for navigating via mouse & keys + an edition on line, etc... *Why another grid? OK, easy answer:* * MOST grids change a simple HTML TABLE into more TABLES and add numbers of infinite DIVs >> I want it to remain SIMPLE (JUST the original HTML TABLE + smart CSS) * Other grids are SLOW in rendering time, and BAD
[jQuery] jEditable selects disappearing
Hi. My example file: http://travishannon.com/test.php In the above file, using the public release of jEditable and jquery 1.2.1 (also tried with earlier versions), I've created what should be a an edit-in-place select box. However, when I click on it, the text just disappears. I've tried it using a 'loadurl' option, and with that an empty select box is created (i.e. - it's not loading the values). I'm using the same file as the example for simplicity's sake. This is a mysql-driven value, which works
[jQuery] Image chooser / smooth popup with jQuery?
Has anyone created a similar app, using jQuery, to the extjs.com "Image Chooser"? http://extjs.com/deploy/ext/docs/index.html - click "Image Chooser Component" in the right column I need to do something similar, but simpler - my page will have a set number of 'blank' thumbnails. 1) Click any placeholder block to see a selection of thumbnails (some sort of popup or shown/hidden div) 2) Choose an image to see a large version 3) Click a link or button to close the selector, with the selected image shown
[jQuery] jQPanels
I have just posted my very first plug-in. Is an easy and unubitrusive script to create and manage sliding panels with for the moment quite few options. I'd really should like to have some feedback about the coding. Demo page and download link: <a href="http://www.andreacfm.com/examples/jQpanels/">Examples Page</ a>, <a href="http://www.andreacfm.com/page.cfm/Downloads">Download zip file</a>
[jQuery] Selecting option:first on dynamic menu list
I just wanted to share, I had this problem : in FF it would select the last <option> in IE, the first. With a dynamic loaded Menu, you need to put the .attr("selected","selected") in a function after the load is successful: $("#user_list").load("getUserList.php",function(){ $("#user_list option:first").attr("selected","selected"); }): WORKS LIKE A CHARM NOW!
[jQuery] How do I get this to fade in
I'm using the below script to load html into a placeholder, it all looks groovy but I want it to fade in, where do I add the .fadeIn() to get this to work? <script type="text/javascript"> $(document).ready(function(){ $(".thumbnail li").click(function(){ $("#large li").html($(this).html()); return false; }); }); </script>
[jQuery] Packing JS code
What I can download to pack and "minified" my javascript code? Thanks
[jQuery] Replicating Prototype lightbox with jQuery
'ello all, I was using Thickbox on an image gallery to show enlarged pictures - so far, so good. Until the boss points at one of our other sites where the enlarge viewer drops open, slides sideways, then the close button drops down afterwards - and says he wants it to work like that. I thought it looked familiar so I viewed source. Sure enough, it was the Prototype lightbox: http://www.headlamhall.co.uk/gallery.htm I don't want to use Proto if I can get away with it (nothing WRONG with it, per se
[jQuery] Problem while setting designMode="on" in firefox.
check out this page in FireFox - http://www.agrawalinfotech.com/editor.html As you can see I have 2 IFrames and I am setting then designMode="on" one using jQuery(document).ready method and other with simple old body onload method. First one (with document.ready) don't work (at least for me in FF 2). But second one works fine as expected. Can any one tell me how can I simulate body onload using jQuery?
[jQuery] Safari crash and burn on Accordion form
using Joern's accordion script (and his very slick form validation plugin) to create a 3-step form on this page: http://comparemyagent.com/fa/fa_buy-sell.cfm works great in IE and FF... but in safari (v2) it crashes the browser completely other pages on this site, using just 2-part forms, have issues in safari, but they don't kill it altogether! any ideas? I'm debating whether to write a workaround version for safari, or just strip it out altogether for some other behavior... -- -- Michael Evangelista,
[jQuery] Code review: 1 problem each in IE and FF
I was just working on a quick little project to utilize some gibberish text I've had laying around: http://www.commadelimited.com/code/fillertext/ It's a simple tool to generate filler text. You select a number, a style, then hit submit. It loads in some external HTML, then displays your selected number of paragraphs in a textarea. If you select again, it clears your previous selection, then dumps the new one into the textarea. It works really well in both IE and FF but for 1 thing apiece (and of
[jQuery] multiple selects, hiddens and text inputs with same name
For reasons I won't go into here I have a page which has a table with a variable amount of rows. Each row has a hidden, text, and select. They all have the same name. I also have other selects on the page with different names. What I need to do is access only the selects, to be able to add and remove options. So I need to know how many selects with the name "foo" are on the page I have tried this: jQuery("select#foo") which simply returns [Object object]. If I do this: jQuery("select#foo").length
[jQuery] HTML returned from GET: What's the best solution to this issue?
I'm building a little app that will read in a page of static HTML. I'd like to take the string that's returned from the get() call and parse through it, dumping only the paragraphs into a jQuery object with a length of 40. What's the best approach to this?
[jQuery] [Site using jQ] Joost
<div><a href="http://www.joost.com">http://www.joost.com</a></div> <div> </div> <div>Fred</div> <div> </div>
[jQuery] How to check for specified fonts
Back in the day, using HTML 4.01, I could check for the presence of a specified font (different from the default monospace font) by placing a DIV containing a couple of SPANs, absolutely positioned off-screen using this kind of arrangement (I'm spreading the tags because I don't know how this forum treats HTML tags): HTML: < div id="tester" > < span id="test" >< font id="testfont" face="monospace" >Some well- chosen sample text< /font >< /span > < span id="ctrl" >Some well-chosen sample text< /span
[jQuery] [newbie] toggle between two images
HI, I'm trying to do something with jQuery, and each time I think I have it right, it all falls apart. Yep, it's quite obvious me and javascript aren't the best buddies... maybe someone can give me a hand? In a web page, I would like to display an image, let's call it imgFull (that would be it's class). When the page is loaded with a javascript-capable UA, this image is immediately hidden (as soon as possible to avoid strange visual effect for slow connections), and another one is displayed at its
[jQuery] Selector with Pipe (|) character not working
I am trying to select an element with with ID which have pipe character (|).... i found that its not working CODE--HTML <input type ="text" id="firstName|1" name="firstName|1"/> CODE-SCRIPT alert($("#firstname|1").val() ); and output is "undefined".............................. Works well if i remove pipe Please help me..is it a bug or "feature"
[jQuery] interface.eyecon.ro price slider questions
Hi, I'm talking about http://interface.eyecon.ro/demos/slider_minmax.html I'm trying to create a more usable version of the slider: The slider gets information about price from my script, so I need to pass two numbers (e.g. $20 -500 - it means that indicators should take there positions approx in the center of the bar) The slider has method for setting indicator positions, but SliderSetValues() accepts strange int numbers, really. E.g. if you call SliderSetValues with [[ -40, 0]] it is approximately
[jQuery] Catfish Advert Plugin
I'm unable to download the Catfish Advert Plugin from http://www.jqueryplugins.com/plugins/view/1/ - does anyone have the source? Kia
[jQuery] sending data with $.post
hi, when using the $.post() the second argument is for the data to be send. is there a shortcut way of specifying all the data in the forms? rather than manually doing {'field1':'value1', 'field2':'value2', ...} Thanks james
[jQuery] Works in IE not FF?!
Hello! I have buttoms with some letters like Å Ä and Ö. When you click at them they should be pasted into a textarea. It works perfectly in ie 6 and 7 but not in firefox??! $("input.infoga_tecken").click(function(){ $("textarea#gb_textarea").append($(this).val()); return false; });
[jQuery] selecting elements in a nested table
Could someone help me out with the following problem. I've been thinking about this for quite a while, but I just cannot think of a solution to the problem at all. Quite simply, I would like to leave the UL containing the LI with class="active" open when the page is loaded, all other elements should just display the heading, but not the individual list items: <ul class="mylist"> <li>heading 1 <ul> <li class="active">item</li> <li>item</li> </ul> </li> <li>heading 2 <ul> <li>item</li> </ul> </li>
[jQuery] double clicking an entity, preventing double function entry.
Hi Folks, I'm struggling with some jQuery that is probably simple for most of you. I have a button on a screen that is having a click function added to it. When a user double clicks said button, the click function gets entered twice. I'd like to prevent the second entry into the function, as having it enter twice screws up the logic of the button. (It's amazing to me how many people double-click web links.) Here's some of the code... $(this).click(function() { $.get(uri, function(data){ //do stuff,
[jQuery] clone() is hidden
hi, I am wondering why after I did clone().appendTo(), the new element doesn't show up. With firebug I saw that it has display:none in it's style attribute ... I try to do clone().appendTo().show() but it doesn't work Could someone correct me on this? Thanks james
[jQuery] Is this possible with jQuery?
Hi, I have style defined like this div#Explanation{position:absolute; top:720px; width:10px; right: 0px;margin:40px 0 0 0;} and my HTML code <div id="Explanation"> <table border="1" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Login <input type="text" id="id_Login"name="Login" size="30" value="" maxlength="50" /></td> <td width="50%" rowspan="2">Popis</td> </tr> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Password<input
[jQuery] Normal way of positioning an element?
I feel like I must be missing something obvious in the docs, but while I have found methods for finding out where an element is ( offset, position ) I don't see an obvious jquery method for placing an absolutely positioned element. What is the recommended way? And might I humbly suggest to the docs maintainers that this is a hole in the docs right now? It might be worth a mention near the offset method as to how one would set that. Thanks! Iain
[jQuery] Add Href Values to create a querystring
Hi to all, hope you can help.. I need to add and remove href values as you click in a list, ex: <div id="brand"> <ul> <li><a href="1">Yahoo</a></li> <li><a href="2">Yahoo</a></li> </ul> </div> And need to pass values to form a url.. if i click on 1 then the url to get will be: some.php?brand=1 If i click on # 2, then some.php?brand=1,2 If i click on 1 again will remove the value because it was clicked already some.php?brand=2 Thanks
[jQuery] how to upload the files by the multiple file upload plugin
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond, new york, times, serif;font-size:12pt"><DIV></DIV> <DIV> <DIV class=message-text>hi guys,<BR><BR>the plugin i called in subject is what i need, thanks to all contributor.<BR><BR>But otherwise i couldn't solve the serverside programming of this plugin. Its queues the files but i cant even know how can i catch this queue's information. Are they in hidden field or what? If so whats the
Next Page