hat you don't expect. Selecting the next
matching element makes more sense.
Sean
On Aug 31, 11:08 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Sean,
>
> Actually, you can't use .next() in that situation.
>
> The argument for .next() acts as a filter for what the
Hi Everyone,
I am trying to get images to animate from the center in height and
width.
I can get the animation to work but can't find anywhere how to get it
to work from the central point!
Hopefully someone can help me here.
Thanks
Sean
My JQuery POST is supposed to re-render new content in the Lightbox,
but this was not happening in IE8 and IE8 Document Mode. Would work in
IE8 Browser Mode and IE7 Document Mode.
Turns out there is something odd about how an HTML Select Option on
the form was handled. Regardless of how I define
I have the following code:
Test1
Logout
var obj = $('test'); // used specific div, as this is in a huge
document
obj.find('.ajaxApplyIgnore a').addClass('red');
The js code above will not select the Test1 link, even though it is
found within the div layer with the aj
I forgot the '#' sign in the sample code I provided.
The problem I am having is that the code does not work. For some
reason, If i remove the tags, it works, but keeping them in
makes it not work.
n a
> $(document).ready(function(){ ... }); ?
>
> On Thu, May 21, 2009 at 16:49, sean wrote:
>
> > I forgot the '#' sign in the sample code I provided.
>
> > The problem I am having is that the code does not work. For some
> > reason, If i remove the tags, it works, but keeping them in
> > makes it not work.
using:
$("#modal_content").append("Some html, tags should not be visible.");
Does anyone know why this might be? On other ajax requests (not with
uploads) the dom manipulation works as expected
Thanks,
Sean
jQuery Example
$(document).ready(function(){
$("#ajax").click(function(){
$("#quote p").load("test2.html");
});
});
test2.html
Why won't you work?
Any clues would be greatly appreciated. I cannot figure out what I'm
doing wrong :(
Thanks,
Sean
IE.
>
> did you try the not-packed version? the error might not be in your code, but
> in the jquery.js file.
>
> http://cigar.dynalias.org/test1.htmluses my latest version (packed)
>
>
>
> > Of course you have 2 s ... but that's because you have a p in 1 and
k on the net, maybe some IE user can hit it... the code
> looked good to me, and runs for me on Opera, Firefox & Safari.
>
> On 5/16/07, Sean <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I just tried it on a different computer, using the exact same code
>
Well thank you all for working so hard on this. It certainly is a bit
frustrating.
I think I understand the post about standards...maybe you're not
supposed to put a inside a ? :p
Anyway, Jake, you're test3 works fine for me on your site and locally,
and that is a perfectly acceptable work aro
work, it probably has to do
with the enclosing . I have hardly any experience with IE bugs,
so maybe somebody could take a short look at the page and give me a
hint on what might be wrong.
cheers, Sean
HI There,
I'm trying to call a method using the setInterval function that call
has some parameters but I can't get it to work. Can someone give me a
hand with the syntax please.
Sean
slideshow_interval = setInterval( 'PageMethod("getNextSlideShowItem",
["
Hi There,
I'm getting a response back from a .net page. The response looks like
this and is variable in length. What is the best way to handle this on
the client using jquery syntax?
Sean
{"first": "slideshow/52/2.jpg","second": "slideshow/52/2_2.jpg"}
Hi There,
I'm getting a weird error when I try to use this script ui.mouse.js in
my page. The drag and drop functionality seems to be working fine it's
just generating an error. Can someone tell me what i'm missing to
initialize this?
!-- error from firebug
$.ui[module] has no properties
add("
I have a jQuery plugin that adds a series of links to my page, and
when each one is clicked, it should display the index of the link.
The problem is that every link displays the string "11". This is
because when I bind the click method, I pass in an actual function,
which doesn't get interpreted
Thanks so much Richard, that's exactly what I was looking for!
- Sean
--
http://catalyticat.com
2008/6/13 Richard D. Worth <[EMAIL PROTECTED]>:
> $('.child').click(function(e) {
> e.stopPropagation();
> });
>
> This will prevent the click event from bubbli
A while ago Jason Levine suggested a firefox extension be made to
detect if a website is using jQuery. I accepted that challenge and
finally had some time to work on it. Find the link below and give me
your feedback. Keep in mind this is still very much beta, there are
lots of bugs I have already
Fabyo,
Try:
var teste = $("#obj");
alert(teste.scrollTop);
You need the "#" prefix to designate an id. (and a "." prefix for class)
Native elements, like body, can be directly addressed ( e.g. $("body") )
___
SEAN O
http:
Looks great! I had no idea jQuery added: $('') !!
I must be really behind times?!
~Sean
I know that jQuery made the decision not to allow selection of
elements with colons in them, however it is valid XML. Here is an
example piece of code I am getting back from an ajax call:
<news:special>Free chicken!news:special>
Any ideas how I can select the news:special item?
~Sean
quot;);
$(form).find("[EMAIL PROTECTED]").attr("disabled", "");
This should also work to enable the element, but the best test is
trial and error.
~Sean
Google Calendar has several widgets/gadgets.
~Sean
Nash, do you have an example we can look at?
~Sean
Rick,
onInvalid: function(form) {
Did you mean onInvalid = function(form){
Why are you declaring functions inside of your $(document).ready() ?
Below I've attached working code, give it a try:
~Sean
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.o
same effect, can you?
~Sean
Interesting find Karl, Thanks
I'm still trying to see if I can find a graceful way to implement
curried functions, but that method is elegant in it's own sense.
~Sean
x27;s
tedious. I'm trying to come up with a trickier way so that it's not so
painful to create a curried function in javascript.
~Sean
;on"); });
});
Also note that http://www.jquery.com/api/ is an excellent resource for
learning jQuery.
~Sean
ode to access the parent, not
only the class name...
Yes Klaus, but lets say the focus function gets called twice (through
malicious javascript or a quirky browser) then the toggle state of the
class will be off. But in general I prefer your implementation.
~Sean
{
$('a',root).click(function(){
$('.content').load(this.href,function(){
hijackLinks($('.content')); });
return false; });
}
Then you only need to run your: $(function(){ hijackLinks(document); }
~Sean
on a curry function that will change any function in a curried one. I'll
post it on the newsgroup later once I get the last bug figured out.
~Sean
Also, what's Sean talking about when he says:
"lets say the focus function gets called twice (through
malicious javascript or a quirky browser) then the toggle state of the
class will be off. But in general I prefer your implementation. "
Is this something i need to worry
I could see my users typing in the comma in a multiple select scenario, so I
cast my vote for comma-as-selector.
Great to see you guys collaborating on an important (IMHO) and useful
plugin. I wish I had more time (and expertise lol) to lend a hand.
___
SEAN O
http://www.sean-o.com
Can you link an example or paste some code?
~Sean
Yansky,
I was going to wait for the next version of jQuery, but I'll try to
get a working version of jQuery for userscripts again.
~Sean
t to create the function a/3 you can do the following:
id = function(id){ return id; }
div3 = divide(id)(3);
~Sean
Spam is not the only problem I'm receiving. Sometimes I don't get the
original message sent to me via email and then I only get someone's
reply to it.
Google needs to step up their game, or we should find another host.
~Sean
e .contentpane >
p",item_content).html();
jQuery("#myContent").html(new_content).slideDown("slow");
});
~Sean
I don't think there is a crop plugin, but there is an ImagePan
(http://motherrussia.polyester.se/jquery/panview/) plugin that you
might find usefull.
~Sean
Hi Simon,
I'd recommend using http://jquery.com/api/ and firebug to help you
debug. You're function looks ok, but I think error is an object that
contains lots of data. Check out $.ajaxError at the api I linked. Let
me know if you have more questions.
~Sean
e: oranges
I hope that helps.
~Sean
You're absolutely right. I think at some point in jQuery's past this
was flipped, but I'm glad to know that the filter functions works as
intended now. Sorry for the confusion. =(
~Sean
I assume $('img').css({width:'100px'}); is not what you want.
Are you asking for something with an image slider.
~Sean
On 4/23/07, wls <[EMAIL PROTECTED]> wrote:
How does one tell if an element has a class, or alternatively, get a
list of classes?
The following would return an array of the classes the first item has.
var classes = $(query)[0].className.split(" ");
~Sean
/ etc. etc.
onResize : function(size, position) {
this.maxWidth = size;
}
}
)
Please note that "this" needs to be pre-pended before the variable in
order to access it.
~Sean
Good example Klaus!
Here's another reference for checking the url if you need it:
http://www.sunsean.com/Jistory/
~Sean
Javascript has a built in scrollTo(x,y) function. One would only need
to get the .offsetTop of the element and viola. Ok well perhaps that
was over simplified, but at least there's some stuff to point you in
the right direction.
~Sean
Kim, I think you are right.
$(this).parents("div.foo") should work.
The following might also work:
$("../div.foo",this)
But I haven't had time to punch that in myself yet.
~Sean
I ran you code in FireFox and in IE6 and recieved no such error.
~Sean
Try: $.fn.cropImage = function() { ... }
Although this may be old syntax.
~Sean
The new plugin page looks good. This would be an ideal time to put in
a rating or digg system. Having the top 5/10 plugins is always
helpful.
~Sean
Hi Sam,
The solution is in the callback function of the ajax command.
$.load("url",function(result){ $(".alerter",result).click(...) }
Something along those lines. Let me know if that helps.
~Sean
Yes, as far as I know jQuery works with inline and stylesheets equally.
~Sean
Nothing fancy is needed, just a simple function:
$(function(){ aleter(document) }); //This is your document.ready()
$.load("url", aleter ); //This is the ajax
aleter = function(e) {
$(".alerter",e).click( function(){ alert('you clicked me.'); } );
}
Hope that helps =)
~Sean
I'm sorry, what was the question?
~Sean
Hi Dave,
On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Sean, I am fishing...If you are supporting a jQuery app, how much
effort goes into supporting browser changes and incompatibilities?. - Dave
Most of the browser incompatibilities I've had to deal with have been
w
$(this.href);
currOpen.show("fast");
return false;
});
~Sean
e, and for only a tiny fraction of the
vast memory, one can speed the process by storing the last showed div.
Consider if there were 1000 links, then storing the div is faster. But
alas, hiding them all each time is safer when considering simultaneous
clicks.
~Sean
Nathan,
A long time ago I made a simple proof of concept script on this:
http://www.sunsean.com/Jistory/
~Sean
Glad to see this is still alive Sam, excellent plugin.
~Sean
Looking at the code for newticker, you might/should be able to just
recall $("ul").newsticker() and it should reset the ul. If for some
reason it doesn't work, then this might be the change that the plugin
needs:
stopTicker = function(el) { if(el.tickfn) clearInterval(el.tickfn); }
~Sean
Try this:
$('#pictures').html(...).bind("load",function(){...});
~Sean
Try drag.src
~Sean
Hey Rey,
Looks like Uni-Form,
http://dnevnikeklektika.com/uni-form/
an attempt to modularize and standardize form inputs, has moved to jQuery in
their latest version 1.2.
SEAN O
http://www.sean-o.com
Rey Bango-2 wrote:
>
>
> Added:
>
> - GameGum Free Flash Games
});
return false;
});
}
~Sean
Simple problem:
I add an image from an external site to the page and sometimes the
site is protected by Apache authentication so it pops up a login box.
This is really annoying, any ideas on how this can be suppressed. All
creative suggestions accepted.
~Sean
Ok, so now I have this same scenario where I am trying to load ajax
from a apache authenticated area and it popping up with the login box.
Is there any way to hide that?
I'm looking all over the web, but I haven't found anything yet.
~Sean
trying to
look into other headers I can send, or possible polling of values to
catch the failed credentials early. You would think this wouldn't be
an impossibly task. If there's any other suggest, I'd be glad to hear
then, otherwise I'll try to post the solution if/when I find one.
~Sean
/javascript'>$('#warn').html('required!');";
The JS is evaluated in Firefox 2/Win (loaded into the "master" DIV), but not
in IE6/Win.
How can I force the issue in IE?
I read quite a few posts on this, and couldn't find an answer...
Thanks,
calling a
PHP document?).
I'll have a look at the llnl.gov code next week.
Thanks for the pointers, folks.
And happy Quatro De Mayo.
SEAN O
http://www.sean-o.com
shelane wrote:
>
>
>
> I also had this problem and pleaded for help in these thread
Using $(document).ready(...) will apply whatever you want after the
html is downloaded ( that doesn't include images ect...) If you want
it any earlier then this is pretty much your only option:
$("#moveme").css("position-left","-30px");
The only other way is to... use css.
~Sean
Sam,
The demos don't seem to work for me in either FF2 or IE6 (?)
SEAN O
http://www.sean-o.com
Sam Collett wrote:
>
>
> Haven't updated outlineTextInput's for a while (due to having issues
> with IE) - which is a plugin for adding outlines to text f
Sam,
That was it. Works in FF2 & IE 6 here.
I had thought there was a default initiation of focusFields() on page load
of the demo...
My eyes passed right over the "click one of the examples above..."
SEAN O
Sam Collett wrote:
>
> Did you click the text fiel
Rob,
If I understood you correctly, then idTabs does exactly what your asking for.
http://www.sunsean.com/idTabs/
If I misunderstood, can you clarify?
~Sean
uppose at the moment the only thing you can't change
dynamically is which tab a tab opens.
~Sean
Looks great Jay! Keep up the hard work.
~Sean
str = "I'm in love";
So just use whichever you feel is better for the situation. Some people are
used to single quotes representing characters, whereas others think html =
double quotes, javascript = single quotes.
~Sean
Rick, you could try zoomi.
http://www.sunsean.com/zoomi/
~Sean
Great article. Those are some wonderful plugins (including Round 1).
~Sean
have been used for a long time so
browsers are quite good at drawing them.
~Sean
Dmitrii, the code Erik Beeson pasted works, here's another option:
$.extend({expr:{":":{mod: "i%m[3]==0"}}}); //adds mod selector
$("tr:mod(3)")
~Sean
The following code will set index.html#num=2#foo=bar to num=2; foo="bar";
(function(){
var l=window.location.hash.split('#').slice(1)
for(var i=0; i
On 7/30/07, John Resig <[EMAIL PROTECTED]> wrote:
> As of jQuery 1.1.3 you can now do:
> $("tr:nth-child(3n)")
I knew it! I couldn't remember which selector did it, but I thought I
had seen it before. Thanks John.
~Sean
items[0].item_id)
).click(...).appendTo("#content p")
That's just one of many ways of doing it.
~Sean
vi
he data given.
I like to use XML because then the designer can decide which information to
grab and manipulate using XSL into HTML.
Here's a rundown of how the languages map on the model I'm using.
Data Layer: MySQL / PHP / XML
Presentation Layer: XML / XSL / HTML / CSS / JS
~Sean
programmer, but experienced
users can find information of some use. A nice touch is the "click-to-run"
code samples that launch in a console attached to the foot of the browser.
They even feature an off-line download of the hyper-book and a print
version. All free.
http://eloquentjavascript.ne
(2)", $("tr:eq(1)"))
This works, but is a clunky way of writing it.
Matt, using :eq is certainly the best idea.
Your example would be:
$("tr:eq(1) td:eq(2)")
If you wanted to iterate through the table you could do:
$("tr").each(function(i){
$("td",this).each(function(j){
$(this).html("Row: "+i+", Col: "+j);
});
});
~Sean
doc)
would select the body.
Hope that helps.
~Sean
Mtich,
I like to toggle checkbox states by emulating a click. This allows for any
bound events to also trigger.
$(":checkbox").click()
~Sean
This would be a wonderful application for a download builder.
The core should remain exactly that, a core.
~Sean
Haha, that's fun. Thanks for posting it.
~Sean
On 8/9/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> http://www.malsup.com/jquery/cycle/
Nice plugin Mike, when did you release this?
That's really cool Stephan, thanks for sharing. HTML needs a
refresher. Classitisis is everywhere and it would be nice to have a
few more useful tags to play with. Then again I use XML so I just make
tags up anyway =P.
~Sean
On 8/10/07, Sam Collett <[EMAIL PROTECTED]> wrote:
> http://www.texotela.co.uk/accordiontest.php
You could try this:
$("#menu").Accordion({header:'li.haschildren[strong]'});
~Sean
Congrats Jörn!
~Sean
Hi, This might be a fancier solution:
var s = "title.string1-color.string2-size.string3";
h={};
$.each(s.split('-'),function(x){
var t = x.split('.');
h[ t[0] ] = t[1];
});
~Sean
On 8/10/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> That
the function.
~Sean
On 8/10/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> Sean...
>
> I have a question...when you pass in X to the anonymouse function on the
> 3rd line, what is x? Is it $(this), a jQuery object? How do you know what it
> is?
>
Hi Sam,
With your html I was able to get this to work:
$('#menu').Accordion({ header: 'li strong' });
~Sean
1 - 100 of 369 matches
Mail list logo