[jQuery] [TreeView] added active class
Hi Joern, A tinsy change in treeview allows for an "active" class to open the tree: under: switch(settings.persist) { I just added: case "active": var current = this.find(".cur_cat"); if ( current.length ) { current.addClass("selected").parents("ul, li").add( current.next() ).show(); } break; That seems to do the trick. Unfortunately I don't quite know how to pass the category name "cur_cat" into the options. But for me hardcoded is OK right now.
[jQuery] drag element w/o interface library
Hello, I'm trying to drag an element without the use of any plugin or library. The code below works - except when I invoke the mousedown on an image element. In that case, the browser seems to think I want to drag the image off the page. Is there a way to override that? Again, code below works fine on elements that aren't images. isMouseDown = false; $('#popup').mousedown(function(e){ isMouseDown = true; $(document).mousemove(function(e){ if(isMouseDown == true){ // ...moving
[jQuery] IE/FF Memory Leak
I am a newbie to jQuery so this may be a simple answer... My goal in this exercise is to return a specific html table block (table.DetailTable) from a dynamically generated html page which is the result of a servlet call into a div (xyz). The issue I am having is that whether I set the timer interval to 1 second (1000) or 30 seconds (30000), this code is leaking horriblly. I verified the leak in both IE6 and FF 2.0.0.12. Here's the abbreviate code snippet that I'm working with: function loadMyData(){
[jQuery] CSS3 Selectors - Response to John
Saw this this morning: http://www.css3.info/just-how-useful-are-css3-selectors/ I'm hoping maybe John will reply to them. :) Pax, - Stan
[jQuery] Dependant - Dynamic Drop Downs
Hello. Does anyone know of a plug-in or tutorial on creating dynamic depdant dropdowns. For example.. city,state,country. You select country, populates a state drop down. after selecting the state, you get a drop down of available cities. Here's a Spry example but only 2 options available. I would like 3. http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html Thanks, Mike
[jQuery] JScrollPane and Lightwindow / Lightbox
I am trying to run JScrollPane and Lightwindow on my site and the javascript files conflict. If any one has a solution for this I would really appreciate it. If some one has Lightbox working with JScrollPane, I would also be grateful to hear your solution. Here is a link to my other post on the same problem: http://www.trap17.com/forums/javascript-conflict-t55942.html
[jQuery] Loading GIF Slideshow w/o Modal
I'm looking for a jQuery slideshow plugin, and I can't seem to fond one that does all I need. Cycle and jCarousel come close. But my problem is I have multiple galleries on one page, and they all have large images. So, since they load all the images in every gallery and then hide them, the page totals over 4000KB. I need something like Litebox or Thickbox that calls the next/prev image and loads it as needed, with a loading gif. But I don't want a pop-up modal. It would be nice if I could just put
[jQuery] ajaxSubmit not processing success option
Hi, I have a contact form set up at www.vinhlewebdesigner.com. I want to submit the form using ajax and then display a message of success upon successful completion. Right now it submits the form, processes the beforeSubmit option, but it does not process the success option. I know this for sure because I used firebug to break at exactly that point and the submission went though, but as soon as I resumed the script it will proceed to go to the script's page without displaying the success alert. I
[jQuery] jquery ajax call parsererror
I am getting a parsererror in my ajax call; I am always getting into the error function - I dont know why My webservice is a coldfusion CFC, and does return XML - HOWEVER, there are carriage return/linefeeds in it and standard footer html - dont know if this matters(see below). I only want to parse the <RESPONSE> node Here is my call: function updateRules() { jQuery.ajax({ type: "post", url: "http://sacdsm02311.homeq.local/Aurora_MX/WebServices/EliminationRules.cfc", data: "method=getEliminationRules",
[jQuery] undo jquery.noConflict
I am running multiple libraries with the $(). There has been already alot of jQuery code using $() that we can't change. There is only 1 js include that is using the $() as another library prototype. Is there a way to temporarily turn off the $() notation for jquery? basically: $j=jQuery.noConflict() //my code using prototype or other lib $ = jQuery.noConflict() //note, going back to the normal $ notation for jQuery Thanks Alex
[jQuery] $(el).html() Removes Line Breaks In IE6
I've been experimenting with client-size markdown transformation and have hit a stumbling block. It seems that "$(this).html()" returns the inner html of the element with the line breaks stripped out in IE6 (not sure about IE7 right now). Am I missing something? Obviously, markdown assigns meaning to line breaks so rendering in IE is incorrect.
[jQuery] Q: on handling GET JSON
<span style="border-collapse:collapse"><div>I'm confused by something I found in the definition of $.ajax in the jQuery source, and would greatly appreciate it if someone could shed some light on the matter. The part of the code in question is this (I've made a couple of minor formatting changes for clarity): </div><div> </div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
[jQuery] how the callback of $.ready execute?
hi all, I need to do some special action in the $.ready callback.but i have multi block $.ready() code.one to hold shared code,others for page special code. so the question is what will be execute first,is that fixed?From the test i have done,it was not fixed. some more questions,what's the better way to load external file on the fly when the file is needed? how can i know is one file is loaded completely? 郑鑫豪
[jQuery] A problem I can't figure out alone
I don't even know where the problem is exactly. Please, if you could show me some way to go... I want to check the checkbox that have the specifc ID. Here is my code: if (sgconfs.default_domain != '') { $ ("#"+sgconfs.default_domain).attr("checked", "checked"); } Ok. The sgconfs is an object. The value of is sgconfs.default_domain correct. This come from a MySQL database, via JSON, etc. When the value in database is "dom_89", for example, it works fine. The checkbox is checked as expected. The other
[jQuery] How to do ajax load div?
I want to know how to add a ajax load div to my ajax call? [code] $.ajax({ url: href, type: 'GET', dataType: 'html', timeout: 1000, error: function(){ alert('Error loading document'); }, success: function(html){ // do something with the data } }); [/code] How do I make jQuery say "WhenAjaxLoading" and "WhenAjaxStopLoading" and how do I stop all ajax processing with the "Escape" key? Thanks.
Disable drag of item when item is dropped...?
Hello, I'mdeveloping a drag n drop interface, in which items can be dragged into a basket - at which point they freeze in the item list (cant be dragged). However, I cannot get the draggable('disable') to work within the drop function. The disable function works perfectly if I call it externally such as via submit button using oncick - but calling it within the drop function just does not work. Can anyone help me address this issue please? Here's the code: <script> $(document).ready(function(){ $("#basket_item1").draggable({helper:
.next() function [Solved]
Hi It seems that the next function only works when the sibling immediately preceeds. What I'm trying to do is to get the next "note" class text when any "ojo" class is clicked even if it is not immediately next to it: Eg: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="JavaScript" src="jquery.js"></script> <script language="JavaScript"> $(document).ready(function() { $(".ojo").click(function() { alert($(this).parent().next(".note").text())
Zoomimage - install instructions [Solved! - Finally]
Hi, I found an interesting photo gallery viewer at http://www.eyecon.ro/zoomimage/, but unfortunately there is no instructions with it on how to publish the photos. Do I need to install jQuery first, or is that a stand-alone plug-in? I have downloaded the file and made js, images and css folders in my web directory, but which code do I have to insert on a new page for these photos and how do I upload the photos using zoomimage?
[jQuery] ajax form plugin question
When a form is submitted - specifically with a file upload - with the ajax form plugin, firebug doesn't show a submission, nor any return. This is making it difficult to debug, hince the question. I know that my files are being uploaded, but the success function doesn't seem to be running: addDoc = function(data){ $('#docform').resetForm(); $('#formmodal').jqmHide(); alert(data); stripe('#documents'); removeDoc('#row' + doc); } fileValidate = function(formData){ if(!document.docform.attachment.value)
[jQuery] Can JQuery support iCab 3 (for legacy Mac OS9)
We have some users still running OS9, I would like to know if any OS9 users here can confirm if JQuery (1.2x) support iCab 3, so we can advise them to use this browser. http://www.icab.de/dl.php Thanks.
[jQuery] jQuery Cycle + Lightbox = Error!
Hi guys, IE throws up an error when I add this Lightbox script to my page with a jQuery Cycle script. Both scripts use the jQuery 1.2.1 framework and work fine on Firefox and Opera. jQuery Cycle (works fine): http://www.elysiumdesign.net.au/lightboxprob/fadertest.html jQuery Cycle + Lightbox (doesn't work): http://www.elysiumdesign.net.au/lightboxprob/fadertest-lightbox.html Any help greatly appreciated! -- View this message in context: http://www.nabble.com/jQuery-Cycle-%2B-Lightbox-%3D-Error%21-tp15453257s27240p15453257.html
[jQuery] Using val() vs text()
I want to update the contents of an element depending if it is a form element who's value can be set or if it is just an element who internal text can be set. How could I distinguish whether to use val() or text() on the fly?
[jQuery] Rounded corners and drop shadow?
I'm using the roundcorners-canvas plugin, and the dropshadow plugin. I have a div on the page I would like to have rounded corners AND a drop shadow. However running code like the following doesn't do quite what you would think: $("#navigation").corner("20px").dropShadow(); The corners of the div are rounded, but with a white area that fills out the rectangle. THEN you get the shadow. So this kinda ruins the effect of the rounded corners. I'm still reading, but one thing the dropShadow details say
[jQuery] finding if element is focused
i know i bind a function to the event focus of an element but is there a way i can see if a element is focused like? if(element.focus()) { //true } else { //false } -- View this message in context: http://www.nabble.com/finding-if-element-is-focused-tp15357587s27240p15357587.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [validate] Error messages displayed a second time are given block display mode
I've created a new ticket (http://dev.jquery.com/ticket/2359) with a patch for a quirky bug I've discovered, which may or may not be a bug in the .show() method of jQuery itself, or perhaps just a bug within the validation plugin. The problem is manifest when error messages are configured to be displayed within inline elements (which is the default case, using label elements) and a given error message container is displayed, hidden, then displayed a second time (an example scenario where this could
[jQuery] add to favorites link that works in IE AND Firefox
Can it be done and NOT opening the bookmark in a side window in firefox?
[jQuery] Fading effects and anti aliasing in IE/Opera
Hi Probably, everyone already noticed on this but when you use fade effects in IE/Opera where you change the opacity and stuff like that, the text on these browsers is poorly rendered. By other words, it's not anti-aliased. It only gets anti-aliased when the opacity is 100%. This doesn't happen on Firefox... Is there a way to workaround this problem or this is a *bug* in IE/ Opera that we can't do nothing about?
[jQuery] How to dynamically load jQuery plugins?
Hi, I make good use of various jQuery plugins that are available, however, I don't like the idea of having the <head> tag of the page filled with <script> tags for all the plugins I use. Is there way to load jQuery plugins dynamically at run time? Basically, I just want to add 2 <script> tags to the document <head>, one for jQuery itself and another for all my JS coding for that page. How can I load jQuery plugins dynamically?
[jQuery] Counting numbers from X to Y
I'm looking for a simple plugin which can tick a number from say 1 to 10 (1,2,3,4,5 and so on up to 10). I remember seeing a demo page of this with an example which I think included some currency counter but I can't seem to find it again! Been browsing the Plugin directory but haven't found it. Thanks =) Regards
[jQuery] User Interface: How to query the dropped element?
When using draggables and droppables, I'm having difficulty understanding how to query the dropped element. For example, right now I can do something like the following: $('.droppable').droppable({ accept: '.draggable', tolerance: 'pointer', drop: function() { $(this).append('hey'); } }); But what I would like to be able to do is like the following: $('.droppable').droppable({ accept: '.draggable', tolerance: 'pointer', drop:
[jQuery] slider bar in jQuery
Hello, I am new to both jQuery and YUI. While jQuery has an easy slideUp slideDown mehtods..YUI has an easy slider widget (http:// developer.yahoo.com/yui/examples/slider/slider-simple.html). I am confused which one can achieve the similar feat for me: http://demo.backbase.com/travel/ In that demo if you move the price slider from left to right then the data on the right is shifted accordings. Can someone please give me a pointer on where to begin with this? for starters i dont even want to go back
[jQuery] ajax file uploads: getting strange error
Hi, I just downloaded the latest version of the ajax file upload plugin (http://www.phpletter.com/Demo/AjaxFileUpload-Demo/). I have created a test page http://elearningrd.info/test.php but every time I upload a file, the error callback is invoked and the message "Syntax error: Invalid label" is displayed. My file does get uploaded to the proper directory, but the error is troubling me. What does it mean and any ideas how to resolve it? Thanks, - Dave
[jQuery] Change stylesheets if images are off
I finally finished it .... // detect whether images are on // and change styles accordingly jQuery.imagesOn = function(){ $('<img src="' + '/images/bgimage.jpg' + '#' + Math.random() + '"/
[jQuery] Ajax Post URL - unterminated regular expression literal
Hello. I'm using an Ajax Post. It works fine when I use the path in the url... url: "controllers/processajax.cfm", However, If I want to use a url string like: url: "index.cfm?Action=processajax", Then I get the following error: unterminated regular expression literal It blows up in what appears to be the data results. However, literally the only difference is the URL string I use. Any ideas? Thanks, Mike
[jQuery] Interface > Sortables > Crash On IE
I had this bug, when opening the page in IE it always caused to crash. I was trying to use the sortables on a simple ul li. Here's the fix / the thing you shouldn't do when implementing.... /* ********* THIS FAILS!!!! ****/ <div id="sort"> <ul> <li class="sortableitem">1</li> <li class="sortableitem">2</li> <li class="sortableitem">3</li> </ul> <script type="text/javascript"> $('#sort ul').Sortable({ accept : 'sortableitem' } ) </script> </div> /* ********* THIS WILL WORK!!!! ****/ <div id="sort">
[jQuery] Slideshow for divs
does anyone know a plugin or a way to slide divs from left to right ? i found some ways but only with images, and im not very good at programming so i coudln't do it with .animation it didn't work very well
[jQuery] [validate] error in jquery.validate.pack.js ie6
im getting one error using the jquery.validate.pack.js in ie6 not happening with normal version
[jQuery] Interface, jQuery, Sortable
I have built a page that users can sort "blocks" into various pages, sort of like iGoogle. Everything works fine except that if a block contains javascript (i.e. widget), IE 6 & 7 crashes when trying to sort a block. Anything else in the block works fine, just javascript fails. Any thoughts?
[jQuery] Request for a simple basic Ajax call with loading gif
One of the things that is frustrating me in learning jQuery is that there isn't enough examples, case-studies or tutorials on how to use the .ajax call; most web pages I've seen seem to be for the .load or .get. That being said, can someone post a very basic Ajax call complete with a loading gif? Also, does anyone have any links/resources to case-studies/examples of Jquery and the .ajax call? With thanks.
Text value does not show within Tab [SOLVED]
I have a tab like this: <script type="text/javascript"> $(function() { $('#content > ul').tabs(); }); </script> <div id="content"> <ul><a href="#num"><li><span>t1</span></a></li> <li><span>t2</span></li> </ul> <div id="num"> <input type="text" name="name" value="test value"> </div> <input type="text" name="name2" value="test value"> The value in the text box does not show within the tab (name), but it works just fine outside the tab div (name2).
Next Page