CSS 3 selectors seem to be my solution:
$('inp...@id^="foo"]...@id$="bar"]').change(function(){
alert(this.id);
}
This will be attached to all input fields that have an ID starting
with 'foo' and ending with 'bar' (e.g. 'foo123bar', 'foobar',
'foo456bar').
Then within the function I can
I already had saw some posts which are in your search url result and
my code includes ones but I found a post in that search which help me
and solved my problem
Thanks a lot
On Dec 12, 5:12 pm, MorningZ wrote:
> I'm not sure where you got your code examples from, but there's lots
> of blog pos
On Dec 13, 2008, at 3:19 AM, SLR wrote:
I ended up fixing the issue myself. For those that want to know, it
was type-casting issue. I change the following line:
var pageIndex = $("body").attr("id");// Pulls ID value from
body tag
pageIndex = pageIndex.substring(4);
to
var pageIn
On Dec 12, 2008, at 5:20 PM, John Moore wrote:
Thanks, I hadn't spotted that. I can live with it, as the number of
Konqueror users is (unfortunately) very small and they're likely going
to be used to having certain pages not work for them. I'd just prefer
my stuff to work with all modern bro
The easiest way to do this would be to give each div a specific class:
Now you could just do:
$("div.foo").change();
I like this method, since usually this divs have related visuals, so
you may already have a constant class defined for the elements.
An alternative would be to do something
> Ah, thanks for clarifying, Steve. I'll get that fixed.
It's fixed now.
http://www.malsup.com/jquery/block/#download
maybe you should show us your JSON code
On Dec 13, 5:27 pm, Shawn Grover wrote:
> I'm not sure if I have a server side issue or a client side issue. The
> problem is that I am generating a JSON string in my plugin, and passing
> it to a php page (though the back end shouldn't matter in the long
Hi,
It's kind of difficult for me to explain for English is not my native
language.
I'll explain it briefly and refer you to the actual page.
If the 'Rule' for a field has a "Required" attribute and with or
without any other attributes, then it works fine.
But when a field has any other 'Rules
Hi, I have a situation where the same javascript is repeated about 50
times - just with a differnt ID. Example:
$('#mydiv1').change(function() {
doStuff('#mydiv1');
});
$('#mydiv2').change(function() {
doStuff('#mydiv2');
});
...
$('#mydiv50').change(function() {
doStuff('#mydiv50');
});
I copied it straight from the demo with just a couple minor changes...
going to remove the code that I don't need once I work this out...
$(document).ready(function(){
$.validator.messages.required = "";
$("#lf").bind("invalid-form.validate", function(e, validator) {
Mike's suggestion involves creating a javascript "closure".
There are a number of good articles on closues.
http://www.google.com/search?hl=en&q=javascript+closures&rlz=1W1GGLL_en
But essentially, when you create a function that has a reference to a value
outside of its scope, that function is
while this might keep the browser from crashing, I wonder what values
these parameters will have, when the event finally occurs. The ones I
have passed the very first time? I thought they would have been
destroyed by then, as we left this scope long ago ...
But I'll try it out :), thanks!
On Sat,
I made a mistake on :
$(document).ready(function(){
$(".accordion .foo h3").eq(0).addClass("active");
$(".accordion .foo p").eq(0).show();
$(".accordion2 .foo h3").click(function(){
$(this).next("p").slideToggle("fast")
.siblings("p:visi
It appears that the .children portion of the code either isn't getting
the .ajax_link classes, or the click handler isn't getting correctly
applied. Is there a way to determine what the actual results returned
are by the following:
$(this).children('.ajax_link')
i tried something like:
v
Hi Mike,
Thanks! all good suggestions. I went with
$('#someid').myPlugin({
doThis: ...,
doThat: ... });
One entry point, and lets me doThis and doThat both, which turned out
to be useful.
I'm still curious whether my original syntax could be made to work. I
suspect the answer is "not
> $(".detailsPaneToggle").children("a").css('background-position','0px -35px');
> $(".detailsPaneToggle").children("a:hover").css('background-position','0px
> -80px');
I think you can do this without script, except for IE6.
.detailsPaneToggle > a {
background-position: 0px -35px;
}
.detailsPa
On Dec 13, 11:05 am, George wrote:
> It has nothing to so with AJAX.
> You did not say what you using on your server side so i can not tell.
>
> But a lot of frameworks like ASP or ASP.NET will serialize requests
> made from the same Sesssion (browser). To avoid programmers having to
> manage con
It has nothing to so with AJAX.
You did not say what you using on your server side so i can not tell.
But a lot of frameworks like ASP or ASP.NET will serialize requests
made from the same Sesssion (browser). To avoid programmers having to
manage concurent access to resources in Session object.
> "Why can't I duplicate this behavior? "
>
> Because you're not using the checkbox itself to fire off the
> block his code and my quick example do
Ah, thanks for clarifying, Steve. I'll get that fixed.
Mike
My default character set is utf8, should I use encodeURI when use ajax
sending the data to server?
for example
$username = $('#username').val()
$.ajax(
{
url:'xxx.php',
data:{username:encodeURI($username)}
..
...
...
});
No idea, I'd need to see some code, a testpage is prefered.
Jörn
On Sat, Dec 13, 2008 at 4:03 PM, Sean Allen wrote:
>
> I already have that in place.
>
> How do I get the autogenerated label to not do style="display:inline" ?
> In that demo there is no such element styling on the label created f
Hello,
I want to custom this jQuery script :
$(document).ready(function(){
$(".accordion h3").eq(0).addClass("active");
$(".accordion p").eq(0).show();
$(".accordion h3").click(function(){
$(this).next("p").slideToggle("fast")
.siblings("
I just came across a *much* better way to do this in Andris Valums'
ajax_upload plugin:
var get_uid = function(){
var uid = 0;
return function(){
return uid++;
}
}();
That's what's called a "closure", btw.
http://valums.com/
is valid XHTML.
--Klaus
On 11 Dez., 03:59, RobG wrote:
> On Dec 11, 7:45 am, KillIEbrowser wrote:
>
> > DOMisBetter is different from jQuery( html, [ownerDocument] )
>
> >http://docs.jquery.com/Core/jQuery#htmlownerDocument
>
> That part of the documentation needs to be updated. Where it say
Just to say a belated thanks to both of you for this help - it is very
useful and helped me lots in learning how to use jQuery. I still have
lots left to learn, but I'm finding it a great library.
cheers,
DAZ
On Dec 8, 8:35 pm, "Richard D. Worth" wrote:
> But also this is a jQuery UI callback,
On Fri, Dec 12, 2008 at 4:30 PM, ray wrote:
>
> I've implemented the changes you've suggested, but I'm seeing the same
> issue (clicks are not being intercepted by JQuery). :-/ I do
> understand what you suggested, but I'm now very confused as to why it
> isn't working.
Post some code?
> Is t
I already have that in place.
How do I get the autogenerated label to not do style="display:inline" ?
In that demo there is no such element styling on the label created for
errors.
On Dec 12, 2008, at 4:37 PM, Jörn Zaefferer wrote:
In that demo this line hides the default messages for the
The demo is not too functional. Elements don't scroll (at least in
FF).
Elements here do rearrange when adding/removing. The option lazy
should do.
Could you fix w/e needs to be fixed so that the problem does arise ?
Note that you don't need line #34 of the pastie.
That could actually mess it all
It's easy when you read the documentation
http://dev.iceburg.net/jquery/jqModal/README
You can manually show or hide a dialog with $.jqmShow() and $.jqmHide
(). e.g.
$(e).jqm().jqmShow(); $('#window2').jqmHide();
Hi everyone
I want to load this window on page load can you plz let me know how to do
this.
$().ready(function() {
$('#tallContent2').jqm();
setTimeout($('#tallContent2').jqm(),2000);
});
--
View this message in context:
http://www.nabble.com/jqModal-Onload-tp20990657s27240p20990657.htm
ok
I have load my example to geocities, please take a look there
also I found problem with the top-padding of top right icons that I
don't found on my machine.. -_-'
http://www.geocities.com/blackzabaha/
sorry for very big blackground image, it may take so long time to
load, but I like it :)
On
"Why can't I duplicate this behavior? "
Because you're not using the checkbox itself to fire off the
block his code and my quick example do
On Dec 12, 5:17 pm, Mike Alsup wrote:
> > " Could you possibly post a demo page somewhere?"
>
> > Mike, this code:http://paste.pocoo.org/show/9507
Yes, but the way is long:
"IE share slips under 70%; Firefox surges past 20%"
"The more home users who are online, using Firefox and Safari at home
rather
than IE, the more those browsers' shares go up," he said. With
November
including the Thanksgiving holiday in the U.S. and more weekend days
t
> I have been searching for a way to have 1 pager to control 2
> slideshows with the same number of slides. Where one slideshow can
> have a scrollLeft and another just with a fade. Is this possible with
> the current plugin?
Here's a demo:
http://jquery.malsup.com/cycle/pagers.html
Is there I18N support?
I missed a "today" button...
--
Jorge Godoy
On Thu, Dec 11, 2008 at 12:40 AM, Alex Kroman wrote:
>
> Hi --
>
> We just released another date picker using jQuery that we've been
> using internally at OpenSourcery for a while now and are really
> liking.
>
> The main
> I have a dynamically created form that I'd like to submit
> automatically after it loads. It doesn't look like forms have an
> onload event. I would use the window onload, but the form isn't
> necessarily around when the window loads - it is created later in a
> jquery popup.
>
> Any suggestio
> I'm trying to create a plugin with two entry points. You would use it
> like this:
>
> $('#someid').myPlugin.doThis(options);
> $('#anotherid').myPlugin.doThat(options);
How about one of these approaches instead:
$('#someid').myPluginDoThis(options);
$('#anotherid').myPluginDoThat(options);
o
Hi,
Idea: assign itemField class to credit card block "onchanging" select
input, or something like this.
Dirceu Barquette
2008/12/12 ekilater
>
> Hi all,
>
> I've a form that validates using jQuery.
>
> In that form we use a small credit card validation with an extension
> that you can find he
> How can i write selector to retrieve elements (span) that contains
> 'PB' as part of id.
> My ids are dynamically generated as PB1 PB2 etc.
spans that have an ID that starts with PB:
$("span[id^='PB']")
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
> Please a look at simple example
> herehttp://www.2shared.com/file/4448827/d6437194/web.html
> if it cool enough to be qualified as a plugin, I will contributed the
> finished source.
You'll have better luck with feedback if you post a link to a demo
page.
Hi there!
i try to create a previous/next-link in my thumbnail gallery.
the gallery is created by an cms, and provides a certain amount of
thumbnails which link to a big image, which will then be shown when the
thumb is clicked.
i got it working so far that the big image fades in, a fade effect
I would like to highlight current selected node to the user, making
current selection more visually clear using CSS
If we use persist:"Location", node is hightlighted [adds the
"selected" class], but only when u refresh the page.
Can some one guide me how to implement it on per click basis ?
R
Hi all,
By inspiration of glassbox effect here
http://www.glassbox-js.com/
and css button here
http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
I have try to enhance its feature to suite my need in jQuery way.
then by now I have done far but need more improvement.
Hi,
Try $('#PB'+n) where n is a variable set to 1,2,3,etc.
Paul
On Dec 12, 11:55 pm, Ashish wrote:
> How can i write selector to retrieve elements (span) that contains
> 'PB' as part of id.
> My ids are dynamically generated as PB1 PB2 etc.
hi
Please help me out as i am a new fresher learning HTML
how to remove all the html and css bugs from this site http://googlelance
Thanks
On Dec 13, 1:31 am, "Andy Matthews" wrote:
> No jQuery on that page. It's just using a collection of dHTML scripts found
> online.
>
> -Original Messag
hi
Please help me out as i am a new fresher learning HTML
how to remove all the html and css bugs from this site http://googlelance
Thanks
On Dec 12, 11:30 pm, Sid wrote:
> Just look at this URLhttp://googlelance.com
>
> You see the login and button click on it then you find that
>
> a pop up
I'm not sure if I have a server side issue or a client side issue. The
problem is that I am generating a JSON string in my plugin, and passing
it to a php page (though the back end shouldn't matter in the long run).
I can see that a parameter is infact passed, but trying to decode that
stri
I ended up fixing the issue myself. For those that want to know, it
was type-casting issue. I change the following line:
>var pageIndex = $("body").attr("id");// Pulls ID value from body tag
>pageIndex = pageIndex.substring(4);
to
var pageIndex = $("body").attr("id");// Pulls I
Have you tried breaking apart your chain? At least to debug. Might help to
do a console.log step (in Firebug) at each function call to ensure your
selectors are returning what you expect, your slice etc. This would allow
you to see if for example addClass is being called on 1 element, or many
eleme
49 matches
Mail list logo