[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. Thoughts?

[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 ot

[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 that

[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

[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] 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 PROTEC

[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. $('')[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 : $('').id().appendTo('body'); result : hope this helps :)

[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: Stupid little game :)

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

[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 this.each(function

[jQuery] Re: Binding "this" inside anonymous functions

2007-12-18 Thread Byron
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: > Y

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

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

[jQuery] Re: [Slightly OT] What's your setup?

2007-06-21 Thread Byron
> > What OS? Ubuntu > > What IDE or editor? gedit > > What backend language, if any (php, asp, cf, ruby, java, etc)? > > What framework, if any (cake, symfony, rails, struts, etc)? SilverStripe on PHP Byron

[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-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] 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",

[jQuery] problem with animate()...

2007-06-17 Thread Byron
Hi all, this is my first post to this list and my first attempt at porting a script to jquery, Ok so anyway... I've made this smooth image-list slider : http://dev.byron-adams.com/jquery/slider.html it was originally using prototype & scriptaculous (130kb+) so it works pretty well, except for