[jQuery] can only modify DOM via debugger
Hi I've got a problem. I'm running Firefox 2.0.0.11, Firebug 1.0, jQuery 1.2.1. I have the following code in a Genshi template for a toy TurboGears 2.0 app: $(document).ready(function() { $("a").click(function() { var coursename = $(this)[0].attributes['coursename'].nodeValue; var mydata = $.get("http://localhost:8080/course/" + coursename + "/", {}, function(mydata) { return mydata; }); var str1 = mydata.responseText.substring(5,7); var textAreaNode=document.getElementById('test'); textAreaNode.value
[jQuery] IE 6 select controls
I'm fairly new to using JQuery and JQuery UI and am having some difficulty. I'm trying to use a <select> control in a jquery dialog window $ ("myDialog").dialog(). The problem arises in IE 6 when you have a sufficient number of options that it requires scrolling of the select control. IE will not allow me to click on the scroll control to scroll, for example, to the last option in the select control. I posted an example at http://www.oddreflector.com/work/ie/test.html Of course Firefox and Opera
[jQuery] Using one namespace for multiple methods
I am working on a plugin and was trying to figure out what was happening to break my code.. I have in my plugin functions similar to the following: $.fn.pluginName = function() {} $.fn.pluginName.oneThing = function () { ... } $.fn.pluginName.anotherThing = function () { ... } I try to call it like so: $('#idOfElement').pluginName.oneThing(); The problem is that the this.each() is 'not defined' when I use it in the oneThing or anotherThing methods. If I do the methods as: $.fn.oneThing and $.fn.anotherThing
[jQuery] Cross domain POST
Hello, I am writing a gadget that will be hosted on one server and used on many sites. I load it using jquery.getScript. No problem with that. But I am wondering how can I submit form to hosting server and retrieve the response? Is there a way to do this with jquery or maybe just javascript? Note: gadget hosting server domain is not the same as web site domain. Also, setting up proxy on sites that will load gadget is not possible since I don't know which sites will use gadget. I know i can create
[jQuery] Switching Divs
I want to switch the place of 2 divs. One would be located on once side of the screen somewhere and the other far away from it.. I want to be able to click on one of them and have them "hover" or move to switch locations with eachother.. It would be cool to have them switch at the same time, but if thats not possible then I guess I am out of luck.. I am basically asking how todo it at the same time, I am pretty sure I can figure out how to make them just switch spots by moving one over and the other
[jQuery] jquery.corner.js in Rails
Hi, Does anybody knows how to install jquery.corner.js in rails? Thanks, Pedro
[jQuery] $('table tr').hover() not working in IE
This is my jQuery code: <--------------------------------------------> $('table tr').hover( function() {$(this).addClass('hover');}, function() {$(this).removeClass('hover'); }); <--------------------------------------------> This is my CSS: <--------------------------------------------> tr.hover {background-color:#E6EEEE;} tr.hover a{color: #4F839F} tr.hover a:hover{background:none; font-weight:bold; color: #4F839F} <--------------------------------------------> This works fine in Firefox - it turns
[jQuery] Selecting Child from object
If you are in the the middle of an each statement, and you want to select a child object from the main object you are in what syntax would you use? For instance, $('.selector').each(function(){ //I want to select a child of 'this' $(this) });
[jQuery] A dynamic tooltip validator?
Hi this is a newbie question. I am new to Ajax and jscript and been learning JQuery now. I am trying to find a plugin or a way to do it myself. I need a validator control that pops or drops down to the location of the page the user is currently entering info. If the user enters an invalid email address on exit of that input the control will appear with a custom message. The user can continue entering and if there are more validation errors the tooltip (prefereably on the side of the form) will append
[jQuery] Which plug-in resizes photos to max-size according to browser window?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Which plug-in resizes photos to max-size according to browser window?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Hi, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
[jQuery] why not get value using $('#wrapper').attr('offsetHeight') in firefox?
in firefox $('#wrapper').attr('offsetHeight') == undefined but document.getElementById('Wrapper').offsetHeight is ok
[jQuery] How to determine radio button state?
I'd like to show or hide a table row depending on whether a certain radio button is checked. I can not use a $(theRadioButton).click( ... ) handler for several reasons. One of them is that I need to check the state when the page loads and show or hide the element accordingly. I'm selecting the radio button like this: $('input', 'div#hide3aButton') That code does seem to successfully select the button. Now I need to find out if it's checked I tried this: if ($('input', 'div#hide3aButton').checked)
[jQuery] Synchronous JSONP
<span style="font-family: trebuchet ms,sans-serif;">Right now in 1.2.1 the JSONP method uses an asynchronous call to do it's thing.</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"> This sometimes causes a problem when we are sending a call about a "click" event on a link. The page unloads before the JSONP is finished.</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"> <span style="font-family:
style="display:none" not working [SOLVED]
OUTPUT: 1 message shows up correctly 2 PROBLEM OCCURS HERE and the message disappears all of the sudden with no js error 3 alert(1); $("#ajax-message")[0].innerHTML = message; alert(2); $("#ajax-message").attr("style", "display:inline"); alert(3); <div id="ajax-message" style="display:inline;"></div> ?how can i access the style display attribute and toggle between inline and none....the above is not working....thank you.
[jQuery] Progress image swap
Hi-- I'm pulling my hair out trying to make this work. I want to change an image to an animated gif to indicate progress while I pull down some files via synchronous ajax, and then switch the image back to a static one when finished. Everything I try fails, invariably the animated gif doesn't become visible until all the ajax loads complete, and then of course it gone. HEre the basic code I have at them moment: $("#meter").attr("src","img/meter_on.gif").show('fast', function() { load_stuff_with_ajax();
[jQuery] wow getScript full url and IE
WOWWOWOW I never notice that $.getScript or getCSS jQuery.getCSS = function( url, media, rel, title ) { jQuery( document.createElement('link') ).attr({ href: url, media: media || 'screen', type: 'text/css', title: title || '', rel: rel || 'stylesheet' }).appendTo('head'); }; dosnt work without a full url!! In my localhost tests i put the localpath and work! Iam right?
[jQuery] jquery ui tabs (tabs 3) in conjunction with the new coda slider (1.1.1) troubles.
Hi there, I am using the jquery ui tabs (tabs 3) in conjunction with the new coda slider (1.1.1), and for some reason the coda slider only works on the first tab. Here's the demo: http://www.cpmv2.com/test2/ If anyone has any suggestions I would really appreciate it.
[jQuery] Toggle - change clickSymbol
Hello, im using the script from this site here http://host.sonspring.com/portlets/ But now i need a solution to change the clicksymbol (- if the content is open and +.jpg if the content is closed/toggle). in my HTML im only using this here: <div class="portlet_topper" style="position:relative;"> <a href="#" class="toggle" style="margin- left: 10px;"> <img src="mini.gif" alt="Mini" border="0"> </a>............... the Script is: $(document).ready( function() { // Toggle Single Portlet
[jQuery] JQuery UI Dialog not working
I'm working on a new website that's going to heavily rely on JQuery, but I can't get the UI Dialog code to work. To simplify matters, I took the HTML code from the documentation's example and modified it to work with local scripts. It winds up failing with my local copy of JQuery. Here's the URL: http://www.jasons-toolbox.com/Recipes/DialogTest.asp Here's the URL using the latest copy of JQuery right from the servers: http://www.jasons-toolbox.com/Recipes/DialogTest.asp?Latest=y Any ideas why it
[jQuery] How to set up a callback on a function I've made?
Hello people, How can I force some code to run only when the execution of other function finish? Look my code: function loading() { $("#ajaxContent").slideToggle("normal", function() { $("#ajaxLoader").toggle(); }); } $("#searchBar > button").click(function() { loading(); $.get("ajax/list.php", function(data){ $("#ajaxContent").html(data); loading(); }); }); In the second block of code I want the $.get to
[jQuery] Validation plugin docs: links not working
Last links (Demos) on page http://docs.jquery.com/Plugins/Validation are not to be found: http://dev.jquery.com/view/trunk/plugins/validate/demo-test/marketo/ http://dev.jquery.com/view/trunk/plugins/validate/demo-test/milk/ Instead I managed to locate these resources at: http://dev.jquery.com/view/trunk/plugins/validate/demo/marketo/ http://dev.jquery.com/view/trunk/plugins/validate/demo/milk/
[jQuery] jQuery blockUI doesn't show up in IE
Hi! I'm having a little problem with the 'blockUI'-plugin; it doesn't show in Internet Explorer (or the FireFox IE-tab), but does show in FireFox. I've Googled and searched this forum, but couldn't find anything related. Has anyone got a solution? I'm using the latest stable jQuery version and blockUI-plugin. It's not in a high priority, but it would be nice when I've got a solution to this little problem :) Thanks! - Frank -- View this message in context: http://www.nabble.com/jQuery-blockUI-doesn%27t-show-up-in-IE-tp14709761s27240p14709761.html
[jQuery] clone item, then remove it?
I have seen examples of cloning items, but not how to remove them. Is this possible with jQuery? I like this example, but it is not built on JQ... http://host.sonspring.com/cloner/ Has anyone done this using JQ?
[jQuery] load method doesn't work with "& amp;" and "&" doesn't validate
When loading an url containing querystrings with jQuery's "load" method I first tried "&" but since that doesn't work, I'm now using "&". The problem is, now the page doesn't validate XHTML 1.0 transitional. Any suggestions?
[jQuery] $('element').fn(); not working after adding html to DOM... wonder if anybody can help :O
ok... I call an ajax function, get the data and translate it into html markup and then add it to the DOM, i.e. <div id="myDiv"></div> if I call $('#myDiv').nameOfFunction(); it will just not recognize the added markup :| I don't know if anybody is capable of helping, but hopefully somebody can! Would be really awesome!!! :D
[jQuery] href attribute in ajax generated pages on IE
Hi everyone, Im defeat a great problem to read the href attribute on IE. If I had something like this: $(".somelink").click(function(){ var path = $(this).attr("href"); }); With this link: <a href="/test/">some test</a> The both browsers return "/test/", but when the page is loaded via ajax with the load method, on ie the result becomes "http:// www.domain.com/test/". Anyone know how to retrieve the same result even in a dom generated page on ie? Thaks...
[jQuery] jScrollPane.. maintaining position after expanding content
Hello, I am relatively new to jQuery and wasn't a javascript guru before i started it, so forgive me if the solution i am looking for is blindingly obvious in the end. i have a block of content that contains a bunch of collapsed divs. on clicking an icon, the related div expands to show more information. I managed to get figure out to reinitialize the scrollpane so that i could actually see all of the content, but even if i pass maintainPosition: true as a parameter, the content tends to scroll back
[jQuery] jquery and safari
hi! i'm having issues to have my project work in safari. No problem with Firefox, IE6+ or Opera, just Safari, both the mac and windows versions. The symptom is: the page is empty! only the background image shows, and nothing on top! My code is quite long so instead of burdening you under it, i would rather ask an open question about any known issues with Safari and jquery? thanks for your help! Alexandre
[jQuery] jquery remove() not removing
Hi folks, I'm using remove() to remove a list, then re-creating a list using the same id. Remove does not appear to be actually removing the instance. If I check for the element, it returns true, but if I try to work with it nothing happens? Firebug shows no evidence of the list either. Anyone experienced similar?
[jQuery] Why does this jquery operation still bind to the submit button?
I'm confused why the bind to the submit button still takes place with: jQuery(":input[@type != 'submit']", document.preAssessmentForm ).change( function() { setConfirmUnload(true); } ); this selector works fine (the 'submit' isn't selected which I can tell by iterating over the selection and printing out everything ) but yet the bind to the submit button is still occurring.
[jQuery] Cycle Plugin Question
I'm building a player with a pager and I'm having some trouble - my javascript ability is intermediate so I'm hoping someone can lend some advice. I'm working on a "before" callback function and I'd like to access the current slide index. I'd like to know what slide "number" is coming up. As the new slide is called, I want to add a class to the corresponding pager element so it appears "active." Make sense? Thanks for the help.
[jQuery] toggle function on checkbox
I'm having a problem with toggle() and was hoping someone could help me. Using the toggle function on a checkbox seems to have disabled the checkbox's ability to check on and off. http://tinyurl.com/yo9onz http://tinyurl.com/yo9onz My code: $(document).ready(function(){ $("#precheck").toggle( function () { $(".preregbox").show('slow'); }, function () { $(".preregbox").hide('slow'); } ); }); -- View this message in context: http://www.nabble.com/toggle-function-on-checkbox-tp14695340s27240p14695340.html
[jQuery] thickbox question
is there a way to trigger thickbox to popup without any clicking. I tried $(#id').trigger('click') but that did not work. -- View this message in context: http://www.nabble.com/thickbox-question-tp14695419s27240p14695419.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Watch plugin?
This blog post http://www.neilmix.com/2008/01/06/beyond-dom/ was linked from Ajaxian today I posted a comment about using the javascript watch method without being wise enough to verify it's rather limited implementation. Is there a way to work around this? I can see where $ ("#foo").watch(myVar) would be very handy.
[jQuery] how to write my own jquery plugin ?
Hello, Anybody knows where can I find a doc about my title ? Thanks in advance. Arn.
[jQuery] toggle function on checkbox
I'm having a problem with toggle() and was hoping someone could help me. Using the toggle function on a checkbox seems to have disabled the checkbox's ability to check on and off. <a href="http://tinyurl.com/yo9onz">http://tinyurl.com/yo9onz</a> My code: $(document).ready(function(){ $("#precheck").toggle( function () { $(".preregbox").show('slow'); }, function () { $(".preregbox").hide('slow'); } ); });
[jQuery] jQuery cycle not working??
Hi I need some help with this I have never used this before and i can't seem to be able to get it to work. Now it might be because I have a Cold at the moment (no not man flue, I'm just ill), but i can't seem to figure it out. Please see my example here... http://www.c9dd.com/v2/portfolio/index2.php It seems to see that i have got the images in the page but it does not do anything with them. Please help! Ash
[jQuery] Clone dont work. Why?
<div class="add-more"> <label for="empresas_coligadas_ou_filiais" class="label- ecf">Empresas Coligadas ou Filiais</label> <input name="empresas_coligadas_ou_filiais" type="text" maxlength="255" /> <span class="bt-more"></span> <span class="bt-less"></span> </div> $('span.bt-more').bind('click', function(){ var e = $(this).parent()[0]; e.parent().clone().after(e); }); Where is the error? Thanks. Antonio
[jQuery] Trouble with .children in IE
I've a peice of code that is working fine for me in FF but errors out in IE 6 and 7. I'm using the impromptu and corner plugins, although I don't think the error is related to them. <script type="text/javascript"> availpoints = 500; $(document).ready(function() { if ( $('.spendlogo').length ){ $('.spendlogo').click(function(){ reward = Number($(this).attr('reward')); redeemtxt
[jQuery] jQuery 1.2.2? btw...
I'm using the beta and it's much more performant than the 1.2.1 and I got no bugs so far... some intensive js scripts have decreased my cpu load to even half in some cases, I wonder when it is going to be released I'm curious on what is going to come up other than performance tweaks :D wish you all a happy new year!
Next Page