Felix Geisend hooked me up with some code, which seemed to work perfectly.
function fitObjectInViewPort(zoomedImage)
{
// Fit's our image in a box with a given width and heigth while
proportions remain,
// *or* resizes it based on one site proportionally if only width or
height is given
Heh, I just started a different thread asking for this. :)
Trying to convert it out now.
Thanks!
( I am falling asleep at the wheel)
Glen
On 6/23/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
I want to maintain proportion, but scale it to fit in the view port.0
Got some PHP code laying
I'm sorry I am asking so many questions about this.
Still working on this EaseBox thing.
http://www.commadot.com/jquery/easebox/
My question has to do with finding the proper image size based on the
viewport.
Logic:
maximum height and width of the zoomed image is a percentage of the
viewport.
va
I want to maintain proportion, but scale it to
fit in the view port.0
Got some PHP code laying around that does just that. Should be easy to
convert to JS:
--
Sorry, working on it right now. :)
I fixed that. Trying to figure out how to position it in the middle of the
screen and adjust the height width so it makes sense.
The logic is a little tortuous on my mind.
I want to maintain proportion, but scale it to fit in the view port.
Is there a resize pl
Working on it. All these little details.
I have to figure out how to position all this stuff.
Especially to make the image zoom to an appropriate size to the viewport.
Glen
On 6/23/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
Glen Lipka wrote:
> I had a little bit of free time, so I started
I got this error on FF 2.0.0.4 (Mac OS 10.4.10):
e.css is not a function
http://www.commadot.com/jquery/easebox/easeBox.js
Line 59
Stack trace:
showZoom(a matt-big.jpg)easeBox.js (line 59)
(no name)()easeBox.js (line 27)
(no name)(click clientX=0, clientY=0)jquery-latest.js (line 1398)
handle(cl
dimScreen is great.
Check it out:
http://www.commadot.com/jquery/easebox/
Although, I changed it slighly to use $(window).width() instead of
$(document).width()
This might only work with the dimensiosn plugin included.
Glen
On 6/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
It should be Rey Bi
It should be Rey Bingo!
That's exactly it. Awesome. Thanks. :)
Glen
On 6/23/07, Rey Bango <[EMAIL PROTECTED]> wrote:
dimScreen:
http://docs.jquery.com/Plugins/dimScreen
Glen Lipka wrote:
> I can't find it, but I vaguely remember someone had a plugin that just
> puts a 50% opacity overlay
I generally try to avoid these types of post but I discovered a site
called WebAppers which is really awesome. Its chock full of RIA, Ajax,
JS and development posts which I'm finding very cool.
http://www.webappers.com/
Rey...
dimScreen:
http://docs.jquery.com/Plugins/dimScreen
Glen Lipka wrote:
I can't find it, but I vaguely remember someone had a plugin that just
puts a 50% opacity overlay over the page.
Sort of like a thickbox thing, but without all the other stuff.
Does anyone know where it is?
Glen
--
Brigh
something like $('body').wrap('').parent().css('opacity',0.5) ?
On 6/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
This one is possibly more than I bargained for. It's really cool though.
I'll try and use it. I think I was thinking of one that was smaller and
didn't do quite as much.
Thanks
jqModal also does that.
--Erik
On 6/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
I can't find it, but I vaguely remember someone had a plugin that just puts
a 50% opacity overlay over the page.
Sort of like a thickbox thing, but without all the other stuff.
Does anyone know where it is?
Gle
This one is possibly more than I bargained for. It's really cool though.
I'll try and use it. I think I was thinking of one that was smaller and
didn't do quite as much.
Thanks for the tip though, I appreciate it.
Glen
On 6/23/07, rolfsf <[EMAIL PROTECTED]> wrote:
blockUI perhaps?
http://
blockUI perhaps?
http://malsup.com/jquery/block/
Glen Lipka wrote:
>
> I can't find it, but I vaguely remember someone had a plugin that just
> puts
> a 50% opacity overlay over the page.
> Sort of like a thickbox thing, but without all the other stuff.
> Does anyone know where it is?
>
> Gl
I can't find it, but I vaguely remember someone had a plugin that just puts
a 50% opacity overlay over the page.
Sort of like a thickbox thing, but without all the other stuff.
Does anyone know where it is?
Glen
Nice work! You might want to consider leveraging the hoverIntent plugin.
That way you would get unintentional zooms when you are moving past an image
quickly.
Again, looks cool.
Glen
On 6/23/07, Su <[EMAIL PROTECTED]> wrote:
This is neat.
On 6/23/07, Sean Catchpole <[EMAIL PROTECTED]> wrote
I agree with Su, you may be able to get away with using src and lowsrc, but
I am not totally sure what browsers are fully supporting lowsrc.
On 6/23/07, Su <[EMAIL PROTECTED]> wrote:
This is neat.
On 6/23/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
>
> The feature I'm wondering about, is if
Su, that worked perfectly! Thank you, I KNEW it had to be possible.
On Jun 23, 9:57 pm, Andy Matthews <[EMAIL PROTECTED]> wrote:
> tb_show? I'll give that a shot Su. Thank you for the suggestion.
>
> On Jun 23, 9:52 pm, Su <[EMAIL PROTECTED]> wrote:
>
>
>
> > I think all you'd need to do is launc
tb_show? I'll give that a shot Su. Thank you for the suggestion.
On Jun 23, 9:52 pm, Su <[EMAIL PROTECTED]> wrote:
> I think all you'd need to do is launch tb_show and pass it the appropriate
> parameters(just view the TB source for this). I'm just not sure what event
> you would use on the dropd
I think all you'd need to do is launch tb_show and pass it the appropriate
parameters(just view the TB source for this). I'm just not sure what event
you would use on the dropdown. onchange, maybe?
On 6/23/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
I'd like to trigger thickbox from a select
This is neat.
On 6/23/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
The feature I'm wondering about, is if the zoom2 image should inherit
the classes of the original image. (If what I'm saying makes no sense,
go view the source code of the zoomi page above)
Would it be a pain to make it opti
Here's an even better way :)
str+="border-top-style: " + $(this).css("borderTopStyle") + "";
On Jun 23, 2:33 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote:
> Another weekend, another plugin =P
>
> zoomi:http://www.sunsean.com/zoomi/
>
> So here's the scoop. It's almost ready, beta as some peop
Erg - I hit send too soon...
If you look at document.styleSheets[0].cssRule[4].style.borderTop in
the Firebug DOM tab, it looks like it should be returning a value for
that attribute. I can't tell you why it doesn't at the moment, but if
you query borderTopWidth, borderTopColor, or borderTopStyl
Very nice work Sean - that is going to be really useful.
I haven't looked into the border issue you mentioned, but this.width
or this.style.width hold the value of the style="" attribute of the
element. When your node's styles are inherited via a css rule you
need to look for the computed style.
I'd like to trigger thickbox from a select box. I've got a list of
images that a user can select from. When they choose one from the
list, I'd like that image to show using the thicbox method.
I can write the rest of the I'm sure but I don't even know:
a) If it's possible
b) what the syntax for
Mike...
The reason I was moving in that direction was that I needed the
results of the $,get call immediately after it ran. I was using in
conjunction with jEditable as a function call and I had to return the
string that $.get got back from the server to jEditable.
Sadly, I'm going to have to pu
Hi Glenn,
Keeping scope is definitely one of the more frustrating aspects of
Javascript sometimes.
What's happening is that you're running the ajax call, and the complete
method is a method of the object that you're passing into the ajax handler.
So this now points to the object containing the
Hello,
I have 2 images and 1 button. When I click on the button, I'd like to
move image 2 on top of image 2. I know there are some ways of doing
this, but they all require the image coordinates. Is there a way to do
this at the object level as i don't have coordinates?
thanks,
Paolo
Hi Paulo,
What you're trying to do is more than likely not possible, unless I am
misunderstanding.
Are you trying to stack the images? If so, you could do this by setting the
object's z-index to a value higher than the other.
If you're trying to move image 1 to the top location (such as the top
Hello,
I have 2 images and 1 button. When I click on the button, I'd like to
move image 2 on top of image 2. I know there are some ways of doing
this, but they all require the image coordinates. Is there a way to do
this at the object level as i don't have coordinates?
thanks,
Paolo
to all...I'm using a function written by Alex King, and adapted it to
a function in jQuery:
/**
* Insert content at caret position (converted to jquery function)
* @link
http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript
*/
$.fn.insertAtCaret = function (myValue) {
Ahoy,
Seems like a had a little time, so here's the script:
http://userscripts.org/scripts/show/10141
Cheers
~Sean
Excellent work Jörn. Thanks a lot.
-- Felix
--
My latest blog posts:
My Business: http://www.fg-webdesign.de
Web Specialist wrote:
Congratulatiosn Jorn. Once more. Your ajax validation
option is very very goog approach! I'll try your 1.2 version and send
feedb
Hi, I'm another newbie to jQuery and also not that experienced in
JavaScript so I'm not sure if my issue is jQuery or JavaScript.
The issue is that I'm creating a constructor for an object, in which I
initialise some instance properties, then kick off an asynchronous
$.ajax event to retrieve an
Congratulatiosn Jorn. Once more. Your ajax validation option is very very
goog approach! I'll try your 1.2 version and send feedback.
Cheers
2007/6/23, Jörn Zaefferer <[EMAIL PROTECTED]>:
Hi folks,
for anyone using the validation plugin or interested to use it once ajax
validation is availab
Another weekend, another plugin =P
zoomi: http://www.sunsean.com/zoomi/
So here's the scoop. It's almost ready, beta as some people call it.
I'm releasing as beta because I want your input on a feature... and
there is still one more bug.
The feature I'm wondering about, is if the zoom2 image s
Klaus, do you know which browsers scrollIntoView works with?
On 6/23/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
Phil Glatz wrote:
> I have a table inside a div; the div has a fixed height and overflow set
> to scroll. When the page is opened, the row containing the last selected
> data is high
Phil Glatz wrote:
I have a table inside a div; the div has a fixed height and overflow set
to scroll. When the page is opened, the row containing the last selected
data is highlighted, via jquery/DOM.
the problem I have is that if the list (number of rows in the table) is
bigger than can fit
I take it all back!
$(function(){
eval($('body').attr('onload'));
});
ok
alerted 2 times!!
On 6/23/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
yes... it overrides onload="test()" ... but it should still be in the dom,
so you can s
I have a table inside a div; the div has a fixed height and overflow set to
scroll. When the page is opened, the row containing the last selected data
is highlighted, via jquery/DOM.
the problem I have is that if the list (number of rows in the table) is
bigger than can fit in the div, and the cur
yes... it overrides onload="test()" ... but it should still be in the dom,
so you can still get at it!
// untested
jQuery(document).ready(function() {
eval($('body').attr('onload'));
})
On 6/23/07, howa <[EMAIL PROTECTED]> wrote:
Thanks...but how to handle this?
jQuery(document).
Try this:
function test() {
alert('test');
}
$(document).ready(function() {
});
// Assign event to window.onload
$(window).load(test);
TEST123
--Erik
On 6/23/07, howa <[EMAIL PROTECTED]> wrote:
Thanks...but how to handle this?
jQuery(document).ready(function() {
Hey Michael,
If you code is inside of the usual $(function(){...}) then it will not exectute.
I have not changed over v1.1.2 to Greasemonkey, but if I get time
today I will do so.
~Sean
Great work GianCarlo! Another cool feature would be to distinguish the
number that a person clicked on. It could be as easy as changing the
color. That way, when I click on #6, it displays the #6 box uniquely.
Rey
GianCarlo Mingati wrote:
Hi,
http://www.gcmingati.net/wordpress/wp-content/l
Thanks...but how to handle this?
jQuery(document).ready(function() {
// Assign event to window.onload
jQuery(window).load(function() {
alert('Everything is loaded!');
});
});
function test() {
alert('test');
}
TEST123
I don't want to override the origin
Hi,
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
the plugin it's ready with some new pictures and a bt of
'documentation'
I suggest to use it with small galleris in a post until i've fixed the
'preload' with iE7.
GC
On Jun 21, 5:42 pm, Rey Bango <[
Johny,
There is a plugin: http://www.pixeline.be/experiments/jqUploader/test.php
On 6/23/07, Johny <[EMAIL PROTECTED]> wrote:
Can anyone suggest a solution how to use jQuery for a script that
will show ,during uploading file, information how many bytes have
already been uploaded?
I know a
So I've got these nice script I've written, that I really want to turn
into GreaseMonkey scripts. The problem is, I want to embed the jQuery
code _in_ my GM script, so that they're easy to distribute, but I
can't get it to work.
I've tried Sean Catchpole's GM script, and maybe I'm missing
somethi
Does anyone use jqUploader?
I use server side script for uploading in Python.It works well but I would like to add a
progress bar during uploading.
Is jqUploader the right choice? Or is there an easier way how to add progress during
uploading?
Thank you
L
I am having the same problem. I use $.(#div).load(something.php)
which then has references to thickbox for modal dialogs or image
galleries. Everything works perfect in FF & Safari, but doesn't work
just right in IE. If I access the included files directly (e.g.
www.blah.com/something.php), Thi
Can anyone suggest a solution how to use jQuery for a script that
will show ,during uploading file, information how many bytes have
already been uploaded?
I know about uploading progress bar scripts but such programs are
rather difficult to be understood properly for me.
All that I need is gi
Does anyone use jqUploader?
I use server side script for uploading in Python.It works well but I
would like to add a progress bar during uploading.
Is jqUploader the right choice? Or is there an easier way how to add
progress during uploading?
Thank you
L
> What OS?
OS X 10.4.10 (Windows XP for testing only - no dev)
> What IDE or editor?
Dreamweaver CS3, BBEdit
> What backend language, if any (php, asp, cf, ruby, java, etc)?
Lasso
> What framework, if any (cake, symfony, rails, struts, etc)?
None
> Any other significant components (persist
Hi folks,
for anyone using the validation plugin or interested to use it once ajax
validation is available I'd like to present a preview of the next
validation feature upcoming in 1.2:
http://jquery.bassistance.de/ajax-validation/demo-test/milk/
To try it out: Enter something as a username.
No offense taken Mike. Andy and I were pounding our heads trying to
figure out why the value wasn't appearing so by using the synchronous
call, I was able to figure out that the variable outside of the $.get()
callback was indeed being filled.
You're right, though, that a synchronous call sh
Hi Howa,
Try jQuery(window) without the quotes around window. That should do
it! :)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jun 23, 2007, at 9:20 AM, howa wrote:
Hello Gilles & Erik, the codes below never work with IE7 & FF2.0
jQue
Hello Gilles & Erik, the codes below never work with IE7 & FF2.0
jQuery(document).ready(function() {
alert('ready');
// Assign event to window.onload
jQuery('window').load(function() {
alert('Everything is loaded!');
});
});
TEST123
howa
On 6月23日,
Ronald wrote:
Hello Jörn and others,
I may have found 2 bugs in the form validation plugin. But this could
also be due to IE6 and IE7, I am not sure.
The first bug shows up when you add a field (hidden field in my case)
with a name="id". I understand that IE doesnt like that a lot since IE
trea
Glen Lipka wrote:
I had a little bit of free time, so I started an "easeBox". Like
thickbox, but with easing transitions.
http://www.commadot.com/jquery/easebox/#
Cool. I like it already.
I made a list of things I want to do to it on it.
Any suggestions to add to the list?
Any suggestions o
As i see your question, i think you mean this:
jQuery(document).ready(function() {
// Assign event to window.onload
jQuery('body').load(function() {
alert('Everything is loaded!');
});
});
On 23 jun, 12:52, howa <[EMAIL PROTECTED]> wrote:
> Hello,
>
> is it possible to attach
the window.onload event fires when all external dependencies (such as
images) have loaded. You can bind events to it with:
$(window).load(function() {
alert('Everything is loaded!');
});
Is that what you're looking for?
--Erik
On 6/23/07, howa <[EMAIL PROTECTED]> wrote:
Hello,
is it poss
Hello,
is it possible to attach some codes to the body.onload via
document.ready, or other methods to attach body.onload?
thanks.
Saw it on Ajax Magazine Posted by Hatem on June 23, 2007 9:04 AM
One more addition to big sites switching to my love jQuery.
Congratulations jQuery community and to the dev team especially. We
all owe you a lot for your hard work.
http://ajax.phpmagazine.net/2007/06/digg_moves_to_jquerys_javascr
Hello Jörn and others,
I may have found 2 bugs in the form validation plugin. But this could
also be due to IE6 and IE7, I am not sure.
The first bug shows up when you add a field (hidden field in my case)
with a name="id". I understand that IE doesnt like that a lot since IE
treats names and ids
not really...
being vision impaired is not a fault
viewing your site on mobile device which don't understand css or js is
not a fault
you are just loosing your potential visitors, anyway, its up to you
anyway...
what i concern is we are doing web development, not game developement,
don't use s
Having issues running scripts via the elements created from an ajax
call with Internet Explorer, and found one way around it, by firing
off a little function on the call back. as below: loadMe()
In this way the second function can be used with no issue in IE and
Opera, FF never had a problem in t
67 matches
Mail list logo