[jQuery] Re: bind a function to another function

2008-12-07 Thread Prajwala Manchikatla
names? I got mixed up because of this: The variable called1 will have 'called1-fun1' and The variable called2 will have 'called1-fun2'. called1-fun1 should be class1-fun1 and called1-fun2 should be class1- fun2, right? Joe On Dec 6, 11:22 am, Prajwala Manchikatla [EMAIL PROTECTED] wrote

[jQuery] bind a function to another function

2008-12-06 Thread Prajwala Manchikatla
Hi all, I released my first jquery plugin. It is about binding or connecting a function to another function. It is just like binding a handler function to event. Please have a look at it and send me your comments. http://plugins.jquery.com/project/jqConnect cheers, Prajwala

[jQuery] Re: code does not work if put after other codes

2008-11-29 Thread Prajwala Manchikatla
Normally this does not happened. need more code to find out what is the wrong. cheers, Prajwala On Fri, Nov 28, 2008 at 7:15 PM, Betty [EMAIL PROTECTED] wrote: Hi, I'm new. I've written two pieces of code with jQuery. Each of them works well individually. However, if I put them one after the

[jQuery] Re: event.preventDefault() seems to fail

2008-11-03 Thread Prajwala Manchikatla
I just changed input button type from submit to button. Then it is working as your need. The submit button will always call the form submit when ever it is clicked, even when you press enter also it call the form submit. But normal button do not call form submit all the time. !DOCTYPE html PUBLIC

[jQuery] Re: event.preventDefault() seems to fail

2008-10-30 Thread Prajwala Manchikatla
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.

[jQuery] Re: $(this) question

2008-10-30 Thread Prajwala Manchikatla
In the addSubject function the this will point to window object. That means the function is in the global scope. If you want to pass the element to addSubject function do like this Use html like this a href=# onclick=addSubject(this);add/a Here this keyword can only be used in event handlers

[jQuery] Re: event.preventDefault() seems to fail

2008-10-23 Thread Prajwala Manchikatla
of the question. If it's not as hard as I'm thinking it is, please explain. On Sat, Oct 18, 2008 at 6:08 AM, Prajwala Manchikatla [EMAIL PROTECTED] wrote: instead of using preventDefault for the input, submit buttons use it for the form.submit event. That means write a event handler for onsubmit

[jQuery] Re: Looping not working for selectors?

2008-10-22 Thread Prajwala Manchikatla
check whether your selector is returning the items or not. just check the length of $('.treeview'). selectors will search on the document tree only. If you create those elements in the javascript and did not append to dom tree, the selector does not return the required result. On Thu, Oct 23,

[jQuery] Re: event.preventDefault() seems to fail

2008-10-18 Thread Prajwala Manchikatla
instead of using preventDefault for the input, submit buttons use it for the form.submit event. That means write a event handler for onsubmit event of form and in that handler use preventDefault. It will work. We also had a same requirement. It solves the problem. On Sat, Oct 18, 2008 at 9:14 AM,

[jQuery] Re: Double-click and toggle

2008-10-04 Thread Prajwala Manchikatla
the toggle function toggle the display not any action. You need write code to toggle the action. $(li).dblclick(function() { if($(this).didSomeThing == true){ $(this).backToNormal(); $(this).didSomeThing = false; return; } $(this).doSomething();

[jQuery] Re: SimpleModal wierdness

2008-10-04 Thread Prajwala Manchikatla
I use microsoft visual studio to debug errors on IE. it will point out the error at the exact place. I hope it helps you. On Sat, Oct 4, 2008 at 4:32 AM, Eric Martin [EMAIL PROTECTED] wrote: Actually, the error is being caused by the issue mentioned:

[jQuery] Re: ToolTip Bassistance insert external information

2008-10-04 Thread Prajwala Manchikatla
You can read the xml document like this $.get(data.xml,null,function(xmlDoc){ // xmlDoc is a xml document object // you can read data by xmlDoc.document.getElementsByTagName('para') etc.. // and you can use the jquery tool tip plugin to generate tooltip },'xml') tooltip plugin url

[jQuery] Re: Problem jQuery Selecting Input field

2008-09-29 Thread Prajwala Manchikatla
You can do like $('[id=test:name]') That is attribute search. cheers, Prajwala On Mon, Sep 29, 2008 at 12:10 PM, Faisal Basra [EMAIL PROTECTED]wrote: Please, can i have any way in jQuery to just by specifying id like (#phone) to get form:id ... On Sep 25, 6:28 pm, Faisal Basra

[jQuery] Re: jQuery Form Plugin - success callback problem with FF/Chrome

2008-09-29 Thread Prajwala Manchikatla
I think you might be having some problem with the displayData function. firebug will help you in debugging the code. put debugger statement before displayData function and run on firefox after installing firebug. submit the form, after getting response from server, the debugger will stop at

[jQuery] Re: stripping style from ajax html

2008-09-29 Thread Prajwala Manchikatla
I tested with this html t = $('htmlheadstyle.s{color:red}/stylescriptfunction(){alert(hi)}/script/headbody/body/html') The return value is jquery object with 3 elements. when I do t.get(0) it return style tag when I do t.get(1) it return script tag when I do t.get(2) it return just