it's not very
elegant or light code. i meant to clean it up and make it into a plugin
later.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
easiest way to do this is to check if the tag is an iframe, if
it's not get the dimensions of the element and replace it with an iframe.
I don't know if it would add much code to the plugin but it would
degrade nicer. I'm just thinking al
use any frameworks.
>>
>> So I take a look at the specs and my brain just goes limp.. I
>> CAN'T THINK OF HOW I WOULD DO THIS WITH OUT JQUERY..
>>
>> it is a sad sad world all because of my dependency of the crack
>> tha
or something like this
$(function(){
// create link and hide spoiler
$('.spoiler').before('Spoiler').hide();
// toggle the spoilers
$('span.spoilertoggle').toggle(
function(){ $(this).next('.spoiler').show(); },
function
If you want i will set up an example this evening.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Klaus Hartl schreef:
> I can only imagine to make that a little shorter:
>
> $('#dropdown').change(function() {
> $.log( $('option:selected', this).text() );
> });
>
>
A little is good enough for me :) thank you
--
David Duy
I thought this was easy because it's easy to get the selected value from
a dropdown but i ended up doing something like this
$('#dropdown').change(function(){
$.log($(this).find('option').filter(':selected').text());
});
Is there anot
. That's what
> makes the plugin all worth it.
>
>
That is great, thanks for having patients with me. it wasn't clear to me
how it all comes together.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
t i do use it in an asp.net
page maybe that is the problem? I haven't figured out yet how to avoid
default asp.net javascript behavior.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
);
UJS_add_behaviour('a.toggle', 'click', "$('#foobar').toggle();return false;");
?>
If you go unobtrusive go unobtrusive all the way :)
Once i get around to learning how to use symfony i will definitively give your
helper a try. I bet this will amaze
e, in firebug i got the error: is not a
function. When i replaced the internal $ with jQuery the plugin works
like it should.
The way i use javascript is to combine the plugins and the actual code
for the site in one javascript file.
--
David Duymelinck
[EMAIL PROTECTED]
_
27;s my mistake, I got it now you can write obtrusive but you have an
helper to create unobtrusive javascript. Now i'm wondering is there a
place for that helper in the plugin? It can be the cause for confusion
and i'm example one :)
--
David Duyme
quot;group" the #a, #b, #e selectors. Of course, this is an example, I
> need a general method of achieving this.
>
>
just use a comma separated string
$('#a, #b, #e').show();
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
alert('foobar') });
});
i'm just thinking aloud. It could also be good to cache the javascript
like this
Anyway nice work. I feels good to see jquery hooked into php, before we
know it will be the prototype library of php :)
--
David Duymelinck
[EMAIL
[-Stash-] schreef:
> I like the sound of this idea if it can be made to work :)
>
> Do you have an example of what you're talking about David?
>
> Luke
>
I will set up an example this evening.
--
David Duymelinck
__
Klaus Hartl schreef:
> David Duymelinck schrieb:
>
>> Klaus Hartl schreef:
>>
>>> * Automatic type detection depending on type of element, respectively on
>>> type of link:
>>> image: href is an image
>>> content: href i
forward to the final release.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
on
> other platforms. Feedback is welcomed!
>
> Josh
>
When i tested the demo in FF1.5 on xp i noticed the content of the page
jumped a bit down. it only happens when the page is loaded for the first
time.
--
David Duymelinck
[EMAIL PROTECTED]
___
list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
may i say wow :)
At first the hourglass cursor threw me off with the modal example but
it's a nice find to show the underlying page is inaccessable.
And your code still looks so clean. even the css is clearner than
parent('dt').next('dd').slideToggle(500);return
> false;});
>
you don't need parent if the you want the following dd element
$('dt.toggle').bind("click",
function(){$(this).next('dd').slideToggle(500);return false;});
--
David Duymeli
bject and output that as html and make an excel
file? this will not fatten your javascript code which needs to be
downloaded too.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
gt; http://jquery.com/discuss/
>
>
>
I saw a css technique where the initial and the mouseover image where
one image and they swiched them with by showing only that part of the
picture that was needed.
I can't find it back right now but i think it was on a list apart.
i got an article here : http://wellstyled.com/css-nopreload-rollovers.html
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Agrawal, Ritesh schreef:
> Original
>
> Heading
>
>
> Modified (desired result)
>
>
>
>heading
>
>
>
>
>
you have to use the wrap function
$('span.heading').wrap('
he divs a class and then you
could use
$('div.class').click(function(){
// to catch the id of the div
$(this).attr('id');
// to hide and show
$('div.class').hide();
$(this).show();
});
i'm not sure if $('div.class').not(
ade child element positioning.
Now you can use jQuery to change the z-index to make a roll-over image.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
orums.devarticles.com/javascript-development-22/how-to-stop-browser-from-closing-using-javascript-8458.html
i understand there is a window.onbeforeunload event
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
oticed it because i clicked on one of
the items and when i hit the back button i got back to the demo page.
Maybe i'm too picky but all other menu items direct you to a page.
Still very nice work on the interface plugin.
--
David Duymelinck
[EMAIL PROTECTED]
___
Olaf Bosch schreef:
> David Duymelinck schrieb:
>
>
>>> What about this?
>>>
>>>
>>>
>> With the #text a links your own links don't show the favicon in FF2 and IE7
>>
>
> :) it's a feature, no Favicon wit
pera used Extra-CSS
>
> What about this?
>
>
With the #text a links your own links don't show the favicon in FF2 and IE7
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
idn't think to just
> provide a "top" value, so this isn't directly possible.
> I tried something like just:
>
> onStop : function() {
> $('.dragbox').css("z-index","1");
> $(this).css("z-index&qu
David Duymelinck schreef:
> Brandon Aaron schreef:
>
>> Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
>>
>>
> I tested the page on FF2 and i didn't see the log frame.
>
> In IE7 tests 6 and 7 fail their limitation.
the speed of the movement but i
haven't used it yet. I already made it into a game to get the highest
movement (24.975) :)
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
does the weight of styling pages in
javascript would be a lot less. IE6 doesn't support selectors. IE7
picked it up but the latest browser statistics i saw IE7 was used by 7
and an odd percent.
--
David Duymelinck
[EMAIL PROTECTED]
___
o
$('[EMAIL PROTECTED]"#"]').each(function(i){
$(this).click(function(){
if($(this).next('[EMAIL PROTECTED]"#"]').size() == 1){ // check if there is a
innerlink further on the page
$(this).next().ScrollTo(2000);
return false;
}else{
$(
don't
need href .
Are there more changes in the to be released interface? or do you keep
them under the hat to surprise everybody :)
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
> http://techfoolery.com/archives/2006/08/11/2021/?PHPSESSID=784f3aa2dd287a7ce685852ff5d7ff9a#comment-4
>
That is the scrollto function of the interface plugin:
http://interface.eyecon.ro/docs/fx you can download it there too.
-
Klaus Hartl schreef:
> David Duymelinck schrieb:
>
>> Klaus Hartl schreef:
>>
>>
>>>> Performming .click(), .blur(), .focus(), .submit()
>>>> will actually trigger the browsers default action
>>>> for those events.
>&g
you have to use .bind(). I don't know
how the compatibility plugin will deal those functions.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
t; discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
After having a quick look at the new documentation, much clearer now
too, i must say it had to be hard work to realize all those things to
make working with jQuery easier than before and more powerful with less
code
wHtml('Name: '+element.name+'Latitude:
'+element.latitude+'Longitude: '+element.longitude+'');
});
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
ad of IE, it works in
javascript 1.6. so you can pray IE will adopt it soon :)
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
s null or not an object.
>
>
iutil is a different js file. most of the functions of interface rely on
it to get things like height, width, ...
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
gt;
it's a part of the interface plugin. scrollto it the name of the function
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
n each loop
this referred to the elements caught by the parent function because it's
possible to get the text out the different tags and put it into the
innerhtml.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
"span.a").parent().each(function() {
if($(this).is("span.a")){
var t = $(this).text();
$(this).html(t);
}
});
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
http://www.javascripttoolbox.com/lib/table/. maybe some inspiration for
the tabelsorter plugin guys ;)
There are some nice examples on the example page.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss
Juha Suni schreef:
> David Duymelinck wrote:
>
>> Putting post data in a session isn't a good choice because cookies and
>> sessioncookies have a limited file size.
>>
>
> Ermm... the session data is not stored in the cookie (thank god). Therefore
&
ies have a limited file size. If you want to use $_POST i
suggest you write a function for it and use global variables for them,
$postFormnameInputname could be a way to identify them. Post data
shouldn't live longer than needed for database manipulation or form
redirecting if an
to
>> refresh your browser cache.
>>
>>
for the ones that don't really like the common interface there is
http://start.gotapi.com.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
o that the performance
would improve using something like that. #myid could match a form, a div
or some other tag you apply the id to.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
n(speed);
break;
case 'slide':
$('#modalBackdrop').top(wt).css(css).height(winHeight +
'px').width(winWidth + 'px').show();
modalContent.hide().top(mdcTop + 'px').left(mdcLeft +
'px').slideDown(speed);
break;
David Duymelinck schreef:
> Jez McKean schreef:
>
>> Hi all,
>> has anyone made this as (part of) a plugin?
>>
>>
> Just use the hover function, there is no plugin needed.
>
> $("td").hover(function(){
> $(this).addClas
Jez McKean schreef:
> Hi all,
> has anyone made this as (part of) a plugin?
>
Just use the hover function, there is no plugin needed.
$("td").hover(function(){
$(this).addClass("over");
},function(){
$(this).addClass("out");
});
--
David Duyme
);
> NHeight = (NHeight+"px")
> alert (NHeight);
> $('textarea').css("height","NHeight").slideDown('slow');
> });
> });
>
>
>
>
> höher
>
>
>
> NHeight is set the correct He
);
> NHeight = (NHeight+"px")
> alert (NHeight);
> $('textarea').css("height","NHeight").slideDown('slow');
> });
> });
>
>
>
>
> höher
>
>
>
> NHeight is set the correct Height, see alert, the CSS wor
rewrite and hopefully it will be of use to someone.
>
I liked what i saw but can you explain why you need to set the variable
twice?
$l.click(jQuery.fn.hide,$l,true);
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mail
it load only once ?
>
>
Maybe a solution that is to simple to be the one you want: isn't it
possible to load every page in a master page then you can put jquery.js
in the masterpage.
--
David Duymelinck
[EMAIL PROTECTED]
__
Thank you all for the response, I'll try to mold all the information in
an article.
To summarize the thread:
- use document.writeln( '' ); to import javascript css file
- style all essential css in the plugin/general javascript code.
--
David Duymelinck
[
n(data) {
>
> alert(data);
>
> });
>
> }
>
>
>
The common way to do this with jquery plugins is
function(options) {
> var settings = jQuery.extend({
> name: 'John',
> surname: 'Doe'
> }, options || {});
> $.post(‘save.html’,se
is no point of having
multiple languages in the the same lang attribute. I dove in middle
disscusion without reading the whole thread, that was my mistake.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
is seems to be a common mistake. Maybe on one of the learning sites or on the
documentation page of jquery.com there should be a list of common mistakes
found in the mailing list to guide newcomers and even 'veterans' :).
--
David Duymelinck
[EMAIL PROTECTED]
_
tiple language ready.
Some people use the things you least expect :)
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
ax calls. Maybe Klaus' code could be merged with that plugin?
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> Why not just .request(method, options) or .http()
>
I like the thought of request to replace the load, get, post functions.
The ajax prefix is to narrow of a definition on what you can do with
that function. In my eyes it also refers to the xmlhttpRequest object.
--
David Duym
to or just strip that part of
the code :) but then you also have to remove it from the image creation
too.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
visualy. It will save you
much debugging time if you look at that same code months later.
$('#menu-layer0').tabs({on: });
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
;slow').end().show('slow'); doesn't.
And it has the same behaviour as animate.
Is there a change in the code or am i doing it wrong (again)?
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Sean O schreef:
> Hi,
>
>
> I've created a new jQuery plugin, jMP3, to easily make MP3s playable
> directly on most any web site.
>
Damn damn damn. It's all ready there, just skip my last message.
Now i know why my plugin didn't make the plugin list and y
x27;t know if the player can accept calls from javascript but
if that is possible you could add that option too.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
nd according to firebug the error is
situated in lines 91, 344, 979, 1350, 1359, 1370 and 1380. But that is after
the anihide object is set to true so i don't know if it's useful information.
If i find another way to avoid this i will let you know.
--
David Duymelinck
__
s from the actual plugin, the other code is pseudo code.
But i think you can understand the point i'm trying to make.
When i alert anihide the first time i get the opacity value but the
second time i get true as value.
thanks in advance
attribute alone.
Rafael Santos schreef:
> pls show us the docs and the source again, i havent tagged it on
> delicious yet.. =)
> and there may have new ppl on the list who would like to have it on
> their gmail account.. hehehe
--
David Duymelinck
[EMA
ons is taking a page element id
that is unique for the website and check if it's there with the size
function
if($('#someid').size() >= 1){
//functions for that page
}
i don't know if it's the best way but it worked for me so far.
--
Da
> // Your code here
> });
>
> for each function you write, or do you just have one wrapping "ready
> statement" and put all your functions inside it?
>
> Thanks,
>
> Paul Caton.
>
> ___
> jQuery mailing l
erface.eyecon.ro/demos/expander.html and the dowload can be
found at http://interface.eyecon.ro/download
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
gnized as the object just being
> clicked.
> If we have in the body of the function - alert(this.tagName) -
> FF - alerts 'LI'
> IE - alerts 'undefined'
>
> I'll be very grateful for any sugestions and solutions, thanks in advance.
>
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
gt;> and this code to check it
>>> $("#foo").val(1);
>>>
>>> It doesn't.
>>>
>>> The value attribute of a checkbox is imho not dynamic like a texbox's,
>>> but static, and can only be toggled to on or off.
>>>
&g
d call that function
in the ready function and in the callback of the ajax function. I assume
you use ajax to generate your new html.
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
ameter field so that the player
is adjustable too and checking for the href attribute and if the file is
an mp3 file.
--
David Duymelinck
[EMAIL PROTECTED]
___
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 mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
; $("div#indicate").hide();
> }); return false; });}
>
> The "text" coming back (from an .asp file) contains HTML tags which,
> in the above code, are being stripped out.
>
> How can I return the data in a HTML format?
>
--
David Duymelinck
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
81 matches
Mail list logo