[jQuery] Simple Modal Height and Width

2009-09-09 Thread Byron Matto
Question: Simple Modal has default height and width values of 200 and 300 pixels respectively. Is there a way to the modal conform to whatever content is present. In other words I want the modal to have height and width equal to the HxW of image modal is applied to ... automatically.

[jQuery] Re: Validation and Facebox

2009-03-18 Thread byron
In case anyone else stumbles upon this, I will give my solution to the problem (hours later, of course). So the issue is that Facebox is using the clone() method to move the DOM elements around in $.facebox.fillFaceboxFromHref. Now a fix that worked on some of my pages was to simply using the

[jQuery] redirect response via ajax call

2008-09-08 Thread byron
I currently wrote a quick workaround for what i want done, but i would like to see how other people would go about doing this. It is simply an ajax login form, but there is a caveat. There can be two http responses from the server: 200 OK and 302 Redirect. The 200 codes are just notifications

[jQuery] Re: Simple click event

2008-09-04 Thread byron
That worked well. Thank you. So in pseudocode this essentially says.. when document is ready: bind the event 'click' to '#thelink' invoke the href when a 'click' occurs trigger a 'click' correct? This is more for my own understanding.

[jQuery] Re: Simple click event

2008-09-04 Thread byron
cool. thanks. On Sep 4, 3:03 pm, Karl Swedberg [EMAIL PROTECTED] wrote: yep. you got it. :) --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Sep 4, 2008, at 8:46 AM, byron wrote: That worked well. Thank you. So in pseudocode this essentially says

[jQuery] Simple click event

2008-09-03 Thread byron
I created an email link, that I want invoked (clicked) on page load. I thought I could simply do: $().ready(function() { $(#thelink).click() }) Do I need to do something else? Thanks.

[jQuery] Re: $(document).ready(function() { giving error $ is not a function - what am I doing wrong?

2008-05-08 Thread Byron
You are using jQuery.noConflict() which unbinds the jquery object from the $ namespace so jQuery('a') still works on your site just $('a') does not from a cursory glace i cant see any reason for using the noConflict function, remove that and your code will work. On May 9, 12:11 pm, [EMAIL

[jQuery] Re: Determining if a jQuery object is attached to an existing DOM

2007-12-31 Thread Byron
Hi Eric, it appears mike changed the topic Discussion subject changed to Collecting id attributes for checked input? by Mike Schinkel i think you can use the offsetParent property to check if a node is a attached to the document. $('div id=\'test\' /')[0].offsetParent === null; --Byron

[jQuery] Re: general unique id for new append element

2007-12-24 Thread Byron
you could use $.data() to get a unique id, something like: $.extend($.fn, { id : function () { return this.each(function () { $(this).attr(id, jQuery_ + $.data(this)); }); } }); example usage : $('div /div /div /').id().appendTo('body'); result : div id=jQuery_1/div

[jQuery] Re: Help Test jQuery 1.2.2 (beta 2)

2007-12-20 Thread Byron
So many bug fixes! keep up the great work guys, would be nice to get these (http://dev.jquery.com/ticket/2079) fixed up though :D Merry xmas to all jQuery team/community! Byron

[jQuery] Re: Binding this inside anonymous functions

2007-12-19 Thread Byron
Just to clarify apply is a native javascript function implemented in 1.3 the second parameter isnt actually needed (its for defining arguments) anyway i decided to jquerify it and ended with this: (function ($) { $.extend($.fn, { apply :function (fn, args) { return

[jQuery] Re: Stupid little game :)

2007-12-19 Thread Byron
I won $50! xD

[jQuery] Re: Binding this inside anonymous functions

2007-12-18 Thread Byron
you can use apply() example : var el = $('#myDiv')[0]; var myFunc = function () { console.log(this); }; myFunc.apply(el, [{type : , target : el}]); i stumbled on this when looking through the trigger function. probably not the best use of it, however i though it might be usefull. -Byron

[jQuery] Re: jQuery Logging (to firebug)

2007-10-21 Thread Byron
yep, use typeof: (function($){ // block scope $.fn.log = function(msg){ if ( typeof window.console !== 'undefined' typeof console.firebug !== 'undefined'){ msg = msg || ''; if(msg !== '') msg += ': '; console.log(%s%o, msg, this);

[jQuery] Re: JSS - New Plug-in

2007-10-07 Thread Byron
Yay! child selectors in ie! thank you :-)

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Byron
I guess this is probably just a bit late (and will be even later due google not posting my replies until after 24-48 hours ) but if your interested i wrote a plugin for creating dom elements from json templates have a look at it here : http://jquery.com/plugins/project/appendDom --Byron

[jQuery] Re: Creating plugins

2007-08-12 Thread Byron
you probably want somthing like, jQuery.ajax_request = { ajax_options : function () { test: 'test' }, test : function() { alert(this.test); } } im guessing...

[jQuery] Re: problem using with jQuery.noConflict();

2007-07-13 Thread Byron
Hi John, Thanks for the interest, I followed your advice and with the help of some the friendly people on #jquery filed a ticket which you can find here: http://dev.jquery.com/ticket/1393 Thanks Byron On Jul 13, 1:52 am, John Resig [EMAIL PROTECTED] wrote: You'll have to use a separate

[jQuery] problem using with jQuery.noConflict();

2007-07-12 Thread Byron
for jquery? TIA Byron

[jQuery] Re: problem with animate()...

2007-06-18 Thread Byron
hi John, worked like a treat, is there a compressed version available? On Jun 18, 5:29 pm, John Resig [EMAIL PROTECTED] wrote: Byron - You should give jQuery 1.1.3a a try. This was one of the nasty bugs that we were able to resolve in it:http://code.jquery.com/jquery-1.1.3a.js Let me know

[jQuery] Re: problem with animate()...

2007-06-18 Thread Byron
Hi john, That worked great, when can we expect a compressed release? XD Byron

[jQuery] Re: problem with animate()...

2007-06-17 Thread Byron
Thanks, I tried setting it in the call bak like so.. ... $(#imageBoxInside).animate({left: sLeft}, 'slow', function() { wait = 0; var left = parseInt($(#imageBoxInside).css(left)); if (left 0 left -(imageSize * transitionSize)) { $(#imageBoxInside).css(left, 0px); }