[jQuery] Finding form tag wrapping around image
<div dir="ltr">Hi, I had an image input to trigger a form submit for a download to Excel, but because it appears at the top of the page when you hit Enter the form doesnt submit, the Excel thing fires. So I have changed my image input to a plain old image and need to find the form id that it sits in, so I can fire a submit on that form. the pages where this appears are usually 2 forms on the page, one at the top and one where this image is a child. How do I find the id of the parent form? The page
[jQuery] JQuery with Flash
I don't know if I could handle flash with Jquery. Currently I have a div embedde with a flv video in my page.I want detect when the current flash is finished playing. To be exact, when the flash is finished playing I want jump back to my index page. I wonder if I could do this?
[jQuery] IE7 Checkbox + Label + .change() bug
I ran across this while working on a checkbox "check all" script. http://members.iinet.net.au/~malen/jquery_ie_checkbox_bug/ Firefox, Opera and Safari all work correctly, however in IE6 and IE7 it requires 2 clicks in order to toggle the change state. The wierd thing is that the two clicks don't double-toggle the checkboxes. I've done a search but couldn't find anything relating to this bug. Anyone have any ideas?
[jQuery] Two .ajax POSTS not working?
Hi all, I have the following code run when a button is clicked: // Check the username isn't taken var dataString = 'username='+ username + '&password=' + password; //alert (dataString);return false; $.ajax({ type: "POST", url: "bin/login-check.php", data: dataString, success: function(msg) { if(msg=='yes') { errors = 1; $("div#username-error").addClass("red");s $("div#username-error").show(); $("div#username-error").html('Your
[jQuery] AutoComplete
Hello, I have a JQuery AutoComplete thats gets the value using JSon. Using Firebug I see that the values are being returned in the right way: ["First","Second"] But I get an error: value is undefined highlight()()JQuery.A...mplete.js (line 409) fillList()JQuery.A...mplete.js (line 648) display()()JQuery.A...mplete.js (line 666) receiveData()JQuery.A...mplete.js (line 316) success()()JQuery.A...mplete.js (line 355) success()JQuery.js (line 2818) onreadystatechange()()JQuery.js (line 2773) [Break on
jQuery show() function
hi, i am creating a blog and am using the show() and hide() functions to display and hide the blog posts. one of the posts is a video post and it interferes with the show('slow'); function - jumping around the page. if you visit: http://www.chunkymonkeycreative.com/swerve and click the post titled "DJ Swerve on MTV Base" you will see what i mean. Is there any way of hiding the video (or the div it is in) until the show() animation is complete? any help is greatly appreciated thanks
[jQuery] Close Firefox on modal hide
Hi All, I am using jqModal, and there are 2 buttons. 'Continue' and 'SaveAndExit'. SaveAndExit, saves the information and then closes the modal dialog and then closes the main window also. (Essentially, exit out of the app). I have seen lot of messages, saying we cannot achieve using FF. Can someone throw some light on this? Thanks Gautam
[jQuery] File upload(form & blockUI plugins)
Hello, I am trying to make a file upload portal. I have the php portion working. What I am now trying to do is have a blockUI pop up while the files are being uploaded. Below are my two files. Any help or direction is greatly appreciated. I have so far been able to make the blockUI message pop up and it just hangs there or I can make it upload the files but the blockUI never pops up. If you look you will see lots of commented out things as I have tried various approach's. You will also see, I am
[jQuery] Create excel file from table data
Hi, Am wondering if this is possible with ajax and jquery. I have a table that contains data I would like to export to excel. Is it possible using the .ajax() method to post the table data (e.g. $ ("#tableid")) to the php page on the backend and have it return an excel file? I plan on using the pear module Spreadsheet_Excel_Writer to generate the xls file. Any ideas on whether or not this is possible. M
[jQuery] jQuery test suite on new Google Chrome browser
Hi, With all the buzz around the new javascript engine in Chrome, I decided to run the jquery testsuite ( http://jquery.com/test/ ) on my 3 installed browsers (ff3, ie7 and chrome, on wixp sp3) ====================================== IE7: Tests completed in 49734 milliseconds. 0 tests of 1270 failed. FF3: Tests completed in 31710 milliseconds. 0 tests of 1270 failed. Chrome: Tests completed in 28212 milliseconds. 2 tests of 1270 failed. ====================================== Even though, Chrome seems
[jQuery] Nesting if statements not working
For some reason, when I am nesting if statements, it seems to bypass the first if, and go right to the second one, even if the value of #duplicateInput is more than 10. I want the statement to check to see if the input field has a number that is equal or less than 10, then, if it is, throw an alert making sure they want to delete multiple items. If the number is higher than 10, an alert will let them know they need to enter a lower number. Did I do something wrong here? //Add click function and confirm
[jQuery] unfefined properties (filtering jquery by class)
My goal is to pull out all anchor tags and replace the href value with a rewritten value (based on original href). However, i am getting errors indicating that the object or property is undefined when there are no anchor tags with the given class name (which is why i used filter...) I have the following href pattern: File Library/filename i need it to be /newPath?library=File+Library&component=filename This works as long as at least one anchor tag exists of the appropriate style class but not when
[jQuery] Multiple AJAX calls problem
Hello. So I have a problem that when I get jQuery code in ajax response and you click few times to activate ajax call, there are multiple instances of same code. Lets see the example with keydown. FILE 1: <script> $(document).ready( function() { $("#my_div").click(function() { $.ajax({ type: "GET", url: "test.php", success: function(data) { $("#div_ajax").html(data);
[jQuery] [validate] Help with code logic!
Hello there, I just need to be cleared up on a few points when using the validation plug-in - When i use the basic function : $(#myform).validate(); it work fine for required and email fields. But as soon as i try to customise with "rules:" or try combining the basic function with another one making a specific field required depending if a checkbox is checked or not .... nothing works anymore! What is the exact syntax for mixing them all together? I hope i am clear ... thanks for any help its urgently
[jQuery] IE6 and ajax method in POST mode
Hi everybody, this is my question : i have this jQuery code : ======================== $.ajax({ type: 'POST', // Méthode post url: './Includes/chargerModeles.php', // Fichier appelé data: {idMarque: unIdMarque}, // Paramètres du post dataType: ($.browser.msie) ? "text" : "xml", error: function(requete,idErreur) { alert('Erreur de chargement AJAX. Code
[jQuery] slideshow + offsetHeight
Hi, well I'm trying to do a slideshow with 3 different pictures but it doesn't work as it should be. The pictures shell move through the frame. They should start at the bottom of the frame so you can't see them at the start. And end at the top so they completly move out and can't be seen anymore. That's the code at the moment: var i = 0; function runIt() { $("#slideshow img").css("display", "none"); var slideshowheigh = 300; //$("#slideshow")[0].offsetHeight; $("#slideshow img:eq("+i+")").show("slow",
[jQuery] jCarousel not properly working in Safari browser!!!
Hello Everyone, I 'm developing my web application using ASP.NET 2.0 with Ajax Extension 1.0. I have recently downloaded the jCarousel component (jquery.jcarousel.js with jquery-1.2.3.pack.js) and made use of it in my web application. The horizontal scrolling working fine in IE7 and Firefox browser but it is not working correctly with Safari browser. In Safari browser i inspected and found that the width of the UL is smaller compared to that of what is shown for Firefox or IE7 (verified in Firebug
[jQuery] chaining and functions
Hi, another starter question: I do not understand why $('#content').empty().append("<b>hello</b>"); works, and this works $('#content').empty().append(makeContent()); function makeContent(){ return "<b>hello</b>"; }; and this $('#content').empty().append( function() { return "<b>hello</b>" } ); does not produce any output? thanks, Jan Vandorpe
[jQuery] Jquery noob and Firefox3
Hello, I am starting out with Jquery, after w friend showed me the amazing things you can do with it. I am currently working through the tutorials but I do not see any of the effects. I thought it was my fault but have followed this tutorial: http://docs.jquery.com/Tutorials:How_jQuery_Works to the T but nothing happens. I don't see any effects :( Is it a Firefox3 thing or where can my problem be? Here is my whole (simple) html file. The latest jquery.js file (1.2.6 minimal) is in the same directory
[jQuery] Auto complete suggestion header
Hi, I have tried to added a header to my suggestion. When i freshly load the page and enter any text the suggestions are coming but the header is not coming, but when i delete the selection and enter the text again the new suggestions are coming with header. please find the code below for the reference. $results.prepend('<div id="ac_top"></div>'); if (options.closeButton) $results.prepend('<p id="close_button"><a href="javascript:void(0)" onclick="close_results(this);" title="Disable
[jQuery] Repeating a function call on hover/mouseover/etc
Hey guys. I've poured over the docs, and mouseover/hover/etc only trigger once. I want it to continue to trigger a function while the element is hovered. I've tried: $('#element').hover(function() { while(true) { someFunc; } }, function() {}); Unfortunately, this screws things up. The while loop hangs the browser for a while before it finally throws the "this script has been running too long" message. I've tried looking at some of the scrolling plugins to see how they do it but the only one I can
jquery validation
Helle there! I am validating a form using the jquery validation plugin from bassisstance.de and i'm having a few problems : when i use the built in validation with $(#myform).validate(); But when i try and combine it with other functions nothig woks anymore - no error messages, nothing - Whats the synthax to be used to mix different functions together?? thanks for any help
[jQuery] Problem with Superfish and Cycle Plugin
Hi, Not sure if this is the right place to send this... I'm using the Cycle plug-in for creating a slideshow and I have the Superfish menu plug-in on the side. The problem is when one of the sub-menus are opened, they go behind the slideshow... not good Any suggestions? Thanks, Lex <lex@xq.co.nz>
[jQuery] JQuery Multiupload Error ?
Hello ! I use the Plugin ' multiupload' http://www.fyneworks.com/jquery/multiple-file-upload/ in the version 1.29. I select a file. Afterwards I remove this file with ' remove' Button. In Internet Explorer arises an error: After that remove for the file the file to the selection field one transfers. The Upload of this file is possible. Who can help ? Yours sincerely Stephan Krauß ---------------------------------------------------------------- Hallo ! Ich verwende das Plugin 'multiupload' http://www.fyneworks.com/jquery/multiple-file-upload/
[jQuery] Moving an Element
Hello, I try to move an Element ( a div ) from one div to another. But I fail :-( I use this code to do it: tmp = $('#elementToMove').clone(); $('#elementToMove').remove(); $('targetDiv').append( tmp ); But this is not working. Where is my problem? Thanks for your help, STefan Sturm
[jQuery] refreshing clueTip
Hi there, I'd like to refresh a tooltip I am looking at. It is a default tooltip activated by "mouseover". When clicking at the hovered element, I have to change the tooltip-content. This is very easy, I just have to change the title-attribute and call $(element).cluetip() again. But I have to move out of the element and hover again to see the new content. I played around for a while but have no clue how to do this. Any ideas? Eric
[jQuery] Animate Query
Hey All, Im kind of new to all this jQuery stuff ... Im building a site at the moment and i want to put some jQuery in, but im not sure how to go about it. What i want to do is wait about 2 or 3 seconds after the page has loaded, fade in some text, wait another 2 or 3 seconds, then have it scroll to the left until its off screen, then once thats done, loop it so that it fades in again etc etc This is how i have formatted the text that needs to have the jQuery added to: <span class="artistname">Armin
[jQuery] No response with jQuery Form Plugin in Opera
I have a form, that uploads a file. It is initialized by the following code: $(document).ready(function() { $('#image_upload_button').click(function() { $('#imageform_step1').ajaxSubmit({ beforeSubmit: function(formData, jqForm, options) { alert('sending'); }, success: function(responseText, statusText) { alert(responseText); }, dataType: 'html' }); } return false; }); } And the form is simple: <form action="/blog/add/ajax_image/step1/" method="post" enctype="multipart/form-data" id="imageform_step1">
[jQuery] jQuery.forms javascript in response ignored ?
Hi there! I do $("").ajaxSubmit(...,mySuccessCallback) In the sever response I have not only html code but also some javascript that should be executed. <div id="main"> <script language=javascript>...</script> <div id="content">...</div> </div> but in the mySuccessCallback function in the 'response' field I get only html without script. And obviously it's not executed. <div id="main"> <div id="content">...</div> </div> Any ideas how to make it work ?
Export to CSV file
I have a table which I would like to export to a CSV file. I have searched and there seems to be no export to CSV (plenty of create a table from a CSV however) Any ideas guys?
[jQuery] Superfish problem when using IE7 'back' button
I've been working with Superfish for a little while now and I noticed some unusual behavior when I use the back button in IE7. Using the example.html in the download I set up the top level links to go to an actual html page (doesn't matter what, i.e. http://www.google.com). If I follow the first link and then hit IE7's 'back' button, the menu reloads except the first menu item is selected with it's dropdown already displayed. Also, when I highlight any other of the menu items, that first menu item
[jQuery] descendants
I have some table rows: <table> <tr class="tableRow"><td></td><td></td><td><div>Blah <div><input="checkbox" id="mycheckname_4343"></div></div></td> <tr class="tableRow"><td></td><td></td><td><div>Blah <div><input="checkbox" id="mycheckname_3422"></div></div></td> <tr class="tableRow"><td></td><td></td><td><div>Blah <div><input="checkbox" id="mycheckname_3243"></div></div></td> </table> that I am selecting like $("tr[class=.tableRow]").each( function(i) { //inside each table row, there are several
[jQuery] Question about hiding table
Hello everyone, I was trying out this example (http://www.webdesignerwall.com/demo/ jquery/accordion1.html) and building further on it but I got stock somewhere. I have the exact same structure, but within the p element two child elements (Span and table). Now the span is hides like the rest of the paragraph but the table won't hide. Here is my code: http://codedump.mastercode.nl/527/ and the javascript: http://codedump.mastercode.nl/528/ Thanks in advance
[jQuery] jQuery uploading. Data type question.
<div dir="ltr">Greetings! I am trying to use the Ajax File Upload here: <a href="http://www.phpletter.com/Our-Projects/AjaxFileUpload/">http://www.phpletter.com/Our-Projects/AjaxFileUpload/</a> Anyway, I think it's already good enough but whenever I try uploading a file, it doesn't recognize the filetype. Kind of like a corrupt file. Base on the jQuery docs, the DATA TYPES I could find were "html", "json", "xml". What data type do I need to specify if I'm transfering a whole file and storing it in
[jQuery] Problem with taconite
Hello, I've a problem with a javascript in an taconite xml my xml here : http://www.olympsport.be/oubli_password.php The javascript in the eval balise don't put the value of my field in the t1 variable. my eval balise has perhaps a problem in his form ? Could you help me Thanks
[jQuery] strange .toggle() behavior
Hi jQuery community, I hit an interesting situation with jQuery today where the toggle() method exhibited some strange behavior. Show / hide methods inside the toggle() worked fine, but the setting and removing the "clicked" attribute on the checkbox to which the toggle was bound did not. I tested this by re-writing the behavior as a .click() with some conditional logic, with the if / then branches executing the same statements as those inside the two toggle() functions. Result: .click() with if
[jQuery] Sorting mixed data
Hi all, Currently i am working on tablesorter plugin with jqery to sort column values in a table. My problem is when there is mixed data in a column like some numbers and "-" (when there is no data to display) its sorting the digits treating as string. e.g. in a column if the values are 7, 12, 9, 15, - then it treats 9 as a highest value. When i sort it it arranges like 9,7,15, 12, -. Thanks, Swaroop
[jQuery] Selecting same img using 2 selectors, but both doesn't return same value & doesnt equal each other :S !
I'm trying to select an image with two ways, here's a demo : http://www.duettographics.com/index.php when I apply the img.hover, I made an if statement to check if this image is current selected one, if so, it should doesn't apply the fade effect, but it does !! What's problem with this !!
jQuery, PHP, MySQL - Sortable List
I am trying to make a sortable list with Jquery that updates my database with the positions of each item in a list. I know PHP, but I don't know JQuery at all and I was hoping someone could help me get on the right track. I searched around on the web and found this example in different forums, but it doesn't seem to work for me. Here's my xhtml list: <ul id="sortme"> <li id="foo_1" class="sortitem">Lorem</li> <li id="foo_2" class="sortitem">Foo</li> <li id="foo_3" class="sortitem">Bar</li> <li id="foo_4"
[jQuery] tablesorter data excepts
hi guys, i'm using the tablesorter plugin. Does anybody know how to exclude table rows. because i habe a table like this <tr> <th class="head">1</th> <th class="head">2</th> </tr> </tbody> <tr class="basicinfo"> <td></td> <td></td> </tr> <tr class="subhead"> <td></td> <td></td> </tr> <tr class="details"> <td></td> <td></td> </tr> rows with class subhead an details are hidden an can be toggles by clicking on basicinfo. but now i dont want that these two rows are sortable Only tr basicinfo must be
Next Page