[jQuery] Javascript does not work on a page loaded
Here is the situation. I made some test files. 1. Main html file. iload.html <html> <head> <script src="/js/jquery/jquery.js" type="text/javascript"></script> <script>$(function() { $('#div').load('itest.html'); } ); </script> </head> <body> <div id='div'> Loading... </div> </body> </html> 2. Is a child html file. itest.html <html> <head> <script src="itest.js"></script> <script>alert('That\'s inline alert!!!');</script> </head> <body> That's my body, duddies! :-) </body> <script>test();</script>
[jQuery] Sticky Footer
Is there a way to make a footer always show right at the bottom of the page using jQuery? I've tried the CSS solution from Ryan Fait and it's not working for me.
[jQuery] not getting new width when adding options to a select
I've bugged it here: http://jquery.com/plugins/node/787 and here: http://dev.jquery.com/ticket/1870 but I'm wondering if any one has any ideas for a workaround (other than switching browsers unfortunately) . Basically, in IE6 the width() on a select box (or it's surrounding div/span) is not updated when wide options are added to the select. It works great in Firefox, but that doesn't help me too much. The basic problem is this. I have a row of select boxes that need to be of minimum widths (ie. no
[jQuery] attribute quote-stripping problem
When using manipulation functions such as html( val) , prepend( val) , sometimes quotes around attributes are removed. .eg jQuery('#id').html("<td id='a.b'></td>"); The resultant html is just "<td id=a.b></td>" Now when I try to select
[jQuery] Bind function on font-size changed
Hi all, i have bind a function to windo resize: $(window).bind('resize', function() { setheight(); return false; }).trigger('resize'); Works fine. What can i do to work the sethight() on change the Font-size in browser (STRG +/-)? -- Viele Grüße, Olaf ------------------------------- olaf.bosch@t-online.de http://olaf-bosch.de www.akitafreund.de -------------------------------
[jQuery] Graffiti and jQuery
Do you like graffiti/streetart and do you rock with jQuery? Then maybe we should hook up! I'm currently developing a website which is almost finished, but I could use some help in the jQuery department. So if you're an enthousiast, please, contact me. I gotta mention up front that it's not a paid gig (I'm not getting paid either), so please only reply if you're really interested and willing to work for peanuts. Codex
[jQuery] IE & Safari suddenly not cooperating (jquery-1.1.4, interface-1.2, inestedsortables-1.0.1
I had full browser support for my NestedSortables list last night but now it only works in firefox. It either has something to do with the included js files or some syntax error on my part that I can't see. I stripped it down to just the includes and the list in a test page: http://edigi.homelinux.com/test/test.html Anybody know what the funk is going on?
[jQuery] What's wrong with my Select Form code?
$(document).ready(function() { $('div.hidden').hide(); $('#node-58 > select.state').change(function () { $(this).find("option:selected"); // I think this line needs a function to wrap the next bit of code? var equiv = $('#' + this.className); if(equiv.length){ equiv.show(); } }); }); Explanation: I have a bunch of divs with class 'hidden' that automatically have to hide. Those divs also have IDs each corresponding to a CLASS on an <option>
[jQuery] (Mis)Behaviour of not() ?
I've come across some behavior of not() that doesn't match the docs, or I'm not understanding the docs. Given the following form: <form> <input type=hidden name=a> <input type=hidden name=b> </form> I'd expect "$('form :input:not(:hidden[name=a])')" to return "[<input type=hidden name=b>]", since "$('form :hidden[name=a]')" returns "[<input type=hidden name=a>]" and and not(selector) should "Filters out all elements matching the given selector". However, "$('form :input:not(:hidden[name=a])')" instead
[jQuery] Form Validation Plugin - animating errorContainer
Hi all how to animate errorContainer message with Form Validation plugin? I have this code and I'll want to animate it when occurs an error in my form: $("#frm").validate({ ... errorContainer: $("#messageBox"), ... inside my form: <div id="messageBox"> <h5 class="msgerr">This form contains errors. Please try again!</h5> </div> Thanx. Marco Antonio
[jQuery] Some more jQuery evangelism
Two weeks ago I presented a session on jQuery to a group of 4D developers (more on 4D here - http://www.4d.com/ ) The audience was pretty evenly divided into (self-identified) javascript newbies, experienced javascript folk and people that don't raise their hands in public. The context of the presentation was using jQuery on top of an existing javascript framework that 4D developed to work with their database. My goal was to show the benefits of being open. The very cool thing was that I didn't need
[jQuery] Always on bottom
Hey everyone! I have this layout full of layers and html content. Thing is ..i need to set the footer to be always on the bottom of the page.... due the dynamic nature of the content the layout always gets bigger and gets back to its original size in some situations. The problem is that the i cannot manage the way to set the footer in the very bottom of the page no matter which content is increasing the height or width.. i need the footer always down there! is there any way to do this with Jquery?
[jQuery] Re[jQuery] moving HTML from string....
Hey everyone... I need to remove a <div> element from a string of HTML... what JS or JQ command should I use... I've been struggling with this... I've tried remove(), what else? -- View this message in context: http://www.nabble.com/Removing-HTML-from-string....-tf4721533s27240.html#a13498616 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] How to pull details info into master page (php/mysql)
I have links from my master page in the form of <a class="view-man" href="manufacturer_Detail.php?manID=<?php echo(rawurlencode($row_WADAmanufacturer['manID'])); ?>" title="View Manufacturer Details"> to my details page and I would like to pull the info into my master page rather than going to the details page. I have tried this variations of this code $(document).ready(function () { $(".view-man").click(function () { $("#show-detail").load("manufacturer_Detail.php?manID=<?php echo(rawurlencode($row_WADAmanufacturer['manID']));
[jQuery] Dynamically Populating Select Box
I am trying to make a select box that with populate depending on what is selected in the select box before it. Both of these select boxes need to draw information from the sql database (I have to use ASP to get this information). I've been looking at some tutorials but am overall very confused as how to accomplish this. I understand that I need to look for a change in the first select box to populate the second, but I don't understand how to tell ASP to query for different information. I would like
[jQuery] jQuery $().load method for a new pllugin creation
Hi everyone, Im using a load method to create a plugin for a complete dinamic ajax navigation. Soon I will show all jQuery comunity. The idea is keep the link the same and a rel atribute that point the div to update. So a line like $("a").ajaxNav() will made all link work with ajax. Im using the load method to get this, but when I load a page whith the load method, and this page loaded has a link, this link stop to working with ajax, even with a return false or a e.preventDefault(). Just the first
[jQuery] How to upgrade from JQuery 1.0 to 1.2 without changing the existing code?
I have built quite a bunch of things with JQuery 1.0. for my web application project. Every time, I want to upgrade from this version to the latest one...there is always some errors. What is the best practical way to achieve this? Thanks, Channa
[jQuery] starting Jquery: need a bit of guidance
hello, I have downloaded jquery. I have high expectations as I can see many great lookign websites thanks to this JS library :) I need to do the following: I have a form called form.php divided into 2 parts. - the form itself where you need to pick up 6 numbers out of a list (variable gathering the numbers is called "liste" - ad banners (4 rotating banners the same page) the form should be processed via "process.php" I would like the users to: - select the 6 numbers - click one of the 4 rotating
[jQuery] Jorn's Validation Plugin - how to know if occurs a form field error?
Hi all anyone using Jorn's Form Validation could help me? I'll need to know if exists an error in a form field. With this information I could be hide a "Please Wait..." message. Thanks Marco Antonio
[jQuery] Site Submission: ministryofsound.com
The world Famous Club venue Ministry of Sound is using jQuery slide toggles, ajax and some additonal sprinkles of jQ did'nt see it included on the powered by jQ page, though its quite basic use of jQ its a prominant site. - S
[jQuery] Newbie: Feedback, advice needed
Hi, I've two simple functions for changing a div's content with image thumbnails. When hovered a thumbnail holder div's content changes. The code works fine. But I don't feel this functions are well written... Could you please have a look at them? Is there a better way (design, code...) to do what I'm triying? jQuery.fn.selectMain = function() { jQuery("#mains div").hide(); jQuery("#main1").show(); jQuery("#thumbnails li").eq(0).addClass("active"); return jQuery("#thumbnails
[jQuery] Test if object is jQuery object
Is there a cool way to check if an object is a jQuery object as opposed to any other object? I tried the constructor property but it just says Object(), the same as any other object. Tried typeof, but same deal, just object. Right now my function can take an object or a jQuery object as an argument, and all I've figured out is that the jQuery object is indexable (array-like), so if the object is not jQuery it will return undefined if I say obj[0]. But, this seems like a hack - is there a better way
[jQuery] Query for elements without a specific parent
Hello, Assume, I have the following HTML: <b>Text1</b> <b>Text2</b> How can I select the second <b>, which is not a child of a ? As I am a newbie, I played a little bit around with :not, filter(), but unfortunately $('b').filter(":not(p > b)") => both <b> are selected. $('b').not('p > b') => both <b> are selected. Any hints? Jochen
[jQuery] How to retrieve class name from element?
Hello, Here's what I'm trying to do: When someone clicks on an element: jQuery will ask that element what it's class name is. Then jQuery will select another element whose ID is equivalent to the first element's class name. I don't know how to get jQuery to ask the first element what its class is?
[jQuery] [News]: Plugin Development Pattern (blog entry)
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey everyone, <DIV><BR class="khtml-block-placeholder"></DIV><DIV>Mike Alsup posted a fantastic entry called Plugin Development Pattern today. If you've been writing jQuery plugins, or thinking about writing one, this is definitely worth a good, careful read. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern">http://www.learningjquery.com/2007/10/a-plugin-development-pattern</A><BR><DIV>
[jQuery] Uploading to SVN
Hi, yesterday i checked out the svn dev version with all the plugins. I tried the rating plugin which did not work with the 1.2 version of jQuery. (slice problem) I made all the changes and got it working (was another slight issue with the averageIndex). Now i would like to commit my changes. How can i get a login. Do i have to pass a test first :) Cheers Phil
[jQuery] [INTERESTING PLUGIN] Wait plugin
I came across an interesting plugin today on my travels around the web: http://blog.jcoglan.com/2007/10/30/asynchronous-function-chaining-in-javascript It's interesting, because it's a setTimeout plugin but is coded so it can be chained along my event queue. For example, in my code before I had: $(self).animate({top: -90, opacity: 0.9}, 2000); setTimeout(function() { $(self).animate({ top: -150, opacity: 0 }, 1000); }, 5000); But using this plugin, I can now do: $(self).animate({top: -90, opacity:
[jQuery] each loop selects to much
Hello, I am trying to loop through all rows of a table that has a table inside. I expected jquery to only loop through the tr's of the testtable but it loops through the inner one as well and even considers the whole inner table a tr. Am i doing something wrong or is there a better way to do this? thanks, Hans <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script
[jQuery] Getting the now focused element in a blur event handler
Hi, I'm looking for a way to find out the currently focused element from within a blur event. I have it working in Firefox using event.explicitOriginalTarget as you can see here: http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerOnFocus.html However, this seems to be a Firefox only property on the event so is no good to me for IE or Safari :( As you can see, what I am trying to do is on blur of the input check if the now focused element is in the popped up calendar or not. If it is
[jQuery] AjaxForm to $_SERVER["PHP_SELF"] = Dosent Work!
Hello to all! I'm new here, and I have an question =) I cant bind an form when i'm posting to self? I can't get the alert("Thank you for your comment!"); Look This very, very simple script: http://pastemonkey.org/paste/7 Or Here directly: <?php require("include/conexao.php"); /* Testa se o form foi enviado */ if(isset($_POST['submit'])){ } else { ?> <html> <head> <!--PARTE DO AJAX --> <script type="text/javascript" src="script/jquery.js"></script> <script type="text/javascript"
[jQuery] using json in $.post
hi, I very new with json ( you may say that I still really don't understand it quite well), how do I use the json object that is return from the $.post in its callback argument? $.post('/ap/item/code/edit/', values, function (data){ //how to access the json object from the data? } ); the data is json object in particular is a dictionary thanks james
[jQuery] Plugin/syntax conflict
Hey I've written small functions for DOM traversal and placed them in jquery.plugins.js: jQuery.fn.prevUntil = function(expr) { var match = []; this.each(function(){ var n = this; while (n = n.previousSibling) { if (n.nodeType == 1) match.unshift(n); }; }); return this.pushStack(jQuery.multiFilter(expr, match)); } jQuery.fn.nextUntil = function(expr) { var match = []; this.each(function(){ var n = this; while (n = n.nextSibling)
[jQuery] load property
Hi all. I'm trying to do some things with the property .load, but I have some error syntax. I have upgraded to the lastest version of jQuery. My line that have error is this: $("#realizar").load("/policlinica/corpo/exames/executar.php", {BuscaPacCod:<?=$_GET["BuscaPacCod"]?>, ajax:"Sim", realizaExame:id} ); Whats wrong?
[jQuery] I just hate the way this mailing list handles grouping messages...
<!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>I just hate the way this mailing list handles grouping messages...</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Man, is it annoying!</FONT></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"><FONT
[jQuery] Help on mouse over and div appearing on an img
Hi, I'm working on a little piece of code you can find here: http://www.gianiaz.net/jquery/mouseover/ In a few words, I make appear a div with an info of the image when the mouse go over an image. The problem is that when I go over the image the div with the info appears, but if with the pointer I go over the info div the mouseout event is fired even if the div is inside the image causing a blinking. There's a way to block the mouseout function? how can I solve? Thank you
[jQuery] is jQuery.noConflict() removed from jQuery??
It came as a surprise to me today when I didn't find the noConflict where I knew that I'd seen it a couple of weeks ago. http://docs.jquery.com/Using_jQuery_with_Other_Libraries But with a google cache from 27 october... we're told to use noConflict() http://64.233.183.104/search?q=cache:MpHKFWuB3tsJ:docs.jquery.com/Using_jQuery_with_Other_Libraries+jquery+noconflict&hl=sv&ct=clnk&cd=1&gl=se So....what is happening? Why is it removed from the docs? Thanks / Boris
[jQuery] [NEWS] Aptana v1.0 released. Includes support for jQuery v1.2.1
Aptana has released v1.0 of their IDE (http://www.aptana.com/) and it includes support for jQuery v1.2.1. Details on how to use jQuery within Aptana can be found in this thread: http://www.aptana.com/forums/viewtopic.php?t=3362 Rey...
[jQuery] adding parameters to tabsClick()
Is there a way to pass parameters with the tabsClick function? My basic code looks like this: $('.newslink').click(function() { $('#tab_menu > ul').tabsClick(3); return false; }); That works great for every link with the .newslink class. But what if I want each link to go to a different anchor point in that third tab? Is there a way to pass that value? I've tried various methods of appending it, but I'm sort of grasping at straws. What about passing parameters like 'news.php?id=12'. How could
[jQuery] can't get superfish to work
I've tried and tried but I can't seem to get superfish animation to work. I have a css menu that I call primenav. Here is the code for it: .primenav, .primenav * { margin:0; padding:0; list-style:none; } .primenav { line-height:1.0; text-decoration:none; position: absolute; list-style-type: none; right: 0px; top: 139px; padding: 0; z-index: 3; } .primenav li.firstchild { border-left: none; } .primenav ul { position:absolute; top:-999em; width:10.45em;
[jQuery] Newbie Question: Callback for Load Only Works the First Time Load is Called?
I've got some code that uses load to add some help info to a page when the user clicks on a help button. I pass the current contents of the div to the php function that provides the help info. The php function checks the current contents, and if it sees that the help info is already on the screen, it toggles it off, and puts the help button back in its place. I added a callback so that after the load, the page will scroll to the help info just added. All this works great, but the scroll only works
Next Page