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.
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
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 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.
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
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.
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
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
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
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
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
I won $50! xD
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
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);
Yay! child selectors in ie!
thank you :-)
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
you probably want somthing like,
jQuery.ajax_request = {
ajax_options : function () {
test: 'test'
},
test : function() {
alert(this.test);
}
}
im guessing...
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
for jquery?
TIA
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
Hi john,
That worked great, when can we expect a compressed release? XD
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);
}
22 matches
Mail list logo