[jQuery] $.post NOT_ENOUGH_ARGS
My source is "jQuery in Action" (Bibeault/Katz) - page 249, the $.post function. According to the documentation post() takes three arguments: URL, parameters, callback where callback is a function with 2 arguments, response and status. I've tried the following - which is called from the form as onsubmit="CheckForm0(this);" [code] // argument 'form' is the reference to entry form function CheckForm0(form) { $.post(form.action,form, function(response,mystatus){ alert('response: ' + response + " status:
[jQuery] IE7 and ajax isuses + ajax history issues
Hi everyone, First of all, THANKS for jQuery -- it is the most amazing javascript tool I have ever used. I have two questions however. 1. I have an ajax application where breaks when forms are submitted on IE7 or IE6. I use IE8 and it works fine. My friends use IE7 and the behavior they get is weird. When they click on the element that triggers the ajax it is as if all the form fields do not exist. I looked online and people say to do "onSubmit='return false;'" or some version of that, but that doesn't
[jQuery] trigger click event of anchor endless recursion
jquery 1.3.1 jq("#miniCalendarTable td").hover( function(){ jq(this).addClass("hover") }, function(){ jq(this).removeClass("hover") } ).click(function(){ jq(this).children("a").trigger("click"); }); this is my script.. i swear I have done this before but maybe not. the hover works fine... but when the click function runs I get endless recursion... when i return the length of the children("a") it is 1 any ideas?
[jQuery] Increment Value. What am I doing wrong?
Hello, I have an input on my page as follows: <input id="Index" name="Index" type="hidden" value="0" /> I am trying to increase and decrease the value of the input as follows: $index = $('#Index'); $index.val()--; I always get an error: invalid assignment left-hand side What am I doing wrong? Thanks, Miguel
[jQuery] How to get the selected values in the multiselection
Hi, the following code can only get one selected value in the multiselection. $('#selection')[0].value However, I want to get all the selected values from the multiselection Could you please give me some suggestions thanks min
[jQuery] jeditable and checkboxes
I know that there's some information I'm missing here. Been trying to get to Mike's site today but it seems it's down: http://www.appelsiini.net/ I've put together an extension for doing checkboxes based on some different stuff I have seen online and come up with the following that I've added to the jeditable.js file at the end. // Create a custom input type for checkboxes $.editable.addInputType("checkbox", { element : function(settings, original) { var
[jQuery] Appending Results to <p>
Hi, I posted the thread below in the wrong forum... im hoping to get a solution here.. hopefully.. Thanks Original Post: ================================================================================ Hi I'm having problems appending my results to a paragraph without refreshing ... I've done a simple ajax test on my own form but calling google.ca to do a search . I want to output the result within a DIV on the current page without refreshing the page. For some reason, it is displaying the whole
[jQuery] Select all even row in table that are not with a specified class.
Hallo all. I got a table like this <table class="font_quotazioni"> <thead> <tr> <th title="Data Contabile" class="chars4">Nome</th> </tr> </thead> <tbody> <tr class="midlight" > <td>foo</td> </tr> <tr> <td>foo</td> </tr> <tr> <td>foo</td> </tr> </tbody> </table> In my document.ready I set a class on even rows $("table.font_quotazioni tr:even").addClass("even"); I would like to exclude all the rows that got a certain class (e.g <tr class="midlight" >) Is it possible?
[jQuery] document.createComment usage - can be improved?
Hi, I'm new to jQuery. I had to use 1.3.1 with the HtmlUnit Java web testing library and we found that with publicly released versions of HtmlUnit it fails because the JS engine cannot find the function document.createComment Is this a standard DOM method or something "widely supported" by browsers? I looked in the jQuery source, and this is only used once, and only as part of detection of other bugs: (function(){ // Check to see if the browser returns only elements // when doing getElementsByTagName("*")
[jQuery] caching getScript() :: ajax question
hello, i am getting a script which calls back some json to my function "showMyVideos". during my research in this group i read that getScript wouldn't cache. in my case i would like to add some cache (lazy loading) to my getScript function since it isn't necessary to update a already searched result (during one session). i am not an expert on jquery.ajax and didn't figured it out. i guess i messed it up with the "execution" of the link (remember: there's a callback function to call). ##### works,
[jQuery] How to get the selected values in multi-select
Hi, everyone. The following code can only get only one selected value in the multiple selection widget: $('#selection')[0].value However, I want to get all the selected values in the multi-select. Could you plesease give me some suggestions thanks min
[jQuery] Cannot Get JQuery Ajax to work in Google Chrome browser
I have a piece of code that updates a script with the page scroll and time on page when the user closes the page. I have this working in Firefox and IE, but it will not work in Chrome. Chrome will calculate the values correctly, but it will not post to the script. I have narrowed down the problem to being in the JQuery call to the ajax function. Does anyone know what I am doing wrong here? var maxScroll = 0; var pageOpen = new Date(); var currentURL = window.location; var updateURL = "/wp-content/plugins/extra-tracking/update.php";
[jQuery] Tutorials on jQuery
A basic introduction to jQuery and the concepts that you need to know to use it. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ http://coaxialcable.webs.com/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[jQuery] catch-all clicks
Hello, is there a way to catch-all click on the page? I tried $("html").click(fn), but it doesn't work..
[jQuery] Text append / replace not working in ffx 2.x and HtmlUnit
Hi, Forgive me as I'm a total jQuery n00b. However, I am rather confused. I have the following trivial code: <html> <head> <script src="jquery-1.3.1.min.js" type="text/javascript"/> <script type="text/javascript"> $(document).ready(function () { $("p").text("The DOM is now loaded and can be manipulated."); }); </script> </head> <body> </body> </html> This is effectively lifted from the ready() documentation page http://docs.jquery.com/Events/ready#fn This code works
[jQuery] Search for plugin - 3 horizontal growing elements
Hi :D I am searching for a jQuery plugin that can put 3 elements side-by- side, when you move your mouse over one of the elements it grows horizontal and take space from the 2 other elements. A flash version of this can be seen at the following url: http://www.arken.dk/ Hope someone can help me and thanks in advance Martin Hintzmann
[jQuery] JQuery Animate Event
Is there a way to execute a function while there's an even in transition? thanks
[jQuery] Having trouble using URL Parms with .load()....
Hey all. I have a form with about 20 fields elements and I also have 4 hidden fields that I'm trying to send to the back end program. If I run the code as is but don't send any parameters in the URL, it returns the output from my back end program fine. If I send the URL parms, the back end code executes with all the parms having values, but I don't get any output back from the back end program. I tried using escape(url) and although I'm able to get output returned, it's an error about the URL containing
[jQuery] move table row based on a cell. Row filtering
Hi all, I'm a little stuck. I have two tables. One has several rows of data with multiple columns. The other is empty. What I'm trying to do is "filter out" rows from the main table and place them into the "trash can" table based on the values of different table cells. As an example. The main table's second column has a date. I want to move any row who's second column data doesn't match the submitted filter date. I've got the following code to iterate through each table row... $('li#data-main tbody
[jQuery] Animation effect fails to run on 'load'ed content
Hi, I've seen this problem before, and I think I've seen the solution to it too, but I can't for the life of me find it again now. I have an empty, hidden div with a unique id. I'm loading some remote content into that using $('#ttAjax').load('whatever.something'); After this I want to show it gradually using an animated effect like show('medium'). However, instead of showing gradually, it just snaps into view as if it was just show(). I seem to recall you need to reinitialise jQuery somehow, but
Newbie .. stuck
http://rafb.net/p/XsFlbU37.html http://rafb.net/p/iweVyc64.html I am new to jquery, and trying to make a basic jquery plugin that adds an image by accepting parameters and returns html. It doesn't work. Can someome point me in the right direction? Thanks
[jQuery] : Selecting value from html
<div class="gmail_quote">Hello! I've got some question: I've got variable 'tr' which contains html or text from table row. How I can read text from second <td> tag. This tag contains _colid=2 attribute. I was trying to do something like that: $(tr ':'td:(eq(2))').text(); but it's not working. Cheers Radek</div>
jQuery click event problem
Hey I'm new to jQuery, and have a problem that I'm not sure can even be solved the way I want it to. I'd just like some input from those more in the know. I have a <li> which contains a small table with some links in the cells. I am using jQuery so that when the <li> is clicked (anywhere), the next <li> in the list is revealed. That works fine. My problem is that when either of the links within the first <li> is clicked, before navigating to the new page, the <li> animation begins as normal. Now
[jQuery] combine slide and fade
Hei there, i want to combine the slideUp with a fadeOut and the slideDown with a fadeIn. So while the sliding takes place the effect fade should fire: function toggleContent(){ if(!$(this).find(".imageBox").hasClass("active")){ // animate mit fade in var toHide=$(".contentList .active"), toShow=$(this).find(".imageBox"), hideHeight = toHide.height(), showHeight = toShow.height(), difference = showHeight
[resolved]confused about POST
Hi, I'm fiddling with the JQuery Ajax functions. I'm trying to send POST data to a php file, which then simply echos it back. I was just trying to get the basics of Ajax Post transmission down. However, it's not working. Something is wrong with my JQuery Ajax $.post(); or the way I have the PHP set up is incorrect/impossible. I was thinking that the PHP would fire every time it received post, but this may not be the case. Here is the code from two files. I appreciate any help. Thanks. HTML <html
Rollover fadein effect for before and after examples
My name is Andy and I am new here, so hello everyone and congratulations for becoming the official jQuery forum! I am a trying to setup a website offering PhotoShop image retouching. I would like to setup a script which looks for any image with a class of (for example) "before_after". It would then grab an image from the same folder, with the same name but with "_before" at the end of the filename, for example: "client_picture.jpg" "client_picture_before.jpg" It would then fade from "client_picture.jpg"
[jQuery] Question about jQuery.load()
can anybody teach me how i can use jQuery.load() to attach javascript files. Thanks for your times.
[jQuery] validation with jquery 1.3
Hello, Thanks for your fabulous validation form. But I 've a problem.When I use jquery 1.2.6, my form works well on IE, firefox and safari. But When I use jquery 1.3 in IE the error message doesn't work Can you help me ? my script : $().ready(function() { // validate signup form on keyup and submit $("#InfoClient").validate({ rules: { Nom : "required", Prenom : "required", DateNaissance : { date: true },
[jQuery] jQuery UI dialog simple question for a newbie
Hi all. A very simple jquery UI dialog question as I undertake learning this new tool: I have a button: <asp:Button id="btnCancelMeeting" Text="Cancel Event" runat="server" OnClientClick='javascript:return jsConfirmCancellation();' /> that calls this function: function jsConfirmCancellation() { return $(document).ready(function() { $('#CancelDialog').dialog ('open'); }); } which opens this dialog: <div id="CancelDialog" title="Cancel and Event or Meeting"> Cancel this event.</div> using this function:
[jQuery] Intercept links from flash
Hi, I've got a flash object who loads pdf's and there's a lot of links on the pdf. Is there a way to catch or intercept all links with jquery? I want to stop the link redirection, I just want the link itself. I tried livequery with no result. :( Thanks
[jQuery] Expand and collapse a list
Hi, I'm trying to create a collapsible list, that only shows the first 5 items, and hides the rest. If click the link it will slide in the rest of the list items, and if I click the link again it will hide the expanded list items. How can I do that? and is there a better way to do this? <head> <script type="text/javascript" src="http://ajax.googleapis.com/ ajax/libs/jquery/1.3.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { var list = $('ul#myList');
[jQuery] currying in jquery.
All, I have an object like: p = { ...... click: function(target){ } .... }; function curry(fn,s) { var scope = s || window; var args = Array.prototype.slice.call(arguments, 2) || []; return function() { fn.apply(scope, args); }; } I register events like: $('.preview').click(function(){f=curry(preview.click,preview,$(this));f ();}); I am achiving the desired effect by the above line. I feel it the above line loks ugly. Is there any other means of doing this? TIA, -Shiva
[jQuery] Cycle Plugin Adds Relative Position to Slideshow Container
I'm using Cycle in a number of places on my site, but I'm having an issue with absolute placement in WebKit browsers (Safari & Chrome). My site is available here: http://derekperkins.com/seatability/super-product-page/ My issue is that in Firefox, IE and Opera, Cycle adds in some inline style elements (overflow:hidden), but in WebKit, it also adds (position:relative). Why would it be doing that only in those browsers? Here is the CSS and the Javascript for my top level Cycle container. #slideshow
[jQuery] [treeview] newbie question
Hi, I just got it done to implement my treeview menu: http://packpilot.s15312582.onlinehome-server.info/?f=packpilot I know, there are still some debug infos in the [ ] and the css is not right. But what I want to know today is, how can I setup my menu to show in general the first 2 levels epanded? And how is the menu keeping the informtion when a third level is exapnded and the page reloads? It would eb great if someone could help me with that. Thanks!!
[jQuery] Image swap behaviour with fade in/out using hover()
I have been trying to over 3 weeks to write this without success. So far I have found swapImage (http://code.google.com/p/jquery-swapimage) that works well to replace images, and bannerSwapper (http:// plugins.jquery.com/project/BannerSwapper) that pre-loads limited images and does the swap with fade in/out effect, but I really need a function that combines the two and allows the default image to fade in and out using hover() (http://docs.jquery.com/Events/hover#overout) I know it is possible, how
[jQuery] $(element in other iframe)
Can I use jQuery to work with elements in other frames? For Example: <html> <iframe id=frame1></iframe> <script> $("#frame1 document") OR $(document, $("#frame1")) </script>
Jquery SlideViewer 1.1 and Lavalamp menu gives me a problem!
Hi! Is my first time here, I hope somebody helps me... I'm building a css web and using jquery for the image galleries and the menu. The thing is that when I combine them they doesn't work. The lavalamp menu doesn't appear and the gallery only works with one gallery, if I put tow galleries in the same page, it only shows one. Please I will aprishiate if somebody could help me with this because I'm stuck!!! Here's a link where you can see the code: http://www.rafacavestany.comyr.com/css/works.html
[jQuery] Ie6 ajax tabs problem
Hi, I have a problem with IE6 (IE7, Firefox, Chrome, etc there's everything ok ) and jquery tabs. It looks like that IE6 is saving all in cashe and i just can't figure out how to prevent it (option "cache: false") doesn't work. Every tab is loaded only once. Tried almost every release i found of JQuery UIs, Tabs. Also this solution doesn't work either: $("#message > div.ui-tabs-panel").empty(); here si my code, I'm using Django so that's why {{selected}} etc and i'm using it to bypass cookie to remember
[jQuery] Ie6 ajax tabs problem
Hi, I have a problem with IE6 (IE7, Firefox, Chrome, etc there's everything ok ) and jquery tabs. It looks like that IE6 is saving all in cashe and i just can't figure out how to prevent it (option "cache: false") doesn't work. Every tab is loaded only once. Tried almost every release i found of JQuery UIs, Tabs. Also this solution doesn't work either: $("#message > div.ui-tabs-panel").empty(); here si my code, I'm using Django so that's why {{selected}} etc and i'm using it to bypass cookie to remember
Multiple Forms + Ajax
So I'm developing a page on my site that has been giving me some problems. I want to have two forms on a page, one to add data and one to delete data. After submitting a form, deletion or addition of data will be performed by two different php files, those php files will print feedback, and peform a change to the database. I want the feedback(output from the php page) inserted into div#content1. After the addition of data or deletion of data has occured, div#content2 needs to be reloaded becuase
Next Page