[jQuery] Since updating to 1.0.3 & converting to getJSON

2006-11-10 Thread Sam Sherlock
I am having an error only in IE with the following 'expected identifier  string or number'
thats what inferior explorer (v6 on wk2) saysI have googled the error and a number of pages suggest removing the last coma

http://cow.neondragon.net/index.php/1404-Internet-Explorer-_javascript_-Errors
4089		$.getJSON(4090			"./ajax/json.php",
4091		{ asJSON: 1, class: "jlink", id: htmlDoc },4092		function(json) {  });


if IE is suggesting the correct line of the error then its 4091 and then in that case the coma is required to separate  the params from the callbackany guidance is appreciated   
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Sam Sherlock
solved it myself, just whilst collecting the code to post.Late night early morning splurge of coding to excited to sleep after see this wonderful code 
yep thats solved but I would like to be able to hide replace code in the nested divlooking at the sifr example I see that after the version object you  have a function(htmlOptions) {...}when I try this 
//                    $('#hdr').flash(sharkOptions.ufo, {version: 7}).find('embed').each(function(){                   fc = new JSFCommunicator(this);                        $('#hdr').addClass('flash-replaced');
                        sharkOptions.page.isFC = true;                }).end();it works though this is different from the sifr example since the class is added to the #hdr from within the each callthat might not be crucial anyway - just perplexing - would like to know more to further my understanding though.
thx -SOn 11/11/06, Luke Lutman <[EMAIL PROTECTED]> wrote:
Can you post the code (or a link to it)?What error does it throw?...Also, my text-replacement example(http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html
)isn't fully cooked yet -- it's functional, but I'm planning to developit as a proper plugin (soon, hopefully!). If you do want to try it, makesure you grab the fla, as that's custom too -- css (flash 7) and better
anti-aliasing (flash 8).LukeSam Sherlock wrote:> astonishing stuff!!! That works a treat!>> I am also using the sifr jquery plugin (really feature filled site this)> and have tried
> to alter the code to use your flash plugin instead.  I guess its one> stage at a time!!>> However I am unable to set the version it aways throws an error whatever> I do!?!>> I updated to jquery 
1.0.3 (had to make other changes json - getJSON)> this did not solve the issue>> any idea about that?  I think the issue with the version setting is> causing some issue with using it instead of the sifr thingy since I need
> to have a htmloptions callback function___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Luke Lutman
Can you post the code (or a link to it)?

What error does it throw?

...

Also, my text-replacement example 
(http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html) 
isn't fully cooked yet -- it's functional, but I'm planning to develop 
it as a proper plugin (soon, hopefully!). If you do want to try it, make 
sure you grab the fla, as that's custom too -- css (flash 7) and better 
anti-aliasing (flash 8).

Luke

Sam Sherlock wrote:
> astonishing stuff!!! That works a treat!
> 
> I am also using the sifr jquery plugin (really feature filled site this) 
> and have tried
> to alter the code to use your flash plugin instead.  I guess its one 
> stage at a time!!
> 
> However I am unable to set the version it aways throws an error whatever 
> I do!?!
> 
> I updated to jquery 1.0.3 (had to make other changes json - getJSON) 
> this did not solve the issue
> 
> any idea about that?  I think the issue with the version setting is 
> causing some issue with using it instead of the sifr thingy since I need 
> to have a htmloptions callback function



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Aaron Heimlich
On 11/10/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
w3c says ecmascript tagName is read only... so changing it wouldreally require rebuilding a node (messy, at least 40 characters ofcode!) or just cssing it to have whatever properties the new tag wouldhave had (simple). I think the simple method is the best jquery
solution.It could be as simple as ignoring any parameters passed into tagName() (or whatever it gets called).
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Ⓙⓐⓚⓔ
w3c says ecmascript tagName is read only... so changing it would
really require rebuilding a node (messy, at least 40 characters of
code!) or just cssing it to have whatever properties the new tag would
have had (simple). I think the simple method is the best jquery
solution.

On 11/10/06, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
>
> Whatever we decide on, we also should make sure that it's read only. I'm not
> sure what, if anything, would happen if you tried to set element.nodeName or
> element.tagName, but I'd rather not find out.
-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Sam Sherlock
astonishing stuff!!! That works a treat!I am also using the sifr jquery plugin (really feature filled site this) and have tried to alter the code to use your flash plugin instead.  I guess its one stage at a time!!
However I am unable to set the version it aways throws an error whatever I do!?!I updated to jquery 1.0.3 (had to make other changes json - getJSON) this did not solve the issueany idea about that?  I think the issue with the version setting is causing some issue with using it instead of the sifr thingy since I need to have a htmloptions callback function
{ anyway with powers like this jQuery is certain to take the web by storm. I keep laying awake at night pondering what 
popular apps like phpMyAdmin & phpList would be like if they were zested up with a little (or a lot of) jQuery majic. PhpMyAdmin with interface selectables, drag n drop etc, sortable tables and edit inplace. Oh my!! }
On 10/11/06, Luke Lutman <[EMAIL PROTECTED]> wrote:
Interesting... :-)It would be pretty easy to use those libraries alongside my plugin, but replicating what they dois probably beyond the scope of my plugin (a separate one, maybe?).Try this (with JSFC):
var fc;$('#element').flash(...).find('embed').each(function(){fc = new JSFCommunicator(this);}).end();Then you should be able to use fc in the same way.Note that this would only work for a single flash movie, but it could be setup for multiple
flash movies (by pushing the JSFCommunicator objects into an Array?) if that's what your after.LukeSam Sherlock wrote:> Hi Luke,>> here is the state of play:>> jsfc - 
http://www.abdulqabiz.com/files/JSFC/example.html (src available to)>> also theres this -> 
http://weblogs.macromedia.com/flashjavascript/readme.html (mike chambers> again!!)>> Its not when its fully loaded! but its also not when document.ready> either.  Its a pain!!!>> For flash8 theres extendedinterface though - which looks great!
>> would be interesting to see what you make of the above>> -S>> On 10/11/06, *Luke Lutman* <[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>> Hey Sam,>> Thanks for all the kind words :-)>> I've (been lucky?) never to need to communicate between flash and> _javascript_, so I'm a bit out of the loop on how that whole process
> works.>> If it's simply needing access to the  element after it's> inserted into the dom, it should be pretty simple (off the top of my> head):>
> $('#hello').flash(...).find('embed').each(function(){> // do stuff> }).end();>> If you need to wait until the flash movie has fully loaded before> creating your object, that's a whole 'nother ballgame.
>> Could you call an _javascript_ function from within the flash movie that> creates the object you need? Something like:>> - load page> - insert flash movie> - flash movie preloads itself
> - flash movie calls someFunction() in _javascript_> - someFunction() creates the object that talks to flash> - > - Profit!>> ;-)>> That'd probably work ok if you only have one flash movie calling
> someFunction(), but would get a little hairy otherwise because> someFunction() wouldn't know which element in the DOM called it.>> If  or  fire onload events, it'd be possible to add a
> callback function -- but I'm pretty skeptical that they'd fire the> event> with any sort  of consistency across browsers (if at all).>> You could use an Image object to preload your swf (if it's small), so
> that it'd come from the cache when inserted into the page (using the> Image object's onload event to trigger the $().flash call).>> Last but not least, you could wait for window.onload
 (instead of> document.ready), but there might be quite a gap between when the flash> movie finishes loading and window.onload is called>> Hope that helps!>> Luke
>> Sam Sherlock wrote:>  > I am astounded Luke remarkable stuff.>  >>  > Looks like I might be able to reduce my script over heads quite a bit>  > with this.
>  >>  > At first glance (through tired eyes n with fatigued mind) it> appears to>  > handle text replacement better than the existing sifr jquery plugin.>  >
>  > I am working away on a project at mo that makes call into and out of>  > flash using Flash version 7 (flash 8 has extended interface which> sounds>  > great), to work this I am using JSFC (_javascript_
> FlashCommmunicator - it>  > works well in all browser I have tested so far)  I have had some jip>  > with creating the object to talk to flash, as it needs to be created>  > after the flash is full placed in page (which can be sometime after
>  > document.ready fires) - would your plugin be able to aide me here?>  >>  > 1) Either by being  able to call function within flash?  (Previous>  > points have been aired claiming that this is best not done with
> jquery)>  > 2) Could a ca

Re: [jQuery] Media plugins

2006-11-10 Thread Sam Sherlock
On 10/11/06, Sam Sherlock <[EMAIL PROTECTED]> wrote:
yep I have jsfc working alongside jquery (mostly straight forward)see - http://www.sharkevaderproductions.com/v5/
 jquery (and a shed load of plugins)
 jsfc and ufo all playing nicelyif you're code works I will be able to replace the ufo (its currently hack [I had to add a line to call the function to set the flashcommunicator]) script with your plugin and thats akin to making a call back to set the flash commmunicator (it achieves the same results AFAIAC)
I intend to have a more in depth look the mike chambers project, the jsfc On 10/11/06, Luke Lutman
 <[EMAIL PROTECTED]
> wrote:Interesting... :-)It would be pretty easy to use those libraries alongside my plugin, but replicating what they do
is probably beyond the scope of my plugin (a separate one, maybe?).Try this (with JSFC):var fc;$('#element').flash(...).find('embed').each(function(){fc = new JSFCommunicator(this);
}).end();Then you should be able to use fc in the same way.Note that this would only work for a single flash movie, but it could be setup for multipleflash movies (by pushing the JSFCommunicator objects into an Array?) if that's what your after.
LukeSam Sherlock wrote:> Hi Luke,>> here is the state of play:>> jsfc - 
http://www.abdulqabiz.com/files/JSFC/example.html
 (src available to)>> also theres this -> http://weblogs.macromedia.com/flashjavascript/readme.html
 (mike chambers> again!!)
>> Its not when its fully loaded! but its also not when document.ready> either.  Its a pain!!!>> For flash8 theres extendedinterface though - which looks great!>> would be interesting to see what you make of the above
>> -S>> On 10/11/06, *Luke Lutman* <[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>
> Hey Sam,>> Thanks for all the kind words :-)>> I've (been lucky?) never to need to communicate between flash and> _javascript_, so I'm a bit out of the loop on how that whole process
> works.>> If it's simply needing access to the  element after it's> inserted into the dom, it should be pretty simple (off the top of my> head):>

> $('#hello').flash(...).find('embed').each(function(){> // do stuff> }).end();>> If you need to wait until the flash movie has fully loaded before> creating your object, that's a whole 'nother ballgame.
>> Could you call an _javascript_ function from within the flash movie that> creates the object you need? Something like:>> - load page> - insert flash movie> - flash movie preloads itself
> - flash movie calls someFunction() in _javascript_> - someFunction() creates the object that talks to flash> - > - Profit!>> ;-)>> That'd probably work ok if you only have one flash movie calling
> someFunction(), but would get a little hairy otherwise because> someFunction() wouldn't know which element in the DOM called it.>> If  or  fire onload events, it'd be possible to add a
> callback function -- but I'm pretty skeptical that they'd fire the> event> with any sort  of consistency across browsers (if at all).>> You could use an Image object to preload your swf (if it's small), so
> that it'd come from the cache when inserted into the page (using the> Image object's onload event to trigger the $().flash call).>> Last but not least, you could wait for window.onload

 (instead of> document.ready), but there might be quite a gap between when the flash> movie finishes loading and window.onload is called>> Hope that helps!>> Luke

>> Sam Sherlock wrote:>  > I am astounded Luke remarkable stuff.>  >>  > Looks like I might be able to reduce my script over heads quite a bit>  > with this.
>  >>  > At first glance (through tired eyes n with fatigued mind) it> appears to>  > handle text replacement better than the existing sifr jquery plugin.>  >
>  > I am working away on a project at mo that makes call into and out of>  > flash using Flash version 7 (flash 8 has extended interface which> sounds>  > great), to work this I am using JSFC (_javascript_
> FlashCommmunicator - it>  > works well in all browser I have tested so far)  I have had some jip>  > with creating the object to talk to flash, as it needs to be created>  > after the flash is full placed in page (which can be sometime after
>  > document.ready fires) - would your plugin be able to aide me here?>  >>  > 1) Either by being  able to call function within flash?  (Previous>  > points have been aired claiming that this is best not done with
> jquery)>  > 2) Could a call back be made to fire when flash is set in the page?>  >>  > In any case the script is  piece of sheer wonderment>  >>  > -S
>>> ___> jQuery mailing list> 
discuss@jquery.com 
discuss@jquery.com>> http://jquery.com/discuss/ <

Re: [jQuery] Element tagName

2006-11-10 Thread Aaron Heimlich
On 11/10/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
what if the function is() with no argument returned the tag name?This makes no sense to me. Something like $("#foo").tag() or $("#foo").tagName() would make a lot more sense when you wanna know the tag name of the element you just selected.
Which makes more sense to you?if($("#foo").is() == "div") {   // do stuff...}orif($("#foo").tagName() == "div") {    // do stuff...}
Whatever we decide on, we also should make sure that it's read only. I'm not sure what, if anything, would happen if you tried to set element.nodeName or element.tagName, but I'd rather not find out.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Ⓙⓐⓚⓔ
is returns a boolean , tag returns a string, so combining would be
less than elegant, but certainly tag is a useful plugin, that probably
deserves inclusion. Unless it's considered too trivial!

On 11/10/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
>
> so you guys don't think that this should be part of jQuery?
>
> what if the function is() with no argument returned the tag name?
>
> Laurent
>
-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Laurent Yaish
so you guys don't think that this should be part of jQuery?what if the function is() with no argument returned the tag name?Laurent
On 11/10/06, 
Michael Geary <[EMAIL PROTECTED]> wrote:
> > From: Laurent Yaish
> >> > I couldn't find a way using jQuery to get the tagName of an element.> >> > Let's say I have this:> >> > test
> > $('span').parent().tag() would return 'div'> From: Brandon Aaron>> You could do two things ... write yourself a plugin that> would look something like this:>> jQuery.fn.tag

 = function() {>   return this[0] ? this[0].tagName : null; };That would certainly do the trick. I can't resist a little codeoptimization... :-)jQuery.fn.tag = function() { return this[0] && this[0].tagName; };
> or you could just do it like this:>> $('span').parent().get(0).tagNameOr:  $('span').parent()[0].tagNameAlthough here I can see where one might prefer the .get(0) for clarity - not
sure which I like better.-Mike___jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loop through all elements of a form

2006-11-10 Thread Aaron Heimlich
On 11/10/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
I don't think jq can get back theoriginal default values.True, but I believe he wanted a way to *empty* the elements, not return them to their defaults.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] cssHover object manipulation

2006-11-10 Thread [EMAIL PROTECTED]
Gilles (or anybody else with advanced knowledge of the cssHover plugin):

How do you select all checkboxes in a form controlled by cssHover with a 
"select all" click event?

Thanks.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loop through all elements of a form

2006-11-10 Thread Ⓙⓐⓚⓔ
absolutely! that's the diff.. I don't think jq can get back the
original default values.

On 11/10/06, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
> On 11/10/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > of course the standard js method is
> >
> > document.forms[0].reset()
> >
>
> I've found that reset() returns the form values to what they were when they
> page initially loaded. So, if some of the form elements had been prefilled
> reset() would return the values of those elements to what they had been
> prefilled with instead of clearing them.
>
> On 11/10/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> > Untested but maybe something like this:
> >
> > $('textarea, [EMAIL PROTECTED]', form).val('');
> >
> >
>
> This seems like it would do what you want.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Michael Geary
> > From: Laurent Yaish
> >
> > I couldn't find a way using jQuery to get the tagName of an element.
> >
> > Let's say I have this:
> >
> > test
> > $('span').parent().tag() would return 'div' 

> From: Brandon Aaron
> 
> You could do two things ... write yourself a plugin that 
> would look something like this:
> 
> jQuery.fn.tag = function() {
>   return this[0] ? this[0].tagName : null; };

That would certainly do the trick. I can't resist a little code
optimization... :-)

jQuery.fn.tag = function() { return this[0] && this[0].tagName; };

> or you could just do it like this:
> 
> $('span').parent().get(0).tagName

Or:

  $('span').parent()[0].tagName

Although here I can see where one might prefer the .get(0) for clarity - not
sure which I like better.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loop through all elements of a form

2006-11-10 Thread Aaron Heimlich
On 11/10/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
of course the standard js method isdocument.forms[0].reset()I've found that reset() returns the form values to what they were when they page initially loaded. So, if some of the form elements had been prefilled reset() would return the values of those elements to what they had been prefilled with instead of clearing them.
On 11/10/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
Untested but maybe something like this:$('textarea, [EMAIL PROTECTED]', form).val('');This seems like it would do what you want.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loop through all elements of a form

2006-11-10 Thread Brandon Aaron
Untested but maybe something like this:

$('textarea, [EMAIL PROTECTED]', form).val('');

--
Brandon Aaron

On 11/10/06, Truppe Steven <[EMAIL PROTECTED]> wrote:
> Hello,
>
> i need a function that goes through all elements of my form and removes
> the content of my textfields/inputs. Is there a way of doing this with a
> jQuery oneliner ?
>
> best regards,
> Truppe Steven
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loop through all elements of a form

2006-11-10 Thread Ⓙⓐⓚⓔ
of course the standard js method is

document.forms[0].reset()



On 11/10/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> Untested but maybe something like this:
>
> $('textarea, [EMAIL PROTECTED]', form).val('');
>
> --
> Brandon Aaron
>
> On 11/10/06, Truppe Steven <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > i need a function that goes through all elements of my form and removes
> > the content of my textfields/inputs. Is there a way of doing this with a
> > jQuery oneliner ?
> >
> > best regards,
> > Truppe Steven
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Loop through all elements of a form

2006-11-10 Thread Truppe Steven
Hello,

i need a function that goes through all elements of my form and removes
the content of my textfields/inputs. Is there a way of doing this with a
jQuery oneliner ?

best regards,
Truppe Steven

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Element tagName

2006-11-10 Thread Brandon Aaron
You could do two things ... write yourself a plugin that would look
something like this:

jQuery.fn.tag = function() {
  return this[0] ? this[0].tagName : null;
};

or you could just do it like this:

$('span').parent().get(0).tagName

--
Brandon Aaron

On 11/10/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I couldn't find a way using jQuery to get the tagName of an element.
>
> Let's say I have this:
>
> test
> $('span').parent().tag() would return 'div'
>
> is that currently possible?
> I found the is() function, maybe that could be changed to return the tagname
> if no argument is passed
>
> Thanks!
>
> Laurent
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Element tagName

2006-11-10 Thread Laurent Yaish
Hi All,I couldn't find a way using jQuery to get the tagName of an element.Let's say I have this:test$('span').parent().tag() would return 'div'
is that currently possible?I found the is() function, maybe that could be changed to return the tagname if no argument is passedThanks!Laurent
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Laurent Yaish
Man you scared me... You meant new jQuery API "DOCS", not new jQuery API right?LaurentOn 11/10/06, Gavin M. Roy <
[EMAIL PROTECTED]> wrote:Very nice.  Very, very nice.On Nov 10, 2006, at 1:20 PM, Jörn Zaefferer wrote:
> Hi jQueryians,>> I'd like to present you a first draft for a new stylesheet for the> jQuery API: http://joern.jquery.com/api-draft/cat.xml
>> There is still lot's of work to do, but the main concern, a new> concept> for the navigation, is already functional. Both Alphabetical and> Category lists will be provided as exapandable trees.
>> Please don't waste your time checking it with IE, the draft works> so far> only with Firefox.>> Please post your opinions and ideas, I'm sure there are many.>> Regards
> Jörn>> --> Jörn Zaefferer>> http://bassistance.de>>> ___> jQuery mailing list
> discuss@jquery.com> http://jquery.com/discuss/___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Glen Lipka
You might want to put a border or hr or spacing between each function.They run together right now.If I wanted to print one part of the API, is this possible with the current design?Maybe just have the single API appear on the right instead of scrolling down and another link to "show all"?
Just a thought.On 11/10/06, Christopher Jordan <[EMAIL PROTECTED]> wrote:



  


Jörn,

That looks fantastic! I really like it! Good job! :o)

Chris

Jörn Zaefferer wrote:

  Hi jQueryians,I'd like to present you a first draft for a new stylesheet for the jQuery API: 
http://joern.jquery.com/api-draft/cat.xml

There is still lot's of work to do, but the main concern, a new concept 
for the navigation, is already functional. Both Alphabetical and 
Category lists will be provided as exapandable trees.

Please don't waste your time checking it with IE, the draft works so far 
only with Firefox.

Please post your opinions and ideas, I'm sure there are many.

Regards
Jörn

  




___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Jörn Zaefferer
Luke Lutman schrieb:
> I'm loving the full index :-)
>
> A couple of suggestions come to mind ... having all of the parameter types 
> and names in the 
> left-hand column makes the list much harder to scan. Maybe it's just a 
> styling issue -- like 
> making the parameter types and names less prominent (smaller, faded out) -- 
> but my personal 
> preference would be to keep the index as a navigation mechanism, rather than 
> part navigation 
> part information. Without the paramter types and names, method names would 
> always fit on one 
> line, and the bullets could probably be dropped too :-)
>   
Forget the bullets, I just didn't touch the CSS :-)
I included the parameters to differenciate between methods with more 
then one definition. Otherwise the index would look like this:
add
add
add
append
append
otherstuff

I guess it would be ok to ommit the parameter names, that would make it 
shorter and still readable.
> I also find having $. at the beginning of some names gets in the way of 
> scanning. Something like 
> this (using a fixed-width font for the method names) might be nice:
>
>trigger()
> $.trim()
>unbind()
>   
I'll try the fixed-font idea.
> One other small thing: I'd be really nice to have a bit more line-spacing 
> overall. I find that 
> ascenders and descenders really crammed in a few places (the index and text 
> for examples in 
> particular). I'd rather scroll a bit more for the sake of legibility :-)
>   
Sure, no problem. But fine-tuning the CSS cames later :-)

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Luke Lutman
I'm loving the full index :-)

A couple of suggestions come to mind ... having all of the parameter types and 
names in the 
left-hand column makes the list much harder to scan. Maybe it's just a styling 
issue -- like 
making the parameter types and names less prominent (smaller, faded out) -- but 
my personal 
preference would be to keep the index as a navigation mechanism, rather than 
part navigation 
part information. Without the paramter types and names, method names would 
always fit on one 
line, and the bullets could probably be dropped too :-)

I also find having $. at the beginning of some names gets in the way of 
scanning. Something like 
this (using a fixed-width font for the method names) might be nice:

   trigger()
$.trim()
   unbind()

One other small thing: I'd be really nice to have a bit more line-spacing 
overall. I find that 
ascenders and descenders really crammed in a few places (the index and text for 
examples in 
particular). I'd rather scroll a bit more for the sake of legibility :-)

Luke

Jörn Zaefferer wrote:
> Hi jQueryians,
> 
> I'd like to present you a first draft for a new stylesheet for the 
> jQuery API: http://joern.jquery.com/api-draft/cat.xml
> 
> There is still lot's of work to do, but the main concern, a new concept 
> for the navigation, is already functional. Both Alphabetical and 
> Category lists will be provided as exapandable trees.
> 
> Please don't waste your time checking it with IE, the draft works so far 
> only with Firefox.
> 
> Please post your opinions and ideas, I'm sure there are many.
> 
> Regards
> Jörn
> 


-- 
zinc Roe Design
www.zincroe.com
(647) 477-6016

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] onclick tooltip with z-index div

2006-11-10 Thread Kevin Old
Hello everyone,

I'm trying to reproduce the "Yahoo Search" when you click on
"President Bush" in this story on Yahoo:
http://news.yahoo.com/s/ap/20061110/ap_on_go_ca_st_pe/gates_in_his_words_1
with jquery.

I've looked at using a few of the Tooltip plugins, but they don't do
what I want.  How do I get the div to work like the one o the yahoo
page?

Here's some code I've been playing with using the Google Search api
instead of Yahoo's, but the concept is still the same.

http://kevinold.com/googletest.html

Thanks for any help,
Kevin
-- 
Kevin Old
[EMAIL PROTECTED]

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Christopher Jordan




Jörn,

That looks fantastic! I really like it! Good job! :o)

Chris

Jörn Zaefferer wrote:

  Hi jQueryians,

I'd like to present you a first draft for a new stylesheet for the 
jQuery API: http://joern.jquery.com/api-draft/cat.xml

There is still lot's of work to do, but the main concern, a new concept 
for the navigation, is already functional. Both Alphabetical and 
Category lists will be provided as exapandable trees.

Please don't waste your time checking it with IE, the draft works so far 
only with Firefox.

Please post your opinions and ideas, I'm sure there are many.

Regards
Jörn

  



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Sébastien
Le Fri, 10 Nov 2006 22:20:23 +0100,
Jörn Zaefferer <[EMAIL PROTECTED]> a écrit :


> I'd like to present you a first draft for a new stylesheet for the 
> jQuery API: http://joern.jquery.com/api-draft/cat.xml

This is great !

I experienced one problem which happens when you resize the window (to
640px for instance). You will see that there is still a black
right border on the right frame.

Cheers,

 -- Sébastien

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Stephen Woodbridge
Jörn,

Very nice! and oh so close to what I want.
Can you add a print link that will render the right panel only for 
printing? It would be nice it it could be printed in either aphabetical 
or catagory order.

Please, please, please! Pretty please!

-Steve

Jörn Zaefferer wrote:
> Hi jQueryians,
> 
> I'd like to present you a first draft for a new stylesheet for the 
> jQuery API: http://joern.jquery.com/api-draft/cat.xml
> 
> There is still lot's of work to do, but the main concern, a new concept 
> for the navigation, is already functional. Both Alphabetical and 
> Category lists will be provided as exapandable trees.
> 
> Please don't waste your time checking it with IE, the draft works so far 
> only with Firefox.
> 
> Please post your opinions and ideas, I'm sure there are many.
> 
> Regards
> Jörn
> 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new jQuery API draft

2006-11-10 Thread Gavin M. Roy
Very nice.  Very, very nice.

On Nov 10, 2006, at 1:20 PM, Jörn Zaefferer wrote:

> Hi jQueryians,
>
> I'd like to present you a first draft for a new stylesheet for the
> jQuery API: http://joern.jquery.com/api-draft/cat.xml
>
> There is still lot's of work to do, but the main concern, a new  
> concept
> for the navigation, is already functional. Both Alphabetical and
> Category lists will be provided as exapandable trees.
>
> Please don't waste your time checking it with IE, the draft works  
> so far
> only with Firefox.
>
> Please post your opinions and ideas, I'm sure there are many.
>
> Regards
> Jörn
>
> -- 
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] new jQuery API draft

2006-11-10 Thread Jörn Zaefferer
Hi jQueryians,

I'd like to present you a first draft for a new stylesheet for the 
jQuery API: http://joern.jquery.com/api-draft/cat.xml

There is still lot's of work to do, but the main concern, a new concept 
for the navigation, is already functional. Both Alphabetical and 
Category lists will be provided as exapandable trees.

Please don't waste your time checking it with IE, the draft works so far 
only with Firefox.

Please post your opinions and ideas, I'm sure there are many.

Regards
Jörn

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another media plugin, but that fails in Firefox 2

2006-11-10 Thread play
I setup a basic test page here: http://dev.noiseusse.org/testflash
I've narrowed it down to passing an argument to flash from javascript. 
In firefox2,  try the first three examples. They work fine. Then try the 
4th example. Nothing happens and there is no error message and now the 
other examples don't work either. And the reset buttons also don't work.

BoOz wrote:

>play a écrit :
>
>  
>
>>Having a similar problem. Looks like ExternalInterface.call breaks 
>>jQuery in firefox2.
>>
>>
>>
>
>You must be right, jQuery still works fine in Firefox 2 if I don't call 
>aflax.js.
>
>That's quite a pity that it used to work with firefox 1 and that it no 
>longer does with FF2.
>
>
>BoOz
>
>___
>jQuery mailing list
>discuss@jquery.com
>http://jquery.com/discuss/
>  
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loading external libraries from dynamicallyloadedcontent

2006-11-10 Thread Dave Methvin
>> You can create a script element using document.createElement, set a 
>> handler for readyState, and then set a src to get it to load. It 
>> should work for any external script. jQuery uses it in the .ready() 
>> event setup if you need an example.
>
> Uh, really interesting. Do you know if this will work crossbrowser?
> jQuery uses it only for IE.

I don't know, I've never used it in production code. Google found this:

http://www.phpied.com/javascript-include-ready/

It looks like a cross-browser solution can be worked out.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] The jQuery Design/Coding Process

2006-11-10 Thread Jason Yeckel
pretty sure Aptana is cross-platform java :)

Jason Y
www.purepressure.com

Karl Swedberg wrote:
> On Nov 9, 2006, at 11:45 PM, Chinmay Kulkarni wrote:
>> On a related note, any editors that support autocomplete/suggest and 
>> code-folding for jQuery? 
>
> If you own a Mac, you can try TextMate and download the jQuery bundle. 
> Instructions here:
> http://www.learningjquery.com/2006/09/textmate-bundle-for-jquery
> (needs to be updated a little, but most of the core functionality has 
> "tab triggers" for autocomplete.)
>
> For Windows, I've heard that Aptana has jQuery support, but I haven't 
> tried it.
>
> Karl
> ___
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tabs plugin 2.0

2006-11-10 Thread Jason Yeckel
Klaus,

How much work is it to change the css to be a vertical layout on the 
left or right side? It would be intresting if you could pass in a value 
to place the tab position around the content.

thx for the great work so far the plug in is a must have no doubt!

Jason Y
www.purepressure.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Jörn Zaefferer
Mike Alsup schrieb:
>> So don't see the need for $.get and $.post anymore.
>> 
>
> It's not a need, it's a convenience.  Just like getJSON and getScript.
>   
Ok, $.get and $.post both provide an interface with "static" parameters, 
that makes them more convienent then $.ajax.

Good to talk about it :-)

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Mike Alsup
> So don't see the need for $.get and $.post anymore.

It's not a need, it's a convenience.  Just like getJSON and getScript.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Sam Sherlock
yep I have jsfc working alongside jquery (mostly straight forward)see - http://www.sharkevaderproductions.com/v5/ jquery (and a shed load of plugins)
 jsfc and ufo all playing nicelyif you're code works I will be able to replace the ufo (its currently hack [I had to add a line to call the function to set the flashcommunicator]) script with your plugin and thats akin to making a call back to set the flash commmunicator (it achieves the same results AFAIAC)
I intend to have a more in depth look the mike chambers project, the jsfc On 10/11/06, Luke Lutman <[EMAIL PROTECTED]
> wrote:Interesting... :-)It would be pretty easy to use those libraries alongside my plugin, but replicating what they do
is probably beyond the scope of my plugin (a separate one, maybe?).Try this (with JSFC):var fc;$('#element').flash(...).find('embed').each(function(){fc = new JSFCommunicator(this);
}).end();Then you should be able to use fc in the same way.Note that this would only work for a single flash movie, but it could be setup for multipleflash movies (by pushing the JSFCommunicator objects into an Array?) if that's what your after.
LukeSam Sherlock wrote:> Hi Luke,>> here is the state of play:>> jsfc - http://www.abdulqabiz.com/files/JSFC/example.html
 (src available to)>> also theres this -> http://weblogs.macromedia.com/flashjavascript/readme.html (mike chambers> again!!)
>> Its not when its fully loaded! but its also not when document.ready> either.  Its a pain!!!>> For flash8 theres extendedinterface though - which looks great!>> would be interesting to see what you make of the above
>> -S>> On 10/11/06, *Luke Lutman* <[EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:>
> Hey Sam,>> Thanks for all the kind words :-)>> I've (been lucky?) never to need to communicate between flash and> _javascript_, so I'm a bit out of the loop on how that whole process
> works.>> If it's simply needing access to the  element after it's> inserted into the dom, it should be pretty simple (off the top of my> head):>
> $('#hello').flash(...).find('embed').each(function(){> // do stuff> }).end();>> If you need to wait until the flash movie has fully loaded before> creating your object, that's a whole 'nother ballgame.
>> Could you call an _javascript_ function from within the flash movie that> creates the object you need? Something like:>> - load page> - insert flash movie> - flash movie preloads itself
> - flash movie calls someFunction() in _javascript_> - someFunction() creates the object that talks to flash> - > - Profit!>> ;-)>> That'd probably work ok if you only have one flash movie calling
> someFunction(), but would get a little hairy otherwise because> someFunction() wouldn't know which element in the DOM called it.>> If  or  fire onload events, it'd be possible to add a
> callback function -- but I'm pretty skeptical that they'd fire the> event> with any sort  of consistency across browsers (if at all).>> You could use an Image object to preload your swf (if it's small), so
> that it'd come from the cache when inserted into the page (using the> Image object's onload event to trigger the $().flash call).>> Last but not least, you could wait for window.onload
 (instead of> document.ready), but there might be quite a gap between when the flash> movie finishes loading and window.onload is called>> Hope that helps!>> Luke
>> Sam Sherlock wrote:>  > I am astounded Luke remarkable stuff.>  >>  > Looks like I might be able to reduce my script over heads quite a bit>  > with this.
>  >>  > At first glance (through tired eyes n with fatigued mind) it> appears to>  > handle text replacement better than the existing sifr jquery plugin.>  >
>  > I am working away on a project at mo that makes call into and out of>  > flash using Flash version 7 (flash 8 has extended interface which> sounds>  > great), to work this I am using JSFC (_javascript_
> FlashCommmunicator - it>  > works well in all browser I have tested so far)  I have had some jip>  > with creating the object to talk to flash, as it needs to be created>  > after the flash is full placed in page (which can be sometime after
>  > document.ready fires) - would your plugin be able to aide me here?>  >>  > 1) Either by being  able to call function within flash?  (Previous>  > points have been aired claiming that this is best not done with
> jquery)>  > 2) Could a call back be made to fire when flash is set in the page?>  >>  > In any case the script is  piece of sheer wonderment>  >>  > -S
>>> ___> jQuery mailing list> discuss@jquery.com 
discuss@jquery.com>> http://jquery.com/discuss/  --

Re: [jQuery] ajax form docs

2006-11-10 Thread Jörn Zaefferer
Mike Alsup schrieb:
>> While we are at it: A get request can send it's data only by appending
>> the query string to the URL, right? Can this be handled by $.ajax, too?
>> 
>
> Sure, it could.  I think it makes sense to move all that logic into
> $.ajax but I would keep $.get and $.post because they are nice
> convenience methods.  $.ajax supports a lot of options and having some
> of them defaulted properly via $.get and $.post makes sense.
>   
If you put the logic into $.ajax, the only thing left for $.get to do is 
just what the $.ajax success callback already provides. And it's nearly 
the same for $.post, only that you type $.post({...}) instead of 
$.ajax({type: "post", ...});

So don't see the need for $.get and $.post anymore.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Code Documentation

2006-11-10 Thread John Resig
> After a quick look at visualjquery: It looks like newlines are parsed,
> but not properly displayed. So until that is fixed, you should just use
> normal line breaks and trink some tea and wait. Or ask Yehuda to fix the
> stylesheet for visualjquery to include some pre tags.

It's formatted properly on http://jquery.com/api/

Normal line breaks is the acceptable way of having multi-line code.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tooltip reloaded

2006-11-10 Thread Jörn Zaefferer
Matthew Delmarter schrieb:
> This looks great Jorn. Probably the main issue for me is that a tool-tip for
> an element on the right-hand-side of the screen does not adjust it's
> position away from the edge. Any plans to implement something like this?
> Even if it just defaults to showing on the left of the mouse position rather
> than the right?
>   
Can't promise anything to soon, but its on the TODO list. If you need 
that now, you could modify the update function for yourself.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Code Documentation

2006-11-10 Thread Jörn Zaefferer
Klinger, John (N-CSC) schrieb:
>
> It appears that the code documentation tags (@example, @desc, etc) are 
> single-line entries only. Is this correct?
>
> Is there any accepted way to do multi-line examples?
>
After a quick look at visualjquery: It looks like newlines are parsed, 
but not properly displayed. So until that is fixed, you should just use 
normal line breaks and trink some tea and wait. Or ask Yehuda to fix the 
stylesheet for visualjquery to include some pre tags.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] BUG in ifx.js (was: Re: simple effects wont work in my ie)

2006-11-10 Thread Kaste

so you confirm this is a bug. is there a bugzilla or something like that? 
no forum nor email on the interface-site afaik.

Caspar 


Brandon Aaron wrote:
> 
> Oh so it looks like ifx just needs to merge the IE opacity fixes from
> a while back since it overwrites the methods.
> 
> --
> Brandon Aaron
> 
> 
> On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
>>
>> no javascript error.
>> can you confirm that ifx breaks (maybe under some circumstandes) the
>> jQuery.fx in IE or some IEs?
>>
>>
>> when I do the following, everything works fine:
>>
>> in ifx.js (line 141)
>> if ( z.o.hide ) {
>> for ( var p in z.el.curAnim ) {
>> //  replaced:   y[ p ] = z.el.orig[p] + (
>> p == "opacity" ? "" : "px" );
>> // with begin:
>> if (p ==
>> "opacity")
>>
>> jQuery.attr(y, p, z.el.orig[p]);
>> else
>> y[ p ] =
>> z.el.orig[p] + "px";
>> // end
>> // set its height and/or
>> width to auto
>> if ( p == 'height' || p
>> == 'width' )
>> jQuery.setAuto(
>> z.el, p );
>> }
>> }
>> }
>>
>>
>>
>> Caspar
>>
>>
>> Brandon Aaron wrote:
>> >
>> > On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
>> >> Your version works fine. hm, so what is the problem with my code?
>> >> Im using the latest jQuery, since I downloaded it yesterday.
>> >> ...
>> >> I figured out that loading the interface-fx will break my IE.
>> >>
>> >> 
>> >>
>> >> and Im gone. (just inserted this line in your code, after jQuery.js)
>> >
>> > I'm not very familiar with the interface plugin but do you get a
>> > JavaScript error in IE?
>> >
>> > --
>> > Brandon Aaron
>> >
>> > ___
>> > jQuery mailing list
>> > discuss@jquery.com
>> > http://jquery.com/discuss/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/simple-effects-wont-work-in-my-ie-tf2608413.html#a7280707
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/simple-effects-wont-work-in-my-ie-tf2608413.html#a7283175
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] The jQuery Design/Coding Process

2006-11-10 Thread Karl Swedberg
On Nov 9, 2006, at 11:45 PM, Chinmay Kulkarni wrote:On a related note, any editors that support autocomplete/suggest and code-folding for jQuery? If you own a Mac, you can try TextMate and download the jQuery bundle. Instructions here:http://www.learningjquery.com/2006/09/textmate-bundle-for-jquery(needs to be updated a little, but most of the core functionality has "tab triggers" for autocomplete.)For Windows, I've heard that Aptana has jQuery support, but I haven't tried it.Karl___Karl Swedbergwww.englishrules.comwww.learningjquery.com___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loading external libraries from dynamically loadedcontent

2006-11-10 Thread Choan C. Gálvez
On 11/10/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
>
> >>> As the loading of  both scripts is asynchronous, the second one
> >>> could be started before the neccessary functions are available.
> >>> Any idea or workaround?
> >>
> >> If you can attach a readyState handler to the first script, that can
> >> be your cue to run the function or load the second script that needs
> >> the first one.
> >
> > Unfortunately, I can't. The script comes from an external domain, so
> > I cannot use XHR to load it :(
>
> You can create a script element using document.createElement, set a handler
> for readyState, and then set a src to get it to load. It should work for any
> external script. jQuery uses it in the .ready() event setup if you need an
> example.

Uh, really interesting. Do you know if this will work crossbrowser?
jQuery uses it only for IE.

Thanks again.
-- 
Choan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loading external libraries from dynamically loadedcontent

2006-11-10 Thread Dave Methvin

>>> As the loading of  both scripts is asynchronous, the second one 
>>> could be started before the neccessary functions are available.
>>> Any idea or workaround?
>>
>> If you can attach a readyState handler to the first script, that can 
>> be your cue to run the function or load the second script that needs
>> the first one.
> 
> Unfortunately, I can't. The script comes from an external domain, so
> I cannot use XHR to load it :(

You can create a script element using document.createElement, set a handler
for readyState, and then set a src to get it to load. It should work for any
external script. jQuery uses it in the .ready() event setup if you need an
example.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Luke Lutman
Interesting... :-)

It would be pretty easy to use those libraries alongside my plugin, but 
replicating what they do 
is probably beyond the scope of my plugin (a separate one, maybe?).

Try this (with JSFC):

var fc;

$('#element').flash(...).find('embed').each(function(){
fc = new JSFCommunicator(this);
}).end();

Then you should be able to use fc in the same way.

Note that this would only work for a single flash movie, but it could be setup 
for multiple 
flash movies (by pushing the JSFCommunicator objects into an Array?) if that's 
what your after.

Luke

Sam Sherlock wrote:
> Hi Luke,
> 
> here is the state of play:
> 
> jsfc - http://www.abdulqabiz.com/files/JSFC/example.html (src available to)
> 
> also theres this - 
> http://weblogs.macromedia.com/flashjavascript/readme.html (mike chambers 
> again!!)
> 
> Its not when its fully loaded! but its also not when document.ready 
> either.  Its a pain!!!
> 
> For flash8 theres extendedinterface though - which looks great!
> 
> would be interesting to see what you make of the above
> 
> -S
> 
> On 10/11/06, *Luke Lutman* <[EMAIL PROTECTED] > 
> wrote:
> 
> Hey Sam,
> 
> Thanks for all the kind words :-)
> 
> I've (been lucky?) never to need to communicate between flash and
> javascript, so I'm a bit out of the loop on how that whole process
> works.
> 
> If it's simply needing access to the  element after it's
> inserted into the dom, it should be pretty simple (off the top of my
> head):
> 
> $('#hello').flash(...).find('embed').each(function(){
> // do stuff
> }).end();
> 
> If you need to wait until the flash movie has fully loaded before
> creating your object, that's a whole 'nother ballgame.
> 
> Could you call an javascript function from within the flash movie that
> creates the object you need? Something like:
> 
> - load page
> - insert flash movie
> - flash movie preloads itself
> - flash movie calls someFunction() in javascript
> - someFunction() creates the object that talks to flash
> - 
> - Profit!
> 
> ;-)
> 
> That'd probably work ok if you only have one flash movie calling
> someFunction(), but would get a little hairy otherwise because
> someFunction() wouldn't know which element in the DOM called it.
> 
> If  or  fire onload events, it'd be possible to add a
> callback function -- but I'm pretty skeptical that they'd fire the
> event
> with any sort  of consistency across browsers (if at all).
> 
> You could use an Image object to preload your swf (if it's small), so
> that it'd come from the cache when inserted into the page (using the
> Image object's onload event to trigger the $().flash call).
> 
> Last but not least, you could wait for window.onload (instead of
> document.ready), but there might be quite a gap between when the flash
> movie finishes loading and window.onload is called
> 
> Hope that helps!
> 
> Luke
> 
> Sam Sherlock wrote:
>  > I am astounded Luke remarkable stuff.
>  >
>  > Looks like I might be able to reduce my script over heads quite a bit
>  > with this.
>  >
>  > At first glance (through tired eyes n with fatigued mind) it
> appears to
>  > handle text replacement better than the existing sifr jquery plugin.
>  >
>  > I am working away on a project at mo that makes call into and out of
>  > flash using Flash version 7 (flash 8 has extended interface which
> sounds
>  > great), to work this I am using JSFC (JavaScript
> FlashCommmunicator - it
>  > works well in all browser I have tested so far)  I have had some jip
>  > with creating the object to talk to flash, as it needs to be created
>  > after the flash is full placed in page (which can be sometime after
>  > document.ready fires) - would your plugin be able to aide me here?
>  >
>  > 1) Either by being  able to call function within flash?  (Previous
>  > points have been aired claiming that this is best not done with
> jquery)
>  > 2) Could a call back be made to fire when flash is set in the page?
>  >
>  > In any case the script is  piece of sheer wonderment
>  >
>  > -S
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com 
> http://jquery.com/discuss/ 
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


-- 
zinc Roe Design
www.zincroe.com
(647) 477-6016

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loading external libraries from dynamically loaded content

2006-11-10 Thread Choan C. Gálvez
On 11/10/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > As the loading of  both scripts is asynchronous, the second one
> > could be started before the neccessary functions are available.
> > Any idea or workaround?
>
> If you can attach a readyState handler to the first script, that can be your
> cue to run the function or load the second script that needs the first one.

Unfortunately, I can't.

The script comes from an external domain, so I cannot use XHR to load it :(

Thanks.
-- 
Choan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Mike Alsup
> While we are at it: A get request can send it's data only by appending
> the query string to the URL, right? Can this be handled by $.ajax, too?

Sure, it could.  I think it makes sense to move all that logic into
$.ajax but I would keep $.get and $.post because they are nice
convenience methods.  $.ajax supports a lot of options and having some
of them defaulted properly via $.get and $.post makes sense.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Code Documentation

2006-11-10 Thread Klinger, John (N-CSC)
Title: Code Documentation






It appears that the code documentation tags (@example, @desc, etc) are single-line entries only. Is this correct?


Is there any accepted way to do multi-line examples?


jk




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tooltip reloaded

2006-11-10 Thread Matthew Delmarter
This looks great Jorn. Probably the main issue for me is that a tool-tip for
an element on the right-hand-side of the screen does not adjust it's
position away from the edge. Any plans to implement something like this?
Even if it just defaults to showing on the left of the mouse position rather
than the right?


Matthew Delmarter

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jörn Zaefferer
> Sent: Saturday, 11 November 2006 2:59 a.m.
> To: jQuery Discussion.
> Subject: [jQuery] Tooltip reloaded
> 
> Hi jQueryians,
> 
> just wanted to let you know about the latest Tooltip update
> http://bassistance.de/index.php/jquery-plugins/jquery-plugin-tooltip/
> 
> Thanks to the ideas of this list and especially of Any Matthews, it's
> now even more fancier.
> 
> As you can see in the demo page, the plugin now supports splitting the
> title into header and body elements, and styling them differently. The
> plugin can also fix transparent PNGs in IE, therefore you can use
> background images to style your tooltip, without worrying about IE.
> 
> There is still a small issues when using the click event.
> 
> I hope you like it.
> 
> --
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] return this.each

2006-11-10 Thread Jörn Zaefferer
Michael Geary schrieb:
> Thanks again, I'm glad to know that little writeup may help straighten 
> out some of the confusion around "this" and jQuery vs. DOM objects.
I recently experienced that the heavy use of apply() effectively 
prevents most object oriented design, that is, the use of 
pseudo-classes. If the method of an object can't access the object 
properties, because this is something else and not the object, the OO 
design is pretty useless. That forced me to rely heavily on closures to 
prevent code duplication. On that way I learned that hijacking the 
jQuery event system is a great tool to ease this: By defining and 
binding custom event handlers inside the "main" closure, I have access 
to everything necessary. And triggering the custom event is encapsulated 
inside it's own method, with standard docs.

Would be interesting to hear of others with a OO background and how they 
experienced this matter.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin Release: Tooltip

2006-11-10 Thread Jörn Zaefferer
Michael Geary schrieb:
>> I've seen that used before, but can it have memory leak
>> or other issues?
>> 
>
> Sorry about the very slow reply, Sam.
>
> That's a good point. The use of the closure could result in memory leaks
> depending on what the rest of the code does. They should be fixable -
> closures in and of themselves don't cause leaks, but they can result in
> circular references to DOM objects in IE. It would be good to test this and
> make sure it doesn't cause a leak.
>   
Any guidelines for testing or finding circular references?

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help: Trying to write my first plugin and its not trivial

2006-11-10 Thread Jörn Zaefferer
Stephen Woodbridge schrieb:
> Yeah, helps a bunch. I'm just trying to get my head around the problem
> to do this in a jQuery-ish way. Once I have worked through a few of 
> these conceptual problems, I'll start coding otherwise it will be a 
> total hack job instead of only a partial hack job ;)
>   
You can always go back and refactor some of your stuff. Automatic tests 
are a extremly great help for that. You can reuse the jQuery testsuite 
without too much pain, see the form plugin for an example. It depends 
heavily on your usecase if your code can be tested automatically.
DOM manipulations and AJAX stuff is possible, effects and other visual 
and user-interactive stuff are difficult or even impossible.

It may be even more difficult to get your head around automatic tests, 
but it can be a great help.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Jörn Zaefferer
Mike Alsup schrieb:
>> Of couse it would be an ugly API change. If that stuff is integrated
>> into $.ajax, we could savely deprecate $.get and $.post.
>> 
>
> Perhaps interrogating the type would work?
>
> if (typeof data != 'string')
> data = jQuery.param(data)
>   
Yeah, that should be pretty safe. If someone has already converted the 
data, it must be in string format anyway to work.

While we are at it: A get request can send it's data only by appending 
the query string to the URL, right? Can this be handled by $.ajax, too?

I'll try to log this discussion here http://jquery.com/dev/bugs/bug/378/ 
and here http://jquery.com/dev/bugs/bug/377/

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] [Fwd: How to Add HTML to a page, and make it "active"?]

2006-11-10 Thread Theo Welch
Hi Scott, 

I may not understand the details of your situation, but it seems you are
quite close to the first part of a solution (I am no expert either). 

Could you just give each of your  fields a common class name as well
as the unique id:








And then your jQuery code could look like something this?

$("select.dynamicSelects").change(function() {
   var type = $(this).val();
   $.post("/ajax/get_material_list.php", {type:type}, function(xml) {

  ... function body to process the xml results here...
  )};
   )};


That would apply your operation to all of the  fields that were
assigned class="dynamicSelects". And if you had all of these  fields
inside a container such as a  tag that had an id), 


 









then you could avoid having to add a class to every select field and just
make your jQuery code "select" your select boxes like this:

$("#magicSelectFields select").change(function() {
   var type = $(this).val();
   $.post("/ajax/get_material_list.php", {type:type}, function(xml) {

  ... function body to process the xml results here...
  )};
   )};

You can Google "CSS Selectors" to learn more about the various ways to
specify particular elements and groups of elements within a document. There
is a lot of flexibility in this department.

This doesn't really help with any of the ajax-y stuff you're trying to do,
but that's a question for someone other than me. :)

Cheers,
-THEO- 




-Original Message-
From: Scott Sharkey [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 10, 2006 8:59 AM
To: discuss@jquery.com
Subject: [jQuery] [Fwd: How to Add HTML to a page, and make it "active"?]

I *think* that I can do something like:

$("#type_1").change(function() {
   var type = $("#type_1").val();
   $.post("/ajax/get_material_list.php", {type:type}, function(xml) {

  ... function body to process the xml results here...
  )};
   )};

except, of course that "#type_1" above needs to be a Javascript variable
string, rather than a constant.  

-Scott




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] [Fwd: How to Add HTML to a page, and make it "active"?]

2006-11-10 Thread Sam Sherlock
i think that adding html from xml has patchy results.i tried and it did not work in ie at all well!i got introduced to a new friend called json.to make the html active, if i understand you, all you need do is
add click, hover etc to whatever.  if these are already applied to objects then (i have successfully) used unclick (no unhover its not required) etc to resolve double event calls(some of my phraseology might be mismatched, not a blackbelt _javascript_er [yet])
hope this helpsOn 10/11/06, Scott Sharkey <[EMAIL PROTECTED]> wrote:
Anyone? Original Message Subject: [jQuery] How to Add HTML to a page, and make it "active"?Date: Thu, 09 Nov 2006 16:24:54 -0500From: Scott Sharkey <
[EMAIL PROTECTED]>Reply-To: jQuery Discussion. Organization: Linux Unlimited, LLCTo: discuss@jquery.com
Hi All,Relatively new to jQuery, and loving it so far.  Hopefully you can helpme with this one...I have a "quote page", which has "line items" that fetch various pieces
of info (via ajax) from the server as the user starts "drilling down".There are a variable number of "line items", of 4 different types.  Ihave the code to create a new line item of a given type whenever the
user selects that type from a selection box.Let's say one of the "line items" looks like this:  Type:   Material: 
  Description:   Quantity: I've got the code to insert the HTML necessary for the above working sofar.  Only big problem here was generating a "unique id field" for the
fields, which I did by having a _javascript_ global "item count", which isincremented every time a new line item is added, and which is appendedto each field ID, ie type_1, material_1, desc_1, qty_1, etc.  When they
create a second line item (of any type) it's fields are appended with_2, etc.OK, now I have to "activate" the type_1 field, so that on a change,it will fire off an ajax request to fetch the desired list of materials
for that "type" and fill in the (currently empty) material .Is this possible?I *think* that I can do something like:$("#type_1").change(function() {   var type = $("#type_1").val();
   $.post("/ajax/get_material_list.php", {type:type}, function(xml) {  ... function body to process the xml results here...  )};   )};except, of course that "#type_1" above needs to be a _javascript_ variable
string, rather than a constant.  Of course, the function body forfetching the results must also "enable" an ajax call on a change to the(new) material selection field, to fetch the description.
Am I even close to on the right track, or is there a better way to dothis?  Should I be generating the html on the server, with the_javascript_, and passing it back, instead of generating the html withjQuery in the client?  ANY suggestions would be welcomed!
-Scott___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Sam Sherlock
Hi Luke,here is the state of play:jsfc - http://www.abdulqabiz.com/files/JSFC/example.html (src available to)also theres this - 
http://weblogs.macromedia.com/flashjavascript/readme.html (mike chambers again!!)Its not when its fully loaded! but its also not when document.ready either.  Its a pain!!!For flash8 theres extendedinterface though - which looks great!
would be interesting to see what you make of the above-SOn 10/11/06, Luke Lutman <[EMAIL PROTECTED]
> wrote:Hey Sam,Thanks for all the kind words :-)I've (been lucky?) never to need to communicate between flash and
_javascript_, so I'm a bit out of the loop on how that whole process works.If it's simply needing access to the  element after it'sinserted into the dom, it should be pretty simple (off the top of my head):
$('#hello').flash(...).find('embed').each(function(){// do stuff}).end();If you need to wait until the flash movie has fully loaded beforecreating your object, that's a whole 'nother ballgame.
Could you call an _javascript_ function from within the flash movie thatcreates the object you need? Something like:- load page- insert flash movie- flash movie preloads itself- flash movie calls someFunction() in _javascript_
- someFunction() creates the object that talks to flash- - Profit!;-)That'd probably work ok if you only have one flash movie callingsomeFunction(), but would get a little hairy otherwise because
someFunction() wouldn't know which element in the DOM called it.If  or  fire onload events, it'd be possible to add acallback function -- but I'm pretty skeptical that they'd fire the event
with any sort  of consistency across browsers (if at all).You could use an Image object to preload your swf (if it's small), sothat it'd come from the cache when inserted into the page (using theImage object's onload event to trigger the $().flash call).
Last but not least, you could wait for window.onload (instead ofdocument.ready), but there might be quite a gap between when the flashmovie finishes loading and window.onload is calledHope that helps!
LukeSam Sherlock wrote:> I am astounded Luke remarkable stuff.>> Looks like I might be able to reduce my script over heads quite a bit> with this.>> At first glance (through tired eyes n with fatigued mind) it appears to
> handle text replacement better than the existing sifr jquery plugin.>> I am working away on a project at mo that makes call into and out of> flash using Flash version 7 (flash 8 has extended interface which sounds
> great), to work this I am using JSFC (_javascript_ FlashCommmunicator - it> works well in all browser I have tested so far)  I have had some jip> with creating the object to talk to flash, as it needs to be created
> after the flash is full placed in page (which can be sometime after> document.ready fires) - would your plugin be able to aide me here?>> 1) Either by being  able to call function within flash?  (Previous
> points have been aired claiming that this is best not done with jquery)> 2) Could a call back be made to fire when flash is set in the page?>> In any case the script is  piece of sheer wonderment
>> -S___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Brandon Aaron
Oh so it looks like ifx just needs to merge the IE opacity fixes from
a while back since it overwrites the methods.

--
Brandon Aaron


On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
>
> no javascript error.
> can you confirm that ifx breaks (maybe under some circumstandes) the
> jQuery.fx in IE or some IEs?
>
>
> when I do the following, everything works fine:
>
> in ifx.js (line 141)
> if ( z.o.hide ) {
> for ( var p in z.el.curAnim ) {
> //  replaced:   y[ p ] = z.el.orig[p] + ( p 
> == "opacity" ? "" : "px" );
> // with begin:
> if (p == "opacity")
> 
> jQuery.attr(y, p, z.el.orig[p]);
> else
> y[ p ] = 
> z.el.orig[p] + "px";
> // end
> // set its height and/or 
> width to auto
> if ( p == 'height' || p == 
> 'width' )
> jQuery.setAuto( z.el, 
> p );
> }
> }
> }
>
>
>
> Caspar
>
>
> Brandon Aaron wrote:
> >
> > On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
> >> Your version works fine. hm, so what is the problem with my code?
> >> Im using the latest jQuery, since I downloaded it yesterday.
> >> ...
> >> I figured out that loading the interface-fx will break my IE.
> >>
> >> 
> >>
> >> and Im gone. (just inserted this line in your code, after jQuery.js)
> >
> > I'm not very familiar with the interface plugin but do you get a
> > JavaScript error in IE?
> >
> > --
> > Brandon Aaron
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/simple-effects-wont-work-in-my-ie-tf2608413.html#a7280707
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Kaste

no javascript error. 
can you confirm that ifx breaks (maybe under some circumstandes) the
jQuery.fx in IE or some IEs? 


when I do the following, everything works fine:

in ifx.js (line 141)
if ( z.o.hide ) {
for ( var p in z.el.curAnim ) {
//  replaced:   y[ p ] = z.el.orig[p] + ( p == 
"opacity" ? "" : "px" );
// with begin:
if (p == "opacity")
jQuery.attr(y, 
p, z.el.orig[p]);
else
y[ p ] = 
z.el.orig[p] + "px";
// end  
// set its height and/or width 
to auto
if ( p == 'height' || p == 
'width' )
jQuery.setAuto( z.el, p 
);
}
}
}



Caspar


Brandon Aaron wrote:
> 
> On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
>> Your version works fine. hm, so what is the problem with my code?
>> Im using the latest jQuery, since I downloaded it yesterday.
>> ...
>> I figured out that loading the interface-fx will break my IE.
>>
>> 
>>
>> and Im gone. (just inserted this line in your code, after jQuery.js)
> 
> I'm not very familiar with the interface plugin but do you get a
> JavaScript error in IE?
> 
> --
> Brandon Aaron
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/simple-effects-wont-work-in-my-ie-tf2608413.html#a7280707
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin Release: Tooltip

2006-11-10 Thread Michael Geary
> > From: Michael Geary
> >
> >  (function($) {
> > // plugin code here
> >  })(jQuery);

> From: Sam Collett
>
> I've seen that used before, but can it have memory leak
> or other issues?

Sorry about the very slow reply, Sam.

That's a good point. The use of the closure could result in memory leaks
depending on what the rest of the code does. They should be fixable -
closures in and of themselves don't cause leaks, but they can result in
circular references to DOM objects in IE. It would be good to test this and
make sure it doesn't cause a leak.

> Does it work on all modern browsers (and not so 
> modern - IE 5), included those on PDA's etc (not
> that jQuery supports portable devices).

Yes, closures are standard JavaScript and work in every version of
JavaScript since 1.1 or 1.2, I forget which.

> What happens if 'jQuery' is undefined?

Then you'll get an error when it tries to call the closure function with the
jQuery argument. Of course, the same thing would occur if you coded a plugin
the traditional way:

   jQuery.fn.foobar = function() {};

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Brandon Aaron
On 11/10/06, Kaste <[EMAIL PROTECTED]> wrote:
> Your version works fine. hm, so what is the problem with my code?
> Im using the latest jQuery, since I downloaded it yesterday.
> ...
> I figured out that loading the interface-fx will break my IE.
>
> 
>
> and Im gone. (just inserted this line in your code, after jQuery.js)

I'm not very familiar with the interface plugin but do you get a
JavaScript error in IE?

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] return this.each

2006-11-10 Thread Michael Geary
Sorry about the slow reply, guys. Been a busy week!

> From: Rexbard
> 
> Mike, I already knew the mechanics of this, but I got caught 
> up in your description and had to read your entire post.
> 
> Beautifully written, Mike. This has to be the clearest 
> description of the jQuery vs. DOM variables that I have seen. 
> I hope this gets put on the site's FAQs pages (although I 
> surprisingly don't see any FAQ page on jQuery right now. Any 
> plans for one?).
> 
> Again, great job, Mike!

Wow, thanks for the kind words, John.

> From: "Jörn Zaefferer"
>
> The jQuery wiki is as open as it can be, so please just go 
> ahead and add whatever you like! New content can be improved 
> by others, but nothing can't be improved.
> 
> It would be great to see more people writing stuff for the wiki.

> From: Brandon Aaron
> 
> This excellent explanation should probably be on learningjquery.com.

> From: Karl Swedberg
> 
> Any objections, Mike? If not, I'll post it for you.

I'm flattered! Actually, though, I would prefer to post it to my own blog.
I've been neglecting the blog lately, and I may as well post something I've
already written. :-)

Once that's done, feel free to follow up with some comments on
learningjquery.com if you like. I'll add a version of the writeup to the
wiki as well.

Thanks again, I'm glad to know that little writeup may help straighten out
some of the confusion around "this" and jQuery vs. DOM objects.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Kaste

Your version works fine. hm, so what is the problem with my code?
Im using the latest jQuery, since I downloaded it yesterday. 
...
I figured out that loading the interface-fx will break my IE.



and Im gone. (just inserted this line in your code, after jQuery.js)

Caspar



Brandon Aaron wrote:
> 
> On 11/9/06, thdz.x <[EMAIL PROTECTED]> wrote:
>> hi all,
>>
>> i ran into some problems/inconsistencies with IE6.
> 
> I setup a test case based on your code and it seems to work for me on
> all the IE6 machines I've tested thus far. What revision are you
> using? There was a problem with this around 1.0.2.
> 
> http://brandon.jquery.com/testing/thdz/
> 
> --
> Brandon Aaron
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/simple-effects-wont-work-in-my-ie-tf2608413.html#a7280111
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help: Trying to write my first plugin and its not trivial

2006-11-10 Thread Stephen Woodbridge
Jörn Zaefferer wrote:
> Stephen Woodbridge schrieb:
>> Hi all,
>>
>> I'm trying to write my first plugin and I'm having some conceptual 
>> problems on how to organize stuff and getting my head wrapped around 
>> this. The plugin will be for turning a div into an interactive mapping 
>> application.
> Just a quickie: Why don't you integrate the Resizable into your Map 
> method? Makes coding it way easier.

Ah, you mean load it like normal, but directly call 
jQuery.Resizable.whatever() directly. Yeah, I can do that. Like I said, 
getting over the initial duh! thats obvious stuff is hard sometimes. 
Working with a plugin for use to manipulate DOM objects has a pattern, 
but using a plugin inside of another plugin does not seem to be same 
pattern.

> Another point: To interact from other controls with your Map, you may 
> want to hijack jQuery's event system, using bind, trigger and some 
> wrapper methods. I did just that in my latest accordion update, it works 
> very well and elegant: http://joern.jquery.com/accordion/accordion.html
> The intersting part is at the end here: 
> http://joern.jquery.com/accordion/jquery.accordion.js
> $.fn.activate calls trigger, which calls an event handler that was 
> registered via bind. Because the actual handler is defined inside the 
> plugin method, I don't have to pass around tons of variables, they are 
> all in one closure.

Yeah that is cool, I can probably make use of that.

> Hope that helps somehow.
> 

Yeah, helps a bunch. I'm just trying to get my head around the problem 
to do this in a jQuery-ish way. Once I have worked through a few of 
these conceptual problems, I'll start coding otherwise it will be a 
total hack job instead of only a partial hack job ;)

Thanks,
   -Steve

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Brandon Aaron
On 11/9/06, thdz.x <[EMAIL PROTECTED]> wrote:
> hi all,
>
> i ran into some problems/inconsistencies with IE6.

I setup a test case based on your code and it seems to work for me on
all the IE6 machines I've tested thus far. What revision are you
using? There was a problem with this around 1.0.2.

http://brandon.jquery.com/testing/thdz/

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] simple effects wont work in my ie

2006-11-10 Thread Christopher Jordan




I've a
co-worker who has experienced something similar. But in his case *none*
of the effects work, but they work for me. We're both using the latest
version of IE6, and _javascript_ is indeed enabled on both of our
machines. We spent an hour or so a few weeks ago, trying to debug
something on his machine that wasn't really a bug at all. We found that
the same "buggy" code worked perfectly on my machine. 

Another oddity that is similar (and we think connected), but has
nothing to do with jQuery, is that my co-workers machine doesn't seem
to be able to capture ctrl+clicks. I've got some programs I've written
that perform certain functions when the user ctrl+click's certain areas
of the screen. His PC can't seem to do this, while all others seem to
handle it with no problem.

Anyway, thdz.x, I'd be interested in knowing if you figure out a
solution to your problem.

Cheers,
Chris

thdz.x wrote:

  hi all,

i ran into some problems/inconsistencies with IE6.

I have a simple structure:


	first
	second


.second {
	display: none;
}


_javascript_:
	$(document).ready(function () {
		$(".container").hover(
			function () {$(".second").fadeIn(100);},
			function () {$(".second").fadeOut(100);}
	);
	});

simple enough, but after the first fadeOut, all subsequent fadeIns do ..
nothing. ".first" disappeared.

The same when altering between show(100);hide(100);
It works with show(x);hide(); though!!
Also slideUp/-Down from the interface-project is doing fine.

Whats going on here?
Of course no problems with FF.

regards
Caspar





  



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] simple effects wont work in my ie

2006-11-10 Thread thdz.x
hi all,

i ran into some problems/inconsistencies with IE6.

I have a simple structure:


first
second


.second {
display: none;
}


javascript:
$(document).ready(function () {
$(".container").hover(
function () {$(".second").fadeIn(100);},
function () {$(".second").fadeOut(100);}
);
});

simple enough, but after the first fadeOut, all subsequent fadeIns do ..
nothing. ".first" disappeared.

The same when altering between show(100);hide(100);
It works with show(x);hide(); though!!
Also slideUp/-Down from the interface-project is doing fine.

Whats going on here?
Of course no problems with FF.

regards
Caspar





-- 
..
thdz.x

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] The jQuery Design/Coding Process

2006-11-10 Thread Truppe Steven
Hi,

i think most people are using firefox with the firebug extension to test
their code. There you can explore your html/css and debug your
javascript code.

There is also another debugger around at
http://www.mozilla.org/projects/venkman/.

There is also a tool in creation called helpermonkey. It can count the
number of executions for each function.
I don't know much about it but it seems to be a great help in the future.

hope this was useful,
Truppe Steven

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Mike Alsup
> Of couse it would be an ugly API change. If that stuff is integrated
> into $.ajax, we could savely deprecate $.get and $.post.

Perhaps interrogating the type would work?

if (typeof data != 'string')
data = jQuery.param(data)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-10 Thread Mark Gibson
Truppe Steven wrote:
> Mark Gibson schrieb:
>> In PHP have a look at:
>> utf8_encode(), iconv, or mbstring
> 
> I think i haven't clearly told my problem: I just have some article
> manager where for each article i have some description text (german &
> english). At the moment i have one php file loading the text from the
> database and pass it to my article manager. Here i just want to send
> strings like "Diesen Artikel würde viel kosten" for example (ä). If
> i do this without any encoding the strings get damaged and looks strange
> because of the way urls are interpreted. So i thought i must
> urlencode/urldecode it, as long as i urldecode/urlencode all in php it's
> working.

I'm still a bit confused, but I guess you are trying to pass data from
PHP to Javascript, and this data may contain character outside the ASCII
character set.
Javascript works with the Unicode, and your data is probably in ISO-8859-1.
In this case I would suggest converting the data using PHP utf8_encode()
and pass it in a JSON serialized string.
URI's are absolutely useless for this kind of thing.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Jörn Zaefferer
Mike Alsup schrieb:
>> I wonder if there is any case where one would use $.ajax without calling
>> $.param for any data first. If not, it would be nice to simply integrate
>> that call into $.ajax.
>> 
>
> That's a good point, Jörn.
>   
Of couse it would be an ugly API change. If that stuff is integrated 
into $.ajax, we could savely deprecate $.get and $.post.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Transparent PNG IE plugin for jQuery?

2006-11-10 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb:
> Only other things I modified were the stylesheets.
Ok. I integrated the PNG into the Tooltip plugin. It was a little more 
difficult to allow Tooltips with different styles, but it now works 
quite nicely.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Mike Alsup
> I wonder if there is any case where one would use $.ajax without calling
> $.param for any data first. If not, it would be nice to simply integrate
> that call into $.ajax.

That's a good point, Jörn.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tooltip reloaded

2006-11-10 Thread Rode, Holger \(daemons point\)
Hi Jörn,

thanks for your Tooltip Plugin, I'm happily using it for an internal web 
application.

Please fix the download link on your blog, it is not working right now, because 
you haven't closed the title attribute with a quote ;)

I kind of joined the dark side of web development, as I'm just putting html in 
the title attribute, because I sometimes want to have a  and did not think 
it would be useful, to add that as another feature by somehow splitting the 
added string with semicolon or whatever. Of course without javascript enabled 
users will see the tags, but apart from that it works fine. But as it is an 
internal application that already requires javascript for other reasons, I 
don't mind that.

Thx for your work,

Cheers Holger

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Overlib in combination with drag-n-drop from interface

2006-11-10 Thread Barry Nauta
On Friday 10 November 2006 15:05, Stephen Woodbridge wrote:
> Barry Nauta wrote:
> > Or perhaps there is a way to have (optional) sticky tooltips in jQuery?
> > That is the reason why I use overlib
> >
> > On Friday 10 November 2006 11:07, Barry Nauta wrote:
> >> Has anyone used the overlib libraries in combination with interfaces'
> >> dnd libs?
> >>
> >> I have some rows in a table (overlib hover of the name gives a popup
> >> with more details) and these rows can be dragged to a trashbin. When
> >> this happens, the overlib library goes insane telling me that the event
> >> (related to a mouseout event) does not exist.
>
> Sounds like someone needs to write a postit note plugin that can also be
> used for tool tips. For tools tips the postit would not be editable. For
> regular postits you would be able to add your own text to the postit and
> edit its content.


Well...  I use the popups in a contact plugin I wrote. When hovering over the 
persons name, a sticky note pops up with email addresses (multiple per person 
possible). The rrason why I want it to be sticky is so that one can click a 
certain email address or perhaps c&p it.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Overlib in combination with drag-n-drop from interface

2006-11-10 Thread Stephen Woodbridge
Barry Nauta wrote:
> Or perhaps there is a way to have (optional) sticky tooltips in jQuery? That 
> is the reason why I use overlib
> 
> 
> On Friday 10 November 2006 11:07, Barry Nauta wrote:
>> Has anyone used the overlib libraries in combination with interfaces' dnd
>> libs?
>>
>> I have some rows in a table (overlib hover of the name gives a popup with
>> more details) and these rows can be dragged to a trashbin. When this
>> happens, the overlib library goes insane telling me that the event (related
>> to a mouseout event) does not exist.

Sounds like someone needs to write a postit note plugin that can also be 
used for tool tips. For tools tips the postit would not be editable. For 
regular postits you would be able to add your own text to the postit and 
edit its content.

-Steve

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Transparent PNG IE plugin for jQuery?

2006-11-10 Thread andy
Quoting Jörn Zaefferer <[EMAIL PROTECTED]>:

> Andy Matthews schrieb:
> > Here's one of the final pages:
> >
> http://www.modernessentials.com/landing.cfm/Looking+for+the+BDI+AVION...Welc
> > ome!
> >
> > Thanks everyone for your help.
> >   
> Cool. Did you modify anything else apart from the split part? It looks 
> great.
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 


Only other things I modified were the stylesheets.

Thanks for your feedback.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] [Fwd: How to Add HTML to a page, and make it "active"?]

2006-11-10 Thread Scott Sharkey
Anyone?

 Original Message 
Subject: [jQuery] How to Add HTML to a page, and make it "active"?
Date: Thu, 09 Nov 2006 16:24:54 -0500
From: Scott Sharkey <[EMAIL PROTECTED]>
Reply-To: jQuery Discussion. 
Organization: Linux Unlimited, LLC
To: discuss@jquery.com

Hi All,

Relatively new to jQuery, and loving it so far.  Hopefully you can help
me with this one...

I have a "quote page", which has "line items" that fetch various pieces
of info (via ajax) from the server as the user starts "drilling down".
There are a variable number of "line items", of 4 different types.  I
have the code to create a new line item of a given type whenever the
user selects that type from a selection box.

Let's say one of the "line items" looks like this:

  Type: 
  Material: 
  Description: 
  Quantity: 

I've got the code to insert the HTML necessary for the above working so
far.  Only big problem here was generating a "unique id field" for the
fields, which I did by having a JavaScript global "item count", which is
incremented every time a new line item is added, and which is appended
to each field ID, ie type_1, material_1, desc_1, qty_1, etc.  When they
create a second line item (of any type) it's fields are appended with
_2, etc.

OK, now I have to "activate" the type_1 field, so that on a change,
it will fire off an ajax request to fetch the desired list of materials
for that "type" and fill in the (currently empty) material .

Is this possible?

I *think* that I can do something like:

$("#type_1").change(function() {
   var type = $("#type_1").val();
   $.post("/ajax/get_material_list.php", {type:type}, function(xml) {

  ... function body to process the xml results here...
  )};
   )};

except, of course that "#type_1" above needs to be a Javascript variable
string, rather than a constant.  Of course, the function body for
fetching the results must also "enable" an ajax call on a change to the
(new) material selection field, to fetch the description.

Am I even close to on the right track, or is there a better way to do
this?  Should I be generating the html on the server, with the
Javascript, and passing it back, instead of generating the html with
jQuery in the client?  ANY suggestions would be welcomed!

-Scott

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-10 Thread Truppe Steven
Mark Gibson schrieb:
> In PHP have a look at:
> utf8_encode(), iconv, or mbstring
>
> - Mark
>   

I think i haven't clearly told my problem: I just have some article
manager where for each article i have some description text (german &
english). At the moment i have one php file loading the text from the
database and pass it to my article manager. Here i just want to send
strings like "Diesen Artikel würde viel kosten" for example (ä). If
i do this without any encoding the strings get damaged and looks strange
because of the way urls are interpreted. So i thought i must
urlencode/urldecode it, as long as i urldecode/urlencode all in php it's
working.


Hope this is a better view of my problem


best regards,
Truppe Steven

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Overlib in combination with drag-n-drop from interface

2006-11-10 Thread Barry Nauta
Or perhaps there is a way to have (optional) sticky tooltips in jQuery? That 
is the reason why I use overlib


On Friday 10 November 2006 11:07, Barry Nauta wrote:
> Has anyone used the overlib libraries in combination with interfaces' dnd
> libs?
>
> I have some rows in a table (overlib hover of the name gives a popup with
> more details) and these rows can be dragged to a trashbin. When this
> happens, the overlib library goes insane telling me that the event (related
> to a mouseout event) does not exist.
>
> Barry
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tooltip reloaded

2006-11-10 Thread Jörn Zaefferer
Hi jQueryians,

just wanted to let you know about the latest Tooltip update
http://bassistance.de/index.php/jquery-plugins/jquery-plugin-tooltip/

Thanks to the ideas of this list and especially of Any Matthews, it's 
now even more fancier.

As you can see in the demo page, the plugin now supports splitting the 
title into header and body elements, and styling them differently. The 
plugin can also fix transparent PNGs in IE, therefore you can use 
background images to style your tooltip, without worrying about IE.

There is still a small issues when using the click event.

I hope you like it.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Loading external libraries from dynamically loaded content

2006-11-10 Thread Dave Methvin
> As the loading of  both scripts is asynchronous, the second one 
> could be started before the neccessary functions are available.
> Any idea or workaround?

If you can attach a readyState handler to the first script, that can be your
cue to run the function or load the second script that needs the first one.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Media plugins

2006-11-10 Thread Luke Lutman
Hey Sam,

Thanks for all the kind words :-)

I've (been lucky?) never to need to communicate between flash and 
javascript, so I'm a bit out of the loop on how that whole process works.

If it's simply needing access to the  element after it's 
inserted into the dom, it should be pretty simple (off the top of my head):

$('#hello').flash(...).find('embed').each(function(){
// do stuff
}).end();

If you need to wait until the flash movie has fully loaded before 
creating your object, that's a whole 'nother ballgame.

Could you call an javascript function from within the flash movie that 
creates the object you need? Something like:

- load page
- insert flash movie
- flash movie preloads itself
- flash movie calls someFunction() in javascript
- someFunction() creates the object that talks to flash
- 
- Profit!

;-)

That'd probably work ok if you only have one flash movie calling 
someFunction(), but would get a little hairy otherwise because 
someFunction() wouldn't know which element in the DOM called it.

If  or  fire onload events, it'd be possible to add a 
callback function -- but I'm pretty skeptical that they'd fire the event 
with any sort  of consistency across browsers (if at all).

You could use an Image object to preload your swf (if it's small), so 
that it'd come from the cache when inserted into the page (using the 
Image object's onload event to trigger the $().flash call).

Last but not least, you could wait for window.onload (instead of 
document.ready), but there might be quite a gap between when the flash 
movie finishes loading and window.onload is called

Hope that helps!

Luke

Sam Sherlock wrote:
> I am astounded Luke remarkable stuff.
> 
> Looks like I might be able to reduce my script over heads quite a bit 
> with this.
> 
> At first glance (through tired eyes n with fatigued mind) it appears to 
> handle text replacement better than the existing sifr jquery plugin.
> 
> I am working away on a project at mo that makes call into and out of 
> flash using Flash version 7 (flash 8 has extended interface which sounds 
> great), to work this I am using JSFC (JavaScript FlashCommmunicator - it 
> works well in all browser I have tested so far)  I have had some jip 
> with creating the object to talk to flash, as it needs to be created 
> after the flash is full placed in page (which can be sometime after 
> document.ready fires) - would your plugin be able to aide me here?
> 
> 1) Either by being  able to call function within flash?  (Previous 
> points have been aired claiming that this is best not done with jquery)
> 2) Could a call back be made to fire when flash is set in the page?
> 
> In any case the script is  piece of sheer wonderment
> 
> -S


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Jörn Zaefferer
Mike Alsup schrieb:
> $.param is a core method which converts an object or an
> array into a query string.
>   
I wonder if there is any case where one would use $.ajax without calling 
$.param for any data first. If not, it would be nice to simply integrate 
that call into $.ajax.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajax form docs

2006-11-10 Thread Mike Alsup
> What is "param" and what is "formdata"

formdata() is an old function that used to exist in the form plugin
long ago.  $.param is a core method which converts an object or an
array into a query string.

> How can I submit a form then via ajax?

Use the form plugin:
http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt

It works with all of the released versions of jQuery (1.0 and later).

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Accordion plugin

2006-11-10 Thread Jörn Zaefferer
Klaus Hartl schrieb:
> My activate function is based on changing the hash of the page's URL to 
> support bookmarking and history. Does the accordion do the same already?
>
> Would be cool, because then if together used with my history plugin it 
> would support history as well. You could auto-detect its presence like 
> in Tabs...
>   
Oh well. Not, it doesn't support that, yet. Didn't quite figure out how 
to implement that.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems loading select options in IE

2006-11-10 Thread Michael Prinsloo
I thought about the same thing last night in bed. Implemented it this morning and it works well.Thanks.On 09/11/06, Brandon Aaron <
[EMAIL PROTECTED]> wrote:Oh ... I did not realize that $().load used $().html and totally
ignores the recent fix for this issue with the append type methods.I'll have to take a look at fixing this. In the mean time you couldjust use the $.ajax() with a success callback that $().empty()'s theselect and then $().append()'s the resultant html to the select. This
should work in IE with the latest release.--Brandon AaronOn 11/9/06, Michael Prinsloo <[EMAIL PROTECTED]> wrote:
> Hi>> I am generating some  tags with php and then loading them into a> select box with jQuery's load method as follows:>> The Select Box:>> 
>> The _javascript_:>> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});>> This works well with Firefox but IE simply displays an empty select box.
>> Loading some html into a div, with the same method and the same php file,> works perfectly in IE.>> What could I be missing? I have to demo this application for a client in> less than 20 hours, and they only use IE! Have spent the last hour trying to
> figure this one out.>> Any help, or nudge in the right direction would be much apreciated.>> Kind Regards>> Mike> ___
> jQuery mailing list> discuss@jquery.com> http://jquery.com/discuss/>>>___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plug-in Update: quickSearch

2006-11-10 Thread Christian Bach
Rik Lomas wrote:
> Hi guys,
> 
> Thought you be interested to know that my plug-in, quickSearch, has
> had a near-enough complete rewrite.  It's now works in a completely
> different way to before, it's a lot more powerful, a lot easier to use
> and now it's totally unobtrusive.
> 
> http://rikrikrik.com/jquery/quicksearch/
> 
> Any constructive criticism would be great!

This is way cool!

Have you done any tests with this plugin and tablesorter?

Best regards
Christian


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Accordion plugin

2006-11-10 Thread Klaus Hartl
Jörn Zaefferer schrieb:
> Klaus Hartl schrieb:
>> Jörn Zaefferer schrieb:
>>   
>>> @Klaus: I think it would be pretty easy to modify the tab's plugin to 
>>> use the same event. As you may notice, my usage for activate has some 
>>> small differences. I prefer a zero-based index as most programmers are 
>>> used to that anyway. I hope you can reuse some of the ideas from the 
>>> accordion, because I got a lot of inspiration from your tabs :-)
>>> 
>> glad to hear! I chose a non-zero based index to make Tabs usage as easy 
>> as possible even for non-programmers. Your trigger function became much 
>> shorter than mine ;-)
>>
>> I will have a look into that custom event thing - interesting!
>>   
> It would be nice to synchronize them. The activate method can be exactly 
> the same for both, as long as the binding is different. As your plugin 
> has way more users, I'd change my implementation to a non-zero based index.
> 
> It should be no deal to modify the docs for activate to be more generic. 
> The code is small enough to keep it in both plugins: If someone uses 
> only one, activate is at hand, if he uses both, one activate gets 
> overwritten and the other still works for both.

My activate function is based on changing the hash of the page's URL to 
support bookmarking and history. Does the accordion do the same already?

Would be cool, because then if together used with my history plugin it 
would support history as well. You could auto-detect its presence like 
in Tabs...


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-10 Thread Mark Gibson
Truppe Steven wrote:
> Mark Gibson schrieb:
> 
>> Javascript has the functions:
>>
>> decodeURI(s) and decodeURIComponent(s)
>>   
> I get a string like this:
>   
> Stumpf+einer+Palme%2C+ausgeh%F6hlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert
> 
> If this string is inside the variable "test" and i do:
>   var newtest = decodeURIComponent(test);
> 
> I get the error "malformed URI sequence".
> 
> I've looked documentation on 
> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
> but there i don't see much about that function...
> 
> Thanks for the fast reply! What am i doing wrong ?

decodeURIComponent("Stumpf+einer+Palme%2C+ausgehhlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert")
(%F6 taken out) produces:
"Stumpf+einer+Palme,+ausgehhlt,+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert"

It's definitely the %F6 part. Also PHP's urlencode() appears to be 
converting spaces to +, try using rawurlencode() instead, or
in JS replace + with %20:

decodeURIComponent(test.replace(/\+/g,'%20'))

I'm not sure what to do with non-ascii characters like the %F6 in URIs,
I think you'd need to use IRI's (internationalized URI's), but I can't
help you there I'm afraid - I don't think PHP or JS supports them!

You said earlier that you urlencode() and then pass it in a JSON
serialized string, is there any reason for this?

I think you'd be better off converting the string to UTF-8 and
just passing it in the JSON string.

In PHP have a look at:
utf8_encode(), iconv, or mbstring

- Mark

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plug-in Update: quickSearch

2006-11-10 Thread Rik Lomas
It's meant for client data mainly, but it is possible to search
through Ajax requests like so:

$.get('ajax_test.html',function(result){
$('#loader').html(result);
$('#loader table tbody tr').quicksearch({
attached: "#loader",
position: "before"
}); 
});

I'll add an example to the docs later.

Hope that helps!

On 10/11/06, Web Specialist <[EMAIL PROTECTED]> wrote:
> Rik,
>
> congratulations. Quicksearch plugin is a great piece of code. Only one
> question: your examples use client data, right? it's possible to load and
> search table data with ajax requests in our server?
>
> Cheers
>
>


-- 
Rik Lomas
http://rikrikrik.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] ajax form docs

2006-11-10 Thread Enquest
This is the documentation!
  $.ajax({
url: "mydomain.com/url",
type: "POST",
data: $.param( $("#form").formdata()),
complete: myAjaxDone,
success: myAjaxSuccess,
error: myAjaxError
  });

However I can't find an explenation for this line.
data: $.param( $("#form").formdata())

What is "param" and what is "formdata"

Is want to do something similar however javascript complains it does not know 
what formdata is!

How can I submit a form then via ajax?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another media plugin, but that fails in Firefox 2

2006-11-10 Thread BoOz
play a écrit :

>Having a similar problem. Looks like ExternalInterface.call breaks 
>jQuery in firefox2.
>

You must be right, jQuery still works fine in Firefox 2 if I don't call 
aflax.js.

That's quite a pity that it used to work with firefox 1 and that it no 
longer does with FF2.


BoOz

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plug-in Update: quickSearch

2006-11-10 Thread Web Specialist
Rik,congratulations. Quicksearch plugin is a great piece of code. Only one question: your examples use client data, right? it's possible to load and search table data with ajax requests in our server? Cheers

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plug-in Update: quickSearch

2006-11-10 Thread Rik Lomas
Hi Jörn

I've added a shorter delay page, just for you:

http://rikrikrik.com/jquery/quicksearch/table_quicker.html

Thanks for noticing the repetition in my docs, this is why I need
people to check for these things ;)

Rik

On 10/11/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Rik Lomas schrieb:
> > Hi guys,
> >
> > Thought you be interested to know that my plug-in, quickSearch, has
> > had a near-enough complete rewrite.  It's now works in a completely
> > different way to before, it's a lot more powerful, a lot easier to use
> > and now it's totally unobtrusive.
> >
> > http://rikrikrik.com/jquery/quicksearch/
> >
> > Any constructive criticism would be great!
> >
> Cool.
>
> Could you please put up one example that uses a lower delay, somewhere
> near zero? I'd like to see how it performs and if feels more responsive
> then.
>
> You have quite a lot of options there, but it seems like they all have
> their use. Apart from the "loaderClass" that is mentioned three times.
>
> I can't even add it to the plugins page, it's already there...
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>


-- 
Rik Lomas
http://rikrikrik.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plug-in Update: quickSearch

2006-11-10 Thread Jörn Zaefferer
Rik Lomas schrieb:
> Hi guys,
>
> Thought you be interested to know that my plug-in, quickSearch, has
> had a near-enough complete rewrite.  It's now works in a completely
> different way to before, it's a lot more powerful, a lot easier to use
> and now it's totally unobtrusive.
>
> http://rikrikrik.com/jquery/quicksearch/
>
> Any constructive criticism would be great!
>   
Cool.

Could you please put up one example that uses a lower delay, somewhere 
near zero? I'd like to see how it performs and if feels more responsive 
then.

You have quite a lot of options there, but it seems like they all have 
their use. Apart from the "loaderClass" that is mentioned three times.

I can't even add it to the plugins page, it's already there...

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help: Trying to write my first plugin and its not trivial

2006-11-10 Thread Jörn Zaefferer
Stephen Woodbridge schrieb:
> Hi all,
>
> I'm trying to write my first plugin and I'm having some conceptual 
> problems on how to organize stuff and getting my head wrapped around 
> this. The plugin will be for turning a div into an interactive mapping 
> application.
Just a quickie: Why don't you integrate the Resizable into your Map 
method? Makes coding it way easier.

Another point: To interact from other controls with your Map, you may 
want to hijack jQuery's event system, using bind, trigger and some 
wrapper methods. I did just that in my latest accordion update, it works 
very well and elegant: http://joern.jquery.com/accordion/accordion.html
The intersting part is at the end here: 
http://joern.jquery.com/accordion/jquery.accordion.js
$.fn.activate calls trigger, which calls an event handler that was 
registered via bind. Because the actual handler is defined inside the 
plugin method, I don't have to pass around tons of variables, they are 
all in one closure.

Hope that helps somehow.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Accordion plugin

2006-11-10 Thread Jörn Zaefferer
Klaus Hartl schrieb:
> Jörn Zaefferer schrieb:
>   
>> @Klaus: I think it would be pretty easy to modify the tab's plugin to 
>> use the same event. As you may notice, my usage for activate has some 
>> small differences. I prefer a zero-based index as most programmers are 
>> used to that anyway. I hope you can reuse some of the ideas from the 
>> accordion, because I got a lot of inspiration from your tabs :-)
>> 
> glad to hear! I chose a non-zero based index to make Tabs usage as easy 
> as possible even for non-programmers. Your trigger function became much 
> shorter than mine ;-)
>
> I will have a look into that custom event thing - interesting!
>   
It would be nice to synchronize them. The activate method can be exactly 
the same for both, as long as the binding is different. As your plugin 
has way more users, I'd change my implementation to a non-zero based index.

It should be no deal to modify the docs for activate to be more generic. 
The code is small enough to keep it in both plugins: If someone uses 
only one, activate is at hand, if he uses both, one activate gets 
overwritten and the other still works for both.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] shrinking animation

2006-11-10 Thread Paul Bakaus
Hi!

Actually there is, check out Interface: interface.eyecon.ro
Demo is here: http://interface.eyecon.ro/demos/ifxtransferto2.html#

Hope this helps!

2006/11/10, Armand Datema <[EMAIL PROTECTED]>:
> Hi
>
> I need to mimic the animation effect of
> http://www.jackslocum.com/blog/examples/dialog/hello.php
>
> I have doen this before in one of my old javascript libraries, but
> before i start a rewrite is therea jquery plugin allready that handles
> this
>
> Armand
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Paul Bakaus
Web Developer

Hildastr. 35
79102 Freiburg

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Overlib in combination with drag-n-drop from interface

2006-11-10 Thread Barry Nauta
Has anyone used the overlib libraries in combination with interfaces' dnd 
libs?

I have some rows in a table (overlib hover of the name gives a popup with more 
details) and these rows can be dragged to a trashbin. When this happens, the 
overlib library goes insane telling me that the event (related to a mouseout 
event) does not exist.

Barry

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


  1   2   >