Hi,
I am using the offset() to get the top and left properties of an html
element. I am getting a different result from FF2 and FF3. FF2 got it
right while FF3 got it wrong but has almost same result with Chrome. I
think it's because of the complexity of YUI grid css? but it was right
on FF2 ...
hi,
Sorry if the subject sounds crazy. I have this MainPage object below
function MainPage(){
this.init = function(){
$('#sample').click(function(){
// here is my problem, inside this anonymous function how can I
access the method_one function?
this.method_one(param_1, param_2)
hi,
I am using tablesorter 2. I can't help it but I have a large set of
data which lead the firefox to popup a dialog saying unresponsive
script with options of cancel, debug or continue. how can I prevent
the firefox from popping this dialog and display a more user friendly
message like "This co
hi,
I very new with json ( you may say that I still really don't
understand it quite well), how do I use the json object that is return
from the $.post in its callback argument?
$.post('/ap/item/code/edit/',
values,
function (data){
//how t
g between each change the names around.
>
> If available to use:
>
>
>
>
> If not available:
>
>
> ....
>
>
> Does that help ?
>
> Cheers
>
> On Oct 22, 5:35 pm, james_027 <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> >
hi,
anyone has an idea to make select tag readonly since readonly attr is
not supported. Disabled is not a solution because it prevent the data
from being posted.
Thanks
james
:
>
> $(':checkbox').bind('click', function(e) {
> this.blur();
> e.preventDefault();
>
> });
>
> --Erik
>
> On 10/18/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
> > is that different if I use .click() instead of .
le, so you may also want to blur
> it. Something like:
>
> $(':checkbox').bind('click', function() {
> this.blur();
> return false;
>
> });
>
> Tested on FF2/Mac.
>
> --Erik
>
> On 10/18/07, james_027 <[EMAIL PROTECTED]> wrote:
>
hi,
how do i prevent the checkbox to be check when click if it doesn't
meet certain requirements?
Thanks
hi,
is there a number formatting plugin for jQuery?
Thanks
hi,
when using the $.post() the second argument is for the data to be
send. is there a shortcut way of specifying all the data in the forms?
rather than manually doing {'field1':'value1', 'field2':'value2', ...}
Thanks
james
hi,
I am wondering why after I did clone().appendTo(), the new element
doesn't show up. With firebug I saw that it has display:none in it's
style attribute ... I try to do clone().appendTo().show() but it
doesn't work
Could someone correct me on this?
Thanks
james
hi,
Will there be any bad if in a page I have more than one $
(document).ready()? The reason for this is because I have put make a
*.js which contains the common things that should be done, then on
some specific pages I have $(document).ready() again for special
cases...
Thanks
james
hi,
On Sep 22, 10:02 pm, muccy <[EMAIL PROTECTED]> wrote:
> I don't understand what you want to achieve.
>
> If you want to override I think
> $("#customer").click(A);
> $("#customer").click(B);
>
> it will execute B on click.
>
> Is it false?
>
Yes it's false, it will execute both A & B. karl h
).click(function(){
> alert('Lookup customer cant be shown any more.'');
> });
>
> This stuff should be inside a $(document).ready() of course.
>
> Hope that helps.
>
> --Karl
> _
> Karl Swedbergwww.
hi
i have something like this
$('[EMAIL PROTECTED]').click(function(){
$('[EMAIL PROTECTED]').show();
});
and during the user interaction i have something like this
$('[EMAIL PROTECTED]').click(function(){
alert('Lookup customer cant be s
lt;[EMAIL PROTECTED]> wrote:
>
> > You could try something like this...
>
> > $('#myTrigger').click(function(){
> > $('#myDiv').show();
> > $(document).one('click', function(){ $('#myDiv').hide(); return false; });
> > re
hi,
using the hide() function, how do I know if an element is hidden or
not?
THanks
james
anyone have an idea here?
Thanks
On Sep 11, 11:21 am, james_027 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to make a simple that will pop which will be close
> by just clicking to any part of the page. I have no idea of how to do
> this. I have try something lik
Hi,
I am trying to make a simple that will pop which will be close
by just clicking to any part of the page. I have no idea of how to do
this. I have try something like this
$(document).click(function(e){
$('[EMAIL PROTECTED]').hide();
});
$(body).click(function(e){
$('[EMAIL PROTECTE
s
On Sep 4, 2:45 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to edit the css file, but no matter how I edit it it seems
> > the changes doesn't reflect, is there somet
s
On Sep 4, 2:45 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to edit the css file, but no matter how I edit it it seems
> > the changes doesn't reflect, is there somet
s
On Sep 4, 2:45 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to edit the css file, but no matter how I edit it it seems
> > the changes doesn't reflect, is there somet
Hi,
I am trying to edit the css file, but no matter how I edit it it seems
the changes doesn't reflect, is there something I should do first?
Thanks
james
hi,
I would like to do something like this ...
$('[EMAIL PROTECTED]').click(function(e){
alert(e.target.html());
});
but it's not working ...
can I avoid this ... $('[EMAIL PROTECTED]'+e.target.id+']').html()
Thanks
james
Hi,
On Aug 23, 2:34 pm, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote:
> are u trying to achieve something like autocomplete (like google suggest),
> if that is the case, then you should look
> athttp://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> -GTG
>
No I am doing a auto com
hi,
I have a small jQuery script, that get some data over the server on
every keypress by the user, but I don't to perform such action every
time when the user presses a key, specially if between key presses
happens in short amount of time. How do I delay this event?
Here is my script
$('[EMAIL
Thank Klaus ... I didn't know that it is invalid to put list inside a
cheers,
james
On Aug 6, 1:45 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> james_027 wrote:
> > hi,
>
> > I have something like this ..
>
> >
>
> >
hi,
I have something like this ..
Theare are 2 similar employee(s).
Bondoc Sheryl
Bondoc Sheryl
hi,
nice trick!
cheers,
james
On Aug 3, 4:23 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> james_027 wrote:
> > hi,
>
> > I am trying to use the jQuery .after() function. I have something like
> > this ..
>
> > $('p').after('sample'
hi,
I am trying to use the jQuery .after() function. I have something like
this ..
$('p').after('sample');
I want to transform it into something like this to make the code much
easier to read
$('p').after('
sample
');
how can I achieve this?
Thanks
james
oad(u+'?'+new Date().getTime(),function()
{if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($
(cc,h.w));f(h);});
cheers,
james
On Jul 12, 5:44 am, Shelane Enos <[EMAIL PROTECTED]> wrote:
> Yes, it is ajqmodalissue.
>
> On 7/11/07 2:03 AM, "james_027"
Hi,
I use jqModal with ajax parameter calling another page with some
javascript like $.post. while this is working under firefox, but not
on IE 6. it seems that the javascripts were not loaded. But when I
call this page on a standard way everything works fine.
Thanks
james
he examples are fairly easy to
> understand...
>
> http://blog.morrisjohns.com/javascript_closures_for_dummies
>
> Don't worry if you don't get it right away, that just means you're a
> mere mortal.
>
> Eric
>
> On Jul 11, 9:40 pm, james_027 <[EMAIL PROTECTED]
27;, params, alert(arguments[0]));
>
> But I would guard against that since you loose flexibility.
>
> Let me know if this does not make sense.
>
> Ben
> On 7/11/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > I am using $
Hi,
I am using $.post() function, I don't understand what is callback
function ...
what is the difference between
$.post('test.cgi', params,
function(data) {
alert(data);
}
);
and
$.post('test.cgi', params, alert(data));
the data being shown is different. and I don't seem to
erals here:
>
> http://developer.mozilla.org/en/docs/
> Core_JavaScript_1.5_Guide:Literals#Object_Literals
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Jul 11, 2007, at 2:26 AM, james_027 wrote:
>
>
>
> >
hi,
what javascript books are using jquery?
thanks,
james
Hi
everyone, I am glad to be able to stumble upon this discussion, I am
also using jqModal recently.
@shelane
you mean this caching issue is because of jqModal and not on jQuery?
Thanks
james
On May 25, 12:40 am, Shelane Enos <[EMAIL PROTECTED]> wrote:
> I agree about it being strange behavior
your question, your example is how I normally send
> > information back and for thru ajax. Now, I usually use the $.ajax function
> > for all my ajax needs, but more or less, the do the same thing.
>
> > a_map = {name:'james', age:27, location:'HK'};
Hi,
I am using the $.post() function, the second parameter is a Map which
is Key/value pairs that will be sent to the server. how do I create a
map to use in $.post().
I can't find any information about map for javascript may be it's not
supported? and this map is in jquery only? is this correct
Thanks for all your advices :)
cheers,
james
On Jun 12, 12:07 pm, "Matt Stith" <[EMAIL PROTECTED]> wrote:
> using javascript is much better than putting the functions inline in the
> HTML. Its alot cleaner, and makes it alot easier to manage.
>
> On 6/12/07, james_0
nd code
>
> $("a").click(alert(this.id);return false);
>
> On 6/11/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > I have a calling a javascript function, but there will be several
> > calling the same javascript f
Hi,
I have a calling a javascript function, but there will be several
calling the same javascript function, and I want to know which
calls it, I have assign different id attribute for each , then I
don't know how to proceed ...
here is my html:
Caller One
Caller Two
Caller Three
here is my
show the updated DOM instead.
> You'd have to test it with your browser to find out for sure.
>
> --rob
>
> On 5/23/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi rob,
>
> > Thanks very much, that really gives me a lot info. I'll
ed when you can set it just by coding the tag? It'll slow the
> browser slightly as it updates the page after loading, which is cumulative
> if you have to do it for many links/tags.
>
> Hope all that info helps!
> --rob
>
> On 5/22/07, james_027 <[EMAIL PROTECTED
e easily accessible.
>
> $('p').click(function(){
>
> // do this and do that
> ...
>
> });
>
> As for the cursor "hand" look , you can do that in css
> p{
> Cursor: pointer;
>
> }
> -Original Message-
> From: jquery-en@googlegroups
Hi,
what is the difference between to
Thanks
james
On May 22, 5:20 pm, Bob den Otter <[EMAIL PROTECTED]> wrote:
> james_027 wrote:
> > Hi,
>
> > Is this the best way to make a text button?
>
> > Click Me!
>
> Slightly offtopic, but you might want to lo
>Hover
>
> The two cursor declarations are needed there as MSIE 5.0 and 5.5 only
> support 'hand', whereas other browsers use 'pointer' (although some do
> support hand as well).
>
> --rob
>
> On 5/22/07, james_027 <[EMAIL PROTECTED]> wr
Hi,
What I mean is when the cursor go over the tag, it doesn't show that
it is clickable ... hope you got what I mean.
james
On May 22, 5:15 pm, Michael Stuhr <[EMAIL PROTECTED]> wrote:
> james_027 schrieb:
>
> > Hi,
>
> > Is this the best way to make a text bu
Hi,
Is this the best way to make a text button?
Click Me!
It's nice that even with using jquery could make almost
any tag to have click event, but the problem is the cursor doesn't
indicate that it's clickable.
Thanks in advance for any tips, suggestion, guides
cheers,
james
Thanks a lot especially to your second post. :)
cheers
james
On May 22, 11:59 am, "Richard Worth" <[EMAIL PROTECTED]> wrote:
> On 5/21/07, Richard Worth <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 5/21/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
Hi,
Is there a difference between to two? Any guidelines on which one to
use on a certion situation?
Thanks
james
used in order to keep things synchronized. Especially things like AJAX
> and FX. Without callbacks we wouldn't easily be able to know when
> those items where done executing.
>
> --
> Brandon Aaron
>
> On 5/21/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
>
Hi,
I am welcoming myself to Jquery, and I am glad that I give myself a
chance to try jquery. The documentation and tutorials which many seems
to ignore is one of the things that makes me to go for jquery for my
javascript & ajax need.
Upon finishing the How jQuery Works, I want to learn why cal
55 matches
Mail list logo