$ is not defined
Hi All, I have a link that uses jquery and thickbox to create an ajax thickbox. In the thickbox there is a form that has the ability to upload an image. If the form is filled out and no image supplied (which is fine), ajax sends the information and there are no js errors. If the user supplies an image, I am using http://www.webtoolkit.info (which uses an iframe for the image/file upload) to upload the file. When I click on the submit button of the form, the information goes to the same place as if
[jQuery] Jquery Cycle Dock Pager
does anyone know how to combine the pagers from JQuery Cycle with the effect from JQDock? I want to use Cycle to make a slide show but want the paging effects to look like OSX Dock
[jQuery] Starting animation at different points
I am fairly new to jquery and I have a question on animation. I want to be able to have a div animate in a different direction rather than the default. Right now I have a div that is 29px by 41px. When I hover over it it animates to a div that is 80px by 100px. As of now it is animates from the top-left corner down and to the bottom-right. However, I would like it to animate from bottom-left to the top-right. Is there any way of doing this. Please let me know.
[jQuery] Jcarousel - Changing the starting position of the carousel according to the last page visited.
<div dir="ltr">Hi, As the title says, i want to set the starting position of the jcarousel according to the last page visited. What I've done so far is to decompose the last url with<b> document.referrer</b> and then process this String in order to set a value of a variable named <b>startingPosition</b>. Finally, in the <b>start</b> property of the configuration hash i set start: startingPosition. The problem is that this is somehow a "slow" solution, since when I load the page where the carousel
[jQuery] using an png with shadow and fadeTo...
Hi, When I use a png with a shadow in a div with a opacity of .5 (less or more) using the fadeTo function, the border of shadow is white under ff/chrome or black under ie: How do I fix it ?
[jQuery] What is crashing Safari 2?
I've found some reference to problems with Safari 2.0.4 and have fixed one rendering issue related to using fadeTo but I have more severe problems which crash it. The following page will crash Safari when a thumbnail is clicked: http://lonemadsen.pedesign.co.uk/photos.php It uses jQuery version 1.2.6 and the following jQuery script: http://lonemadsen.pedesign.co.uk/script/jquery.photopage2.js Any help would be much appreciated. Thanks.
[jQuery] Help writing function for sending a serialized post for updating a UL order
I have a UL: <ul id="child_list"> <li id="item_1">One</li> <li id="item_2">Two</li> <li id="item_3">Three</li> </ul> I have a function: $(document).ready(function() { //sortables $("#child_list").sortable({ opacity: 0.7, revert: true, scroll: true, handle: $(".handle"), change: function(sorted){ $.post("/admin/ajax/orderChildren.asp", { item_order_str: $ ('#child_list').sortable("serialize") }); }); I am switching this over from scriptaculous, and
[jQuery] ie7 opacity effects with positioned elements
Hey, I'm having trouble with opacity effects in ie7; It appears that if an element with any effect that involves opacity (slideDown(), show(), hide() etc...) has any child that is positioned either relatively, or absolutely, then the positioned element's opacity doesn't animate... it simply moves and then disappears... has anyone else come across this? and know a fix? Cheers for any help n
[jQuery] AJAX Success Callback referring to $(this)
I've been looking for this quite a bit, today, and haven't quite found what I'm looking for, so maybe someone can point me in the right direction. I'm performing an AJAX request, and I pass an anonymous function as the success callback, upon which I will want to do some DOM modification to the element that triggered the AJAX event. Ordinarily, $(this) would work fine for doing this, but it seems that $(this) points instead to something besides a DOM element. First, what does $(this) point to when
[jQuery] Problem with slideUp() in IE7
I'm trying to create a simple sliding menu, sort of like an accordion, but not that complicated, using jQuery 1.2.6. It was working great until I tested it in IE7 (surprise, surprise, right?). The slideDown() works fine, but when the slideUp() function runs, it seems to push the submenu to the right about 100px or so. I thought it was a problem with my CSS, but even with no stylesheets at all it still does the same thing. I also tested the slideToggle() function, but got the same behavior. I guess
[jQuery] unit testing adding rows to table
I'm running a test with qUnit that shows i am appending rows to a table correctly. At this point I just want to show I'm getting the right rows back. But it doesn't look like the dom isn't picking up the newly added rows. I'm seeing the rows, so my call is working, I would just like to verify this in the unit test. Am I missing something or is this expected behavior since I'm adding to the dom. Here is my test: test("should load the rows in the grid",function(){ stop(); loadNotesGrid(opportunityID,0,5,'OppNotes');
[jQuery] Form Serialization
Hi Guys, I have a requirement i need to achieve auto save on a page where i have huge form which is having hundred's of child forms. Right now i have achieved the functionality using jQuery form serialization but its freezing the page when it is doing form serialization for about 15secs on a normal system which has a 1GG Ram and 1.6GHZ. Can anybody suggest me a good solution. I m using Struts 1.2. Thanks in Advance. Cheers, Rajanikanth R Sony Pictures
[jQuery] Whats best for js compression, packer, jsminify, YUI?
Hi all, I know this has probably been discussed before but I with all the options available, I was wondering what method seems to work best overall for compressing js files. I want to put all my jquery plugins into one file and compress for performance but I'm worried about breaking things. I know there is packer, jsmin etc. Any recommendations.
[jQuery] jQuery Cycle, Multiple Items
Hi, I've been playing around with the jQuery Cycle plugin, it's great. I do have a question though, is it possible to show multiple items simultaneously? An example would be, if you have 5 items: 1 2, 2 3, 3 4, 4 5, 5 1 (loop) In this particular instance I'm working with single line divs, but I assume the code would be the same if it were pictures or what have you. Thanks for a great tool!
[jQuery] can't return focus
i am putting together a basic text editor and to reduce pasting styled content in to the editor i open up a div with a textarea that content can be pasted in to and then i can innerHTML that content back to the editor where the cursor previously was. the problem i am having is after the div opens and the content has been pasted in i can't gain focus where my cursor was on the original page, is there any way around this? Regards Robin
[jQuery] UI Instance Options
Hi all, This may be a dumb question, but I can not find an example in the archives or in the jQuery docs. Is it possible to access a ui widget's options from a global function? For example, if I set up the following div to be resizable... $('#example_div').resizable({minHeight:200,minWidth:200}); How could I read the "minHeight" and "minWidth" options used to init the ui object instance from the selector $('#example_div') ? I can't see anything attached to the actual dom element in firebug and don't
[jQuery] Poor Performing jQuery .each()
I am having some trouble tracking down why this relativily simple client-side template is performing so poorly. Using js to make an ajax call and retrieve a small amount of data, limited to 100 rows being returned. I've tracked the problem down to the actual jQuery iteration, here is my code: function OnSucceeded(results, GPRowID) { // *** Display all the results. $.each(results, function(i){ if(i<=99){ // *** Clone node assign ID attribute var template = $ ("#TemplateRowLineItem").clone(true).attr("id",
[jQuery] LiveQuery won't allow explicit onchange firing?
Using livequery for a project when I ran across an issue using the following code: $("input").livequery( "change", function(){ if ($(this).is(":checked")) { alert("checked!"); } else { alert("not checked!"); } }).change(); My problem is the chained "change" function call. It looks like livequery doesn't like when I directly call events from within jQuery, custom events don't work either: $("input"),livequery("demo.change", function(){ if ($(this).is(":checked")) { alert("checked!"); } else { alert("not
[jQuery] [off-topic] Jyte Users Unite!
theres a jquery community on jyte and some of the usual js library bashing and arguments going on... just inviting you all to join the cause! (no urls on purpose in not trying to spam or anything!)
[jQuery] link click send user back to top of page .toggle
Hi, I have a page which requires vertical scrolling. In order to consolidate content on page load I'm placing a heading link above each div on the page and hiding the divs with jQuery. When the user clicks on a given heading link the .toggle run and the div shows. The problem I am running into is that each time a link is clicked it returns the user back to the top of the page. Which becomes a major annoyance if the user has scrolled down to access content further down the page. Any thoughts? Thanks,
[jQuery] [Validation] Splitting rules and messages across multiple pages
I saw a post about someone trying to spread rules across multiple pages. The person was told to add rules dynamically, but there's no way to add messages dynamically. I'm wondering what you guys think about this approach. I had a situation where I wanted to reuse part of a form. I think this is a common enough pattern. When a user registers for the first time you want them to give you a username, a password and some additional info. Later the user might want to edit that additional info so you present
[jQuery] [validate] Why is this not working?
Hello! I have been working on my form. Only somehow it doesn't want to work: http://www.dustyfrog.nl/jquery/ What could be wrong? I am not getting any errors in Firefox's Error Console :( Thanks in advance! Yours, Weyert
[jQuery] Change mask onclick, how do it ?
Hi, I have the problem when go change de mask, i`m using maskedinput http://digitalbush.com/projects/masked-input-plugin/ my code: <input name="tip" type="radio" id="tip_j" title="Jurídica" value="J"/
created a plugin, but i get this error: is not a function
hi, I am writing this plugin to dynamically add print css styles to a large number of pages. It is included in the header, but when i call the function $('.mastHead').printerfriendly(); Firebug tells me that my printerFriendly function is not a function and errors out. Any and all help will be greatly appreciated thx very much thx, Sam
[jQuery] ANNOUNCE: jQuery listnav plugin
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi All, Today we released our first jQuery plugin, which provides an easy way to add alphabet-based navigation to any UL or OL list. Here's a link to our announcement blog entry: <a class="moz-txt-link-freetext" href="http://blogs.ihwy.com/dev/post/jQuery-listnav-plugin-version-10-released.aspx">http://blogs.ihwy.com/dev/post/jQuery-listnav-plugin-version-10-released.aspx</a>
[jQuery] OT : javascript editor (with code formatting)
<div dir="ltr">Friends, aptana studio, albeit a nice editor, is recently crashing all the time and now doesn't even want to restart. I'm looking for a good alternative, that has a code formatting (auto indenting) functionality. Any suggestion ? I'm on Windows XP SP3... Thank you, Alexandre </div>
[jQuery] Un-minify?
Hello, like a dumby in a rush I saved over my non-minfied file... any sugestions on a good "un-minifyer" thanks for the help... jeremyBass
[jQuery] jCarousel Lite problem
Hey all! I found the jCarousel plugin and it's perfect for me. Everything works great but I've one problem. I would like to define the btnGo automatically with jquery. So I setted up a for-loop to creat 6 classes which are saved in an array. Now I would like to insert the array into the btnGo[] function but if i do this, nothing happens. If I use variables it works but the array doesn't. Any solutions? (This is the jCarousel Lite plugin: http://www.gmarwaha.com/jquery/jcarousellite/)
[jQuery] Is it possible to avoid jumpy / disappearing content
Hi there, I love jQuery, but I have a question about something I see it doing: Content that it is hiding or moving often appears in its original position *before* it is hidden by jQuery. Is there any good, accessible way around this? You can see the effect in action on a page like this: http://docs.jquery.com/Core/jQuery#html Extra content shows up, and is hidden. Sometimes I imagine this kind of thing would be a little jarring for the average user. Thanks!
[jQuery] [validate] Modify the position of the validation message
Hello I am currently trying to implement jQuery.validate in my code generator for creating forms. Only I am having some questions about how to update the position where the validation message element are getting created. I am having problems with it when a validation message has to be shown for a list of radio or check boxes. I am using the following html for such lists: <li> <label for="question_13">Question #13 <span class="required">*</span></label> <div> <ol class="form-list">
[jQuery] get a fancybox/lightbox from a FORM?
Is there a way to get a fancybox (<http://fancy.klade.lv/>) or any other lightbox from submitting a FORM (with an image button)? HTML looks like this: <form action="/ACTION/FastFindObj" method="post"> <input name="fastfind" class="fastfind" value="3463" type="text"> <input src="/images/ic_ml_lgl.gif" name="weiter" type="image"> </form> These won't do: $("form").fancybox(); $("input").fancybox(); $("input[name='weiter']").fancybox(); Anyone spotting my mistake or having a workaround
[jQuery] dimensions plugin integrated in jquery ?
<div dir="ltr">hello! aquick question: is it right that dimensions.js has been included in jquery 1.2.6? So there is no need to include it as a separate plugin? thanks for your insight! Alexandre </div>
[jQuery] just started using jQuery today
I was following the training, and .. stucked on the very begining of the page. <html> <head> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script type="text/javascript"> $(document).ready(function(){ alert("hello"); }); $("a").click(function(event){ alert("Thanks for visiting!"); event.preventDefault(); }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html> The message "hello"
[jQuery] Change mask onclick, how do ?
<div dir="ltr">Hi guys I have the problem when go change de mask, i`m using maskedinput <a href="http://digitalbush.com/projects/masked-input-plugin/">http://digitalbush.com/projects/masked-input-plugin/</a> my code: <input name="tip" type="radio" id="tip_j" title="Jurídica" value="J"/>Jurídica <input name="tip" type="radio" id="tip_f" title="Física" value="F"/>Física $("#tip_j").click(function(){ $("#masked").val(""); $("#masked").mask("999.999.999/9999-99");
[jQuery] intercept navigation away from page?
i have a modal window and when the "close" button gets clicked i log the time and date the user closed the modal. but what about if he just closes the browser or directly navigates to another page? is there any way to implement "cleanup" stuff here? thanks
[jQuery] Code execution order
I am having trouble understanding something about execution order of code using JQuery. I have the following function attached to a button (it uses the : function UpdateList() { // Open the xml file $.get("locations.xml",{},function(xml){ // Run the function for each name tag in the XML file $('location',xml).each(function(i) { alert($(this).find("name").text()); }); }); alert("Test"); } What I expect to happen is that the alert will be displayed
[jQuery] [validate] If no error execute click function
Here I have a form... the validation works great on keyup and submit. But when submit, I want to run a click function $("#support").click(function(){ alert("123"); }); only when there is no error from the validation. It should give the alert message only when everything on the form is ok. How can I achieve this?
[jQuery] Accordion
Hi Is it possible to build an accordion using images, in an open and closed state, for the header bars? Each header bar is a different image. Many thanks
[jQuery] OT: color pixel
Is it posible with javascript (canvas/processing) to know the color of a pixel of an image? Thanks.
[jQuery] calendar and contacts (not normal calendar picker)
Hi there, I was unsure of where to post this i have tried searching and it's not been very productive so I am appealing to your knowledge... I want to build a calendar (full not a date picker) that I can use to view and edit my calendars on the web through a browser ( bit like google and the new yahoo calendars but since I want to add some simple customizations I cant use these ) I wonder if anyone has built a calendar viewer for the web using only php+jquery ? (maybe could stand on the shoulders
Next Page