[jQuery] Re: Cornerz - Bullet Proof Curved Corners using Canvas/VML

2008-01-09 Thread Olaf Bosch


Olaf Bosch schrieb:

In my FooterBoxes work the Workaround with padding-bottom not in all 
boxes, one have the 1px border ever :(


All have the same Styles, quirks IE ;)


Haha, I write this and i have the idea, great.
The boxes have all a UL in, I change the margin-top +1px and all is
fine, without the paddingHack.

GreatPlugin i ever see, my best wishes to you :)


--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
http://ohorn.info
---


[jQuery] Re: Cornerz - Bullet Proof Curved Corners using Canvas/VML

2008-01-09 Thread Olaf Bosch


weepy schrieb:

acutally i have a fix for this - will upload tomorrow


Thanks for the Update, fine, is working better.

A little Problem i have with boxes are have float with display:inline;
I do often this, to workaround the Double-Margin-Bug in IE<7

I have change your code to:
var h =""

This works fine for me in all IE's. I have not to rounded inline-elements

In my FooterBoxes work the Workaround with padding-bottom not in all
boxes, one have the 1px border ever :(

All have the same Styles, quirks IE ;)

--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
http://ohorn.info
---


[jQuery] Re: Using one namespace for multiple methods

2008-01-09 Thread Danny

The short answer is, yes, you're doing the wrong thing to try to
namespace plugins. It's not officially supported. If you really want
to, I wrote a small plugin that simulates namespaces by copying
methods in and out of the jQuery object; it was discussed here:
http://www.nabble.com/Re%3A-passing-this-p13540912s27240.html

Danny

On Jan 9, 12:29 pm, Zoram <[EMAIL PROTECTED]> wrote:
> I am working on a plugin and was trying to figure out what was
> happening to break my code..
>
> I have in my plugin functions similar to the following:
>
> $.fn.pluginName = function() {}
>
> $.fn.pluginName.oneThing = function () {
>...
>
> }
>
> $.fn.pluginName.anotherThing = function () {
>...
>
> }
>
> I try to call it like so:
>
> $('#idOfElement').pluginName.oneThing();
>
> The problem is that the this.each() is 'not defined' when I use it in
> the oneThing or anotherThing methods. If I do the methods as:
> $.fn.oneThing and $.fn.anotherThing it works fine... but not when they
> are under the pluginName. Why would this happen and is there a way to
> fix it? or am i trying to do the wrong thing tonamespacethe methods?
>
> Thanks in advance.


[jQuery] Re: match element based on CSS value

2008-01-09 Thread Glen Lipka
Whipped up a demo.
http://commadot.com/jquery/isCSSRule.php

Hope this helps.  There might be another way.

Glen

On Jan 9, 2008 2:01 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> How can I select an element based on it's CSS style value?
>
> For example, let's say I have an element absolute positioned at
> top=100px.
>
> How can I do something like the following?
>
> $(top=100px)
>
> thanks
> Jason
>


[jQuery] Re: Cross domain POST

2008-01-09 Thread Danny

To the best of my knowledge, cross domain script loading is just as
much a security risk, but it was present in browsers before the risks
were realized and too many sites depend on it, so no one can remove
it. It's a historical anomaly.
Danny

On Jan 9, 9:39 am, Miha <[EMAIL PROTECTED]> wrote:


>
> Now I have another question? From the security point of view, what is
> the difference between cross domain script loading and cross domain
> ajax requests? Why script loading is permitted by browsers and ajax is
> not?
>
> regards,
> Miha
>
>


[jQuery] Re: Switching Divs

2008-01-09 Thread Glen Lipka
I changed it up a little.  Fun little page. :)
http://commadot.com/jquery/animateSwap.php

Hope this is helpful,

Glen

On Jan 9, 2008 2:00 PM, Benjamin Sterling <[EMAIL PROTECTED]>
wrote:

> Glen, I would assume it has something to do with offset(), when I remove
> the margin and the border they work fine.
>
>
> On 1/9/08, Glen Lipka < [EMAIL PROTECTED]> wrote:
> >
> > I started work on a demo for this, but  It's doing something wrong.
> > http://commadot.com/jquery/animateSwap.php
> >
> > Anyone know why the thing keeps going down the screen?
> >
> > James, this would be easier if the two elements were positioned absolute
> > to begin with.  What is their original state?
> >
> > Glen
> >
> >
> > On Jan 9, 2008 6:32 AM, DXCJames < [EMAIL PROTECTED]> wrote:
> >
> > >
> > > I want to switch the place of 2 divs. One would be located on once
> > > side of the screen somewhere and the other  far away from it.. I want
> > > to be able to click on one of them and have them "hover" or move to
> > > switch locations with eachother.. It would be cool to have them switch
> > >
> > > at the same time, but if thats not possible then I guess I am out of
> > > luck..
> > >
> > > I am basically asking how todo it at the same time, I am pretty sure I
> > > can figure out how to make them just switch spots by moving one over
> > > and the other back.. (it would be nice to know if theres a plugin for
> > > this or an easy command though =D) hah.. Thanks everyone!!
> > >
> > > James
> > >
> >
> >
>
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> http://www.benjaminsterling.com


[jQuery] Re: Stopping click event action in safari 1.3 ( click(function(){return false;}); )

2008-01-09 Thread Klaus Hartl

On 9 Jan., 19:14, "Dan Eastwell" <[EMAIL PROTECTED]> wrote:
> Thanks Klaus, I'll have to rewrite my functions for that. I'm sure
> it's no great headache.

Before rewriting, have you tried the following?

// attach event handler the usual way
var $a = $('a');
$a.click(function() { ... });

// be nice to Safari 1.3 dinosaurs
$.each($a, function() {
this.onclick = function() { return false; };
});

I think I've done it like that once but cannot remember where to find
it...


> Thanks again for your reply. Do you know how the ui.tabs plug in
> covers this situation?

Yes. I do not support Safari 1.3 ;-)

I consider this browser as outdated as IE 5 (which is not supported by
Tabs either). Safari 1.3 isn't officially supported by jQuery itself
by the way.

--Klaus


[jQuery] Re: [ANNOUNCE] Space gallery

2008-01-09 Thread Morgan Allen
Awesome, I think this is a best JS image gallery I have seen. I will likely
use that on the next release of my site.

On Jan 9, 2008 1:08 PM, Benjamin Sterling <[EMAIL PROTECTED]>
wrote:

> That is great and it sucks at the same time;  It is great because I am/was
> working on some thing similar; sucks because I am/was working on some thing
> similar. :)
>
> Really nice work.
>
>
> On 1/9/08, Stefan Petre <[EMAIL PROTECTED]> wrote:
> >
> >
> > Image gallery with perspective
> >
> > http://eyecon.ro/spacegallery/
> >
> > Regards,
> > Stefan
> >
>
>
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> http://www.benjaminsterling.com




-- 
http://morglog.alleycatracing.com
Lets make up more accronyms!

http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.


[jQuery] match element based on CSS value

2008-01-09 Thread [EMAIL PROTECTED]

How can I select an element based on it's CSS style value?

For example, let's say I have an element absolute positioned at
top=100px.

How can I do something like the following?

$(top=100px)

thanks
Jason


[jQuery] Re: $('table tr').hover() not working in IE

2008-01-09 Thread [EMAIL PROTECTED]

Thanks guys,

There was a style deep inside of another stylesheet that was
explicitly defining a background color and was loaded after the style
sheet containing this definition.  I should have double checked this
before I posted.

Bryan Migliorisi

On Jan 7, 6:35 pm, David McFarland <[EMAIL PROTECTED]> wrote:
> > <>
> >$('table tr').hover(
> >function() {$(this).addClass('hover');},
> >function() {$(this).removeClass('hover');
> >});
> > <>
>
> > This is my CSS:
>
> > <>
> > tr.hover {background-color:#E6;}
> > tr.hover a{color: #4F839F}
> > tr.hover a:hover{background:none; font-weight:bold; color: #4F839F}
> > <>
>
> > This works fine in Firefox - it turns the background color light blue
> > and sets the links inside that tablerow to a darkblue.
>
> > In Internet Explore 7.0 (possibly others, but i havent tested in older
> > ones yet) it only changes the color of the links - it does NOT change
> > the color of the tablerow background-color.
>
> Bryan,
>
> Based on the snippets you provided this works fine for me in IE6 and
> IE7 (Firefox and Safari too). Perhaps there is a conflict with other
> style rules in your stylesheet.
>
> --dave


[jQuery] Re: Selecting Child from object

2008-01-09 Thread Shawn

More than one option:

$(this).children("#id")

or

$("#id", this);

Both do essentially the same with a minor (but important) difference. 
The first option will find the immediate children, but not the grand 
children.  The second option searches for the selector within the 
context of the "this" object (and presumably finds all grandchildren as 
well).

Or you can write it out the long way

$("#" + this.id + " > #id");

But I suspect this is probably the most inefficient way to do it - 
especially if you are dealing with class names, rather than IDs.

HTH.

Shawn

K-BL wrote:
> If you are in the the middle of an each statement, and you want to
> select a child object from the main object you are in what syntax
> would you use?
> 
> For instance,
> $('.selector').each(function(){
>  //I want to select a child of 'this'
>  $(this)
> });


[jQuery] Re: Selecting Child from object

2008-01-09 Thread K-BL

Ok, found it myself.
$(this).filter('.child-selector');


[jQuery] Re: how can i access and manipulate iframe elements in ie6

2008-01-09 Thread rgrwkmn

Check out the $.frameReady jQuery plugin. I've been having trouble
getting it to work properly with my site, but others have had great
success and it works perfectly in the demo.
http://ideamill.synaptrixgroup.com/?p=6

On Jan 9, 4:13 am, sigbin dan <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> im developing for internet explorer 6 and i am making a jquery
> generated iframe, now after making this iframe, i want to be able to
> insert 'onlick=("function()")' this code on the body tag, of the page
> inside the iframe. is that possible?
>
> thanks,
>
> dan


[jQuery] Pretty Horizontal Rules with jQuery

2008-01-09 Thread Hamish Campbell

Hi all,

Thought I'd share a little piece of code I whipped up this morning.
This turns hr elements into pretty div based dividers. In action here:

http://www.deft.co.nz

Turn js on and off and compare!

In the HTML:



In the JS:

$(document).ready(function(){
$('hr').each(function() {
var divText = $(this).attr('title');
$(this).before('' +
' ' +
' ' +
''+divText+'' +
'').remove();
});
});

In the CSS:

/* HORIZONTAL RULES */
.center {
text-align: center;
}
.HR_LEFT {
background-image: url(hr_left.png);
background-repeat: no-repeat;
background-position: left center;
width: 30px; // width of the hr_left.png image
float: left;
}
.HR_RIGHT {
background-image: url(hr_right.png);
background-repeat: no-repeat;
background-position: right center;
width: 30px; // width of the hr_right.png image
float: right;
}
.HR_DIVIDER {
margin-top: 15px;
margin-bottom: 15px;
background-image: url(hr_mid.png);
background-repeat: repeat-x;
background-position: center center;
}
.HR_TEXT {
margin: auto;
background-color: #FF;
width: 120px;
}


[jQuery] A dynamic tooltip validator?

2008-01-09 Thread clekkas


Hi this is a newbie question.

I am new to Ajax and jscript and been learning JQuery now. I am trying to
find a plugin or a way to do it myself. I need a validator control that pops
or drops down to the location of the page the user is currently entering
info. If the user enters an invalid email address on exit of that input the
control will appear with a custom message. The user can continue entering
and if there are more validation errors the tooltip (prefereably on the side
of the form) will append this additional error to its list with a link for
each error that the user can click and be redirected to fix the error.

If anyone can point me towards the right direction of how to begin making my
own control or if there is a plugin as such it will be awesome.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/A-dynamic-tooltip-validator--tp14701477s27240p14701477.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Pretty XML?

2008-01-09 Thread bweaverusenet

Hi. Any thoughts on how to take an XML string, transform it into a
pretty HTML string, then insert it as an HTML element? Basically, I
want something that looks like the IE or FF XML display to be injected
into my HTML document.

Any ideas? Thanks! -bill


[jQuery] Re: why not get value using $('#wrapper').attr('offsetHeight') in firefox?

2008-01-09 Thread Shawn

offsetHeight is a DOM property.  If you really want the offsetHeight, 
you'd do it like this:

$("#wrapper")[0].offsetHeight;

But doing $("#wrapper").height() is probably the better method to use - 
more cross-browser I think.

Also, as noted in another response getElementById("Wrapper") is NOT the 
same as $("#wrapper").  JavaScript is case sensitive.  But I'm assuming 
that was just a sample for posting...

Shawn

nightelf wrote:
> in firefox
> $('#wrapper').attr('offsetHeight') == undefined
> but
> document.getElementById('Wrapper').offsetHeight
> is ok


[jQuery] Re: Switching Divs

2008-01-09 Thread Benjamin Sterling
Glen, I would assume it has something to do with offset(), when I remove the
margin and the border they work fine.

On 1/9/08, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> I started work on a demo for this, but  It's doing something wrong.
> http://commadot.com/jquery/animateSwap.php
>
> Anyone know why the thing keeps going down the screen?
>
> James, this would be easier if the two elements were positioned absolute
> to begin with.  What is their original state?
>
> Glen
>
>
> On Jan 9, 2008 6:32 AM, DXCJames < [EMAIL PROTECTED]> wrote:
>
> >
> > I want to switch the place of 2 divs. One would be located on once
> > side of the screen somewhere and the other  far away from it.. I want
> > to be able to click on one of them and have them "hover" or move to
> > switch locations with eachother.. It would be cool to have them switch
> > at the same time, but if thats not possible then I guess I am out of
> > luck..
> >
> > I am basically asking how todo it at the same time, I am pretty sure I
> > can figure out how to make them just switch spots by moving one over
> > and the other back.. (it would be nice to know if theres a plugin for
> > this or an easy command though =D) hah.. Thanks everyone!!
> >
> > James
> >
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com


[jQuery] Re: Switching Divs

2008-01-09 Thread Glen Lipka
I started work on a demo for this, but  It's doing something wrong.
http://commadot.com/jquery/animateSwap.php

Anyone know why the thing keeps going down the screen?

James, this would be easier if the two elements were positioned absolute to
begin with.  What is their original state?

Glen


On Jan 9, 2008 6:32 AM, DXCJames <[EMAIL PROTECTED]> wrote:

>
> I want to switch the place of 2 divs. One would be located on once
> side of the screen somewhere and the other  far away from it.. I want
> to be able to click on one of them and have them "hover" or move to
> switch locations with eachother.. It would be cool to have them switch
> at the same time, but if thats not possible then I guess I am out of
> luck..
>
> I am basically asking how todo it at the same time, I am pretty sure I
> can figure out how to make them just switch spots by moving one over
> and the other back.. (it would be nice to know if theres a plugin for
> this or an easy command though =D) hah.. Thanks everyone!!
>
> James
>


[jQuery] Re: [ANNOUNCE] jQuery.Collection released

2008-01-09 Thread Ariel Flesler

Hi Jorn

Metaplugin sounds like a good name to describe the concept. I' added
the plugin to the "Metaplugin" category so... YAY, I'm the first
one :)
I didn't quite get the "you could implement yourself with jQuery"
item.

Sounds like "they are not very complex plugins".
As for the second item. I dunno if it surely applies to all
metaplugins (utilitary plugins that extend jQuery's core as I see it).
It doesn't apply to jQuery.Collection.

Thanks for checking Jorn

Ariel Flesler

On 9 ene, 19:16, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi Ariel,
>
> it looks like your plugin fits the term metaplugin quite well. I've
> created that term to describe plugins that:
> - you* could implement yourself with jQuery
> - it can be difficult to implement across browsers
> - users won't notice them
>
> Seehttp://www.slideshare.net/joern.zaefferer/the-onion-147705for the
> presentation mentioning metaplugins.
>
> I've just added a category "Metaplugin" so you can be the first to
> actually present a metaplugin labeled as one.
>
> Regards
> Jörn
>
> * the user of the plugin


[jQuery] Re: [ANNOUNCE] Space gallery

2008-01-09 Thread Alexandre Plennevaux

This is a really neat effect, bravo. Yet, i wouldn't use it for
pictures personally, because the animation takes over the impact that
one usually aims to have with its photos.
i do believe less is more especially in graphics design. A good
collection of images with plain back/next buttons will please the user
more than a bunch of crapy shots with blazing transition effects.
And both the quality images and the effect only hurt the eye in the
end (my opinion).
 I'm not against animation, but it has to be carefully articulated
with the content. The point is the qualia experienced by the user, not
a technical show off, and this qualia increases with

Don't get me wrong, i'm totally not flaming your plugin, it's really
well done, i'm just stating what i thought spontaneously when i
clicked your demo: technically impressed, visually hurt.

but for instance, if this effect can be used as a way to navigate
through, say, users posting in time, or as a blog navigation system,
like a travelling into time, then i'd be much more arosen.
hope i made my point without sounding offensive.


On Jan 9, 2008 10:08 PM, Benjamin Sterling
<[EMAIL PROTECTED]> wrote:
> That is great and it sucks at the same time;  It is great because I am/was
> working on some thing similar; sucks because I am/was working on some thing
> similar. :)
>
> Really nice work.
>
>
>
>  On 1/9/08, Stefan Petre <[EMAIL PROTECTED]> wrote:
> >
> > Image gallery with perspective
> >
> > http://eyecon.ro/spacegallery/
> >
> > Regards,
> > Stefan
> >
>
>
>
> --
> Benjamin Sterling
>  http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> http://www.benjaminsterling.com



-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] Re: [ANNOUNCE] Space gallery

2008-01-09 Thread Andy Matthews

H! That's so awesome!

Now can you get it to work with the scroll wheel, or at least the up/down
arrows?


andy

 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stefan Petre
Sent: Wednesday, January 09, 2008 3:00 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] [ANNOUNCE] Space gallery


Image gallery with perspective

http://eyecon.ro/spacegallery/

Regards,
Stefan




[jQuery] Re: [ANNOUNCE] jQuery.Collection released

2008-01-09 Thread Jörn Zaefferer


Hi Ariel,

it looks like your plugin fits the term metaplugin quite well. I've 
created that term to describe plugins that:

- you* could implement yourself with jQuery
- it can be difficult to implement across browsers
- users won't notice them

See http://www.slideshare.net/joern.zaefferer/the-onion-147705 for the 
presentation mentioning metaplugins.


I've just added a category "Metaplugin" so you can be the first to 
actually present a metaplugin labeled as one.


Regards
Jörn

* the user of the plugin


[jQuery] Re: [ANNOUNCE] Space gallery

2008-01-09 Thread Benjamin Sterling
That is great and it sucks at the same time;  It is great because I am/was
working on some thing similar; sucks because I am/was working on some thing
similar. :)

Really nice work.

On 1/9/08, Stefan Petre <[EMAIL PROTECTED]> wrote:
>
>
> Image gallery with perspective
>
> http://eyecon.ro/spacegallery/
>
> Regards,
> Stefan
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com


[jQuery] Re: Using one namespace for multiple methods

2008-01-09 Thread Ariel Flesler

Oops, I misread, ignore my comment, sorry :)

Ariel Flesler

On 9 ene, 19:04, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> $().something == $.fn.something
>
> Ariel Flesler
>
> On 9 ene, 16:29, Zoram <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am working on a plugin and was trying to figure out what was
> > happening to break my code..
>
> > I have in my plugin functions similar to the following:
>
> > $.fn.pluginName = function() {}
>
> > $.fn.pluginName.oneThing = function () {
> >    ...
>
> > }
>
> > $.fn.pluginName.anotherThing = function () {
> >    ...
>
> > }
>
> > I try to call it like so:
>
> > $('#idOfElement').pluginName.oneThing();
>
> > The problem is that the this.each() is 'not defined' when I use it in
> > the oneThing or anotherThing methods. If I do the methods as:
> > $.fn.oneThing and $.fn.anotherThing it works fine... but not when they
> > are under the pluginName. Why would this happen and is there a way to
> > fix it? or am i trying to do the wrong thing to namespace the methods?
>
> > Thanks in advance.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -


[jQuery] Re: Using one namespace for multiple methods

2008-01-09 Thread Ariel Flesler

$().something == $.fn.something

Ariel Flesler

On 9 ene, 16:29, Zoram <[EMAIL PROTECTED]> wrote:
> I am working on a plugin and was trying to figure out what was
> happening to break my code..
>
> I have in my plugin functions similar to the following:
>
> $.fn.pluginName = function() {}
>
> $.fn.pluginName.oneThing = function () {
>    ...
>
> }
>
> $.fn.pluginName.anotherThing = function () {
>    ...
>
> }
>
> I try to call it like so:
>
> $('#idOfElement').pluginName.oneThing();
>
> The problem is that the this.each() is 'not defined' when I use it in
> the oneThing or anotherThing methods. If I do the methods as:
> $.fn.oneThing and $.fn.anotherThing it works fine... but not when they
> are under the pluginName. Why would this happen and is there a way to
> fix it? or am i trying to do the wrong thing to namespace the methods?
>
> Thanks in advance.


[jQuery] [ANNOUNCE] Space gallery

2008-01-09 Thread Stefan Petre


Image gallery with perspective

http://eyecon.ro/spacegallery/

Regards,
Stefan


[jQuery] [ANNOUNCE] jQuery.Collection released

2008-01-09 Thread Ariel Flesler

Hi everyone

I added the first release of this small, but useful plugin I made.
As most plugins I made, is more oriented to devs, maybe can perform as
utilitary for some other plugin.

While doing jQuery.Rule, I realized how easy it is, to generate other
kind of collections, with the same (collection) functionality that the
jQuery object has, by using many of its functions.
This plugin will generate collection classes, that will include
jQuery's functions (or equivalent) to work on its elements.
These classes can be extended by adding stuff to it's prototype
( or .fn ).
These collections can also be used to generate new classes, using
simple inheritance.

Collections have a function .fn() which is called on each
instantiation, that can be modified for each class. These classes also
support a call without using the 'new' keyword, just like jQuery.

In short... here's the link to the project page: 
http://plugins.jquery.com/project/Collection
There you have the release, an explanatory text, a link to my blog,
and a link to a small demo.
The demo won't show any behavior, I'll try to add some later, please
check the source instead. It has some well commented examples.

For questions and feedback, you can post in the blog.

Thanks!

Ariel Flesler


[jQuery] Re: Which plug-in resizes photos to max-size according to browser window?

2008-01-09 Thread Su
On Jan 9, 2008 1:06 PM, Liam Byrne <[EMAIL PROTECTED]> wrote:

> If you rely on a totally JavaScript solution, you'll run into problems
> with the images looking blocky.


Seconded. I had to build something like this for a client, but the
blockiness wasn't at issue(they kinda liked it, actually) because the images
in question were running as backgrounds to the overall layout. As main
content, you're going to have to produce some pretty big initial images to
look fine at high resolution, which will get smudgy on smaller screens, or
go for smaller ones that will get choppy on larger ones.


[jQuery] Re: jqModal to get info from database fails

2008-01-09 Thread Alexandre Plennevaux

now actually i think i got it :)

loading the form page in ajax will not execute the javascript residing in that 
loaded form page, you have to call it as a callback when the ajax call is 
finished (so when the modified document is ready).

an easy solution would be to load that form page via jqmodal as an IFRAME. to 
do this change the jqmodal window html code so that your page is loaded in an 
iframe instead of a div.





[jQuery] Re: Which plug-in resizes photos to max-size according to browser window?

2008-01-09 Thread Rick Faircloth

Thanks for the info, Chris!

Rick

> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris 
> J. Lee
> Sent: Wednesday, January 09, 2008 2:28 PM
> To: jQuery (English)
> Subject: [jQuery] Re: Which plug-in resizes photos to max-size according to 
> browser window?
> 
> 
> Rick:
> 
> The only way to do that is with writing a php (or whatever server side
> language you use) script and using dimensions.js  to determine the
> size of the browser window. You might have to write your own plugin or
> solution for this one.
> 
> But there are many photogallery plugins that work very well with
> little semantical code. I like slideviewer (http://www.gcmingati.net/
> wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html)
> 
> this is off topic but I've looked into photofolder as a good PHP
> solution. You'd just have to tweak it and write some javascript.
> 
> Photofolder: http://livepipe.net/projects/photo_folder/
> 
> Let me know how it works out!
> 





[jQuery] Problems with Interface Sortables

2008-01-09 Thread benjam

I have a demo page here: http://www.iohelix.net/formbuilder/formtest.html

When you go to the page, add a few items (say 5 or so), and then try
to reorder them (by grabbing the blue bar), if you reorder from the
bottom up, and go below the containing div, the element you are moving
disappears and it looks all weird.

If you try to reorder any of the others by moving them down, it will
skip any below it and go straight to the bottom (sometimes if you are
really careful, you can insert it into a higher one, but it's really
tricky).

Also, after moving a few around, the location you are grabbing
relative to the element goes outside of the element.  It's hard to
explain, just move things around for a bit, and I'm sure you'll see
it.

What, if anything, have I done wrong, and how might I get it to work
as expected.

Thanks for any help you may be able to offer.
~Benjam


[jQuery] Using one namespace for multiple methods

2008-01-09 Thread Zoram

I am working on a plugin and was trying to figure out what was
happening to break my code..

I have in my plugin functions similar to the following:

$.fn.pluginName = function() {}

$.fn.pluginName.oneThing = function () {
   ...
}

$.fn.pluginName.anotherThing = function () {
   ...
}

I try to call it like so:

$('#idOfElement').pluginName.oneThing();

The problem is that the this.each() is 'not defined' when I use it in
the oneThing or anotherThing methods. If I do the methods as:
$.fn.oneThing and $.fn.anotherThing it works fine... but not when they
are under the pluginName. Why would this happen and is there a way to
fix it? or am i trying to do the wrong thing to namespace the methods?

Thanks in advance.


[jQuery] Re: [ANOUNNCE] Comet

2008-01-09 Thread Morgan Allen
Thanks. Peter, I agree with your suspicions for transport issues. That is
the second major goal for me after I am sure the protocol portions are
working. I will then start implementing cross domain calls.

On Jan 8, 2008 9:11 PM, Peter E Higgins <[EMAIL PROTECTED]> wrote:

>
> On Tuesday 08 January 2008, Morgan Allen wrote:
> > I have been working on implementing the Bayeux protocol in jQuery and
> with
> > the recent talk on the list about LIVE ajax and server pushing I thought
> > now would be a good time to release the early work and start getting
> some
> > feedback. It will work on Jettys Cometd Echo Demo. To get it to work,
> > remove all the dojo scripts, and jquery and this plugin. In your on
> ready
> > add $.comet.init('/cometd'). Bind a listener to an element listening for
> > '/service/echo' and publish ($.comet.publish) a message to the echo
> service
> > $.comet.publish('/service/echo', {msg: 'what ever message'}). The second
> > param of the event trigger will be that data return from the Cometd
> server.
> > Subscriptions are a bit shaky at the moment, I am rewriting the chatroom
> > demo to ensure it is working. Check out the code at
> > http://morglog.alleycatracing.com/wordpress/?p=20
> > and the project page at
> > http://plugins.jquery.com/project/Comet
>
> Thats great!  I'm anxious to see this evolve, so please keep us/me
> informed.
> The first limitation I suspect is the single transport forcing
> same-domain/same-port xhr-limitations ... i'd also suggest implementing an
> unsubsribe method, because you won't always want to be be polling on some
> channels.  Awesome stuff though.  Looking forward to seeing where you can
> take it. I am a big fan of comet.
>
> Regards,
> Peter Higgins
>



-- 
http://morglog.alleycatracing.com
Lets make up more accronyms!

http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.


[jQuery] Re: Which plug-in resizes photos to max-size according to browser window?

2008-01-09 Thread Chris J. Lee

Rick:

The only way to do that is with writing a php (or whatever server side
language you use) script and using dimensions.js  to determine the
size of the browser window. You might have to write your own plugin or
solution for this one.

But there are many photogallery plugins that work very well with
little semantical code. I like slideviewer (http://www.gcmingati.net/
wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html)

this is off topic but I've looked into photofolder as a good PHP
solution. You'd just have to tweak it and write some javascript.

Photofolder: http://livepipe.net/projects/photo_folder/

Let me know how it works out!



On Jan 9, 1:49 pm, "Rick Faircloth" <[EMAIL PROTECTED]> wrote:
> Hi, all.
>
> I know someone on another list (I might use it, too) who is
> trying to please a very picky photographer who wants his photos
> shown at maximum size regardless of the browser size.
> I want to introduce them to jQuery.
>
> Which photo display plug-in or combination will provide this
> functionality?  I can't seem to hit upon the answer.
>
> Dimensions.js and Lightbox.js?
>
> Other suggestions?
>
> Thanks,
>
> Rick


[jQuery] Selecting Child from object

2008-01-09 Thread K-BL

If you are in the the middle of an each statement, and you want to
select a child object from the main object you are in what syntax
would you use?

For instance,
$('.selector').each(function(){
 //I want to select a child of 'this'
 $(this)
});


[jQuery] Superfish: problems with second tier

2008-01-09 Thread MorningZ

I've got this simple menu:



Home
Reports
Testing
Links
Profile

Info

One
Two
Three
Four
Five
Six




So there's 6 items on the top level...

on the last part there, i've got 6 sub items, but when they show, it
shows 5 across (with there being a blank spot under "Info") and then
"Six" gets put on a third tier under "One"

I am seeing this in both FF 2 and IE 7...  any ideas?

Also, is there a clear concrete solution to getting the menu to appear
over flash objects?  i see a few past topics on the problem but no
decent solutions


[jQuery] Re: jqModal to get info from database fails

2008-01-09 Thread Alexandre Plennevaux

oups, sorry, i realize they are already all in the same folder. my bad...



[jQuery] Re: jqModal to get info from database fails

2008-01-09 Thread Alexandre Plennevaux

i wonder if the problem is not due to your directory structure:

your select_forms.html page resides in a directory, so it loads  
formularis_xml.php  in the same folder.

but if you load that select_form page via ajax, the root becomes the loading 
page, so not the xmls folder. try putting everyting in the same folder and see 
if that solves the issue





[jQuery] Re: How to determine radio button state?

2008-01-09 Thread jarrod


Thanks a lot for the replies. I was able to get it working.

E
-- 
View this message in context: 
http://www.nabble.com/How-to-determine-radio-button-state--tp14700653s27240p14718966.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Which plug-in resizes photos to max-size according to browser window?

2008-01-09 Thread Liam Byrne


Hi Rick

If you rely on a totally JavaScript solution, you'll run into problems 
with the images looking blocky.


You'll need to combine some sort of server-side resize function (e.g. 
PHP) with the jQuery element.


Also, bear in mind that a 1600-pixel wide screen or greater might result 
in a VERY slow download


Liam

Rick Faircloth wrote:


Hi, all…

I know someone on another list (I might use it, too) who is

trying to please a very picky photographer who wants his photos

shown at maximum size regardless of the browser size.

I want to introduce them to jQuery.

Which photo display plug-in or combination will provide this

functionality? I can’t seem to hit upon the answer.

Dimensions.js and Lightbox.js?

Other suggestions?

Thanks,

Rick



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.0/1216 - Release Date: 09/01/2008 10:16
  




[jQuery] jqModal to get info from database fails

2008-01-09 Thread pere roca


please...

could someone check why this simple code fails when trying to open in a
jqModal window?
Or at least someone with experience in jqModal tell me if I'm losing the
time trying to connect the new window with data coming from a database?

Please,you can take a look at:
http://edit3.csic.es/fitxers/xmls/jqModals.html

I think it has no sense to show all the files, but if someone need them,
tell me. Any help will be very appreciated.
I was wondering why doesn't the new HTML file listen the $().ready function
when comes from a jqModal but yes when we open a pop up window... because
jqModal in fact is not a window, of course. So, maybe any other event that
this new jqModal can listen and in consequence will be abel to load all the
ajax files it needs?

jqModals.html

$().ready(function() {

   $('#ex2')
.jqm(
{
 onLoad: load=function(h){ 
//selectChain() is the function that 
executes an ajax
  
//request to load data from database
//I think it should work, but I've
also tried many other possibilities...
//#categorySelect is the form ID
$('#categorySelect',this).selectChain();


result=$('#categorySelect',this).selectChain();
console.info(result);
},
//we load the HTML (it already has the code to load data, 
why doesn't
do it)
ajax: 'select_forms.html', 

  trigger: 'a.ex2trigger'
// When a trigger is clicked, the window it is assosiated with 
is
displayed.
});

Thanks a lot,
Pere
-- 
View this message in context: 
http://www.nabble.com/jqModal-to-get-info-from-database-fails-tp14718959s27240p14718959.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Which plug-in resizes photos to max-size according to browser window?

2008-01-09 Thread Rick Faircloth
Hi, all.

I know someone on another list (I might use it, too) who is
trying to please a very picky photographer who wants his photos
shown at maximum size regardless of the browser size.
I want to introduce them to jQuery.

Which photo display plug-in or combination will provide this
functionality?  I can't seem to hit upon the answer.

Dimensions.js and Lightbox.js?

Other suggestions?

Thanks,

Rick


[jQuery] Re: Synchronous JSONP

2008-01-09 Thread Scott Trudeau
What about using the success callback of the JSONP call to initiate the
location.href? Something like:

$('a').click(function() {
  var href = $(this).attr('href');
  $.ajax({
url: 'http://example.com/jsonpmethod?callback=?',
dataType: 'jsonp',
success: function(data) {
  // do whatever with json encoded data
  location.href = href;
}
  });
  return false;
});

On Jan 8, 2008 8:06 PM, Glen Lipka <[EMAIL PROTECTED]> wrote:

> I think my thought process on this was messed up anyway.
> Here is the use situation.  We are using JSONP to send activity on pages
> to avoid cross-site scripting problems.  One of those activities is clicking
> on a link.
>
> The problem is that the JSONP is asynchronous so that when the link is
> clicked, the page unloads before the JSONP has a chance to do it's thing.
>
> What is the best way of allowing the JSONP to do it's thing and pause the
> unload of the page long enough for it to work?
>
> Glen
>
>
>
> On Jan 8, 2008 1:37 PM, Benjamin Sterling <
> [EMAIL PROTECTED]> wrote:
>
> > Glen,
> > I have never done it, but I say a while back that you can use the
> > jQuery.extend method to overwrite a default method.  I will see if I can
> > dig that up, but that may point you in the right direction in the mean time.
> >
> >
> >
> > On 1/8/08, Glen Lipka <[EMAIL PROTECTED]> wrote:
> > >
> > > Right now in 1.2.1 the JSONP method uses an asynchronous call to do
> > > it's thing.
> > > This sometimes causes a problem when we are sending a call about a
> > > "click" event on a link.  The page unloads before the JSONP is finished.
> > >
> > > Changing it to be optional (async or synchronous) helps fix that
> > > problem.
> > >
> > > Code we used inside jQuery (with a param call to .ajax)
> > >
> > > /* If the request is not async, we need to wait for the script to l oad
> > > before returning. */
> > > else if (!s.async) {
> > >   var done = false;
> > >   // Attach handlers for all browsers
> > > script.onload = script.onreadystatechange = function(){
> > >   if ( !done && (!this.readyState ||
> > > this.readyState == "loaded" || this.readyState == "complete")
> > > ) {
> > >   }
> > > };
> > >   }
> > >
> > > QUESTION:  Putting this directly into our copy of jQuery is probably a
> > > bad idea.  *How can this be turned into a plugin?*
> > >
> > > Thanks much,
> > >
> > > Glen
> > >
> >
> >
> >
> > --
> > Benjamin Sterling
> > http://www.KenzoMedia.com
> > http://www.KenzoHosting.com
> > http://www.benjaminsterling.com
>
>
>


-- 
--
Scott Trudeau
scott.trudeau AT gmail DOT com
http://sstrudeau.com/
AIM: sodthestreets


[jQuery] Re: Stopping click event action in safari 1.3 ( click(function(){return false;}); )

2008-01-09 Thread Dan Eastwell

Thanks Klaus, I'll have to rewrite my functions for that. I'm sure
it's no great headache.

For what it's worth, I've set up a test case here:

http://test.danieleastwell.co.uk/_fRefit08/_format/_templates/temp.html

Thanks again for your reply. Do you know how the ui.tabs plug in
covers this situation?

Cheers,

Dan.

On 1/9/08, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> On 9 Jan., 18:13, "Dan Eastwell" <[EMAIL PROTECTED]> wrote:
> > No one? I would have thought it was fairly common...
>
> It is common. As far as I remember Safari 1.3 and even 2.0 does not
> support preventDefault nor return false to stop an event's default
> action, if you attach events dynamically via the proper DOM methods,
> which is used by jQuery.
>
> You would have to attach events the old-school DOM1 way to make that
> happen:
>
> var a = $('a)[0];
> a.onclick = function() {
> return false;
> };
>
>
> --Klaus
>
>


-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog


[jQuery] Re: Stopping click event action in safari 1.3 ( click(function(){return false;}); )

2008-01-09 Thread Klaus Hartl

On 9 Jan., 18:13, "Dan Eastwell" <[EMAIL PROTECTED]> wrote:
> No one? I would have thought it was fairly common...

It is common. As far as I remember Safari 1.3 and even 2.0 does not
support preventDefault nor return false to stop an event's default
action, if you attach events dynamically via the proper DOM methods,
which is used by jQuery.

You would have to attach events the old-school DOM1 way to make that
happen:

var a = $('a)[0];
a.onclick = function() {
return false;
};


--Klaus



[jQuery] Stopping click event action in safari 1.3 ( click(function(){return false;}); )

2008-01-09 Thread Dan Eastwell

No one? I would have thought it was fairly common...

On 1/9/08, Dan Eastwell <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've got a very simple tab interface which works perfectly, except in Safari.
>
> The click event is carried out, then the link is followed even with
> return false in the click event function. I've simplified everything
> to the following code, but the tabs are still treated as in-page
> anchors rather than simple click handles.
>
> (normally, of course, the tabs() would initialise by hiding the
> non-current months and would toggle a 'hidden' class on months you
> clicked on, etc. It's just an alert to illustrate)
>
> $(document).ready(function() {
> tabs("#calendar .navigation");
> });
>
> function tabs(nav){
> $(nav + " li a").click(function(){
> alert('hello');
> return false;
> });
> }
>
> 
> 
> 
> Jan
> Feb
> Mar
> Apr
> May
> Jun
> Jul
> Aug
> Sep
> Oct
> Nov
> Dec
> 
> 
> 
>January
> 
>
> ...
>
> 
>December
> 
> 
>
> Thanks,
>
> Dan.
>
> --
> Daniel Eastwell
>
> Portfolio and articles:
> http://www.thoughtballoon.co.uk
>
> Blog:
> http://www.thoughtballoon.co.uk/blog
>


-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog


[jQuery] Re: Cross domain POST

2008-01-09 Thread Miha

Data in url is not enough. But thanks anyway.

I found the solution. I create a hidden iframe and I set onLoad
parameter (SubmitCallback Js function) , then i submit data to a that
iframe using form's target parameter. After form is successfully
submited my SubmitCallback JS function is called by iframe's onLoad.
SubmitCallback gets the data using jquery.getScript.

On the server side: when cgi script is called with POST method result
(output) is saved and empty page is returned. Then I load saved result
with SubmitCallback.


Now I have another question? From the security point of view, what is
the difference between cross domain script loading and cross domain
ajax requests? Why script loading is permitted by browsers and ajax is
not?

regards,
Miha

On Jan 9, 1:01 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > Is there anything like
> > var script=document.createElement('script');
> > script.method='post' ??
>
> No, but if your forms don't submit a ton of data you can use jsonp
> effectively.
>
> $('#myForm').submit(function() {
> var $this = $(this);
> var data = $this.serialize();
> $.ajax({
> url: $this.attr('action'),
> dataType:   'jsonp',
> data:data,
> processData: false,
> success: mySuccessCallback
> });
> return false;
>
> });
>
> Mike


[jQuery] Switching Divs

2008-01-09 Thread DXCJames

I want to switch the place of 2 divs. One would be located on once
side of the screen somewhere and the other  far away from it.. I want
to be able to click on one of them and have them "hover" or move to
switch locations with eachother.. It would be cool to have them switch
at the same time, but if thats not possible then I guess I am out of
luck..

I am basically asking how todo it at the same time, I am pretty sure I
can figure out how to make them just switch spots by moving one over
and the other back.. (it would be nice to know if theres a plugin for
this or an easy command though =D) hah.. Thanks everyone!!

James


[jQuery] invoking an element dinamically

2008-01-09 Thread [EMAIL PROTECTED]

Hi everyone, I need assistance with some "how-to".  I'm new to jq, so
a little help would be much appreciated.

I have a function that receives a value each  time an  is
clicked, for every click I get a different value, I want to use this
value a ID in the "td" of a table, such "td's" are already ID'ed with
the value I want, so I can later manipulate them, for things such as
to hilight or remove the element from the DOM, etc.

This is a piece of the code:

   function ofertaDetalle(idoferta){ // idoferta is the variable

  varID = "puestoAspira"+idoferta  //I wanted to concatenate some
text to the id

  $(#varID).addClass("hilightOn");  //since I don't know how to do
it, I was trying different things

  $("td:contains(varID)").toggle(
function () {
  $("td:contains(varID)").addClass("hilightOn");
},
function () {
  $("td:contains(varID)").removeClass("hilightOn");
}
  );


[jQuery] Re: can only modify DOM via debugger

2008-01-09 Thread Alexey Blinov
Is it $.get() - asynchronous call?
Maybe you try to fill textarea Before str1 get its data?

I think you should filll textarea from Success event rather than after $.get
call...

On Jan 9, 2008 6:43 AM, Jeffrey Kretz <[EMAIL PROTECTED]> wrote:

>
> It might be worth a shot to try jQuery functions rather than native
> functions.  Something like this:
>
> $(document).ready(function() {
>$("a").click(function() {
>var coursename = $(this).attr('coursename');
>var mydata = $.get("http://localhost:8080/course/"; + coursename +
> "/", {}, function(mydata) {
>   return mydata;
>   });
>var str1 = mydata.responseText.substring(5,7);
>var textAreaNode=$('#test');
>textAreaNode.val(textAreaNode.val + str1);
>return false;
>});
> });
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of knairb01
> Sent: Tuesday, January 08, 2008 7:03 PM
> To: jQuery (English)
> Subject: [jQuery] can only modify DOM via debugger
>
>
> Hi
>
> I've got a problem. I'm running Firefox 2.0.0.11, Firebug 1.0, jQuery
> 1.2.1. I have the following code in a Genshi template for a toy
> TurboGears 2.0 app:
>
>
> $(document).ready(function() {
>$("a").click(function() {
>var coursename = $(this)[0].attributes['coursename'].nodeValue;
>var mydata = $.get("http://localhost:8080/course/"; + coursename +
> "/", {}, function(mydata) {
>   return mydata;
>   });
>var str1 = mydata.responseText.substring(5,7);
>var textAreaNode=document.getElementById('test');
>textAreaNode.value += str1;
>return false;
>});
> });
>
>
> When the user clicks a link, the code above attempts to put text in
> the textarea. When I step through the code with Firebug, it works, but
> it doesn't when I run it without the debugger. Also, the code will
> work when I run it straight through if str1 is a hard-coded string;
> such as if the line is "var str1 = "my string";".
>
> Thank you for any help you can give.
>
>


[jQuery] Re: How to set up a callback on a function I've made?

2008-01-09 Thread eitanpo

Based on your initial code you can do this:

function loading(foo) {
$("#ajaxContent").slideToggle("normal", function() {
$("#ajaxLoader").toggle();
if ($.isFunction(foo)) {
foo.call();
}
});
}

$("#searchBar > button").click(function() {
loading(function() {
$.get("ajax/list.php", function(data){
$("#ajaxContent").html(data);
loading();
});
});
});

On Jan 8, 9:00 pm, rics <[EMAIL PROTECTED]> wrote:
> I did it using ajaxStart() and ajaxStop(), but I still want to know if
> I can set a callback to a custom function, for learning reasons. If
> you can help, thanks.
>
> :D
>
> Here is the final code...
>
> $("#ajaxContent").ajaxStart(function(){
> $(this).slideToggle("normal");
> $("#ajaxLoader").toggle();
> });
>
> $("#ajaxContent").ajaxStop(function(){
> $(this).slideToggle("normal", function(){
> $("#ajaxLoader").toggle();
> });
> });
>
> $("#searchBar > button").click(function() {
> $.get("ajax/list.php", function(data){
> $("#ajaxContent").html(data);
> });
> });
>
> On Jan 8, 1:38 pm, rics <[EMAIL PROTECTED]> wrote:
>
> > Hello people,
>
> > How can I force some code to run only when the execution of other
> > function finish? Look my code:
>
> > function loading() {
> > $("#ajaxContent").slideToggle("normal", function() {
> > $("#ajaxLoader").toggle();
> > });
> > }
>
> > $("#searchBar > button").click(function() {
> > loading();
> > $.get("ajax/list.php", function(data){
> > $("#ajaxContent").html(data);
> > loading();
> > });
> > });
>
> > In the second block of code I want the $.get to execute only when the
> > function loading(), that was coded by me, finish to execute. I mean,
> > when the #ajaxLoader is show up.
>
> > How can I do something like that?


[jQuery] Re: jQuery blockUI doesn't show up in IE

2008-01-09 Thread Anxiro


Mike,

Sorry, here it is: http://www.krikke.nl/Shop/
You can the press 'TEST ERROR' button. It's still in hudge production :)
But the problem is, that the blockUI-message isn't showing up in IE.

Thanks!

- Frank

ps: I've sent this message before, but it wasn't accepted for some reason?


malsup wrote:
> 
> 
>> I'm having a little problem with the 'blockUI'-plugin; it doesn't show in
>> Internet Explorer (or the FireFox IE-tab), but does show in FireFox.
>>
>> I've Googled and searched this forum, but couldn't find anything related.
>>
>> Has anyone got a solution? I'm using the latest stable jQuery version and
>> blockUI-plugin. It's not in a high priority, but it would be nice when
>> I've
>> got a solution to this little problem :)
>>
>> Thanks!
>>
>> - Frank
> 
> Frank,
> 
> Can you post a link?  You're not giving us much to go on.
> 
> Mike
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-blockUI-doesn%27t-show-up-in-IE-tp14709761s27240p14710486.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: how can i access and manipulate iframe elements in ie6

2008-01-09 Thread Miha

Not sure if it is possible with jquery but in JS you can access doc
body inside of iframe like this:

ifDocBody=window.frames['frame-name'].document.body;

Note that frame-name is set by iframe name parameter, not by id;

regards,
Miha

On Jan 9, 11:13 am, sigbin dan <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> im developing for internet explorer 6 and i am making a jquery
> generated iframe, now after making this iframe, i want to be able to
> insert 'onlick=("function()")' this code on the body tag, of the page
> inside the iframe. is that possible?
>
> thanks,
>
> dan


[jQuery] Re: jquery ui tabs (tabs 3) in conjunction with the new coda slider (1.1.1) troubles.

2008-01-09 Thread [EMAIL PROTECTED]

Using the off left technique worked! Thanks for all of your help.



On Jan 9, 3:48 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On 9 Jan., 01:50, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
>
> > Without looking at the code, my guess would be ye olde "must rebind event
> > handlers when loading content via ajax" issue.
>
> > -- Josh
>
> Yes, that may be the case for Ajax tabs. I didn't look at the code
> either, but in addition here's what I answered on my blog:
>
> I guess the problem arises, because you can't initialize the slider in
> a hidden element - some dimension related computations will go wrong
> in that case, e.g. width is reported as 0 instead of say 120px...
>
> Some ideas: Initialize the slider before tabs. Or initialize the
> slider via the tabs show callback. Or do not use "display: none" for
> hiding tabs and the offleft technique instead (look for the class
> selector ".ui-tabs-hide" in the tabs style sheet).
>
> HTH, --Klaus


[jQuery] Re: Progress image swap

2008-01-09 Thread Trans


FYI, I figured out a solution.

The trick was to use setTimeout() to run the loading code as a
separated process.

  $("#meter").attr("src","img/meter_on.gif").show('fast');
  setTimeout("load_stuff_with_ajax",100);

Thanks for youall's attempt to help. I appreciate your efforts.

T.


[jQuery] Re: why not get value using $('#wrapper').attr('offsetHeight') in firefox?

2008-01-09 Thread Jonathan Sharp
Try $('#wrapper').height()

Also please note the difference in your ID's. With the jQuery code you're
referencing 'wrapper' and with the DOM methods you're referencing 'Wrapper'.

Cheers,
-Jonathan

On 1/9/08, nightelf <[EMAIL PROTECTED]> wrote:
>
>
> in firefox
> $('#wrapper').attr('offsetHeight') == undefined
> but
> document.getElementById('Wrapper').offsetHeight
> is ok
>


[jQuery] Re: why not get value using $('#wrapper').attr('offsetHeight') in firefox?

2008-01-09 Thread Sebastián V. Würtz


nightelf escribió:

in firefox
$('#wrapper').attr('offsetHeight') == undefined
but
document.getElementById('Wrapper').offsetHeight
is ok

  
the offsetHeight is an attrib? i think its a property, im not so sure 
use this

$('#wrapper').css('height');


[jQuery] Stopping click event action in safari 1.3 ( click(function(){return false;}); )

2008-01-09 Thread Dan Eastwell

Hi,

I've got a very simple tab interface which works perfectly, except in Safari.

The click event is carried out, then the link is followed even with
return false in the click event function. I've simplified everything
to the following code, but the tabs are still treated as in-page
anchors rather than simple click handles.

(normally, of course, the tabs() would initialise by hiding the
non-current months and would toggle a 'hidden' class on months you
clicked on, etc. It's just an alert to illustrate)

$(document).ready(function() {
tabs("#calendar .navigation");
});

function tabs(nav){
$(nav + " li a").click(function(){
alert('hello');
return false;
});
}




Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec



   January


...


   December



Thanks,

Dan.

-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog


[jQuery] wow getScript full url and IE

2008-01-09 Thread Sebastián V. Würtz


WOWWOWOW
I never notice that  $.getScript or getCSS

jQuery.getCSS = function( url, media, rel, title ) {
   jQuery( document.createElement('link') ).attr({
   href: url,
   media: media || 'screen',
   type: 'text/css',
   title: title || '',
   rel: rel || 'stylesheet'
   }).appendTo('head');
};

dosnt work without a full url!!

In my localhost tests i put the localpath and work!

Iam right?


[jQuery] Re: jquery ui tabs (tabs 3) in conjunction with the new coda slider (1.1.1) troubles.

2008-01-09 Thread Klaus Hartl

On 9 Jan., 11:48, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On 9 Jan., 01:50, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Some ideas: Initialize the slider before tabs. Or initialize the
> slider via the tabs show callback. Or do not use "display: none" for
> hiding tabs and the offleft technique instead (look for the class
> selector ".ui-tabs-hide" in the tabs style sheet).

In case someone else runs into the same problem: off-left solved the
problem.


--Klaus


[jQuery] Re: Toggle - change clickSymbol

2008-01-09 Thread Karl Swedberg


Hi There,

I added a couple lines that should do the trick. Note that I chose to  
use .attr('src') (var toggleImage...) to test for a match because just  
using this.src without a regular expression would get the fully  
qualified URL (at least in FF).


Not tested, but should work:

$(document).ready(
function()
{
// Toggle Single Portlet
$('a.toggle').click(function()
{
var toggleImage = $('img', this).attr('src'); // get the src  
attribute of the image


$(this)
.find('img').attr('src', toggleImage == 'mini.gif' ?  
'otherimage.gif' : 'mini.gif').end() // toggle the image src  
attribute, then return selector to $(this)

.parent('div').next('div').toggle();
return false;
}
);


}
);


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 9, 2008, at 4:13 AM, HanSolo wrote:



Hello,

im using the script from this site here http://host.sonspring.com/portlets/
But now i need a solution to change the clicksymbol (- if the content
is open and +.jpg if the content is closed/toggle).

in my HTML im only using this here:


   

...

the Script is:
$(document).ready(
function()
{
// Toggle Single Portlet
$('a.toggle').click(function()
{
$(this).parent('div').next('div').toggle();
return false;
}
);


}
);

Did someone knows the way to change the JPG there?





[jQuery] Re: JQuery UI Dialog not working

2008-01-09 Thread Jason Levine


Cool!

When my site is ready for beta testing, I plan on asking folks here for
comments since it'll rely on JQuery so much.  (This won't be for awhile,
though.  I get about 2 hours to work on it per day and it's going to be
pretty complex.)
-- 
View this message in context: 
http://www.nabble.com/JQuery-UI-Dialog-not-working-tp14692149s27240p14712662.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: JQuery UI Dialog not working

2008-01-09 Thread Richard D. Worth
Beat you to it ;) This was added to the SVN version in December and will be
in the next UI release:

http://dev.jquery.com/view/trunk/ui/current/ui.dialog.js

- Richard

On Jan 8, 2008 10:31 PM, Jason Levine <[EMAIL PROTECTED]> wrote:

>
>
> Thanks.  It always seems to be the simple stuff that gives me the most
> trouble!
>
> As a side note, I found myself needing a feature that the UI Dialog script
> didn't support, so I added it.  It's the ability to specify a function to
> be
> run when the dialog closes.  To accomplish this, I changed the following
> lines in ui.dialog.js:
>
> line 37:   resize: true,
> Became:
>resize: true,
>onClose: function() { },
>
> line 78: self.close();
> Became:
>self.close();
>options.onClose();
>
> and line 132:  $.data(el, "ui-dialog").close();
> Became:
>$.data(el, "ui-dialog").close();
>options.onClose();
>
> With these changes I can call:
>
>$("#example").dialog({
>onClose: function() {
>// some code
>}
>});
>
> And have the "some code" function run after the dialog is closed.
> --
> View this message in context:
> http://www.nabble.com/JQuery-UI-Dialog-not-working-tp14692149s27240p14704599.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com
> .
>
>


[jQuery] Re: Validation plugin docs: links not working

2008-01-09 Thread Gonzo

Thanks for catching that.  The docs for the validation plugin are
currently being moved from the source code to the wiki and there has
also been some re-organization for the upcoming release of v1.2, so
the docs may be out of sync with the code for a few more days.  We'll
make sure to get these links fixed.


On Jan 9, 4:32 am, oLLi- <[EMAIL PROTECTED]> wrote:
> Last links (Demos) on pagehttp://docs.jquery.com/Plugins/Validation
> are not to be found:
>
>  http://dev.jquery.com/view/trunk/plugins/validate/demo-test/marketo/
>  http://dev.jquery.com/view/trunk/plugins/validate/demo-test/milk/
>
> Instead I managed to locate these resources at:
>
>  http://dev.jquery.com/view/trunk/plugins/validate/demo/marketo/
>  http://dev.jquery.com/view/trunk/plugins/validate/demo/milk/


[jQuery] Re: Cross domain POST

2008-01-09 Thread Mike Alsup

> Is there anything like
> var script=document.createElement('script');
> script.method='post' ??

No, but if your forms don't submit a ton of data you can use jsonp
effectively.

$('#myForm').submit(function() {
var $this = $(this);
var data = $this.serialize();
$.ajax({
url: $this.attr('action'),
dataType:   'jsonp',
data:data,
processData: false,
success: mySuccessCallback
});
return false;
});


Mike


[jQuery] Re: jQuery blockUI doesn't show up in IE

2008-01-09 Thread Mike Alsup

> I'm having a little problem with the 'blockUI'-plugin; it doesn't show in
> Internet Explorer (or the FireFox IE-tab), but does show in FireFox.
>
> I've Googled and searched this forum, but couldn't find anything related.
>
> Has anyone got a solution? I'm using the latest stable jQuery version and
> blockUI-plugin. It's not in a high priority, but it would be nice when I've
> got a solution to this little problem :)
>
> Thanks!
>
> - Frank

Frank,

Can you post a link?  You're not giving us much to go on.

Mike


[jQuery] jQuery blockUI doesn't show up in IE

2008-01-09 Thread Anxiro


Hi!

I'm having a little problem with the 'blockUI'-plugin; it doesn't show in
Internet Explorer (or the FireFox IE-tab), but does show in FireFox.

I've Googled and searched this forum, but couldn't find anything related.

Has anyone got a solution? I'm using the latest stable jQuery version and
blockUI-plugin. It's not in a high priority, but it would be nice when I've
got a solution to this little problem :)

Thanks!

- Frank
-- 
View this message in context: 
http://www.nabble.com/jQuery-blockUI-doesn%27t-show-up-in-IE-tp14709761s27240p14709761.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] how can i access and manipulate iframe elements in ie6

2008-01-09 Thread sigbin dan

hi guys,

im developing for internet explorer 6 and i am making a jquery
generated iframe, now after making this iframe, i want to be able to
insert 'onlick=("function()")' this code on the body tag, of the page
inside the iframe. is that possible?

thanks,

dan


[jQuery] Cross domain POST

2008-01-09 Thread Miha

Hello,

I am writing a gadget that will be hosted on one server and used on
many sites.  I load it using jquery.getScript. No problem with that.
But I am wondering how can I submit form to hosting server and
retrieve the response? Is there a way to do this with jquery or maybe
just javascript?  Note: gadget hosting server domain is not the same
as web site domain. Also, setting up proxy on sites that will load
gadget is not possible since I don't know which sites will use gadget.

I know i can create hidden iframe and set target of a form to that
iframe but I really need to retrieve a response from server.

Is there anything like
var script=document.createElement('script');
script.method='post' ??

Any help would be appreciated.

regards,
Miha


[jQuery] Validation plugin docs: links not working

2008-01-09 Thread oLLi-

Last links (Demos) on page
http://docs.jquery.com/Plugins/Validation
are not to be found:

  http://dev.jquery.com/view/trunk/plugins/validate/demo-test/marketo/
  http://dev.jquery.com/view/trunk/plugins/validate/demo-test/milk/

Instead I managed to locate these resources at:

  http://dev.jquery.com/view/trunk/plugins/validate/demo/marketo/
  http://dev.jquery.com/view/trunk/plugins/validate/demo/milk/


[jQuery] Re: Comet

2008-01-09 Thread Karl Delandsheere

Great, I've been doing some Comet last year for a project. It's great
but really geeky for some people, so developping a plugin around that
sounds just great to me :).

I'll check the work asap!

On Jan 9, 3:01 am, "Morgan Allen" <[EMAIL PROTECTED]> wrote:
> I have been working on implementing the Bayeux protocol in jQuery and with
> the recent talk on the list about LIVE ajax and server pushing I thought now
> would be a good time to release the early work and start getting some
> feedback. It will work on Jettys Cometd Echo Demo. To get it to work, remove
> all the dojo scripts, and jquery and this plugin. In your on ready add
> $.comet.init('/cometd'). Bind a listener to an element listening for
> '/service/echo' and publish ($.comet.publish) a message to the echo service
> $.comet.publish('/service/echo', {msg: 'what ever message'}). The second
> param of the event trigger will be that data return from the Cometd server.
> Subscriptions are a bit shaky at the moment, I am rewriting the chatroom
> demo to ensure it is working. Check out the code 
> athttp://morglog.alleycatracing.com/wordpress/?p=20
> and the project page athttp://plugins.jquery.com/project/Comet
>
> --http://morglog.alleycatracing.com
> Lets make up more accronyms!
>
> http://www.alleycatracing.com
> LTABOTIIOFR! ROFL! ROFL! ROFL!
> Upcoming alley cats, reviews, touring logs, and a general congregation of
> bike nerdity.


[jQuery] Re: [ANOUNNCE] Comet

2008-01-09 Thread Peter E Higgins

On Tuesday 08 January 2008, Morgan Allen wrote:
> I have been working on implementing the Bayeux protocol in jQuery and with
> the recent talk on the list about LIVE ajax and server pushing I thought
> now would be a good time to release the early work and start getting some
> feedback. It will work on Jettys Cometd Echo Demo. To get it to work,
> remove all the dojo scripts, and jquery and this plugin. In your on ready
> add $.comet.init('/cometd'). Bind a listener to an element listening for
> '/service/echo' and publish ($.comet.publish) a message to the echo service
> $.comet.publish('/service/echo', {msg: 'what ever message'}). The second
> param of the event trigger will be that data return from the Cometd server.
> Subscriptions are a bit shaky at the moment, I am rewriting the chatroom
> demo to ensure it is working. Check out the code at
> http://morglog.alleycatracing.com/wordpress/?p=20
> and the project page at
> http://plugins.jquery.com/project/Comet

Thats great!  I'm anxious to see this evolve, so please keep us/me informed. 
The first limitation I suspect is the single transport forcing 
same-domain/same-port xhr-limitations ... i'd also suggest implementing an 
unsubsribe method, because you won't always want to be be polling on some 
channels.  Awesome stuff though.  Looking forward to seeing where you can 
take it. I am a big fan of comet.

Regards,
Peter Higgins


[jQuery] Re: load method doesn't work with "& amp;" and "&" doesn't validate

2008-01-09 Thread [EMAIL PROTECTED]

Aaahhh, so it's my own fault for coding sloppy. :-o Thanks!

On Jan 8, 4:00 pm, Bob den Otter <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > When loading an url containing querystrings with jQuery's "load"
> > method I first tried "&" but since that doesn't work, I'm now
> > using "&". The problem is, now the page doesn't validate XHTML 1.0
> > transitional. Any suggestions?
>
> Hi,
>
> You can use & inside scripts, as long as you use the  tags
> properly, like so:
>
>