[jQuery] livequery Component returned failure code: 0xc1f30001
alright, this one is a different one... I don't even know what I'm supposed to be looking for in order to debug this. Below is a Firebug console error. Anyone has some insight? much obliged! [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDOMJSWindow.setTimeout]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: file:///C:/lib/livequery-1.0.2.js :: anonymous :: line 1" data: no] data()(Document , "events", undefined)jquery-1.2.6.js
[jQuery] conditional remote validation
There is a particular scenario where I don't want the remote validation to actually get executed. In particular, this is when you have a field, say a "username" field and the user is editing the field and the value of the field is their current username. This is considered a valid username and remote check shouldn't execute. Any suggestions? Thanks
crop plugin with image resize
Hi, I am using a flickr badge and cropping the thumbnails down to uniform size with the jQuery cop plugin. Thing is, flickr only offers 3 different sizes of thumbnails and the largest ones are the closest to the size I need but I would like to resize to X% or Xpx wide before the image is cropped. Can anyone suggest the best possible way to do this? Regards, Jackson
[jQuery] link fade in / out
Hi. I have a menu consisting of some simple text links. They start with an opacity of 0.33 then when I move my mouse over them they lit up. They worked well, however the effects wanted to "stack up" in a queue so that when I had swept my mouse over the links a couple of times fast they would keep fading in and fading out as many times as I had swept my mouse over them. What I want is a link that lights up when you move the mouse across it, then fades down and keeps faded out until I sweep my mouse
[jQuery] Tabs problem in IE
I have set up a tabbed section for different parts of my portfolio. It works great in Firefox, no problems, but when I try it in IE (I tired it in 7) it doesn't work at all. I'm a noob when it comes to JavaScript/jQuery (trying to learn though). Any ideas as to why would be appreciated. Check this out to see what I've got: http://413creativemedia.com/tab.html. Thanks in advance for the help.
[jQuery] working with checkboxes
I have a checkbox <input type="checkbox" id=test> the $('#test').checked always returns undefined. No matter if checkbox checked or not... Is it how it's supposed to be? I thought that $('#test') will return me the object wrapped so i have original methods/properties as well as new one that came from JQuery. Am i mistaken? Thanks George.
[jQuery] Taconite - remove surrogate div
Hi all, The taconite plugin provides the ability to wrap results in CDATA tags which allows one to return special characters such as '&' and '<'. Example command: <taconite> <replace select="#link"><![CDATA[ <a href="/counter.htm?link=myid&count=1" id="link">Hi</a> ]]></replace> </taconite> In order to do this taconite places the CDATA content inside a div element. However after the command is executed the div is left in the DOM. So after a bit of back and forth between browser and server we end
[jQuery] get the class that starts with ...
Hi, How is it possible to get the class that starts with 'rate' of an element ? the class could be rate1, rate5, rateXYZ. I don't know what follows the substring 'rate'. I need to get the number that follows rate. Thank you for any help ! -- View this message in context: http://www.nabble.com/get-the-class-that-starts-with-...-tp20450061s27240p20450061.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Event Capture Architecture
I am developing an application in which I have to define click events for many elements( the list may go up to hundreds). So what would be the best way to capture these event Either using a * bind( $('*') ); and in click function get the id of target element and code accordingly OR use a separate bind method for every element. $('#elementID').click(function(){ bind( ); });
[jQuery] Character encoding problem when using ajax .load
Hi, I have a latin-1 encoded webpage that i'm loading text/html into using .load When i'm loading in english text everything is fine and dandy although today i had the pages translated and the pages now don't display the special characters properly. I'm pretty sure this has got to do with the fact that the text i'm passing to jquery is latin-1 not utf-8 so it screws up. Here's my js; jQuery(document).ready(function() { jQuery(".overview").click(function() { jQuery("#mainColumn").load("/includes/products/new-sea-page-
[jQuery] JSLitmus invaluable tool
I've been experimenting with several different coding styles for plug- ins. Lately I've been curious about the difference in performance between using local variables vs. instance variables for storing state. JSLitmus, while not itself jQuery-based, has just given me the answers I've been looking for. I found them a bit surprising: http://www.fatdog.com/litmus_tests/InstanceVsLocalTest.html (Apologies for the color scheme! :-) Howard
[jQuery] OnBeforeUnload and jQuery
Hi All I am trying to warn a user about unsaved changes when they attempt to leave a page. I can catch and prompt using the built in OnBeforeUnload dialog, but it looks sh*t and has some annoying standard text that is of no use to me. I have tried to bind to the BeforeUnload event using jQuery in order to show a modal dialog, but I cannot find any way to get it working. Is it even possible? Thanks for any advice. :)
[jQuery] Sortable type behavior?
I need to allow the user to re-order a number of DIVs on the screen, each of which contains a title DIV that would be the drag handle. UI's sortables seems almost perfect, but I don't see how I can apply it to the divs in my case... Any suggestions? A sample div might look something like: -------------------------------- | title | -------------------------------- | | | content | | | -------------------------------- or <div class="container"> <div class="title">My Title</div> <div class="content">Some
[jQuery] text-shadow
Hello, I have added a plugin for CSS-3 Text-Shadow for IE. It reads the value of text-shadow and gives IE an equivialant effect with the propertiary CSS Filter Blur. Simply write your CSS h1 { text-shadow: 2px 2px 2px #999; } And then apply the plugin $("h1").textShadow(); Here is the link for the plugin project http://plugins.jquery.com/project/textshadow/ And here is the link for the demo site http://www.hintzmann.dk/testcenter/js/jquery/textshadow/ Comments are welcome :D Best regards, - Martin
[jQuery] Tablesorter 2.0 widget Problem
Hi Guys, I'm trying Tablesorter 2.0 a little bit and using the Zebra Widget, which works great. Now I trying to modify the Widget a little bit. But my jQuery skills are bad - (rly bad). So the Zebra Widget changes the CSS-Classes for each row, it should do this to the last column too, but i dont get it working. Tried now some many variations, I post u my last here: Widget Code: ts.addWidget({ id: "zebra", format: function(table) { if(table.config.debug) { var time
[jQuery] how to use another javascript funtion (and outside variables) inside jquery model
Hi guys, I am really excited about what I can do with JQuery, I just managed to finish one simple demo which basically allows a new css div to slide open when people click on a link. The initially technique was all fine except everything there is static. I then tried something dynamic where I got myself stuck. Let me explain a bit more, for each of the following hyperlinks I'd like to load the id from the database. So, they will look as follows: <a href="#" id="123" onclick="setID(123)">How to ride
[jQuery] problem in setting opacity
Hi I am trying to set the opacity of clue tip. I tried form css and browser. It is working, But it is hiding the rounded corners, arrows at the up side of the cluetip. I am using "jQuery clueTip plugin Version 0.9.4" I am setting opacity in css as "fiter: alpha(opacity=70)" Please suggest me to resolve this problem. Thanks in Advance, Balu
[jQuery] serializing array of html elements using Jquery
I am having a problem.. <form> <input type='text' name='items[1][amount]' value='10' /> <input type='text' name='items[1][label]' value='10' /> <input type='text' name='items[2][amount]' value='10' /> <input type='text' name='items[2][label]' value='10' /> </form> i can access each elements using $('[name^=items').each().. But i want them as an array.. so that i can do some operation. Thanks in advance.
[jQuery] ActsAsTreeTable plugin IE 6 issue
Hi, I am using ActsAsTreeTable plugin to convert my table into a tree. It works fine in FF2 & IE7. But the expand & collapse images don't show up in IE6. Tree collapse/expand works fine if I click on the left edge imagining the images to be there. Any idea, how to fix this. Here's the link to plugin - http://plugins.jquery.com/project/acts_as_tree_table Thanks, Saurabh
[jQuery] ClueTip iframe issue
I have a website with navigation containing cluetip which functions properly, until I hit a page with an iframe. The title area of clueTip goes transparent, Title is displayed and Close link displayed over drop shadow. Both FF and IE.
Help to create a special menu
Hi boys! Sorry for my english...I hope you understand me! I wanted to create a menu with a "blur" effect, similar to this: http://www.3point7designs.com/web-design2.html I created it, using the tutorial: http://www.3point7designs.com/blog/2007 ... enu-trick/ So, what I'd like to do now is give to the menu a "fade" effect, with transition from blur to norma and from normal to blur, with effects fade in and fade out. I was able to create a "normal" menu with fade effect, you can see moving the mouse
[jQuery] fade a background color
so i wanted to have some links in which the background color fades in and out on hover. thing is, though, i wanted to have the text of the links not fade - only the background-color. so i thought, okay, i'll just make three elements: a parent div, a child display:block link, and another child link, this one with a high z-index. this way i can fade the first child link, and since the second child has a high z-index, it will stay above the fade. so i do that: <script type="text/javascript"> $(document).ready(function(){
[jQuery] jScrollPane snapping when link is clicked
I have a list of links in my pane. When I click a link it snaps to the top of the pane and I have to click it again. Is there anyway I can fix this to where I can click the link and it doesn't snap to the top?
[jQuery] Validator Plugin ajaxSubmit
Hi To All, I am having a problem with Safari using the standard test example the loading image starts prior to any activity in fields or buttons: http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html Really looking forward to getting ajax and validation co-existing :) Thanks for any help on this, Lance
[jQuery] pirobox plugin released
Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra
[jQuery] cloneinf TR with event
I have a working solution to this but can't help thinking I am missing an easier way. I have a table that is prepoulated server side and the user has the ability to add a row. one of the inputs has a function bound to the keyup event. wether I clone(true) or clone() the attribute fonkeyup seems to be clones, so I need to remove it and then bind another. my code is below, olease could someone look and see if there is an easy/ better way to do this/ thanks P $("#AddElement").click(function() { var
[jQuery] [autocomplete] problem with hasFocus
I have been working on adding autocomplete into a plugin for the tinyMCE editor. For some reason in the popup the autocomplete would only work on a few occasions - mainly when I was using the debugger. I noticed that on line 314 in jQuery.autocomplete.js: if ( data && data.length && hasFocus ) { hasFocus was always 0. If I remove that value everything seems to work fine without side effect. Does anyone know what the implications of removing that value would be? As far as I can tell it is not critical.
[jQuery] document Ready function in the Ajax Response
Hi, I have an issue with document.ready. I have a page which will make an ajax call. The response on the ajax call contains script which contains document.ready. The content in document.ready is getting executed successfully in ie7 but not in ff3. Please tell how to solve this in FF.
[jQuery] feature request: optionally use createElementNS
I've been playing with writing XUL desktop apps. Currently building my own custom media center PC and a XUL app will be the core of it. So I thought it would be really cool if I could use JQuery to manipulate my hybrid XUL / SVG / HTML doc just as I do on the websites I maintain. I include jquery-1.2.6.js, and many functions work fine immediately. However, a big chunk of JQuery doesn't work. Namely, code that inserts elements into the DOM fails. So I go through and change all the createElement calls
[jQuery] New plugin: IFRAME event propagation
Hello, I've added a plugin for event propagation for IFRAMEs. I wrote this to propagate onresize events to all IFRAMEs because I've noticed that certain browsers don't do this reliably (e.g. IE6 has some bizarre optimization that prevents the IFRAME from getting the resize event in certain circumstances). Also, in standards mode, IE won't send resize events to IFRAMEs unless the content is fully expanded 100% to the edge of the browser. In any case, this plugin can be used to forward any event or
[jQuery] Newbie Question: DropUP menus
I'm working on a website at http://beta.ponderosatreeservice.com (excuse the dust). As you can see I have a series of tabs at the bottom of the large image. Instead of a traditional menu that drops down below the tab I'd like it to extend up with the original tab header still at that top. I've uploaded an example of what I want it to look like at http://beta.ponderosatreeservice.com/images/dropdownexample.jpg Is there any jQuery script I can use to accomplish this?
[jQuery] Trouble with "this"
<div>I'm having trouble using "this" in my objects when the method is triggered by an event.</div><div> </div><div>Here's my basic test class. The lines that do not work as expected are in red.</div><div> </div><div><div>var MyClass = function(selector)</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>this.hello = 'Hello World!';</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div> <div><span class="Apple-tab-span" style="white-space:pre">
[jQuery] 2 forms with SimpleModal
Hi, I've a small question. My page containes a list of articles. For each article, I've some options. One of this option is "send to a friend" and an other one is "more information". Each option use the SimpleModal form. 1) I've a problem : how can I associate a different form for each button? 2) how can I send a variable to this form? Many thanks for your help. Regards, Christophe
[jQuery] Traversal: Aggressive "next" to blast through all parents?
Given HTML code like this: <tr> <td> <input class="stop" name="main" id="main" value="Hello" /> <input name="loc" id="loc" /> </td> </tr> <tr> <td> <input name="dept" id="dept" /> <input class="stop" name="sub" id="sub" /> </td> </tr> I want some way to skip to each 'stop' class..something that crawls forward, up and down parents and children, in other words: var x = $('#main').crawl('.stop'); // [startingPoint].crawl([stoppingPoint]); Now x == $('#sub'). next() doesn't work because it just grabs
[jQuery] $.post with an array of variables
Hi all, I have an array of variables that is built from the following: data['freshbox'] = encodeURIComponent(freshBoxType); data['numitems'] = encodeURIComponent(items.length); data['customerid'] = customerid; for (var i=0;i<items.length;i++) { data['item['+i+'][addonid]'] = encodeURIComponent($ ("#itemaddonid"+items[i][0]).val()); data['item['+i+'][itemid]'] = encodeURIComponent(items[i][2]); data['item['+i+'][qty]'] = encodeURIComponent($("#qtyfield"+items[i] [0]).val()); data['item['+i+'][freq]']
[jQuery] How to parse XMLHttpRequest.responseText from $.ajax(complete: function())
I've tried to make this as simple as possible. I can't figure out how to parse the value of an element in xhr.responseText... I have a function like this (works fine): $('#foo\\:raq').click(function(){ $.ajax( { url : 'ii.faces' , complete : hitMe }) } ); In hitMe(), I can see the xhr.responseText and the element in question - BUT how do I pull out the value from the responseText and into a variable? function hitMe(xhr){ console.warn( xhr.responseText) ; ??????????????? Here I want to get
[jQuery] Custom sorter/parser for tablesorter
I'm just discovering jQuery and finding it really interesting. Usual sort of 'learn by doing' thing. I've been playing with the tablesorter plugin, but I've run into a wall. Particularly since I'm far from expert in Javascript. :-) I want to be able to sort a table on a column containing integrated circuit numbers (such as 7400, LM555, 74LS50 4026, et cetera). I want the technology (i.e., the 'LS' in '74LS50') to be ignored for sorting purposes, so 74LS50 and 74H50 would be juxtaposed. I also want
[jQuery] [validate] remote issue
Why validate at http://www.assessoriatecnica.com.br fire submit event before remote is valid?
[jQuery] How to call axis2 ws with jQuery, json or REST
I've tried to call json and also RESTful web services deployed with Apache Axis like see below but never getting any defined response back... Any help? $.ajax({ type: "POST", url: "http://localhost:8080/.../getIt?userId=1&output=json", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { //... }
[jQuery] jQuery.getScript and Browser Cache
Are browsers able to cache calls from jQuery.getScript (http:// docs.jquery.com/Ajax/jQuery.getScript)? I'm just trying to determine either to use that or just use HTML <script> tags to get jQuery plugin files and such. Would like the most officiant option. The reason being, I'd like to break out the first option into a separate JavaScript file, like a bootstrap file. Option 1: <script type="text/javascript" src="/_assets/js/jquery.js"></script> <script type="text/javascript"> $.getScript("/_assets/js/jquery.ui.all.js");
Next Page