[jQuery] use validate plugin in ajaxSubmit
HI , I am trying to call the validate plug-in from an ajaxSubmit as beoreSubmit option with no success. Wha's wrong??? $(document).ready(function() { var options = { target: '#output1', beforeSubmit: validForm }; $('#myForm').submit(function() { $(this).ajaxSubmit(options); return false; }); }); function validForm(formData, jqForm, options){ $(jqForm).validate(); } Thank you Andrea
[jQuery] Ajax link in docs for 1.2 crashes IE6
Going through the Jquery 1.2 release notes using IE6 I couldn't even access the page on Ajax. Everytime I clicked the Ajax Link, the browser folded like a house of cards. A second problem exists under clone(true) found in the Manipulation link. The documentation indicates that each cloned button will itself be clonable. However, in IE6, the only button that produces another clone is the first "Clone Me!" button. Any subsequent button-clone does nothing when clicked.
[jQuery] jquery 1.2 bug -- clone(true) doesn't copy the event in ie(ie6 and ie7)
jquery 1.2 bug -- clone(true) doesn't copy the event in ie(ie6 and ie7)
[jQuery] IE6.X unchecks my checkboxes on hide
I have a modal window that pops up (with thickbox 3). I have a list of checkboxes in this window that a user can select and then hit either save or cancel. This code works PERFECTLY in Firefox and IE 7.X, I have yet to test opera or others. However, in IE 6.X my checkboxes become unchecked after a user hits save and the window hides itself. I feel like this is a prevalent bug but I kind find any real solution yet...and I've been searching for awhile. Any thoughts? Thanks in advance:-D -- View this
[jQuery] jQuery DOM slowness
(If this ends up as a duplicate post, blame Google) I noticed some slow down today when rendering almost 1000 TD elements with jQuery. I had originally assumed JavaScript was just slow but that didn't seem right. After doing some tests, it seems jQuery takes nearly 10x longer than normal DOM manipulation to render the 1000 rows. Is there something I'm doing wrong? http://dpaste.com/hold/19433/
[jQuery] Appending Text based on class
I'm using a vertical menu, and I'm trying to put an arrow (〉) to the right of the menu being hovered, but not the the 3rd level (final) of the menu. The following code works (but with errors), and it still adds the arrow on level 3, which I do not want. Any ideas? error: g has no properties handleHover(Object type=mouseout target=a currentTarget=a eventPhase=2)jquery.js (line 11) e(Object type=mouseout target=a currentTarget=a eventPhase=2)jquery.js (line 11) e()jquery.js (line 11) [Break on
[jQuery] RE: jQuery.dequeue function gone?
Hello, I haven't been able to get a response about this anywhere. I have some jQuery plugins that use the dequeue function, which now appears to be gone. Does anyone have more information about this? Thanks in advance.
[jQuery] animate & hide
it is certainly only a newbie problem ... i try to set my message to red, animate it to white an the hide it msg.css("background-color","#faa"); msg.animate({'backgroundColor':'#fff'}, 1000); msg.hide(); but it will be hidden at once, without animating. if i remove msg.hide() then the animation is shown. any hint for me thanks stefan -- Stefan Kilp SK-Software, Entwicklung & Beratung email: kilp@sk-software.de fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str.
[jQuery] AJAX GET error if file does not exist?
I'm creating a client side application using JQuery. It's wildly inefficient but unfortunately it's the cards I've been dealt on this one. I'm looking to get a page using either $AJAX or $GET. I'm able to get pages just fine if the file exists. If the file does not exist I get a permission denied error in IE. Is there anyway to get around that IE message if a file does not exist? I tried using ajaxError but that still threw the IE error. Thanks.
[jQuery] Filter Question
I have a list of images with the class block: $('img.block') I want to filter that list and only get items that have a specific top or left css value (for instance, only images with a top value of 25px). Does anyone have an idea how to do this? Thanks! hydra12
[jQuery] Accessing elements returned by clone
How can I access the elements returned when using clone and manipulate them? I would like to change the Ids of the clone elements and siblings before appending it to another element. Example <div id="allcars"> <div id="carselection"> <select id="cars"> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel">Opel</option> <option value ="audi">Audi</option> </select> </div> </div> JS $("#carselection").clone().appendTo("#allcars"); I am cloning #carselection
[jQuery] onclick page goes to top (have to scroll back down to content)
Hi have a page that has some javascript events basically I have the accordian effects in a page with repating data...It is fin until I get close to the bottom of the screen and expand the page. Next thing I know I am back up towards the top of the page and have to scroll down to read the text. I know there is a way to hold the page's position, but what function(s) would I be looking at?
[jQuery] load() with each(): FF is OK, IE not
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Getting parsererror calling XML
Hey there -- first post on the board, but I see a lot of great and talented folks on here. Looking forward to interacting with all of you and I hope I get some knowledge transfer just from association... :-) I've been working on grabbing an XML doc using $.ajax. When I was working on it locally, it would work fine in Firefox and not in IE. And now when I put it up on an internal dev server I'm getting a parsererror for both browsers. When I use overrideMimeType in Firefox, the issue goes away, but
[jQuery] IE 7 reaction time on corners
Hey there, I'm getting a very noticeable lag in IE 7 when loading pages with jquery.corner.js. The page loads square, then the corners snap in. Am I doing something wrong? There's no delay in Firefox. Can anyone point me in the right direction? Also, corners aren't working at all in IE 6. I believe I have the latest version. Thanks polycarp
[jQuery] plugin packages
I have a question since some plugins are relying on other plugins for functionality. My Question might have already been solved, but i don't see it in the documentation. I basically would like to create a js file that has all my commonly used jQuery stuff in it, therefore, needing a way to import plugins into the DOM before the "ready" event fires. I am requesting a function, for example "importJS", will load the javascript file into the head of the document, and force the ready event to wait until
[jQuery] .ready(), Rhino and HttpUnit
Hi all, I'm creating a Web app which uses jQuery, and am unit testing it with HttpUnit which uses Rhino (the Mozilla JavaScript implementation). I'm having trouble with <span style="font-family: courier new,monospace;"> $(document).ready(...)</span> causing the tests to crash with this message: <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace;"> alert("hi");</span><br
[jQuery] Javascript best practices
More & more plugins are using CSS to style the layout, this is good, but their didn't aware of if user browser don't know javascript, it is useless to load the CSS, e.g. thickbox <script type="text/javascript" src="path-to-file/thickbox.js"></ script> <link rel="stylesheet" href="path-to-file/thickbox.css" type="text/ css" media="screen" /> can be better: <script type="text/javascript" src="path-to-file/thickbox.js"></ script> <script> document.write('<link rel="stylesheet" href="path-to-file/
[jQuery] slidetoggle with repeating section
Hi guys I have something that I am not sure how to figure out. I have some jquery code that auto hides a section of text. then a hyperlink to toggle showing or hiding the text. Here is an example: <script type="text/javascript"> $(document).ready(function(){ $('.comments').hide(); $('.attachments').hide(); $(".buttonslidedown").click(function() { $(".comments").slideToggle("normal"); }); $(".buttonslidedown2").click(function() { $(".attachments").slideToggle("normal");
[jQuery] Simple append?
Hi all, I am very new to jQuery, but I need to construct a simple was to bold everything inside a <td> that looks like this <td align="right"> I got the shell in place and the script is being pulled successfully I just need to figure out how to append this condition. Thanks, Frank
[jQuery] Trouble navigating accordion list
I've been trying to create a basic accordion effect using unordered lists and, having looked through some examples on learningjquery.com, I think I'm close. I'm having trouble navigating through the hierarchy though. An example list is below. Any links with a class of 'expandLink' are supposed to reveal the nested list below and hide any other nested lists: <div class="mcon"> <ul> <li><a href="http://www.example.com">Example</a></li> <li><a href="http://www.yahoo.co.uk">Yahoo</a></li> <li><a href=""
[jQuery] Help for super dummy newbie
Hi to all. I went to jquery web and tried the first tutorial, and I cannot make it work. Can anyone help this SDN person, aka me, and include in the reply a complete web page example so I can begin working with it? Thanks very very much. Regards, Lorenzo
[jQuery] Bug IE6 only (next and previous button)
Hello, I had a bug on the next and previous button, the height isn’t applied. I want 13px but on IE6 i get 19px, how to set the height to 13px? example of my jcaroussel http://www.hybridbears.com/jcaroussel/index.htm Thank you -- View this message in context: http://www.nabble.com/Bug-IE6-only-%28next-and-previous-button%29-tf4435588.html#a12654469 Sent from the jCarousel mailing list archive at Nabble.com.
[jQuery] Resize and Crop - Sugestion to Crop.js Plugin
Hi Folks I was testing crop plugin, amazing and easy. But crop plugin get object properties (from the file). I would like to suggest to get height and width from img 'line' example: <img width="100" height="" src="/files/myimage.JPG" alt="" title=""/> Regards Mario
[jQuery] css sheet change protocol of background images on the fly?
On a secure (HTTPS) page, if I call a css that contain absolute paths to images, i.e. background-image: url("http://www.xxxxx.com/images/d.gif") browsers will throw a secure/nonsecure error. We currently use JavaScript to print the style to the document at runtime so we can control the protocol reference. document.write(' background-image: url('+writeSWNprotocol+':// www.xxxxx.com/images/d.gif);'); This seems messy (and unnecessary). 2) Does $(document).ready(function() {} fire soon enough to flip
[jQuery] css sheet change protocol of background images on the fly
On a secure (HTTPS) page, if I call a css that contain absolute paths to images, i.e. background-image: url("http://www.xxxxx.com/images/d.gif") browsers will throw a secure/nonsecure error. We currently use JavaScript to print the style to the document at runtime so we can control the protocol reference. document.write(' background-image: url('+writeSWNprotocol+'://www.xxxxx.com/images/d.gif);'); This seems messy (and unnecessary). 2) Does $(document).ready(function() {} fire soon enough to flip
[jQuery] Find a specific children in a jquery object
Hi, if I want to get the ul childrens of a li element I do something like this: $('#li_id ul') But If I have already the jquery li object how can I do this without getting the id of the element? More in specific, I click on a checkbox, then I get the container (which doesn't have an id) with parent() method, then I want to know if in the parent exist an ul element. <ul> <li> <input type="checkbox" id="check1" value="1" name="test" class="checkall" /> </li> <li> <input type="checkbox" id="check2"
[jQuery] YAAB - Yet Another API Browser
<span style="font-family: trebuchet ms;">This has been an idea of mine for a long time, but I never got around to it.</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">I tried to finish it yesterday and today and couldn't. Long To-Do list on the right </span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;"><a href="http://www.commadot.com/jquery/experiments/api/">http://www.commadot.com/jquery/experiments/api/
[jQuery] Faster then innerHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Here is an interesting blog post that I came across: <a href="http://blog.stevenlevithan.com/archives/faster-than-innerhtml">http://blog.stevenlevithan.com/archives/faster-than-innerhtml</a> The synopsis basically is that one can gain dramatic speed improvements on setting innerHTML when removing items that are going to be overwritten using DOM methods before inserting stuff
[jQuery] Why is jQuery so slow?
http://dpaste.com/hold/19433/ I hadn't noticed this until someone actually loaded up a dataset of 1k entries today and it made the browser croak. Firefox: DOM Creation Test * jQuery: 1.323 * Normal: 0.128 DOM Creation Test (with vars assigned) * jQuery: 1.026 * Normal: 0.128 Safari 3: DOM Creation Test jQuery: 0.333 Normal: 0.016 DOM Creation Test (with vars assigned) jQuery: 0.334 Normal: 0.016 Is there any reason its so much slower to use jQuery for DOM manipulation?
[jQuery] $.ajax correctly works in all browsers except opera 8.5
in this site http://jppromo.ru ajax works completely on all browsers except opera 8.5 and it seems i can't find the source of a problem... i thought maybe opera 8.5 talks differently to href, but that's not the case... any clues? i think it's something simple for more experienced in opera works devs....
[jQuery] Vertical Tabs
Hi, i'm using Tabs Plugin in a vertical CSS style (left column). i have: <div id="body-1" class="body-1"> <ul id="done" class="menu"> <li><a href="#us">us</a></li> <li><a href="#news">News</a></li> </ul> <div id="us"><? include('us.php');?></div> <div id="news"><h2 class="news">News...</h2><br /><br /><? include('news/index.php');?></div> </div> So what i need is that when a tab is selected that LINK/TAB sets his position to top and the other under it. maybe wrapping the LI on a DIV... any
[jQuery] yav plugin could be use Jorn's approach
Yav jquery plugin(<a href="http://letmehaveblog.blogspot.com/2007/08/easy-client-side-web-forms-validations.html">http://letmehaveblog.blogspot.com/2007/08/easy-client-side-web-forms-validations.html</a>) is a very nice form validation. Really! But I'll want to suggest Sevir to, if possible, use Jorn's approach separating messages and rules. Yav works like: <span class="tag"><</span><span>input </span><span class="attribute">class</span><span>=</span><span class="attribute-value">"required alphanumeric"</span><span> </span><span
[jQuery] Yahoo Slider Plugin
Hello Friends, I have seen Slider in the frontpage of Yahoo Answer. I am to add that in one of the Client Website while creating that I thought of creating the plugin. So I have createad one yahoo Slider Plugin in Animation and Effects Category. So I need to discuss before developing the slider. Facilities - Play, Pause, Nextm Previous Buttons - Content Type : Html - Slide Ticker Regards MALAY MAJITHIA
[jQuery] Waiting for Ajax Response
I have a small function outside of the onload method of the rest, so it'll only be loaded for a specific page. $('#apost :text').change(function(){ var entry = $(this).val(); var name = $(this).attr("id"); var holder = name+"holder"; $('#'+name).val(''); $.ajax({ type: "POST", url: "adddata.php", type: "html", data: name+"="+entry, success: function(msg) { $('#'+holder).html(msg); } }); }); The adddata.php file is
[jQuery] Error: d[i].getElementsByTagName is not a function
$("//hooks/errors/error",data); If my XML contains an error node, everything is okay. If it does not contain an error node, I get the following error: "Error: d[i].getElementsByTagName is not a function" Shouldn't it just return null? Thanks. Brian
[jQuery] charset question
Sorry for resurrecting this post. But I only get a chance to look at this problem recently again. I'm hosting my library and game data files on a apache server. Is it possible to customize ajax request to set request header to accept GB2312 so that the server will only be serving data files using that charset? How? Thank you. Guoliang
[jQuery] [NEWS] jQuery-Powered QuePasa.com launches new beta
jQuery-Powered QuePasa.com, the largest Latino social network, has launched a new beta version of their site. http://mashable.com/2007/09/12/quepasa-2/
[jQuery] Dynamically loading more content
If you use Google Reader, notice how the item list (in List View) in the right hand pane loads an initial set of items (60 or so) and if there are more, it says "more than 60 items" in the bottom right corner. If you use the mouse scrollwheell to scroll down, it dynamically adds to the list showing loading/loaded messages as appropriate. Even if you drag the scrollbar, it does the same thing. While this UI technique is a tad unconventional (not unusual for Google apps!), I can think of a few instances
[jQuery] NEWBIE Question: children() skips first element?
Hello, I am trying to simply grab the children of a div. The markup is: <div id="content"> <div id="panelPreview" class="fieldset_theme"> <div id="panelPreview_inner" class="hPanel"> <fieldset> <legend>[Section/Panel Heading]</legend> </fieldset> </div> </div> </div> But, what I don't understand is why when I call alert($('#content').children().html()); The resulting
Next Page