[jQuery] Duplicating Events in a New Object
I need to know how to copy all of the events from one object to another. Really getting stuck on this one. What I am trying to do is write a script that replaces an A tag with a bunch of clustered divs, and want to take the events from A tag (an onclick and some custom ones generated by jquery) and attach them to the new div. I am finding it's easy to get the names of the events, but I have no clue how to copy the methods themselves. Help! Thank you, Michael Haggerty Managing Partner Trellon, LLC
[jQuery] Should one announce something like that?
My guess is that you could do a "WHERE comment LIKE '%whore%' and be in pretty good shape. ;) <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of John Resig Sent: Thursday, December 28, 2006 4:33 PM To: jQuery Discussion. Subject: Re: [jQuery] Should one announce something
[jQuery] Getting the val() or html() of an FCKEditor field using jQuery
I thought this would be fairly straightforward but it appears to be causing me some distress. I need to get the value of an FCKEditor field for transmission using AJAX. However, when I reference the fields ID and call the val() method, I get a blank result when there is definitely content in it. Can someone shed some light on this for me? Below is the HTML that is generated when I instantiate the FCKEditor. Here's the link of jQ that I'm using...uber-basic: var content = $('#art_article').val();
[jQuery] Help With Sortables
A little help please.... I have a sortable in and I want to be able to replace the content and then reload the sortable. It works fine using FireFox but IE allows for the item to be dragged but the sorting doesn't work. An example is here: http://brilliantretail.com/cases/sorttest/ Sort Test It works fine on the initial load, but after reloading it is brokoen in Internet Explorer. Thank you for your input! Cheers, David -- View this message in context: http://www.nabble.com/Help-With-Sortables-tf2892329.html#a8080589
[jQuery] Thickbox: Smoooooth scrolling with fixed positioning
Hi all, I worked a bit on the thickbox script to improve it. What bothered me, was that when scrolling the window the thickbox window is moved to stay in the center, but that happens not smooth at all. So I changed it to use fixed positioning. 1. Changed CSS: #TB_window { position: fixed; top: 50%; left: 50%; } 2. Removed the scroll event handler: $(window).scroll(TB_position); 3. Changed the function TB_position: function TB_position() { $("#TB_window").css({marginLeft: '-' + parseInt(TB_WIDTH /
[jQuery] Should one announce something like that?
Spam on http://jquery.com/dev/bugs/bug/417/ -- Viele Grüße, Olaf ------------------------------- olaf.bosch@t-online.de http://olaf-bosch.de www.akitafreund.de ------------------------------- _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] dynamic plugin loading
If you're just trying to load a stylesheet dynamically, all you need to do is this: function addSheet( url, doc ) { doc = doc || document; var link = doc.createElement( 'link' ); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = url; doc.getElementsByTagName('head')[0].appendChild( link ); } Similarly, you can load a script with: function addScript( url, doc ) { doc = doc || document; var script = doc.createElement( 'script' ); script.type = 'text/javascript'; script.charset = 'utf-8';
[jQuery] Auto scrolling the page to a specific point -likeanchor links with animation
<!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.2900.3020" name=GENERATOR></HEAD> <BODY style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space"> <DIV><SPAN class=390291117-28122006><FONT face=Arial color=#0000ff size=2>Thank you Karl...is this the only thing I need to include (other than jQuery)?</FONT></SPAN></DIV> <P><FONT size=2><!----------------//------<BR>andy
[jQuery] Clearing all form field values
<!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.2900.3020" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=203391719-28122006><FONT face=Arial color=#0000ff size=2>This is for a CMS so I'm not really that concerned with it validating (as long as it works).</FONT></SPAN></DIV> <P><FONT size=2><!----------------//------<BR>andy matthews<BR>web developer<BR>certified advanced
[jQuery] Clearing all form field values
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN class=811555317-28122006>> <FONT face="Times New Roman" color=#000000 size=3>$("form :input:not([@type]):not(button)").val("")</FONT></SPAN></FONT></DIV> <DIV dir=ltr align=left><FONT face="Times New Roman" color=#000000 size=3><SPAN
[jQuery] Clearing all form field values
<!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.2900.3020" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=000490518-28122006><FONT face=Arial color=#0000ff size=2>The problem for me (in this case) is that the few fields that need to be transmitted via AJAX (and then reset) are part of a larger form that I do NOT want to get reset.</FONT></SPAN></DIV> <DIV><SPAN class=000490518-28122006><FONT
[jQuery] Visual jQuery announcement
In addition to updating the documentation in conjunction with 1.1, I will be doing the following for January 14: * Making sure all svn plugins are documented and included on the site * Switching to dl-based navigation * Adding a live-search filter. I'm also working on a first release of jQuery on Rails (I know I know), but it's been very tough to work out exactly how I'm going to proceed. A big part of the delay has to do with how some of the new features being implemented in 1.1 have remained
[jQuery] dynamic plugin loading
> From: Michael Geary
[jQuery] dynamic plugin loading
That was my first attempt, but, as Felix suggested, you don't know when the script has ended loading since it's an async load. The callback solution did the trick. Here you have the final code. It loads .js and .css in one call, and seems to work in FF and IE. You can specify base directories for .js and .css files with 'jsbase' and 'cssbase' options respectively, and switch css loading with the 'css' option. Finally you can specify the callback function with the 'onload' option. An example of use:
[jQuery] Getting the val() or html() of an FCKEditor field using jQuery
Don't think this came through the first time -------------- I thought this would be fairly straightforward but it appears to be causing me some distress. I need to get the value of an FCKEditor field for transmission using AJAX. However, when I reference the fields ID and call the val() method, I get a blank result when there is definitely content in it. Can someone shed some light on this for me? Below is the HTML that is generated when I instantiate the FCKEditor. Here's the link of jQ that I'm
[jQuery] Matching a link's href value to another link on the page
Hi Everyone, Here's what I'd like to able to do (simplified), although I can't seem to figure out how to do it. If the link in "matchThis" has the same href as the link in "navigation," how can I select the link with the matching href in "navigation? " for the code: <div id="navigation"> <a href="about.html">I want this link, because the href matches</a> <a href="bla.html">I don't want this Link</a> <a href="gla.html">I don't want this Link</a> <a href="zla.html">I don't want this Link</a> </div>
[jQuery] Auto scrolling the page to a specific point - likeanchor links with animation
<!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.2900.3020" name=GENERATOR></HEAD> <BODY style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space"> <DIV><SPAN class=875352015-28122006><FONT face=Arial color=#0000ff size=2>Karl...</FONT></SPAN></DIV> <DIV><SPAN class=875352015-28122006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
[jQuery] googlemaps plugin with IE ?
Hi, I'm working on the plugin for jquery : http://olbertz.de/jquery/googlemap.html it's really great with firefox.. but it doesn't work in IE... I've made some tests and it seems that the problem comes from this foreach : locations.forEach(function(element, index, array) { var marker = new GMarker(new GLatLng(element.latitude, element.longitude), {title: element.name}); map.addOverlay(marker); GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml('Name: '+element.name+'<br />Latitude:
[jQuery] dynamic plugin loading
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm;
[jQuery] dynamic plugin loading
Hello all, this is my first posting, although I've been watching you for some time :) I'm trying to develope a small piece for dynamic loading in jquery, wich loads the .js and .css source files on the fly without any special markup in the html page. Probably you've seen this before (dojo.require and siimilar) The problem is that it seems that the browser doesn't wait until the script (the plugin) is finished loading, and give errors when I try to use it. For example, in $(document).ready( ... jQuery.require('jquery.accordion');
[jQuery] Transmit form contents, receive response...best method?
Ah...I see... That makes perfect sense. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Mike Alsup Sent: Thursday, December 28, 2006 9:08 AM To: jQuery Discussion. Subject: Re: [jQuery] Transmit form contents, receive response...best method?
[jQuery] Auto scrolling the page to a specific point - like anchor links with animation
Hmmm... I'm no longer getting an error, but it still doesn't appear to be working. I copied all of the files from the demo of the scroll plugin and placed them in my code, in the same order. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of David Duymelinck Sent: Thursday,
[jQuery] Auto scrolling the page to a specific point - like anchor links with animation
Okay... I've downloaded the ifxscroll.js file and I've set it up after the call to jQuery.js in my code. I've got this line: $('#ST').ScrollTo(800); And it's giving me this error: jQuery.iUtil is null or not an object. I'm not using Prototype so I haven't reassigned the $ call. Any ideas anyone? This is mostly fluff, but I'd like to get it working if possible. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530
[jQuery] Auto scrolling the page to a specific point - like anchor links with animation
Ah...so I need to have that one in addition to the scroll plugin? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of David Duymelinck Sent: Thursday, December 28, 2006 8:46 AM To: jQuery Discussion. Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
[jQuery] Transmit form contents, receive response...best method?
Mike... I feel that it's easier to simply return the HTML string for the element that will get appended. Your example seems to return JSON (a javascript object right?). What are your thoughts on that? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Mike Alsup Sent: Wednesday,
[jQuery] Clearing all form field values
Haven't tried it. I didn't know it was there. Thanks guys! <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Dave Methvin Sent: Thursday, December 28, 2006 8:07 AM To: 'jQuery Discussion.' Subject: Re: [jQuery] Clearing all form field values
[jQuery] Auto scrolling the page to a specific point - like anchor links with animation
Excellent! Thank you David! <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of David Duymelinck Sent: Thursday, December 28, 2006 8:05 AM To: jQuery Discussion. Subject: Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation Andy Matthews
[jQuery] Clearing all form field values
> I just want to reset all fields to their original values. Does the standard form.reset method do what you want? $('#myForm')[0].reset(); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Auto scrolling the page to a specific point - like anchor links with animation
I've seen some sites (not sure if they're jQuery powered or not) that have a page scroll triggered where the window auto-scrolls down to a certain point on the page. Sort of link using an anchor link, but you can actually see the page moving. I'm wanting to do that as part of a form I'm working on, but I can't find anything like that in the API or in the plugins page. I might be searching for the wrong term, but is jQuery able to do this, and if so, what code snippet/plugin should I be looking at?
[jQuery] AJAX problems - ajaxSubmit Form-PlugIn
Hey there, well I am working on an Ajax-Script which saves inputs here you can find the demo: http://olaf-bosch.de/power3/news.php (you have to click on "Eintragen" in the right-upper corner) there are 3 problems which pop up and it gets more and more obvious that Im unable to solve them on my own 1. the script duplicates the formsheet of "Eintragen" when you open and close it again and again.. 2. the charset (german umlautes ae,oe,ue) are saved wrongly as identities (like "ßöÃ")
[jQuery] Create text submit buttons?
Long time lurker, first time poster. I've searched a bit, and haven't found exactly what I need. I was wondering if someone here could help. I want to make an unobtrusive bit of Javascript that will replace all submit buttons with a text link (that I can style) that will submit the form. I want to make this as generic as possible, so I don't want to attach an ID to the form to submit. It should just submit the parent form. This is the code that I came up with that doesn't work: $(document).ready(function(){
[jQuery] Localization tool mashup for jQuery
Localization and language translation services in web pages are sorely under-represented so I've been working on a Translator mashup with Google Translator web page. I have a working demo up but I need some eyes to look at it and give me feedback. I am not any kind of JavaScript guru and this is my first stab at a jQuery so I don't mind criticism positive or negative. I was thinking that I might need to make the Translator.js file into more of a plugin type utility but then again it kind of stands
[jQuery] unhover (again)
I found this thread from a few months ago: <a href="http://www.mail-archive.com/discuss@jquery.com/msg03955.html">http://www.mail-archive.com/discuss@jquery.com/msg03955.html</a> I have a few dom elements that are going to get updated via ajax and I need to unattach the events from them possibly (just the events I've attached). Is there an unhover method in the works? Or would calling unbind('mouseout', myFunc).unbind('mouseleave', myFunc) work? -js _______________________________________________
[jQuery] Run a list of functions sequentially
I finally got around to building a "run sequentially" plugin: <span style="font-family: courier new,monospace;">jQuery.sequence = {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> setTimeoutH: function(f, t) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> var params = (arguments.length == 3 && arguments[2].constructor == Array) ? arguments[2] : jQuery.merge([], arguments).slice(2);</span><br
[jQuery] Run a list of functions sequentially
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
[jQuery] Interface isortable onchange broken?
Latest isortables.js downloaded from http://interface.eyecon.ro/ (can not tell excact version since source code does not have revision tags) seems to have a bug. Callback defined by onchange option never gets called. Using older version ($Revision: 1.1 $) onchange callbacks work. Tested with FF 2.0.0.1 and Safari 2.0.4. Test code in url below. Sorting the list should trigger alert. http://www.appelsiini.net/~tuupola/jquery/interface/onchange.html -- Mika Tuupola http://www.appelsiini.net/~tuupola/
[jQuery] Transmit form contents, receive response...best method?
I'm working on a CMS for a client. I'm building a newsletter manager where they can type in various attributes of the newsletter as a whole, then add articles on a need basis. I'm going to have the following fields: Type (select box with 4 options) Title (one sentence at most) SubTitle (one sentence at most) Article (several paragraphs, may contain HTML) Sort Order (single numeric character) What I want to happen is for the user to submit the contents of this form, process in the background (saving
[jQuery] [ifxhighlight] inline vs. applied style detection
Having reported bug #552 ( http://jquery.com/dev/bugs/bug/552/ ), I'm trying to find a solution. Does anyone know how to detect whether $().css('backgroundColor') is returning an inline rule or a proper CSS styling? When it's an inline rule, the inline color needs to be set back to its original value after the fade has completed, but when it's an applied rule, the inline value needs to be removed at the end of the fade so class manipulation, etc. will be reflected. I'm considering using $().attr('style').match([COLOR]),
[jQuery] Plugin for UI blocking - an alternative to sync ajax
This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here: http://www.malsup.com/jquery/block/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery mouseenter & mouseleave support?
Is there any support for this or a plugin that brings this functionality over to the firefox/non IE land? (Never thought I'd be saying that...) -js _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page