this might sound dumb, but try using 'display:block;'?
On Fri, Oct 24, 2008 at 4:32 PM, Alexandre Plennevaux
<[EMAIL PROTECTED]> wrote:
>
> Yup I second Mike's advise. Make sure first that CSS allows it in a
> static demo file, then when you get it to work, you'll know what to
> script exactly.
>
here is what it looks like without the fade:
http://www.oddvice.com/switchertest/test.html
I just want to add a simple fadeIn to the green button with the hover
function. Here is the full code without any fadeIn:
// JavaScript Document
$(document).ready(function() {
$('.button').click(functio
Cool, I've never seen that site before. I made a small demo using my
code above: http://jsbin.com/abuxe
Strangely enough it's not working properly, and that's a direct copy
of what I wrote that works. Basically they are all shrinking, and the
on your mouse is over does not get larger. Not sure
Hi Mika,
Rey runs it and I occasionally post something to it. We find jQuery-
related stuff through RSS readers and from tips. As for new websites
using jQuery, Rey split off that kind of announcement to another
Twitter account, jquerysites.
--Karl
Karl Swedberg
www.englishru
Thank you for cleaning that up, but it's still not quite right.
It's not fading in, it just adds the class instantly. and when it
fades out, it removes the div I put the .hover class on.
Thanks for trying.
On Oct 24, 8:03 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> $(document).ready(function(
I'm sorry, but I'm not following you. Can you further explain what
you mean?
Thanks
On Oct 24, 12:36 am, "Prajwala Manchikatla" <[EMAIL PROTECTED]>
wrote:
> You can think of
> stopPropagation.http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-flow
> I hope this might help you.
Maybe you could post a working sample to jsbin.com, that would make
things a lot easier.
On Oct 24, 4:00 pm, "c.barr" <[EMAIL PROTECTED]> wrote:
> Hate to bump this, but it might get lost otherwise!
$(document).ready(function() {
$('.button').hover(function() {
$(this).addClass('hover').fadeIn();
}, function() {
$(this).removeClass('hover').fadeOut();
});
});
This should work, it's exactly the same as your second try but with
correct syntax
Alternatively,
$(function(){
window.test = function(){ console.log('hi')}
});
On Oct 24, 10:11 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I'm trying to mix jQuery with some pre-existing JavaScript/HTML, but
> > I'm having what appears to be scope issues.
>
> > The code I'm working
And If I want handle to catch AjaxError in ajaxComplete?
Exist a way?
On 25 out, 00:01, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > It's possible that I could have 2+ ajax actions running on my website
> > at the same time, and I'd like to show a 'loading' image for each of
> > them.
>
> > When
Does ticking one untick another? That would trigger a change event on
the one being ticked as well as the one being unticked.
On Sep 22, 5:26 pm, sobencha <[EMAIL PROTECTED]> wrote:
> My problem is that I seem to be having a change even firing twice.
> Here are the details
>
> I have several
Sorry, I don't know how to summarize this problem so I'll just post
code.
Let's say you have this:
$('#myID').click(magicFunc);
magicFunc looks like:
function magicFunc()
{
$(this).fadeOut();
}
Now, let's say I want to invoke magicFunc on a certain item MANUALLY,
via code, not through a us
> I'm trying to mix jQuery with some pre-existing JavaScript/HTML, but
> I'm having what appears to be scope issues.
>
> The code I'm working on already has a bunch of inline event handler
> function calls in the HTML tags, and it'd be a ton of work to change
> them all to the unobtrusive way via
> Let's say you have this:
>
> $('#myID').click(magicFunc);
>
> magicFunc looks like:
>
> function magicFunc()
> {
> $(this).fadeOut();
>
> }
>
> Now, let's say I want to invoke magicFunc on a certain item MANUALLY,
> via code, not through a user-driven event. e.g.: (I know this is
> wrong)
>
> http://monsterpocalypsegame.com/
>
> With that front news box, you can mouseover the itemss faster than
> they can transition sometimes, so you are left hovering an item that
> isn't the one you're looking at.
Oh, I see what you mean now. Try the 'fastOnEvent' option.
$('#whatever').cycle({
> It's possible that I could have 2+ ajax actions running on my website
> at the same time, and I'd like to show a 'loading' image for each of
> them.
>
> When I use ajaxStart/Stop, if one ajax call starts, it shows the
> 'loading' image, but if that call doesn't stop before another ajax
> call st
In case anyone else runs into this, I had to add the type and
contentType properties before this would work. EC
$.ajax({
url: "page.php"
, type: "POST"
, contentType: "text/xml"
, processData: false
, data: xml
Hi,
I'm trying to mix jQuery with some pre-existing JavaScript/HTML, but
I'm having what appears to be scope issues.
The code I'm working on already has a bunch of inline event handler
function calls in the HTML tags, and it'd be a ton of work to change
them all to the unobtrusive way via jQuery
On Fri, Oct 24, 2008 at 2:25 PM, Eric P <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to mix jQuery with some pre-existing JavaScript/HTML, but
> I'm having what appears to be scope issues.
>
> The code I'm working on already has a bunch of inline event handler
> function calls in the HTML tags,
I'm encountering a similar situation. Have you found the answer yet?
Thanks in advance for any info.
Hi everyone. I miss the previous visual design of the jQuery site...
I was away for a few months and when I got back it looked like it had
stepped a couple of years backward and taken on a very Rails-in-the-
early-days look with that Trebuchet font and big empty sidebars...
No offense intended t
Hello,
I am using jquery.tooltip.js to add tooltips to select options. The
problem that occurs is that the tooltip doesn't appear relative to the
mouse. I have tried a number of top and left settings, but have not
had any luck.
$('selector')tooltip({
bodyHandler: function(){
Hi, I'm new to this group and to jQuery and javascript in general. I
would like to learn how to use hover with a fade. I can do each
separately but am having a hard time chaining them. Here's my best
attempts at a simple hover button with a fadeIn and FadeOut:
$(document).ready(function() {
I forgot who is running jQuery Twitter feed so I'll just ask here. How
do you handle it? Do people send you tips on new websites using jQuery
and new plugins?
--
Mika Tuupola
http://www.appelsiini.net/
Not to state the obvious, but did you make sure that the path to the
jquery is correct?
Trey
On Oct 25, 4:39 am, snacktime <[EMAIL PROTECTED]> wrote:
> When I include jquery inline in the body via a script tag I'm getting
> jquery not defined errors. Is there a reason why this approach can't
>
Hi mates,
May i ask you guys to have a look at my latest project,a bit on the
experimental side in terms of UI : a barcode image gallery for a
spanish photographer: http://www.pixeline.be/test/lisapram/
Let me know of any bugs you find?
AFAIK everything should run smooth (except for the long l
Hello,
I am validating a password field as follows:
$.validator.addMethod('password', function (value, element) {
return this.optional(element) || /^([a-zA-Z0-9]{8,24})
$/.test(value);
}, 'Use 8 to 24 letters or numbers only');
I write 8 numbers and letters. The message disappears. Fine ...
http://monsterpocalypsegame.com/
With that front news box, you can mouseover the itemss faster than
they can transition sometimes, so you are left hovering an item that
isn't the one you're looking at.
On Oct 23, 10:48 am, Mike Alsup <[EMAIL PROTECTED]> wrote:
> Can you give me an example of tha
On Oct 24, 2008, at 7:09 AM, Robert Koberg wrote:
On Oct 24, 2008, at 2:35 AM, akel wrote:
i've been reading a lot and still does not find any solution to my
query. please find the details below.
in jquery how can i automatically find the element sample with
attribute name equals to a
Yup I second Mike's advise. Make sure first that CSS allows it in a
static demo file, then when you get it to work, you'll know what to
script exactly.
Just a remark $('ul ul li') is not the same as $('ul li'). In the
first case it would only concern li which are inside an ul, inside
another ul (
Suggestion: Forget jQuery for a while. Instead, hand-edit an HTML file and
see if you can get the styling the way you want.
That way you don't have to troubleshoot both sides at once. All you have to
worry about is the HTML and CSS.
If you can get that to work, then you can duplicate the effect
Alexandre,
Your solution yields the same results as the original problem.
How is "ul li" different from "li" since li cant exist without a
parent ul, thus ul is redundant and unnecessary?
The more I am studying this, the more I am convinced that what I am
trying to do is impossible.
It is impossib
Another update:
- Started working on the demo's; squatting some final bugs and then
all i have to do is rebuild the demo's.
- Luckily i've documented the JavaScript extensivly so documentation
will be quick.
-- Gilles
On Oct 22, 8:28 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Yes that
The parent color is showing through...
put
.stripeable { background-color: #FFF }
in there to see what I mean
On Oct 24, 2:24 pm, MartyB <[EMAIL PROTECTED]> wrote:
> I'm a newbee. I want to create a collapsable ul. But I want each
> visible li (including both parent li and child li's ) to alter
come on marty try reviewing your css skills a little bit especially
the css selectors. You 've got it wrong, but this should do :
$('ul li.stripeable:even').addClass('greenbar');
On Fri, Oct 24, 2008 at 8:47 PM, MartyB <[EMAIL PROTECTED]> wrote:
>
> With...
> $('ul ul li.stripeable:even').addC
No! do whatever you want with the code. It's just a first version. I
would make new versions based on comments.
On 22 oct, 16:27, Wint <[EMAIL PROTECTED]> wrote:
> Do you mind if we modify the code at all Jonatan? I wouldn't mind
> taking what you have here and running with it. Either way, thi
With...
$('ul ul li.stripeable:even').addClass('greenbar');
it only stripes the child li's not the parent li's also.
I want every line in the display to be striped in sequential order.
Marty
You're going to have to be more specific. Test page? Example code?
You can certainly load jQuery in a script tag in the body. I do it all the
time in my Google mapplets and gadgets; it works fine.
But I wouldn't be able to guess what might have gone wrong without seeing
the code.
-Mike
> From:
It's possible that I could have 2+ ajax actions running on my website
at the same time, and I'd like to show a 'loading' image for each of
them.
When I use ajaxStart/Stop, if one ajax call starts, it shows the
'loading' image, but if that call doesn't stop before another ajax
call starts, the sec
Hi,
The problem is simple. I just want to add to , but
the size of shrinks.
This happens in IE7. Works fine in FF3.
I couldn't find any post about this problem. Maybe I was doing
something wrong.
Can anyone help? Thanks!
Below is the simple html I used to test.
test source
When I include jquery inline in the body via a script tag I'm getting
jquery not defined errors. Is there a reason why this approach can't
work, or does it sounds like I'm doing something else wrong?
The only reason I'm doing this is because it's a requirement on the
opensocial container surface
Hi everyone,
I'm making a product manager for a CMS i'm working on.
'till now I made the Multiple File Upload plugin work perfecly,
uploading pictures of the new products, on the new product form.
But now I need to make the edition of the product, and need that all
the images uploaded appear on a
Hate to bump this, but it might get lost otherwise!
Hello,
I am trying to validate a form with radio inputs. I want to the form
to be submitted only if an option was selected:
Do you like to travel?
Yes
No
I used:
$("#Poll").each(function() {
$(this).validate({
errorC
Hi,
On http://johannburkard.de/software/xsltjs/ -- very nice and useful!
I was just looking at the source of this and want to offer a few
suggestions:
* ability to 'get' the compiled XSL so you can store in some cache for
reuse without going through the download/parse again. The most
ex
So.. get this example
http://rapidshare.com/files/157173826/getscripterro.zip.html
Download that e open getscripterro.htm in IE 6+, you will see error.
And you try in FF it's will work fine.
About what you told me about inline scripts I really need get
"protoculous-effects-shrinkvars.js" file v
Using IDs with the solution I proposed above should work:
function divShowHide(divID, imgID){
var $divToShow = $('#'+divID);
var arrowURL = $divToShow.is(':visible') ? 'downarrow.gif'' :
'uparrow.gif'';
// the above is the same as: if ($divToShow.is(':visible')) { arrow
= 'downarrow.gif
Try
$('ul ul li.stripeable:even').addClass('greenbar');
$('li.stripeable:even').addClass('greenbar');
Mauricio
Ok, I;m an idiot. It works the way I was asking, you just have to
dereference your custom data off the options object of the jcarousel
in the callback.
Thusly, for posterity:
// Init jcarousel
jQuery('#mycarousel').jcarousel({
itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback
On Oct 24, 2008, at 12:59 PM, Recoil wrote:
Shoot, you're talking about using xsl to generate the entire page,
yes?
No, you target an ID to put the transformed result into.
On Oct 24, 11:37 am, Recoil <[EMAIL PROTECTED]> wrote:
Hmmm, I haven't used XSL before, I'm looking it up right n
The inline-block property is not yet well-supported cross-browser.
Use display:block, float:left, you'll get the same results (and spot
some flaws in your layout too).
In case someone is reading this: I suppose all animations in jQuery
give the elements a display:block property? Is inline-block
Shoot, you're talking about using xsl to generate the entire page,
yes?
On Oct 24, 11:37 am, Recoil <[EMAIL PROTECTED]> wrote:
> Hmmm, I haven't used XSL before, I'm looking it up right now, but I'm
> a bit unclear as to where to go from the point where I apply the XSLT
> to the XML. I mean, is t
Earlier I did a quick search for jQuery XSL plugin and found:
http://johannburkard.de/blog/programming/javascript/xslt-js-version-3-0-released-xml-xslt-jquery-plugin.html
I don't know if you are building the XML DOM or pulling it through
ajax. I don't know if the above works out of the box w
Ouch. Looking further, I guess IE has filters that can handle some similar
things to (ie: lighten, but not change brightness, etc), but I'll
attempt to find other solutions before we go that way (or just try to get
them to find someone to do it in flash).
Thanks muchly.
josh
On Thu, Oct 23, 2
Hmmm, I haven't used XSL before, I'm looking it up right now, but I'm
a bit unclear as to where to go from the point where I apply the XSLT
to the XML. I mean, is this just automatically going to 'work'?
On Oct 24, 7:19 am, Robert Koberg <[EMAIL PROTECTED]> wrote:
> On Oct 23, 2008, at 11:09 PM,
I'm a newbee. I want to create a collapsable ul. But I want each
visible li (including both parent li and child li's ) to alternate the
background color. The problem is that when I apply the background to
the parent, all of the child li's do not change color they inherit the
parent color. I am usi
No problem. Probably I should've been a bit more explicit in
reference to the setup.
My WCF service is hosted in IIS 7, and the Stream and Callback classes
I mentioned are in the same solution as the WCF endpoint. Also, you
have to add a line to your web.config file to reference the
IHttpHandle
Hi i was using an extension for jQuery with Dreamweaver CS3 from
http://xtnd.us/, but with CS4 it makes all the syntax coloring purple
and very hard to work on.
Does anyone knows an alternative?
Right now (jquery 1.2.6), the httpData function does this with JSON
data:
// Get the JavaScript object, if JSON is used.
if ( type == "json" )
data = eval("(" + data + ")");
This is not very secure. It would be better to allow users to choo
I figured out my problem was that I stuck
// This
function picks up the click and opens the corresponding
info window
function myclick(i) {
GEvent.trigger(marker[i], "click");
malsup wrote:
>
>
>
> success: function(responseText, status, $form) {
> var id = '#review_' + $form.attr("id");
> $(responseText).prependTo(id).effect("highlight", {}, 9000);
> }
>
> Mike
>
>
>
HUZAH!!! So I was close! Ah, thank you. Four days later straight.
But it's
> Thanx, would have been nice to know that i had to include a plugin to
> get it to work.
>
> but no im stuck. the text that is put in to the textarea has its html
> in entities format, so the < char is < and same with > know anyway
> to fix that?
Sorry, my brain saw the subject title "Ajax form.
Has anyone come across this before? This is the only thing from
making this menu perfect in my opinion.
Thanks,
Brent
On Oct 23, 4:29 pm, Cruizer <[EMAIL PROTECTED]> wrote:
> I am using this menu for a clients website, and I am having some
> problems with functionality.
> I may be reading it w
Thanx, would have been nice to know that i had to include a plugin to
get it to work.
but no im stuck. the text that is put in to the textarea has its html
in entities format, so the < char is < and same with > know anyway
to fix that?
On Oct 24, 5:52 am, Mike Alsup <[EMAIL PROTECTED]> wrote:
>
You have to write a custom method:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
A date/time library like datejs may help: http://www.datejs.com/
Jörn
On Fri, Oct 24, 2008 at 3:20 PM, Ravish <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is there anyway to do Time validation using the val
thanks tenacious for all the help. It sounds like i would just ditch
my IIS hosted WCF service, i was under the impression from this link:
http://msdn.microsoft.com/en-us/library/cc716898.aspx
that it was some how possible to rig WCF to format the response
natively but the solution it referrers t
Er, "bugger" should've been "buffer". Quite a typo.
On Oct 24, 9:58 am, tenaciousd <[EMAIL PROTECTED]> wrote:
> My service setup isn't exactly the same as yours but I think the same
> solution will work for you.
>
> You'll need to add two classes, one that inherits from Stream (we'll
> call is J
Hi,
Is there anyway to do Time validation using the validator plugin?
(http://bassistance.de/jquery-plugins/jquery-plugin-validation/)
It seems to have date validation but not for time... Any other
options?
My service setup isn't exactly the same as yours but I think the same
solution will work for you.
You'll need to add two classes, one that inherits from Stream (we'll
call is JsonStream) and another that inherits from the IHttpModule
interface (we'll call this JsonModule). The JsonStream class w
Fixed!
You're welcome to test it before the next release, you can find the
latest revision here:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/
Jörn
On Thu, Oct 23, 2008 at 10:49 PM, Àlex Corretgé <[EMAIL PROTECTED]> wrote:
> Ok Jörn,
>
> issue created
>
> http://dev.jquery.com/ticke
Ah, I forgot a little thing (documentation was a bit misleading on
that). Try this:
var levels = $('input:checked + label').map(function() {
return $(this).text();
}).get();
For csv do: levels.join(',');
And that's more or less the same as in the documentation ;-)
http://docs.jquery.com/Tra
Thanks for the info. How exactly are you writing directly to the
response using WCF? My IIS hosted WCF service is basically just
acting like a proxy to a windows hosted WCF service, so they both use
the same contract, but the IIS hosted service is a REST based
service. Is there a way to maintai
> What i would like to accomplish is though Ajax submit the form, grab
> the text that is returned and put it in a textarea (that is already
> hidden on the page, and will be unhidden when the form submit)
>
> I cant seem to find how to do this. if someone could point me in the
> right direction t
> ...and the best way to make sure people who are new to JQuery
> understand this is if it is "made more clear on the demos page and in
> documentation"
done.
Hello bob.
how your setHTML() function works ?
Is this use to change the text ?
or why not you replace the text (Open / Close) ?
like..
if(cls == 'openP') {
$("#toggleLnk" + " span").removeClass("openP");
$("#toggleLnk" + " span").addClass("closeM");
var txt = $("#toggleLnk").html().repla
> With out $(this) or scoping the current form I have no clue how to get it to
> target te proper ID.
So you need access to the form element? In one of your other examples
you had correctly discovered that the 3rd arg to your success handler
is the form element (wrapped in a jQuery ojbect). So
No test page, but I did manage to get it working. Turns out I had a
line at the start of my updateCity function which was setting the
state value back to the first option after the updateState had
finished doing its thing. So in fact, the function from my original
post works fine now that the stat
malsup wrote:
>
>
>> And here is the current setup of codehttp://www.pastie.org/299446
>
> You forgot to declare 'responseText' as an argument to your success
> handler function.
>
>
shoot! Ok, updated. http://www.pastie.org/299610
So now that starts to work. But the Problem of the code
> And here is the current setup of codehttp://www.pastie.org/299446
You forgot to declare 'responseText' as an argument to your success
handler function.
On Oct 23, 2008, at 11:09 PM, Recoil wrote:
Only thing is, I want the article text to be xhtml-enabled. so there's
's and 's and such in there, and we're looking at something
more like
This title is rad.
And this is some awesome article text.
It's HTML formatted thou
I wrote alert(levels) to check and I get:
[object Object]
Does anyone knows how to get the values and join in CSV format?
Thank You,
Miguel
On Oct 24, 1:47 am, shapper <[EMAIL PROTECTED]> wrote:
> yes,
>
> I have:
>
> var levels = [];
> levels = $('input:checked + label').map(function() {
> r
Hi,
Just had a look at your site - very nice.
I see the text is fading in and out in synch with the images. You can
control the text independently using the callbacks.
Try this:
$('#slideshow').cycle({
before: onBefore,
after: onAfter
});
function onBefore() {
$('p').hide();
}
On Oct 24, 2008, at 2:35 AM, akel wrote:
i've been reading a lot and still does not find any solution to my
query. please find the details below.
in jquery how can i automatically find the element sample with
attribute name equals to a without looping entirely the xml
jQuery supports
I've now got the divs sliding with this very simple code :
function divShowHide(divID, imgID){ // Hides/Shows the vehicle details
div and changes arrow appearance
var divToChange = document.getElementById(divID);
var arrowToChange = document.getElementById(imgID);
$(divToChange).slideTogg
So I'm grabbing some content from an xml file. Actually, to be
specific, an article, the layout is essentially:
This title is rad.
And this is some awesome article text.
Only thing is, I want the article text to be xhtml-enabled. so there's
's and 's and such in
Iv got this form that allows you to select some files on your
computer, when submitted the php behind it processes the the form and
return some text.
What i would like to accomplish is though Ajax submit the form, grab
the text that is returned and put it in a textarea (that is already
hidden on
Hi All,
I am writing a custom suggestbox using jQuery core version 1.2.6 (just
for learning purpose).
The problem I am facing is to nicely position my dynamically populated
list (using ajax) on the input box.
I used the offset() method from dimensions plugin, and it is giving me
nice results in F
hello all.
i've been reading a lot and still does not find any solution to my
query. please find the details below.
in jquery how can i automatically find the element sample with
attribute name equals to a without looping entirely the xml
hope to find solution
thanks.
akel
How do I create toggle button that changes its text and image.
I tried the following but it does not work.
span.open{background-image:url('img/open.gif');background-repeat:no-
repeat; width:20px}
span.close{background-image:url('img/close.gif');background-repeat:no-
repeat; width:20px}
Open T
Hi
Try adding return false into your click handlers to stop the browser
calling the url in the href'
$("#rssInfo").hide();
$("a#subscribeRollover").click(function () {
$("#rssInfo").show("fast");
return false;
});
Ok, I now use a similar tech ( zajaj ) I made the question to integrate all
the validations in a Only One routine.
thanks
2008/10/23 Jörn Zaefferer <[EMAIL PROTECTED]>
> Currently there is no good option to customize the request. The
> easiest way may be using $.ajaxSetup, though that affects al
On 24 Ott, 03:52, dsizemore <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In my first attempt at showing and hiding a div with jQuery, I've
> hacked together this code and I'm looking for any thoughts on what I
> did wrong (if anything?) The code seems to work in FireFox, IE7, and
> Safari/Chrome. Opera an
Thanks. That worked :) I should get into the habit of using this
'is()' function. very convenient.
On 23 oct, 18:07, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> You can check the target of the keypress, by e.target. Something like this
> (untested):
>
> $("#body").keypress(function(e) {
>
Hi again,
Jonathan - I have tried that function in replace of my own and it
doesn't seem to work :-s Any ideas?
Thanks,
James
On Oct 23, 9:30 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> A more resilient solution is to use class names instead, you can't
> just drop/ignore the IDs altogether:
>
94 matches
Mail list logo