[jQuery] Form submit issues
What is wrong with this code? <code>$(document).ready(function() { $("#f_submit").hide(); $("#f_altsubmit").click(function(event) { $("#checkoutform")[0].submit(); return false; }); });</code> In FF3 this throws an error in the Error console : Error: $("form") [0].submit is not a function but this error does not show up in Firebug. Also what is strange is that when i change the method from submit() to reset() ... the reset works ... It seems my form doesn't have the submit
[jQuery] [autocomplete] Adding data via external function
Jorn, great work on autocomplete. One thing I'd like to see is the ability to pull the data from a function (instead of a static array or url). The function could return the array instead, however it wanted to go get the data. Imagine: autocomplete: function(urlOrDataOrFunction, options) { I tried to hack it in myself, making a function that returned an array of objects,using typeof urlOrData == 'function', and then invoking the function in the "function request(term, success, failure)" section,
[jQuery] Superfish 1.4.4 released - has auto-submenu arrows
Third release in 7 days, and like the subject says: auto generation of submenu arrows via an added span, customisable CSS, and nicely degradable indexed alpha-transparent png that should work for all colour schemes and menu types. Can be easily disabled via options object. http://users.tpg.com.au/j_birch/plugins/superfish/ Cheers Joel Birch.
[jQuery] Find out current stylesheet title
Hi guys, I am new to jquery and I am stuck :P Basically I have a few style sheets which users will be able to choose between (through php), What I want to do is find out which style sheet is being used using jquery. So I need to find the title of the stylesheet that has a rel="stylesheet" and if it is equal to ... then do ... Thanks for your time :D
[jQuery] simpleTree with POST instead GET
Hi guys. Do you know how to use POST instead GET method for simpleTree(<a href="http://news.kg/wp-content/uploads/tree/d&d/">http://news.kg/wp-content/uploads/tree/d&d/</a>)? Cheers Marco Antonio
[jQuery] Problem with Cycle plug-in using random and previous
I've come across a problem with Mike Alsup's very good Cycle plug-in. This occurs when using both the random feature and a "previous" link. "Previous" will go to the previous item as it is ordered in the HTML, regardless of what appeared previously to the user in the random order. For example, if I have elements to be cycled which appear in the page code in this order: A, B, C But when randomized appear to the user in this order: A, C, B Then, if the user clicks the "Previous" link with B showing,
[jQuery] Mouse moves on one element triggering a drag on another
I have a series of elements the top of which partly or wholly covers the rest (initially positioned/layered using CSS). I want to drag one of the lower elements but (I guess obviously) only the top element gets the mousedown/mousemove events. Is there a way of passing those events through to one of my lower elements? In case you're wondering what I'm doing, I have a transparent PNG file and so the user can see the lower elements, just not click on them directly. Regards and thanks John
[jQuery] [New plugin] Colorpicker
http://eyecon.ro/colorpicker/ A simple component to select colors in the same way you select color in Adobe Photoshop Features * Flat mode - as element in page * Powerful controls for color selection * Easy to customize the look by changing some images * Fits into the viewport
[jQuery] Problem with Cycle plugin using random and previous
I've come across a problem with Mike Alsup's very good Cycle plug-in. This occurs when using both the random feature and a "previous" link. "Previous" will go to the previous item as it is ordered in the HTML, regardless of what appeared previously to the user in the random order. For example, if I have elements to be cycled which appear in the page code in this order: A, B, C But when randomized appear to the user in this order: A, C, B Then, if the user clicks the "Previous" link with B showing,
[jQuery] jQuery issues in Firefox 3
Hi all, I'm having a few issues using jQuery in Firefox 3 and was wondering if anyone else has had similar problems. The problem, as far as I can tell, stems from what appears to be an early execution of the document.ready function - in this case before an external stylesheet has been loaded - making width(), height() and any css() method unpredictable. I've put together a test case here: http://dev.cognite.net/sandbox/jquery.html That's basically a wrapper that contains two iframes, both with exactly
Column Manager Problems
Has anyone run into an error while saving the current state of the columns into a cookie in the column manager plugin. Iget that the function is not decleared??? Thanks, Jorge
[jQuery] Jquery Form Design?!?
Hi there we search a jquery plugin that allows us to design form elements. i talk about all the major form elements. is there a plugin that allows us to design all our forms? i fond jNiceforms and Jforms but they both seems to be a little buggy. i search for something that works and looks the same in the major browsers. (IE 6+, Firefox, Opera, Safari....) can someone help me.
[jQuery] Problem with Cycle plugin using random and previous
[2nd post attempt] I've come across a problem with Mike Alsup's very good Cycle plug-in. This occurs when using both the random feature and a "previous" link. "Previous" will go to the previous item as it is ordered in the HTML, regardless of what appeared previously to the user in the random order. For example, if I have elements to be cycled which appear in the page code in this order: A, B, C But when randomized appear to the user in this order: A, C, B Then, if the user clicks the "Previous"
[jQuery] click event bug?
i load several tables contents via AJAX. after each load, i do bind("click", function(){ ... }). this should bind it to all matching elements of the DOM. but, in all browsers, it does apply only to newly loaded parts, the others seem to be "disabled" somehow. this is the real code inside function renewEvents(), called after each AJAX success: $("tr.basic").unbind("click"); $("tr.basic").bind("click", function(){ $(this).next().toggleClass("hidden"); });
[jQuery] ThickBox - Full Size
Hi, Is it possible to have ThickBox have a Full Sizelink that would show either another image file or the original image file in a seperate page. Similar to the way you normally would click on a thumbnail and see the full size image? Thanks, Dave
[jQuery] using a selector to obtain content from an ajax response
In the example line below the responseText is the full HTML body returned. I want to be able to parse the HTML and then use a jQuery selector to extract part of the HTML content. The line below sets a div #poi-review-container with the full content. $('#poi-review-container').html(responseText); Something similar to JQuery.load(), where I can provide a selector to extract. i.e. $("#links").load("/Main_Page #p-Getting-Started li");
[jQuery] autocomplete
The autocomplete plugin by Jörn is awesome but limited in that i want to get my data for its from a function call instead of a url. let me explain. Allowing data to be pulled from a URL is great but it locks me into the required format. Allowing data from an array is cool but it locks me into a fixed set of data. By allowing a method (function) to be past in i can abstract the ajax call and format the data to a format required by the plugin but still have my url script return the data how i like.
[jQuery] JSONP cross-domain with POST
I use the CodeIgniter PHP framework and one of it's features is that the GET global is destroyed. I therefore use jQuery 1.2+ with POST for ajax/jsonp. This works in all jQuery versions, including the latest 1.2.6, for the _same_ domain. When it comes to cross-domain calls, something changed between versions 1.2.1 and 1.2.2 of jQuery. 1.2.1 works, while 1.2.2 and newer does not. Error is what you expect and the XHR connection fails to open: Access to restricted URI denied code: 1012 [Break on this
[jQuery] Sumbit Twice a form
How can i submit a form twice, let say I want to save the form data on my database and with the send the same form data to a different script in an external host.
selection works for 1 code snippet,not for an other [solved]
Ok, here is my problem i have these to code "Snippets". The one on the Bottom works as intended, the top one instead doesn't work. as you'll see, say are nearly the same, except for the id. I don't get the difference, why the one works and the other not .... Hope somebody can help:) PROBLEM CODE: //------------------------------------------------------- // the openSubs cell //------------------------------------------------------- var resultHeaderTableDashOpenSubs = resultHeaderTableRow.insertCell(-1);
[jQuery] [validate] updated variable not pass to remote method
Hi, I use captcha to prevent spam in this way (token is a random string needed to validate user input field) var token = 'somerandomstring'; $(".myform").validate({ rules: { captcha: { required: true, remote: "/captcha.php? t="+token } } }); Now i need to refresh che captcha code, so I call this function: function newCaptcha() { $.getJSON("/newCaptcha.php", function(data){ token = data.t; // some stuff }); } Why the validator doesn't pass the new token?
[jQuery] Forgetted link
Hy Here is the link what you forget <a href="http://www.momentcity.hu/site/flash/index.php">http://www.momentcity.hu/site/flash/index.php</a>
[jQuery] ff3 and load
This works with ff2, but doesn't seem to work with ff3: $('#csv').load('file://///kansio/postinumerot.csv'); Is there way to make this work with ff3 also?
[jQuery] jqModal r13 released!
I've released the 13th revision of jqModal. Maybe I should have jumped to 14... but scientists are not superstitious. I do believe in Stevie Wonder though ;) If you have a chance; see him on his latest tour. Anyhow; jqModal is a tiny general-purpose windowing / dialog / popup / modal / *box / what-have-you plugin. The new revision contains some minor code tweaks, the ability to overide default parameter values via the new $.jqm.params global, and the removal of hard-coded pointer styling of modal
[jQuery] Odd Issue with Effects causing input values not to submit - Help!
Here's the HTML: <form action="search.php" method="get"> <div class="contentArea"> <a href="#" id="advancedOptsLink">Advanced Options</a> </div> <div class="contentArea" id="advancedOpts"> <table> <tr> <td id="advancedOptsRow1"> <input type="text" name="test"> </td> </tr> </table> </div> </form> Here's the Javascript: $("#advancedOptsLink").click(function() { $("#advancedOpts").toggle("blind", { direction: "vertical" }, 600); return false; }); When I click on Advanced Options, any inputs inside of
[jQuery] FlexiGrid Problem
Hi All, I using two instances of FlexiGrid in a page and I'm encountering the below error on the pagination stat: Page of [object Object] What do you think causes the error? By the way this error appears only on FF. It is not displaying on IE but still there is an error (records don't appear). Thanks, Nimrod
[jQuery] UI Dialog with BUG when resize in IE?
Hi Guys, I´m with problem with UI Dialog, and I´m thing it´s a bug. In this UI Dialog example http://docs.jquery.com/UI/Dialog is possible to verify. If you resize the Dialog to right, for example, and then try to resize to left, the titlebar and content doesn´t seems to reduce it´s width. You can observe looking the "X" icon used to close the Dialog. It´s a BUG? PS. In FF it´s ok. Regards
[jQuery] Loading external contetnt slows website
I use the ajax function of jquery and the load function to include html (menu-content of clickmenu and selectbox). In FF3 the webpage loads pretty quick, but in IE7 it takes way too much time. Why is that. I thought ajax should speed up the process 'cos it loads content asynch by default. http://www.sionvalais.com/toprated
[jQuery] tag being output in wrong order from load call
The code which is created on the page is like this <a href="jq-remove.php" id="Delete_<?php echo $thiscart-
[jQuery] Need truncator/Expander help (trimming on # of objects rather than character count)
I am looking to add an expander/truncator feature to a site I'm building. However, the plugins and other code snippets I've found cut off text based on character count. What I'm looking for is something that cuts off based on a specific number of paragraphs. So, for example, inside a targeted div, after the second it would hide all remaining s, and insert a "read more" link. Clicking would expose the hidden elements and add a "read less" link. I haven't been able to figure out a way to do this...
[jQuery] traversing over items (like foreach in php)
Hey guys, I have a list that contains images as anachors. I need to iterate over the items and apply the height of each image to the anachor that surround it (to fix a displaying problem in IE). My code would look somehow like this: $("#navi ul li a").attr("height", $("#navi ul li a img").attr("height")); Of course this doesn't work, as the code needs to iterate over every list item seperately. How would I achieve that? Thanks for you help, Samy
[jQuery] MouseOver/MouseOut Hover
I am trying to do a fade out and in on mouseover and mouse out. Below I have a div that contains these functions and fades out or in an image on toggle. The problem is after mouse over, it repeats over and over without stopping. I also notice the opacity on mouseout is always 1 and never 0. Is there any reason why the mouseover keeps repeating itself? <div id="ctl00_cphMainWell_dlPageSize2_ctl00_ProductView_pOuter" class="zoom" onmouseover="setHoverState('ctl00_cphMainWell_dlPageSize2_ctl00_ProductView_pOuter');"
[jQuery] jQuery History Plugin
Is there a good jQuery history plugin that works with form submissions? Critical part being form posts here. Found one that seems to only work with click events...need the form posts. Any help would be greatly appreciated!
can this code be shortened??
Hi, I'm new to JQuery (and javascript in general) and just created the following code which works fine. When a user clicks the #category1 element, certain div elements (itemA..ItemN) are either hidden or shown. Based on what the code is doing, would there be a better (shorthand?) way of writing this code? Thanks! $(document).ready(function() { $('#category1').click(function() { // hide/show relevant divs $('.itemA').show(); $('.itemB').show();
jQuery HoverImageText
Hi all, i would like to have an effect like this one http://www.itsavesyou.com/HoverImageText.htm (The text should appear on the image on mouse over) The above example is working but it's totally wrong from an xhtml point of view causing some bad layout problems on my site. The error is in the position of the <p> tag showing the text over the image which is not allowed inside the <a> Anyone knows how could i get a correct output for my desired effect ? thank you for your time!
Can't replicate this jump menu due to small brain
I'm just trying to replicate this jump menu: http://filamentgroup.com/examples/RollAUI/jumpmenu.php I don't want the ability to change theme or anything like that i simply want that menu. I have tried for an hour and a half now and i have nothing. I feel useless. Here follows some of my pathetic attempt. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
How to hide the dragger helper with an effect
[hello every one! this is my first topic/post here!! fantastic forum!] I made a custom dropshop for wp e-commerce, and everything works great (i can explain how to do that if someone wants). The only problem is the helper: once i release the drag on the droppable zone i'd like to make it disappear with a drop-up effect. If I add an $(ui.helper).hide in the stop function in the draggable declaration the helper becomes stuck in the position, the drag does not work anymore and so the droppable event.
[jQuery] jeditable and remote update failure
Hello, If I understand correctly jeditable submits the changes in fire and forget mode. What if the submitted data failed to be saved on the server side? Can jeditable revert the changes if the call returned some error? Felix.
[jQuery] jqModal problem with IE6
Hello! For the past 3 days I have been staring at this problem and I can't get a grip on it. I am using this code in my js: $('.opmerking').click(function(){ var a = "#test" + $(this).attr("title"); $(a).jqm({ onShow:function(h) { h.w.css('opacity',0.92).slideDown(); }, onHide: function(h) { h.w.slideUp("slow",function() { if(h.o) h.o.remove(); }); } }) .jqmShow(); }); Within firefox this works fine. Every modalWindow that is triggered by a hyperlink with class=opmerking, is shown correctly. But
[jQuery] jqModal problem with IE6
Hello! For the past 3 days I have been staring at this problem and I can't get a grip on it. I am using this code in my js: $('.opmerking').click(function(){ var a = "#test" + $(this).attr("title"); $(a).jqm({ onShow:function(h) { h.w.css('opacity',0.92).slideDown(); }, onHide: function(h) { h.w.slideUp("slow",function() { if(h.o) h.o.remove(); }); } }) .jqmShow(); }); Within firefox this works fine. Every modalWindow that is triggered by a hyperlink with class=opmerking, is shown correctly. But
Next Page