[jQuery] Getting the numeric value of the top attribute of an object
<!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.16441" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=514462314-04062007><FONT face=Arial size=2>I would like to dynamically get the numeric value for the top of an object. I'm using this code:</FONT></SPAN></DIV> <DIV><SPAN class=514462314-04062007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=514462314-04062007><FONT
[jQuery] How to point Thickbox3 links in an iframe to the iframe's container
Hi, I have set up an image on a html page (pageA), which when clicked opens up a Thickbox iframe(pageB). This iframe contains the contents of an html file including links to other pages in my site. When these links are clicked, the resulting html page is loaded within the iframe. What do I need to do to have the links open in the "original" html page (pageA)? Another way of putting it: the links in the thickbox cause a page to load in the thickbox. I want those links to close the thickbox and then
[jQuery] jQuery loaded dinamically
Hi all, I'm in this case, I want to create a simple script for the visualization of a simple list of news, that I will be included in a web page in another site. <script src="http://site/news.js" type="text/javascript"></script> in news.js I load jQuery dinamically and all the ajax request to a php file. For the dynamic load I will use this code : if (!jQuery) { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://jquery.com/src/jquery-latest.pack.js';
[jQuery] How to remove links from Interface Slideshow?
Hi, all... I'm using the Eyecon Interface Slideshow plug-in. I'm using it simply to display images that fade one to another without wanting the user to click any links or control the images. I'm trying to remove the image links: "123456", but when I remove the options (and these are options), I get errors. ??? Thanks, Rick
[jQuery] plugin tablesorter - sort date
is this plugin capable of sorting other date formats than uk / us ? i tried 'de_DE' (01.01.2000) but it (seems to) fallback to string sorting. micha
[jQuery] Multiple Selects
I edited the Multiple Selects plugin, and thought the author could use it for any future releases. All I did was made it so you're not restricted to IDs for the selectors, and added a callback so you can interact with the moved items. All credit goes to Rob Desbois /** * Multiple Selects - jQuery plugin for converting a multiple <select> into two, adding the ability to move items between the boxes. * http://code.google.com/p/jqmultiselects/ * * Copyright (c) 2007 Rob Desbois * Dual licensed under
[jQuery] massive jquery memory leak in firefox 2.x: load() or empty()?
I assume this is a memory leak: $(#id).empty(); $(#id).load(url, params, callback) increases more and more the memory usage of firefox even if the content is replaced (in my case about 0.5mb per request). since the dev mailinglist did not work for me I post it in here. any sugestions? is this problme related to .empty() or to .load()? -- mot
[jQuery] select value lost after clone in IE
It seems that after a jQuery clone(), the value of select boxes are lost in IE (but not Firefox). Try this out: <div> <select> <option value="0">one</option> <option value="1" selected='selected'>two</option> </select> </div> $(function(){ $('div').clone(true).appendTo('body'); }); The first option will be selected in the cloned select. Doing something like this fixes the problem (as long as there is only one select box), though I suspect there needs to be a better fix in
[jQuery] Bug? $('#foo #bar')
jQuery 1.1.2 Selectors such as this $('#foo #bar') throwing error when it can't find any matches. Is it a known bug? TIA -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[jQuery] FIX: Firefox throwing NS_ERROR_XPC_JS_THREW_STRING when using input.focus()
While this isn't specifically related to jQuery, it certainly could affect jQuery users, so I thought I'd post the link. It appears Firefox 1.5 (and lower--I don't believe it exists in v2) has an internal bug with dynamically created <input /> elements and later invoking the focus() method on the field. It will occasionally throw the error "NS_ERROR_XPC_JS_THREW_STRING" and cause browser freezes. This apparently is a bug in the code relating to Firefox's native autocomplete functionality and can
[jQuery] Imagemap, style on area and rollover
Hello, I have a map divided into 100 poly areas. Each of this area can be clicked to open a new page. I need to do 2 things but I'm afraid that areas can't be styled with css... I've searched on Google but found nothing. The first thing would be to simply give a style to areas (this can be done without jQuery) but even when I put a classic "style="background-color:red" (for ex) in area tag, nothing happens. My first question : anyone know if area tags can be styled with css ? The second thing to
[jQuery] Can JQuery do this?
I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care
[jQuery] Watermark Input Plugin Beta 1
It's been a long time since I've posted anything. I've been busy, but I did manage to squeeze out another plugin before my vacation. I'm proud to announce the first Beta of my <a href="http:// digitalbush.com/projects/watermark-input-plugin">Watermark Input Plugin for jQuery</a>. This is the first public release for this plugin which has been used in a few of my other projects. Please let me know if you have any troubles. I welcome your feedback. Thank You, Josh
[jQuery] Writing Function to change effect
Hello. I need to pretty much write a toggle. I am having mixed thoughts about the built in toggle that comes with jQuery. Its not doing what I want it to do. Heres my current script and it doesnt work. Can somebody please help me out with syntax? Thanks <script type="text/javascript"> $(document).ready(function() { $('p.profile').hide(); $('a#profile_menu').click( function() { if ($('p.profile').visible == True) { $('p.profile').hide(); } else { $('p.profile').fadeIn('slow');
[jQuery] NEWS: jQuery Mentioned on MrBool.com
While the article is not specific to jQuery, it does list the library which means that we're getting more and more exposure. Be sure to vote it up: http://www.dzone.com/rsslinks/which_open_source_ajax_framework_is_right_for_you.html Rey... -- BrightLight Development, LLC. 954-775-1111 (o) 954-600-2726 (c) rey@iambright.com http://www.iambright.com
[jQuery] Compressed validator failing in IE 6.0
Is there a way to make the compressed version of the validator plugin work in IE? Because 5-6 KB of the compressed version is way better than the 43 KB of the uncompressed version in terms of size. IE fails somewhere inside the packed function with all sorts of weird errors, the most innocent of which is "; is expected" :(
[jQuery] I asked out of curiosity.
Hi Folks I have a group of div's with same class. <div class="myclass">MY TEXT 1 </div> <div class="myclass-siblings"> <div class="children0"> <=TO HERE (1) <div class="children1"> </div></div></div> <div class="myclass">MY TEXT 2 </div> <div class="myclass-siblings"> <div class="children0"> <=TO HERE (2) <div class="children1"> </div></div></div> <div class="myclass">MY TEXT 3 </div> <div class="myclass-siblings"> <div class="children0"> <=TO
[jQuery] Simple new plugin seeking feedback
My first jQuery plugin is finally operational! It adjusts the line-height (CSS) of text in proportion to container width. Demo here: http://www.ollicle.com/eg/jquery/autolineheight/ Is there anything I can/should do to improve the structure of my plugin code: http://www.ollicle.com/eg/jquery/autolineheight/jquery.autolineheight.js Cheers Ollie
[jQuery] Jtip problem
Hello im using jtip with this modifcation to change the href to name http://15daysofjquery.com/examples/jqueryTooltips/demo.php But I am having a problem, i keep getting the error: o has no properties getAbsoluteLeft("")jquery-latest.js (line 67) JT_show("http://ww2.wcmp.org/Remembering-DONALD-G.-BERRY %20SR.-18410_main.html", "", "tooltip.php?id=18410")jquery-latest.js (line 26) JT_init()jquery-latest.js (line 18) handleHover(mouseover clientX=0, clientY=0)jquery-latest.js (line 1) e(mouseover clientX=0,
[jQuery] Vertical Positioning
I have an element in one div, when clicked, I'd like to blindDown() another element in another div. No problem so far. I'd like to set the vertical positioning of the latter element to the same vertical positioning of the element clicked, before the blindDown() is executed. The divs containing the elements are position:relative, so the vertical positions should be identical. I can position the latter element using position:absolute; I need a value for top:value-here. What would be the jQuery command
[jQuery] jQuery css properties
.css( {background: "navy"} ) is a great facility, but the object keys cannot follow the corresponding css names which is why css background-color is shortended to "background". Is there a list somewhere of all the revised property names? I need border-bottom in particular. Sam
[jQuery] finding span with title
Is there a way to find all spans with a title="..." using a single $ ('span:title') or similar construct? Sam
[jQuery] Pagination mousewheel w/o next pages
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16441" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV>Someone ever implement something like a pagination like in this site?</DIV> <DIV><FONT face=Arial size=2><A href="http://unspace.ca/livefilter">http://unspace.ca/livefilter</A></FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial
[jQuery] Really nice Ext Grid
Maybe this isn't news, but these are the sweetest grids I've ever seen, even for Ext: http://extjs.com/playpen/ext-2.0/examples/grid/grid3.html --Erik
[jQuery] Drag, Drop and Ajax For Photo Album Maker
MY GOAL: I'm modifying the Interface 1.2 Shopping Cart to become a photo picker to create photo albums. I have the basic drag/drop working. I need to add these using ajax: -- 'Search photos by tag' -- 'send photo id to server on drop' -- 'remove photo id from server on remove' THE PROBLEM: I have the separate pieces working, but I'm not sure how to weave them together (still very new to jQuery). For example, when I add my 'Search photos by tag' ajax function to the drag and drop page search works
[jQuery] Javascript question: Get elementid inside an element
<div>Hey,</div> <div> </div> <div>For example take this code:</div> <div> </div> <div><div id="001"></div> <div> <div> <div id="0010"></div> <div> </div></div> <div> <div> <div id="0011"></div> <div> </div></div></div></div> <div></div></div> <div> </div> <div>Now i want to have the InnerHtml of id 0011</div> <div>one way to do that is: document.getelementbyid('0011');</div> <div> </div> <div>But that id COULD be in more places.. (i know it`s not good for id`s.. but in some cases it`s
[jQuery] Active menu item tutorial
Hi, I've written a small tutorial on how you can use jQuery to highlight the current menu item. This allows you to maintain your navigation in a separate file. See here: <http://jeroencoumans.nl/journal/simple- accessible-jquery-menu>. I'm certain that there are improvements to be made, but I still hope it will be useful for some of you. Feedback welcome! Jeroen Coumans
[jQuery] load() callback not working, but only on firefox and for one button =/
hi, could someone tel me why my callback function not working in firefox with my "Strona główna" button on my homepage (http:// warlock24.googlepages.com/index.html#). On IE and opera eveything is OK. :P $('div#content_panel').load('./' + page + '.html', null, function() { $('div#dialog_loading').hide(); });
[jQuery] Altering the inner content of a link
i want to turn <a href="#">test</a> into <a href="#"><span>test</span></a> so... $("a").prepend("<span>").append("</span>"); doesnt work because of the open tag. the first span is closed and the second span is thrown away. (this quality should be noted in the docs, i think.) $("a").wrap() would apply content to the outside of the link $("a").html().wrap(..) html() breaks chaining which leaves us with $('a').each(function(){ $(this).html('<span>'+ $(this).html() +'</ span>') }); surely there is a
[jQuery] jQuery and Prototype Conflicts
I'm using prototype and jQ on the same page. I'm using noConflict(). <script src="/javascripts/jquery.js" type="text/javascript"></script> <script type="text/javascript"> jQuery.noConflict(); </script> Everything is happy. Until I use prototypes Ajax.Update(). The response is a bunch of javascript calls that include calls to prototype routines, like Element.show(). It seems that I need to include a call to noConflict() at the start of the response, otherwise $ does not point to prototype. Am I doing
[jQuery] Validation plugin can't work with IE7?
The following script work with FF 2.0.0.3, but not IE7, all scripts are latest version from correspoinging web sites ================= <html> <head> <script src="jquery-latest.pack.js"></script> <script src="jquery.validate.pack.js"></script> </head> <body> <script type="text/javascript"> $.validator.setDefaults({ debug: true }); $().ready(function() { // validate signup form on keyup and submit $("#form1").validate({ event: "keyup",
[jQuery] onhover Tips
Any suggestions for onmouseover tip libraries? Sam
[jQuery] jquery way to set page title?
Hi, Subject line is the question. How do I use JQuery to set the page title (what goes in the <TITLE> tags)? Thanks, - Dave
[jQuery] plugin jqModal question
how can i display a jqwindow when i focus the cursor into a textbox? the jqModal demo use a click event to achieve this . great thanks...
[jQuery] datePicker calendar icon dropping below input
Hello, I can't figure out why the calendar icon is moving below the input field it is attached to. It used to work fine in v1 but now that I've upgraded* to v2 I can't get it to appear to the right of the input field. I'm working on an internal project that I don't want to post the URL of but if you're interested in taking a look send me an email off list and I will send you instructions. Otherwise if there is a known fix I'd greatly appreciate hearing it. Thanks! Chris. * datePicker is a nice plugin
[jQuery] Unbind not working in IE6
Demonstration code: <code> <script src="thickbox/jquery-latest.pack.js" type="text/javascript"></ script> <script type="text/javascript"> function TB_keyCatch() { $(document).keydown(function(e) { alert("triggering hit"); $(document).unbind( "keydown" ); TB_keyCatch(); }); // keydown } // TB_keyCatch() TB_keyCatch(); </script> </code> Essentially, if I'm understanding things right, this should trigger the alert when a key is hit, kill the binding, and reload it, waiting
[jQuery] Interface: How to bring dragged object in foreground
Hello, let's assume you have two objects A and B (let's say 2 images for simplicity). The first object A that gets loaded is placed in foreground in respect to the second object B, loaded after. If I drag the second object B over the object A, I'd like to see it in foreground but being the object B loaded after object A, it will always be in the background. How can I bring the dragged object always in foreground independently on when it was loaded? Thanks! Paolo
[jQuery] $().load() not working in Opera?
Could someone could tell me why my page menu (http:// warlock24.googlepages.com/index.html#) not working in Opera? I use $ ().load() to load subpages into DIV. :(
[jQuery] How override default "Destination URL" to media or flash plugin?
Hi Folks I have some .swf files. Sometimes I need change "Destination URL" for the same swf file I am not specialist in flash so isnt my plan edit each one. Some files have "default Destination URL" others are in blank. How can I do that with jQuery Media Plugin or jQuery Flash Plugin? I saw Max Media Manager, I dont know what they did but It is possible override default "Destination URL" so if they did Jquery can do this too! Please help me. Regards
[jQuery] How override default "Destination URL" to Media or Flash plugin?
Hi Folks I have some .swf files. Sometimes I need change "Destination URL" for the same swf file I am not specialist in flash so isnt my plan edit each one. Some files have "default Destination URL" others are in blank. How can I do that with jQuery Media Plugin or jQuery Flash Plugin? I saw Max Media Manager, I dont know what they did but It is possible override default "Destination URL" so if they did Jquery can do this too! Please help me. Regards Mario
Next Page