Re: [jQuery] Can I somehow see what events are binded to a DOM element?

2009-10-29 Thread Bi Jing
Using FireBug console: For example Enter following script in command line under FireBug console Tab: alert($(".signin").get(0).onclick) HTH Becoder On Wed, Oct 28, 2009 at 7:45 PM, jayarjo wrote: > > I wonder if I can see somewhere what events are binded to a DOM > element (in FireBug m

[jQuery] Re: jQuery validation and error messages

2009-10-21 Thread Bi Jing
Its depending on your requirement, normally it should on onblur event. On Thu, Oct 22, 2009 at 10:27 AM, talasan.nichol...@gmail.com < talasan.nichol...@gmail.com> wrote: > > Is this on submit or live? I don't see how I'd use that. > > On Oct 20, 10:41 pm, Bi Jin

[jQuery] Re: jQuery validation and error messages

2009-10-20 Thread Bi Jing
You can set id attribute of element, e.g. username_desc And then using following script, if(success){ $("#username_desc").html('default msg'); }else{ $("#username_desc").html('error msg'); } Or you can add a new used to show error message, toggle it between default on your validation result. B

[jQuery] Re: password initial value without masking "****"

2009-10-20 Thread Bi Jing
For now, our project use two input elements to implement this, we still can not get easier way. Actually, not only password, but also text element, you need two inputs, one hidden one shown. Becoder. On Tue, Oct 20, 2009 at 4:08 PM, waseem sabjee wrote: > ok,why not absolutely position some text

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
Weird, Its working on my IE/FF Same First Name: Middle Name: function doCopy(){ $("#first_name1").val($("#first_name").val()) } Do you get any js errors during viewing page. On Tue, Oct 20, 2009 at 10:54 AM, ReynierPM wrote: > > Bi Jing wrote: > &

[jQuery] Re: Weird z-index problem JQuery dialog + Text field

2009-10-19 Thread Bi Jing
Could please provide some code fragments? Maybe you should set z-index of the whole Dialog element. And please press F12 in IE8, and inspect dialog element, what is the height of it and whether the dialog already overlapped the links. Becoder. On Tue, Oct 20, 2009 at 4:01 AM, Mesquite wrote: >

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
Sorr, I made mistake, there are two wrong coding No.1, onclick="doCopy()" No.2, $("#user2_name").val($("#user1_name").val()) > $("#user2_pass").val($("#user1_pass").val()) On Tue, Oct 20, 2009 at 10:28 AM, ReynierPM

[jQuery] Re: Can't insert JavaScript using html function

2009-10-19 Thread Bi Jing
No, Its should work. Maybe you get some JS error, please check. Becoder. On Tue, Oct 20, 2009 at 7:43 AM, Kiswono Prayogo wrote: > why don't you use this instead:$("#test").html("Hi there > "+username+"."); > > > On Mon, Oct 19, 2009 at 10:06 PM, Ron wrote: > >> >> Hi all. I stumbled upon some

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
HTML code: Copy JS code: function doCopy(){ $("user2_name").val($("user1_name").val()) $("user2_pass").val($("user1_pass").val()) } HTH. Becoder. On Tue, Oct 20, 2009 at 10:02 AM, ReynierPM wrote: > > Hi every: > I need when a user pick a checkbox the content in one field is copied

[jQuery] Re: Change row colors of table based on content

2009-10-19 Thread Bi Jing
I like this issue and following is my draft implement, its working on IE/FF, hope it helps Firstly, I suggest adding a class to COSTUMER column that gonna making things easier. HTML sample code: 1 dd cc ss ss 2 22 33

[jQuery] Re: JQuery smooth anchor scrolling - modify to fadein once in position?

2009-10-19 Thread Bi Jing
Maybe you need this plugin http://plugins.jquery.com/project/ScrollTo Becoder On Mon, Oct 19, 2009 at 3:12 AM, Justin S. Meyers < jus...@plasticmonument.com> wrote: > > This is the second time I've posted this. It didn't show up the first > time, so apologies for a possible duplicate in post. >

[jQuery] Re: How to achieve this animation?

2009-10-19 Thread Bi Jing
Hi Eric, What animation you talked about? Sorry I cant find it out, could you please clear it? If you mention the menu. I think there already an excellent implement by JQuery UI. http://docs.jquery.com/UI/Accordion P.S. I'm from DaLian, please feel free to contact me directly. Hope that helps.

[jQuery] Re: AJAX API without XML?

2009-10-19 Thread Bi Jing
Sure, jquery supports several popular response data types, not only xml, also HTML, text, jason even script. For more information, I suggest you check jquery official docs. Becoder. On Sun, Oct 18, 2009 at 1:21 AM, kidburla wrote: > > Hi, > > I understand that normally when you want to load a

[jQuery] Re: How to fade out page and show content

2009-10-19 Thread Bi Jing
Hi Johnson http://docs.jquery.com/Effects/fadeIn Hope this helps. Becoder. On Mon, Oct 19, 2009 at 3:54 AM, Jerry Johnson wrote: > > Kinda like: http://famspam.com/facebox > Except, i want it to slowly fade out whole page, and slowly fade in > the content, vice versa > Any Ideas? >

[jQuery] Re: Script for tabs?

2009-10-18 Thread Bi Jing
; Thank you for your quick response! In the meantime I tried something > similar, I thought there is a solution which doesn't require that much > code. (Imagine you have 10 tabs!) > > On Oct 16, 3:57 am, Bi Jing wrote: > > Firstly, define a new css class , selected_tab , as

[jQuery] Re: Script for tabs?

2009-10-16 Thread Bi Jing
Firstly, define a new css class , selected_tab , as following: //Style code .selected_tab{ background-color:#ccc; color:#000; } //Script code //$(".tab") indicate all of your tab elements. $(".tab").click(function(){ $(".selected_tab").removeClass("selected_tab"); // clear current select tab

[jQuery] Re: show/hide with embed

2009-10-16 Thread Bi Jing
You should use *$("#test").is(":visible")* to confirm whether the div is shown or hidden. Best, BeCoDeR. On Fri, Oct 16, 2009 at 3:02 PM, Evgeny Bobovik wrote: > > Try to use this method: > > function showEmbed(){ > if($("#test").css('display') == 'block'){ > $("#test").css('displ

[jQuery] Re: HELP!!! css & content filters

2009-10-16 Thread Bi Jing
Please try this $("ul li").each(function(i){this.addClass(['','','test_css','test_css'][i%4])}) OR..you can try to use another one: $("li:even:odd, li:odd:odd").addClass("test_css"); On Fri, Oct 16, 2009 at 3:07 PM, Evgeny Bobovik wrote: > > try to use this function > > function test(){