[jQuery] Understanding $(document).ready() etc
As I understand $(document).ready() is more or less just an enclosure to make sure the DOM is correcly available for use with jQuery. As it seems this makes the use of any on... event handler obsolete since any event can be bound in the $(document).ready() enclosure. Is that right or is there more behind it? What happens if I still use e.g. onclick somewhere in the page possibly when this event is already bound to a function in the enclosure? Should this be avoided? What are the implications? So
[jQuery] How to use jdMenu in frameset?
I download bete2 at http://jdsharp.us/code/jQuery/plugins/jdMenu/1.3.beta2/ When I do some work I find it is be closed over by the frame left or main. Is jdMenu could be used in frameset? and How to use in in this instance> <frameset rows="130,*" cols="*" frameborder="NO" border="0" framespacing="0"> <frame name="top" scrolling="no" noresize src="FrameTop.aspx"> <frameset cols="208,*" frameborder="NO" border="0" framespacing="0" rows="*"> <frame name="left" noresize scrolling="no"> <frame name="main"
[jQuery] Block UI plugin not unblocking on xhr.abort() ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>Mike (or others):</FONT></SPAN></DIV> <DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2></FONT></SPAN> </DIV> <DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>I've recently upgraded
[jQuery] How do I trigger the click event on a button in another frame?
This started out as just a quick hack until I can redo the mechanism correctly, and now I just want to know how it works. $(window) has no properties, so $(window.frames[1].document) has no properties. Oddly, window.frames[1].document in firebug pulls the correct document. I've been trying to make the following work to no avail. Is jQuery limited to the current document by design? $ ('input:button[@name=Accept]',window.frames["mainFrame"].document).click();
[jQuery] Job Opening - Lead Web Developer @ Fluid
I've been really enjoying jQuery. When they said a lead web developer position was opening at my company I naturally thought to post it here to see if any jQuery-oriented folk were interested... but... Is this a good (appropriate) place to post a job opening? Are there other lists/places I should try? jQuery-en is the one professional group I take the time to read/reply. We've hit the traditional Craigslist and other job boards... You're welcome to ask me questions about what it's like to work at
[jQuery] jquery form plugin
I am trying to return html after the form has been processed. I get it to work with plain text such as echo '{ message: " Thanks " }'; but html doesnt seem to want to work. Any thoughts?
[jQuery] dynamic creation of an button
anybody knows why the following fails in ie, but works ok in firefox? $('<input>').attr({'type': 'button', 'id':'some-id', 'value': 'yes'}) when i remove the type hash attribute, it works: $('<input type="button">').attr({'id':'some-id', 'value': 'yes'}); dennis.
[jQuery] Anyone see anything wrong in this code?
Good morning, all... I'm trying to implement validation using Jorn's Validation plug-in and every time I click into a form field, then click out, IE 7 locks up. Everything is working fine in FF (except the Submit button, but that's an issue for later...) Does anyone see anything wrong in the code below? Also, the form is at http://bodaford.whitestonemedia.com/html/property_search.cfm The top form is the only one that I'm talking about. The bottom form was an earlier version left for referral. (Maybe
[jQuery] Defining of a function
Hi, Maybe i should take a break,- i don't get the point what differences it makes defining a function as a named or a anonymous function. function xxx () { ... } var xxx = function() { ... } What are the advantages and disadvantages of both of them? Thx in advance. -- Olaf Gleba
[jQuery] screen flashing with IE
I created a small widget with 4 tabs - rollover the tab and the content below changes. In IE6 if I roll over the tabs with any kind of speed (a def possibility for my users) the entire browser window flashes before my new content loads. Thoughts? <code> var content = new Array(); $(document).ready(function(){ content['default'] = $("#classifieds_quicksearch_content").html(); // set mouse events $("#classifieds_quicksearch_nav li").mouseover(function(){ // what tab am i on? var
[jQuery] Safari and the wrap() method.
Is the wrap() method supported by Safari 1.3 and above? I've been experiencing some issues trying to get it to work. It works fine in IE and Firefox. I have an image, and I am using wrap() to surround it with an anchor tag. Thanks. Brian
[jQuery] can you do this with JQuery
Hi, Is there a JQuery plugin that can accomplish this sort of behavior http://luddep.se/new/ --Kush
[jQuery] Interface updates
Hi, Just wondering as to when Interface updates/fixes are going to be released. I do release guys could be very busy, but little heads up would be appreciated. --Kush
[jQuery] Programming Career
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm
[jQuery] Tooltip tweak
(This is addressed to Jörn, but everyone should please feel free to comment.) Jörn, I know you're probably quite busy with the autocomplete plugin, but if you have a minute, I'd like to suggest a tweak to your tooltip plugin. There is a not-yet documented option called bodyHandler(), which I'm finding quite useful, but which would be nicer still with a slight change. I have links in a calendar control that look like this: <a class="event-link" href="/events/2007/04/27/" title="Two events for April
[jQuery] How to add opacity to an element
Hey guys, Is there a crossbrowser jquery way to add opacity to an element? I've tried with .css('opacity','0.5') and .animate({opacity:0.5},0000). Is there some documentation or workaround to achieve this? <br clear="all">Regards -- Joan Piedra || Frontend webdeveloper <a href="http://joanpiedra.com/">http://joanpiedra.com/</a>
[jQuery] Check to see if a style exists
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Trebuchet MS">Hi All, Is there way to check to see if a style class is declared within a document or css file related to the document? I'm building a plugin for our designer's internal use, with the goal of replacing the standard javascript dialogs with dialog boxes created
[jQuery] $(document.createElement("script")) vs. $("<script>") ?!
During my todays hacking on the jquery.xsajax.js plugin (see different mail) I had to discover that there is a strange difference between var node = $(document.createElement('script')) <==== .attr('type', 'text/javascript') .attr('src', url); $("head", document).append(node); and var node = $("<style>") <==== .attr('type', 'text/javascript') .attr('src', url); $("head", document).append(node); In FF both produced a <script> node which fires just fine and loads the code form the URL. But in MSIE6
[jQuery] Newbie: validation plug-in radiobutton
Hi, I am having a hard time, finding a way to make form work with the validation plug-in. I am missing obviously something very essential and would really appreciate if you could point out the missing pieces. Below is a simple form with one question and radio buttons. The form submits no matter what. <html> <head> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.validate.js" type="text/javascript"></script> <script language="javascript"> $(document).ready(
[jQuery] How to clone an element to a sub element within itself ?
Hi all, I have a two level list : <ul> <li> <a href="" class="to be copied"></a> <ul> <li></li> ... </ul> </li> <li> <a href="" class="to be copied"></a> <ul> <li></li> ... </ul> </li> I want to take all the first level a and copy them as the first element in the list: <ul> <li> <a href="A" class="to be copied"></a> <ul> <li><a href="A" class="copied"></a></li> <li></li> ... </ul> </li> <li> <a href="B" class="to be copied"></a> <ul> <li><a href="B" class="copied"></a></li> <li></li> ... </ul> </li>
[jQuery] Font Size Plugin Take 2
Sorry first one had no spaces. Hi made a little plugin that handles resizing the font on a page. Only thing it relies on is that you have fonts set by em on your page. The plugin requires jquery and the cookies plugin.Feedback would be appreciated. Cheers... To use simply Initialise it like so: $(document).ready(function() { var options = { min: -1, max: 2}; //Initialize the font sizer for the site. $.FontSizer.Init(options); }); CODE --------------------------------------------------
[jQuery] jQuery's this - a (brief) explanation
Whilst learning jQuery, and whilst teaching other guys I work with, I found I/they kept getting confused as to what 'this' meant. So I wrote up a short tutorial entry trying to explain what jQuery's this meant in different situations. http://remysharp.com/2007/04/12/jquerys-this-demystified/ To be honest, once you've understood that it's context changes, and when it changes, you're home free. Let me know if this is useful or more importantly, contains any mistakes. Cheers, Remy.
[jQuery] .children()
if i have an element like this: <li><img ..> some text <a ...></li> then FF says that the li has 3 child nodes, but .children() has only 2 (img and a). Is this desirable?
[jQuery] Font Sizer Plugin
Hi made a little plugin that handles resizing the font on a page. Only thing it relies on is that you have fonts set by em on you page or ?20The plugin requires jquery and the cookies plugin.Feedback would be appreciated. On anything. Cheers.To use simply Initialise it like so:$(document).ready(function() {var options = { min: -1, max: 2};//Initialize the font sizer for the site.$.FontSizer.Init(options);});Then have the link for call $.FontSizer.IncreaseFontSize(); and for - call $.FontSize.DecreaseFontSize();CODE------------------------/***
[jQuery] i fond some error in jquery.com
hi,everyone well,i found some error on it. in http://docs.jquery.com/Events Before: Hello Result: <p onchange="alert('Hello');">Hello why is not <input>.but it can change something .can you talk me some?thank you.
[jQuery] Blocking UI - CF - Login page
Hi all. Do you know an example for block UI in a login page? What I'm looking for: an example when user haves success login page disappear and default page is showed. If user doesn't have success login page is showed again. Any? Cheers
[jQuery] combing classes ?
Jquery is really amazing! I am so glad I was introduced to it. Is there a way to combine features from multiple plugins ? I'd love a sortable, scrollable table with key navigation :) I'd really love to use all that jquery coolness you guys have created!
[jQuery] Programmer Career
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm
[jQuery] Determine if a table cell is visible or not?
I'd like to find out if a table cell is actually visible or not. Is there a method in any plugin that will do this work for me? The complexity is that any element in the cell's parent chain may be display:none, in which case it would be hidden. But the cell's corresponding <col> or <colgroup> tag may also be display:none which would cause it to be hidden as well, and those tags are not parents of the cell itself. Checking the cell's current 'display' value will of course get me nowhere. I've begun
[jQuery] Trying to figure out how to use this custom validation...
Hi, all... Here's the function: (Thanks, Dan...) <script type="text/javascript"> function superCoolValidator(value,element,params) { if(isNaN(parseInt(value.replace(/[\$\,\.]/,"")))){ return false; }else{ return true; } } </script> Here's the addMethod line: $.validator.addMethod("superCoolValidator", superCoolValidator, "Your input is not super cool!"); And here's the INPUT: <INPUT id="Principal" Test="superCoolValidator:true"
[jQuery] Is there a Scroll-To feature in jQuery?
Hello all, I am interested in picking up jQuery and replacing my current library, which is MooTools. In MooTools, there is an option that allows you to smooth scroll to a certain div or element. Does jQuery provide something similar to this? I want to basically create a 1 page website with each div below the other. When you click a navigation link, it will smooth scroll down to that particular div. Is there built-in functionality for this? Thanks!
[jQuery] Problems with $.get and parsing the results
I'm having some trouble figuring out why this isn't working: $(links).each(function(i){ $.get(i, function(data){ var trimmedToList = $(data.slice(data.indexOf('\<div id="media">'),data.indexOf('\<div class="description">'))).html(); $('#media').append(trimmedToList); }); }); It's supposed to retrieve the page of each link in the "links" array, then parse it using slice() to return only the bit of the page I want, then append the new content to the '#media' div. I checked it
[jQuery] Best Method to (re)bind event handlers
Hi, the last two days i argue about how to handle (re)binding event handlers in a most elegant and un-redundant way when i work with asynchron injected files. I worked with prototype/Behaviour for the last couple of month, so i need a good approach to refactor this within jquery. So far a defined a function that is used as a callback on .load() functions which load xhr injected files. Within this function (rebindEventHandlers) i define every function that is in use within the injected files (s. appended
[jQuery] asp:Multiview and $(document).ready
Hi, I've got one problem regarding jQuery which is to get it working with asp:MultiView control. As you probably know (or not), asp:MultiView is a special control which takes care of tabbed views. My company uses a lot of these and the problem is like that: I have a JavaScript function for showing help-boxes to the user, which looks like this: $(function() { $("#helpbox").hide(); $("#helplink").click(function() { if ("#helpbox").css('display') == 'none') $("#helpbox").fadeIn(); else $("#helpbox").fadeOut();
[jQuery] "move listbox elements" : looking for somthing similar
im looking somthing similar to this: http://javascript.internet.com/forms/form-swapper-2.html with ajax and forms plugin support, anyone has somthing like that? -- View this message in context: http://www.nabble.com/%22move-listbox-elements%22-%3A-looking-for-somthing-similar-tf3557927s15494.html#a9935037 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Why pack jquery ?
I'm sure this has been covered before, but if your web server is set to compress javascript automatically, is it worth it to pack jquery.js with the extra time spent unpacking? Simple case in point: Start with the packed jquery.js and a jsmin-izied jquery-min.js: Size in bytes before gzip: 20976 jquery.js 33784 jquery-min.js Size after command line gzip: 10776 jquery.js.gz 10702 jquery-min.js.gz The compression results are a little surprising, but negligible. The difference is that javascript won't
[jQuery] [Mod Release] Vaildiaton Plugin hack for allowing dropdown dates
hey. after a day of work i did a mod for the vaildiation plugin that allows to create drop down date list (ie [dd] - [mm] - [yyyy] ) http://www.pastebin.ca/434119 what its does? its acctually puts the dropdown values in hidden field of text, and onclick call to javascript that checks if the date is vaild or not (ie you cant choose 04/31/2003) here is the code, i know its messy, but i hope its helps ;) enjoy -- View this message in context: http://www.nabble.com/-Mod-Release--Vaildiaton-Plugin-hack-for-allowing-dropdown-dates-tf3557747s15494.html#a9934484
[jQuery] Variable in selector
I'm trying to hide an image, and I have the id of that image in a variable (imgToShow). Here's what I'm trying: $("#"+imgToShow).show(); This is not working. What am I doing wrong?
[jQuery] $.ajaxSetup and timeout
Hello, I want to load some html content that changes over time, so I need to poll the server for changes from time to time. Could anyone point me to an example of how to do this? The documentation I found contains no example... I tried the following: $.ajaxSetup( { timeout: 5000 } ); $(document).ready( function() { $("#podcast_items").load("podcast_items_updater.php"); }); But the load does not fire again after those 5 seconds. I also tried including the ajaxSetup in the ready() block, and
[jQuery] Interface Autocompleter - Odd display
I looked around the group for something similar but couldn't find any issue that's similar. I'm using the Interface autocompleter, and it works properly and all, for some reason, the hovering effect takes place elsewhere on the page, and I can't figure out how to properly place it on the results box. So what happens, is that the results box shows up normally, but for some reason, there are two other copies of the results in the upper right hand and lower left hand corners of the screen. The actual
Next Page