[jQuery] detecting when jquery affects a form element

2010-01-15 Thread Eric Cope
Hello all, Is there a way to detect when jquery affects a form field? Something like .change(), but when jquery makes the change, not the user? Thanks! -- Eric Cope

[jQuery] Re: detecting when jquery affects a form element

2010-01-15 Thread Eric Cope
I figured it out. .trigger('change') works great. Thanks, Eric On Jan 15, 1:43 am, Eric Cope eric.c...@gmail.com wrote: Hello all, Is there a way to detect when jquery affects a form field? Something like .change(), but when jquery makes the change, not the user? Thanks! -- Eric Cope

[jQuery] added form elements not sent using Firefox

2010-01-12 Thread Eric Cope
, but nothing conclusive. I see the DIVs show up in Firebug. Could this be jquery related? Thanks in advance! Eric

[jQuery] slideUp very slow depending on number of fields above

2010-01-12 Thread Eric Cope
(endorsementFeeAdjustmentDescription).value = ''; document.getElementById(endorsementFeeAdjustmentAmount).value = ''; }); } }); Thank you, Eric

[jQuery] Re: slideUp very slow depending on number of fields above

2010-01-12 Thread Eric Cope
Update: My Firefox memory must have been overloaded - I restarted Firefox and the times are down to 100ms, as expected. Could jquery be adding things to the DOM slowing down parsing? Eric On Wed, Jan 13, 2010 at 12:29 AM, Eric Cope eric.c...@gmail.com wrote: Hello all, I am using the slideUp

[jQuery] Re: SimpleModal (probably something really stupid)

2010-01-08 Thread Eric Martin
I would strongly suggest downloading the one of the demos [1], like the basic one, which will probably help answer all of your questions. -Eric [1] http://www.ericmmartin.com/projects/simplemodal-demos/ On Jan 7, 7:57 pm, polarwarp polarw...@gmail.com wrote: I am using the jquery simplemodal

[jQuery] how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
when i use for-loop to access elements with array index or get() method it doesn't work. but i have to use the index to access, what happen please . ok: http://jsbin.com/olego wrong: http://jsbin.com/ulixu

[jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
2009/12/24 Eric Zhong ericiszhongwen...@gmail.com when i use for-loop to access elements with array index or get() method it doesn't work. but i have to use the index to access, what happen please . ok: http://jsbin.com/olego wrong: http://jsbin.com/ulixu wrong:http

Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
2009/12/24 Richard D. Worth rdwo...@gmail.com What about using .each? http://docs.jquery.com/Core/each#callback - Richard On Wed, Dec 23, 2009 at 8:34 PM, Eric Zhong ericiszhongwen...@gmail.comwrote: 2009/12/24 Eric Zhong ericiszhongwen...@gmail.com when i use for-loop to access

Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
thanks again, i think i have understand your mind. Thanks! 2009/12/24 Richard D. Worth rdwo...@gmail.com The index is passed as the first argument to the callback function you provide to .each. - Richard On Wed, Dec 23, 2009 at 8:49 PM, Eric Zhong ericiszhongwen...@gmail.comwrote

Re: [jQuery] Re: how to access elements with index in for-loop

2009-12-23 Thread Eric Zhong
thank you very much, your way is better than mine ! 2009/12/24 Šime Vidas sime.vi...@gmail.com First of all, the wrong code is wrong, look this is your code: $(function(){ var trs = $(#tb tr:not(:first)) for( var i=0; i$trs.length; i++ ) {

[jQuery] The most incredible thing happened

2009-12-09 Thread Eric Zhong
I just add a pair of form label in my code, it doesn't work !!! In my project I was called the js file, but in order to show clearly, I put them together,and Shortened the code Error: http://jsbin.com/oyeki OK: http://jsbin.com/iviba3

[jQuery] Re: The most incredible thing happened

2009-12-09 Thread Eric Zhong
i kill the bug, the id must different from the function name http://jsbin.com/ujota3 2009/12/10 Eric Zhong ericiszhongwen...@gmail.com I just add a pair of form label in my code, it doesn't work !!! In my project I was called the js file, but in order to show clearly, I put them together

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-08 Thread Eric Zhong
too. Thank You !!! 2009/12/9 Michael Geary m...@mg.to Hi Eric, Please forgive me for not explaining clearly. Here is what I meant by a test page: post your HTML page on a website somewhere and give us the URL to that page. Then we can click the link and load your page, just like any other

[jQuery] Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Eric Zhong
html head script src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.js/script SCRIPT LANGUAGE=JavaScript !-- $(function(){ // /* var html_video = ' \ table id=tb_all width=724px \ tr

[jQuery] The target HTML code works very well, but append() not !!!

2009-12-07 Thread Eric Zhong
when you run the code below, you'll get a very strange result. But if you run the target html that be commented, it works very well , what happen ??? Help!!! = html head script

Re: [jQuery] Re: Very Strange !!! The same HTML code works well, but append() it not !!!

2009-12-07 Thread Eric Zhong
'+ 'tr '); On Dec 7, 6:30 pm, Eric Zhong ericiszhongwen...@gmail.com wrote: html head script src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.js/script SCRIPT LANGUAGE=JavaScript !-- $(function

[jQuery] When plugin ajaxform meets FCKeditor.

2009-12-06 Thread Eric Chen
, but, how to use it? Thank your very much! Eric.

[jQuery] Re: $.getScript results in two requests!

2009-11-27 Thread Eric
Hey there, Thanks for your answers. Sorry I didn't reply earlier, been pretty busy. It turned out the problem was caused by an old version of Firebug ( http://code.google.com/p/fbug/issues/detail?id=928 ). I am now using Firebug 1.3 on Firefox 3.5, where the bug is fixed. Eric On 25 Nov., 17:03

[jQuery] Re: Issue with simplemodal plugin and absolute positioned content

2009-11-27 Thread Eric Getchell
this page, everything rendered correctly. I'm not sure if you want to integrate the above IE fix into the simplemodal code, but at least if someone else hits this issue, a solution exists! Eric

[jQuery] Issue with simplemodal plugin and absolute positioned content

2009-11-26 Thread Eric Getchell
is no longer liquid. Below is the simplest piece of sample code I could produce that shows the behavior. Any help would be appreciated – I’ve spent several days trying to solve this issue with no luck so far. Eric Getchell !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org

[jQuery] Re: Issue with simplemodal plugin and absolute positioned content

2009-11-26 Thread Eric Martin
Eric, I don't have IE6 installed (just got a new laptop with windows 7), but I wasn't able to reproduce the issue in IE8 compatibility mode. SimpleModal only styles the dialog element, so I'm not sure why that would be affecting other divs on your page... -Eric On Nov 26, 4:50 am, Eric Getchell

[jQuery] Re: Issue with simplemodal plugin and absolute positioned content

2009-11-26 Thread Eric Getchell
Hey Eric, Thanks for checking into this. I've done some more digging and I've narrowed the issue down to the container/wrapping div that is injected into the DOM. If I remove the following from the container (s.d.container) when it is created: display: 'none', position: 'fixed

[jQuery] $.getScript results in two requests!

2009-11-24 Thread Eric
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: (Cookie Contents) The web server runs IIS6. Thanks for your help Eric

[jQuery] Re: SimpleModal 1.33 Fix

2009-11-16 Thread Eric Martin
Actually, the values are correct, this isn't a bug. mh and mw stand for maximum height and maximum width. ;) That isn't apparent from the variable names, but you can tell when they are assigned. -Eric On Nov 15, 9:11 pm, Enobrev enob...@gmail.com wrote: Found a bug in SimpleModal 1.33

[jQuery] Re: SimpleModal issues when loading content via Ajax

2009-11-12 Thread Eric Getchell
I determined what was the issued and will post my solution here in case others encounter the same problem. I incorrectly assumed the .load() call was a synchronous (blocking) call, which it is not. Therefore, the SimpleModal call was processing the empty div before the content had finished being

[jQuery] SimpleModal issues when loading content via Ajax

2009-11-11 Thread Eric Getchell
Hello, I’m having two issues with the SimpleModal jQuery plugin that I’m sure someone knows the answers to. Essentially, I am using SimpleModal to display informational windows/forms and I encountered an issue when loading the display content via Ajax. To ensure that the rendering problems were

[jQuery] Re: resize.simplemodal

2009-11-10 Thread Eric Martin
sm.setContainerDimensions(); }); }); } }); HTH -Eric On Nov 9, 7:53 am, Milos Negovanovic milos.negovano...@googlemail.com wrote: Hi, I have been searching for a way to resizesimplemodaldialog after showing it. In plugin source i can see that a function

[jQuery] Re: SimpleModal problem in IE7

2009-10-30 Thread Eric Martin
Bruce, Thanks for reporting the issue. I was able to reproduce the issue and will work on a fix. -Eruc On Oct 29, 10:51 pm, Bruce MacKay b.mac...@massey.ac.nz wrote: Hi folks, I've just updated a previously functioning piece of code that uses the simplemodal plugin - the code does an ajax

[jQuery] Re: SimpleModal problem in IE7

2009-10-30 Thread Eric Martin
I fixed the issue and released 1.3.3[1]. I updated the demo downloads, but all you need to do is use the newest version of SimpleModal. -Eric [1] http://code.google.com/p/simplemodal/downloads/list On Oct 30, 6:20 am, Eric Martin emarti...@gmail.com wrote: Bruce, Thanks for reporting

[jQuery] Fast Table Cell Selection

2009-10-24 Thread Eric
Im trying to manipulate a subset of a table and selecting the elements with my poorly written jquery is orders of magnitude slower than a simple direct DOM access of the elements using for(y;...) for(x;...) table.rows[y].cells[x]._do stuff_ I know both the starting and

[jQuery] Re: Fast Table Cell Selection

2009-10-24 Thread Eric
My second example isnt right. the selector should include the TD [e.g. $(table tr:lt(endy):gt(starty) td) ] and after further testing, it performs reasonably well except: the lt/gt is non inclusive and I cant access the first row using gt(-1) as it is zero indexed.

[jQuery] Re: Simple Modal Close Event

2009-10-17 Thread Eric Martin
based on closing the dialog and then call $.modal.close() from there, which will trigger the onClose calback (which is really just supposed to be used for closing animations, etc.). Hope that helps. -Eric On Oct 16, 3:56 am, biggerandbetterkah...@googlemail.com biggerandbetterkah...@googlemail.com

[jQuery] Re: IE: call function defined in ajax loaded page

2009-10-17 Thread Eric Martin
sure nothing is trying to fire too early. Hope that helps. -Eric On Oct 15, 3:04 am, Michael Anckaert michael.ancka...@gmail.com wrote: Hello everyone, In one of my projects I use simplemodal to show an ajax loaded dialog. The HTML page loaded by the ajax call defines a javascript function

[jQuery] How to achieve this animation?

2009-10-17 Thread Eric Chen
Hi, this is Eric from Shanghai China, sorry for my bad English. I am a jQuery Fans. My site is now under building, the page of the animation is: http://www.imczy.com/EN/support-me.html The codes I achieve this animation are as follows: //like goadddy $.fn['_fadeOut'] = function(){ this.css

[jQuery] append()-Param containing script

2009-10-09 Thread Eric
is: The script is being processed too fast, therefore executed before the input field is known. How can I delay execution until the HTML part is fully loaded? $('input#foo').ready() won't work and I don't consider setTimeout as a solution. Thanks for your help Eric

[jQuery] Re: Conflict between Simplemodal and jquery-ui slider?

2009-09-16 Thread Eric Martin
, max: 300, value: 100, slide: function(event, ui) { $(#amount).val(ui.value); } }); }}); }); }); -Eric

[jQuery] Re: SimpleModal Contact Form and Sidebar

2009-09-16 Thread Eric Martin
Trent, I'm not quite sure what you are asking. Could you clarify your question? Thanks, Eric On Sep 12, 7:48 am, Trent 26g...@gmail.com wrote: How can I embedSimpleModalContact Formhttp://www.ericmmartin.com/projects/simplemodal/ in the sidebar, whose position is fixed on the scrolling map

[jQuery] Re: Simple Modal Height and Width

2009-09-16 Thread Eric Martin
; top:-15px; right:-16px; cursor:pointer;} JS: $('#basic-modal-content').modal(); I get a the image with a border and the dimensions at 400x600. Hope that helps. -Eric On Sep 9, 12:47 pm, Byron Matto bma...@gmail.com wrote: Question: Simple Modal has default height and width values of 200

[jQuery] Re: SimpleModal 1.3 height

2009-09-15 Thread Eric Martin
Warren, Can you send me (or better yet create an issue[1]) with a working code sample of the issue you are having? Thanks, Eric [1] http://code.google.com/p/simplemodal/issues/list On Sep 15, 12:09 pm, Warren Benedetto war...@transfusionmedia.com wrote: Figured it out myself, so I'm posting

[jQuery] Re: unblockUI() problems in IE

2009-09-14 Thread Eric Chan
Try the code as bellow: $.unblockUI(); $(.blockUI).fadeOut(slow); -- The code can fix unBlockUI which problem with IE6/7/8 On Sep 4, 1:38 am, Matthew Abbott dduck1...@gmail.com wrote: Im using the blockUI() plugin in jquery and I attached a click

[jQuery] Re: Conflict between Simplemodal and jquery-ui slider?

2009-09-11 Thread Eric Martin
, slide: function(event, ui) { $(#amount).val(ui.value); } }); }}); -Eric On Sep 10, 2:30 pm, folder123 kjau...@gmail.com wrote: Summary - Slider does not work in SimpleModal window after more than once. Detail: Step 1: Click to open modal window Step 2: Observe

[jQuery] Re: simpleModal question. PLEASE HELP!

2009-09-09 Thread Eric Martin
dialog with the data var d = $(div/div).append(data); $(d).modal({ [snip] }); -Eric On Sep 9, 11:17 am, David Garthe davidgar...@gmail.com wrote: Hi, I hope someone is familiar with simpleModal.  I'm trying to add some effects

[jQuery] Re: Check if function exists

2009-09-02 Thread Eric Paige
unsubscribe me Eric Paige Web Developer On Wed, Sep 2, 2009 at 10:44 AM, shapper mdmo...@gmail.com wrote: Hello, I am loading TinyMCE using the new JQuery Plugin: script type=text/javascript $().ready(function() { $('textarea.tinymce').tinymce({ // Location of TinyMCE

[jQuery] Looking to sell a jQuery Conference (Boston) ticket

2009-09-01 Thread Eric
Hello, I have a ticket for the jQuery conference in Boston in two weeks that I'm not going to be able to use. I'm looking to sell it for $150 (original ticket price). Please contact me if you're intersted. Thanks.

[jQuery] Re: JqModal / simpleModal - maintaining form state

2009-09-01 Thread Eric Martin
If you are referring to the known issues I mentioned - since they are browser issues, Eric, thanks for the response. What issues did you mention that I missed? http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes [under Known Issues] you'd need to implement something

[jQuery] Re: Looking to sell a jQuery Conference (Boston) ticket

2009-09-01 Thread Eric S.
The ticket has been spoken for. On Sep 1, 11:19 am, Eric estrathme...@gmail.com wrote: Hello, I have a ticket for the jQuery conference in Boston in two weeks that I'm not going to be able to use.  I'm looking to sell it for $150 (original ticket price).  Please contact me if you're

[jQuery] jQuery Conference (Boston) ticket available.

2009-08-31 Thread Eric
Hi, I found out I can't go to the jQuery conference in Boston on 9/12 and 9/13, so I have one ticket that I'm looking to sell for $150 (original ticket price). Please contact me if you're interested. Thanks.

[jQuery] Re: JqModal / simpleModal - maintaining form state

2009-08-31 Thread Eric Martin
If you are referring to the known issues I mentioned - since they are browser issues, you'd need to implement something that woul keep track of state in those browsers. On Aug 31, 6:45 am, Steffan A. Cline stef...@hldns.com wrote: on8/30/09 12:48 PM, Steffan Cline at stef...@hldns.com wrote:

[jQuery] Re: JqModal / simpleModal - maintaining form state

2009-08-30 Thread Eric Martin
With SimpleModal, you can use the persist option: $(el).modal({persist:true}); There are some known issues in IE though.[1] -Eric [1]: http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes [under Known Issues] On Aug 30, 12:48 pm, Steffan A. Cline stef...@hldns.com wrote: I have

[jQuery] Upgrading to 1.3.2 from 1.2.6, selectors that used to return many elements now only returning first

2009-08-28 Thread Eric Winter
I am not trying to upgrade to 1.3.2 and in every case I use a selector that should (used to) return many elements now only returns the first. I checked using the .size() method and it is indeed only returning 1. Any ideas on what went wrong? Thanks, Eric

[jQuery] Re: SimpleModal autoresize on demand?

2009-08-26 Thread Eric Martin
', function () { dialog.container.animate({height:+=50, width:+=50}, 1000, function () { self.setPosition(); }); }); } [1]: http://www.ericmmartin.com/simplemodal-test/ Hope that helps. -Eric On Aug 26, 7:52 pm, Veeru swamyve...@gmail.com

[jQuery] Re: Simplemodal is triggering $(document).ready

2009-08-23 Thread Eric Martin
Luis, Can you be a little more clear on what the problem is? Do you have a link or sample (working) code I can see? -Eric On Aug 23, 6:55 am, lfrodrigues lfrodrig...@gmail.com wrote: Hi, I've been using simple modal for quite some time. Now I have a problem. I have some code with uses

[jQuery] jQuery Twitter Full API Plugin - Help Needed Testing

2009-08-18 Thread Eric Garside
Hey guys, I've been working on a full implementation of the twitter API through, primarily, jQuery, with a simple relay script server side for securely signing and keeping auth details. I've just finished the library, and am looking for some developers who know either the twitter API and jQuery

[jQuery] Re: Simplemodal ajax dialog

2009-08-09 Thread Eric Martin
Michael, You need to initialize any third party scripts in the SimpleModal onShow callback. Here's an example of using Datepicker with SimpleModal: http://www.ericmmartin.com/code/datepicker/ -Eric On Aug 7, 2:34 am, Michael Anckaert michael.ancka...@gmail.com wrote: Hello everyone, Using

[jQuery] Re: Remove an element but not it's content

2009-08-06 Thread Eric Garside
If you want a cleaner look, you can always just throw together a quick plugin to handle things: $.unwrap = function(){ return this.each(function(){ var el = $(this); el.before( el.html() ).remove(); }) } Then, simply call: $('a.tester').unwrap(); And it will unwrap all

[jQuery] Re: Loading jQuery without blocking

2009-08-06 Thread Eric Garside
Honestly, I'd load jQuery regularly, and use the getScript function to load the rest of the files after domready. I don't know that you're getting a big performance increase in loading the jquery library in this method, and it is causing an unknown error, which isn't an ideal thing to debug. :P

[jQuery] Re: More fun with decrementing on click

2009-08-03 Thread Eric Garside
The problem is in how you're applying the decrement operator. If you put it at the end of the number, as in: number-- Then, the current number will be returned, THEN decremented. That's what's happening here. Simply put the operator before the number, so it is decremented THEN returned.

[jQuery] Re: Loading a Page in an Iframe with BlockUI

2009-07-29 Thread Eric Martin
} }); That's with SimpleModal v1.3. -Eric On Jul 29, 7:24 am, Chris chriss...@gmail.com wrote: How would you load a separate page in an iframe with BlockUI? I tried: forceIframe:true, iframeSrc:'/iframepage.html' but BlockUI still creates the default Please wait... overlay, but also creates

[jQuery] Re: function running 2X

2009-07-29 Thread Eric Garside
Pretty sure its because the event is bubbling up. Try: $('#cardcharges td').click(function(){ alert('execute once'); return false; }); On Jul 29, 2:38 pm, marksimon zen...@gmail.com wrote: no stupid ideas here, but changing to $(#cardcharges td).click( didn't fix the problem. On Jul 29,

[jQuery] Re: simplemodal scroll problems

2009-07-29 Thread Eric Martin
Do you have a link? Can you disable the scroll in the page. If not, how about disabling it in the modal: $(element).modal({onShow: function (d) { d.wrap.css('overflow','hidden'); }}); -Eric On Jul 29, 8:44 am, junkqwe urize...@gmail.com wrote: I am using simplemodal 1.3 my modal shows

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-28 Thread Eric Garside
Try starting off with a simplifying your selectors and the code in general? .live(), in this case, isn't going to provide you much benefit, as you're binding it to an element based on an ID, which means there will only ever be a single element which this function triggers for. Try something

[jQuery] Re: Using replaceWith on a div / instead of a div/div causes text to be deleted

2009-07-28 Thread Eric Garside
The W3C has a list of valid self-closing tags, div of which is not one of them (for the sake of compatibility, I think). http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp Only the following tags should be self closed: area / base / basefont / br / hr / input / img / link / meta / On Jul 28,

[jQuery] Re: JQuery and XHTML in Firefox

2009-07-28 Thread Eric Garside
What doctype / mimetype are you specifying. If you're doing xhtml+xml, I'm pretty sure if you remove the +xml portion, things will play nicely again. On Jul 28, 12:55 pm, ScottSEA william.scott.ba...@gmail.com wrote: Until recently, I was humming along happily with my jQuery and HTML... life

[jQuery] Re: JQuery and XHTML in Firefox

2009-07-28 Thread Eric Garside
Can you give a sample of the output? How different is the result of the transform from valid xhtml? On Jul 28, 2:55 pm, ScottSEA william.scott.ba...@gmail.com wrote: On Jul 28, 9:55 am, ScottSEA william.scott.ba...@gmail.com wrote: Until recently, I was humming along happily with my jQuery

[jQuery] Re: Using data(name,value) to store additional information

2009-07-28 Thread Eric Garside
You could also do it with non-styling classes, as an alternative to locating them. $('div:first').data('foo', 'bar').addClass('foo'); $('.foo'); On Jul 28, 3:15 pm, Basdub dube.sebast...@gmail.com wrote: Thanks, that should do the trick. On Jul 23, 10:44 pm, Karl Swedberg

[jQuery] Re: Looking for some help converting this to jquery

2009-07-23 Thread Eric Garside
function setButtonClass(){ $(':submit,:reset,:button').each(function(){ var el = $(this), val = el.val(), word = (val.split(/[^A-Z\W]/).length/2) + val.length; el.addClass( word = 12 ? 'mb' : (word 4 ? 'sb' : (word 0 ? 'b' : '')) ); }) }

[jQuery] Re: Make width of inner div equal outer

2009-07-23 Thread Eric Garside
$('.secondLevel').css('width', $('#header').width()); On Jul 23, 1:16 pm, Paul Collins pauldcoll...@gmail.com wrote: Hi all, I've got a problem with IE6 and I need to basically find the width of the header DIV and make the secondLevel DIV match it. So, I guess I need to target IE6

[jQuery] Re: Binding of object

2009-07-21 Thread Eric Garside
In what situation in your code would more than a single event be bound to the element? On Jul 21, 11:22 am, Liam Potter radioactiv...@gmail.com wrote: Well the way you do it would really do anything, it will just unbind, then run the function again as it is chained? sken wrote: Would

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-06 Thread Eric Garside
Well, firebug shouldn't have cared as much as IE would, because of a comma inside the list of params in your POST. The last element in an object can't have a comma. Also, could you post the HTML? On Jul 6, 8:49 am, Mark johanns.m...@gmail.com wrote: I have 3 drop down menu's where is post the

[jQuery] Re: Create an AJAX form within a modal window.

2009-06-30 Thread Eric Martin
I'm not familiar with CF - so I'm not sure if it handles forms differently (link .NET), but you should be able to use the onShow callback to bind the form submit and handle it accordingly. Check out the Contact Form demo[1] for an example. -Eric [1] http://www.ericmmartin.com/simplemodal

[jQuery] Re: check/uncheck all checkboxes with specific id

2009-06-30 Thread Eric Garside
Is there a particular reason you couldn't use classes to do this? Instead of the markup you provided, something like: input type=checkbox value=EventAcceleratedOptionVesting id=chkEventAcceleratedOptionVesting class=chkEvent / input type=checkbox value=AccountingChanges

[jQuery] Re: Traversing not

2009-06-30 Thread Eric Garside
Please provide the markup you're using that works for anchors and not imgs. On Jun 30, 8:58 am, Luciano lucianoffra...@gmail.com wrote: I'm trying to use the function Not (): when I run the command on the TAG A and works $ (this). find ( a). not ( '[href ^=/]'). attr ( target, ) when I

[jQuery] Re: how to ask questions

2009-06-26 Thread Eric Garside
If you need a place to host code for demonstration (because you're working offline, or need to expose only a fragment of code you can't get working), you have the BEST chance of getting an answer by posting your code on http://jsbin.com and dropping in a link. When people come in and post

[jQuery] Re: Problem with double submit of and form

2009-06-26 Thread Eric Garside
Your code is confusing. Why do you have the script tag wrapped inside of the form element? Why do you have two script tags a couple tags away from each other instead of inside your header definition? Your script is chock full of errors. Here's a couple of suggestions: 1. Move both of your

[jQuery] Re: extract data from this JSON encode using jQuery

2009-06-26 Thread Eric Garside
Well, lets assume you're getting the JSON you described from the following ajax call: $.post('/path/to/json.php', {params: 'go here, if you need them'}, function(data){ // data contains that JSON object you described // Also, I'm assuming your select box looks something like this: //

[jQuery] Re: Optimize object random generator

2009-06-26 Thread Eric Garside
I put together a plugin to handle this kind of thing that does okay in most browsers, called replicator. Give that a shot and see if it helps making your life any easier. http://eric.garside.name/docs.html?p=replicator On Jun 26, 10:11 am, chronotype thund3rb...@gmail.com wrote: Hello, i've

[jQuery] Re: call a method outside a jquery object

2009-06-26 Thread Eric Garside
Long story short, you can't do what you're trying to do. You have some massive scoping issues. first, anything within you document.ready function (as defined by $(funciton(){..});) that gets declared in there is accessible only inside that function itself. Now, I'm not sure what you're actually

[jQuery] Re: Protect images

2009-06-26 Thread Eric Garside
Just as an FYI, you do know that if the user can see the image on your website, it's already on their computer. Not to mention, anything you do that's purely a javascript fix can be avoided by merely turning off javascript. It's essentially a fool's errand to attempt to do this. On Jun 26, 11:27 

[jQuery] append and *slowly* show new content in DOM

2009-06-20 Thread Eric P
content appears instantly. $('#div_container').append('phi there!/p').show('slow'); Thanks for reading, Eric P

[jQuery] When using append() , appended content is not treated by jquery

2009-06-14 Thread Eric-Sebastien Lachance
() documentation, in any case). Thanks in advance, Eric.

[jQuery] Re: When using append() , appended content is not treated by jquery

2009-06-14 Thread Eric-Sebastien Lachance
Thanks a lot Charlie, livequery() is precisely what I needed, it works great this way! Cheers, Eric. On Jun 14, 7:22 pm, Charlie charlie...@gmail.com wrote: problem is events won't trigger on new element introduced to DOM after document ready has fired  unless you use live()  or livequery

[jQuery] append() does not properly resize div when adding content

2009-06-12 Thread Eric-Sebastien Lachance
Hello, I'm creating a page that lists the available songs that I have for karaoke, and I'm having some difficulties with formatting. I'm using jquery to retrieve an XML created by php, and outputting it to the html page using jquery's append() function. However, when I do this, the DIV that

[jQuery] Re: append() does not properly resize div when adding content

2009-06-12 Thread Eric-Sebastien Lachance
Awesome, that works! I hadn't set a static height at first, hadn't put any style in fact, so I was in a bind, but this works great for me. Thanks a lot! Eric. On Jun 12, 1:24 pm, amuhlou amysch...@gmail.com wrote: you're declaring a fixed height inline.  the div is being told to only

[jQuery] Re: Subversion and Bugtracking

2009-06-09 Thread Eric Martin
Do you need to host it yourself and does it need to be private? If not, how about Project Hosting on Google Code[1]? [1] http://code.google.com/projecthosting/ -Eric On Jun 9, 4:20 am, Paulodemoc paulode...@gmail.com wrote: Someone here would happen to know a good bugtracking system that I

[jQuery] What is this type of UI widget called?

2009-05-31 Thread Eric Carl
http://secretmountain.org/images/headline_widget.jpg You've seen them all over the place: Yahoo! Movies, CNet, Gamespot, etc. Usually they scroll through the items automatically like a slideshow, while a mouseover of one of the right-hand controls will pause the slideshow and reveal the selected

[jQuery] Re: use jQuery object of parent in an iframe

2009-05-29 Thread Eric Garside
Hi Beni, I've thrown together a pretty nifty plugin for handling this exact thing. (Neat problem to work on. :D ) Anyway, the plugin can be found here: http://snipplr.com/view/15393/inheritjs--jquery-sharing-between-parents-and-iframes/ There's a live proof-of-concept demo available here:

[jQuery] Re: calling functions between multiple document ready events

2009-05-29 Thread Eric Garside
It's a simple scoping problem. Anything you create inside an anonymous function will be accessible only within the function. If you need something to be accessible between the anon. functions, simply move it into a higher scope, like the global namespace (eh, not idea) or the jQuery namespace

[jQuery] [New Plugin] jQuery Generic Pagination

2009-05-26 Thread Eric Garside
I figured I'd drop a message out to the board about a new plugin I've finished documenting and released, called Pagination. It's a small, relatively simple jQuery plugin which makes rendering and managing Pagination controls very easy. It automatically generates groupable controls, which can be

[jQuery] Re: ajax append problem

2009-05-26 Thread Eric
When i try this i get an error object required in IE6 and 7. any thoughts? On Apr 27, 10:10 pm, Ricardo ricardob...@gmail.com wrote: I think you have to separate the selector otherwise it's just a hash: $(.content).load(test.html #content); http://docs.jquery.com/Ajax/load On Apr 27, 5:14 

[jQuery] Hover elements in wrong state once page finishes loading

2009-05-09 Thread Eric
Sorry if this has been addressed before -- it's a hard issue to describe. The page in question: http://testing.ericprice.cc The code in question: $(document).ready(function() { $(.teaser).hover(function() { $(this).addClass(hovered).find(.thumbnail).stop(true,

[jQuery] Re: Custom JSON sanitizing during $.ajax

2009-05-07 Thread Eric Garside
Yea, that should fix the problem, return is a reserved word in javascript On May 7, 4:22 pm, Matt Critchlow matt.critch...@gmail.com wrote: try changing your parameter in the success method to something other than return and see what happens.. On May 7, 10:40 am, Eli Perelman

[jQuery] Re: Catch Errors from External Libraries

2009-05-07 Thread Eric Garside
Try using a try-catch block around the scriptaculous code? There's really no other way that I'm aware of to capture a javascript error and continue processing. Though, depending on how crucial the module is, you may consider using something else. 3 frameworks, 2 major ones, on a site at the same

[jQuery] Re: Is it possiblwe to use this in slection

2009-05-06 Thread Eric Garside
Yes, you can. this refers to the HTMLElement in the context of an event handler. Though, your syntax is a bit wonky, should be: $('#slickbox' + this.id).toggle(400); On May 6, 4:13 am, Christos tsam...@gmail.com wrote: Hi all, I wanted to ask whether we can use this for selecting in jquery.

[jQuery] Re: recursive dom walker

2009-05-06 Thread Eric Garside
Your recurse function is not a method of the jQuery.fn object, so it can't work on elements. The line: $.recurse = function(options) { should be $.fn.recurse = function(options) { On May 6, 9:00 am, AndyCramb andycr...@googlemail.com wrote: I am trying to write a plugin that will eventually

[jQuery] Re: refresh image?

2009-05-06 Thread Eric Garside
For reference, this php should properly force no-cache: Just be sure to replace $mime with the correct type for the image (jpg, gif, whatever you're sending) header('Content-Type: ' . $mime); header('Cache-Control: no-cache'); header('Pragma: no-cache'); On May 6, 2:30 pm, Ricardo

[jQuery] Re: SimpleModal issues... too many scripts?

2009-05-06 Thread Eric Martin
I just took a look and it looks like the main issue is that you are not binding the link correctly. You need to modify the selector in confirm.js from: $('#confirmDialog input.confirm, #confirmDialog a.confirm').click (function (e) { ... }); to: $('#navPhysicians a.confirm').click(function (e)

[jQuery] Re: recursive dom walker

2009-05-06 Thread Eric Garside
){ ... } On May 6, 3:51 pm, AndyCramb andycr...@googlemail.com wrote: Thanks Eric So is the only way to chain from an extended function in jQuery is to use $.fn.recurse= function(){} I cannot uses $.recurse = function() { } and return the jQuery object from within this function? Thanks andy

[jQuery] Re: SimpleModal issues... too many scripts?

2009-05-06 Thread Eric Martin
, and the assistance to get it working! On May 6, 3:49 pm, Steeleclipse steelecli...@gmail.com wrote: Thanks for your reply. I will try that tonight and post how it goes! On May 6, 3:37 pm, Eric Martin emarti...@gmail.com wrote: I just took a look and it looks like the main issue

[jQuery] Re: The jQuery Object, Namespaces, and Program Modules -- Connecting the Dots Between jQuery and Javascript

2009-05-05 Thread Eric Garside
I'll give it a shot explaining, feel free to correct me if I'm off. :) Basically, the jQuery core is broken up into three major pieces: * The Sizzle Selector Library * The jQuery Cache * The jQuery Namespace The selector library, and code associated with implementing it, provides jQuery with a

  1   2   3   4   5   6   >