[jQuery] Re: anonymous function and code reusing

2009-06-13 Thread Mirko Galassi
$(document).ready(function(){ $("#moon").click(function() { myFunction("param"); }); $("#earth").click(function() { myFunction("param2"); }); }); It works perfectly! Thanks MorningZ ha scritto: "I thought it should have worked but it doesn't" You cannot pass params like that in a

[jQuery] jqGrid: jQuery("#list").jqGrid is not a function

2009-06-13 Thread efet
I did not make any changes with directories or codes. I thought I must be missing an include but I have been looking into my codes for hours already but still cant find what causes the error. Please advise! http://refinethetaste.com/html/cp/orders.asp

[jQuery] Re: anonymous function and code reusing

2009-06-13 Thread waseem sabjee
function reuse(param) { $("#moon").click(function(){ if(param == 1) { alert("do something"); } else { alert("Access Denied"); } }); } On Sat, Jun 13, 2009 at 6:53 PM, jwc wrote: > > Hi guys, > apologize for posting again the same topic. I haven't found a s

[jQuery] Re: Cross-site ajax file uploading

2009-06-13 Thread waseem sabjee
A possible issue might be a security certificate. On Sat, Jun 13, 2009 at 1:57 PM, Fall-From-Grace wrote: > > I'm using http://valums.com/ajax-upload/ plugin to upload a file to > another domain > > It works fine, but i cannot get domain's response. Plugin makes an > hidden iframe with entered da

[jQuery] Re: remove question

2009-06-13 Thread David .Wu
Nice trick. On 6月13日, 上午9時36分, brian wrote: > On Fri, Jun 12, 2009 at 2:37 PM, amuhlou wrote: > > > putting it all together, you'd get something like: > > > $('#div1').replaceWith($('#div2')).remove(); > > > first you find div1, then replace it with div2, then remove div1 > > There's no need for

[jQuery] DivMenu

2009-06-13 Thread Charlie
there are several reasons this isn't working , the main reason is everything you click on is in the body,including the div you want to stay open. Events bubble up from children to parent. Even though you think you are only clicking on your div, you are also clicking body. Try this in firebu

[jQuery] Re: Regular Expressions and jQuery

2009-06-13 Thread Orkan
PS. the correct phone number for your regex is, for example: (123) 456-7890 right? On Jun 12, 3:57 pm, John wrote: > Good call. > > Here are my changes. > > function validate_phone(value,alerttxt){ > >         var re = /^\(\d{3}\)\d{3}-\d{4}$/; >         alert(re); > >         if( $('input[name=

[jQuery] Re: Regular Expressions and jQuery

2009-06-13 Thread Orkan
I think you're looking for a test() method instead! match() is used to extract substrings from a given string. function validate_phone(value,alerttxt){ var re = /^\(\d{3}\)\d{3}-\d{4}$/; var ok = re.test($("input[name=unitContactPhoneNumber]").fieldValue ()); alert(re +

[jQuery] Re: anonymous function and code reusing

2009-06-13 Thread MorningZ
What is that reply supposed to mean? On Jun 13, 9:48 pm, John Bill wrote: > it is very fun!  why? > > 2009/6/14 MorningZ > > > > > "I thought it should have worked but it doesn't" > > > You cannot pass params like that in a click event > > > instead of > > > $(document).ready(function(){ > >  

[jQuery] Re: Hide/show divs based on form parameters

2009-06-13 Thread Nitin Sawant
http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/ On Jun 13, 8:37 pm, Mark wrote: > Hi all, > > I'm trying to selectively hide and show divs based on what a user > specifies using three select boxes in a form. > > I'm quite new to jQuery so I'm probably missing something obvious, b

[jQuery] Re: anonymous function and code reusing

2009-06-13 Thread John Bill
it is very fun! why? 2009/6/14 MorningZ > > "I thought it should have worked but it doesn't" > > You cannot pass params like that in a click event > > instead of > > $(document).ready(function(){ > $("#moon").click(myFunction("param")); > $("#earth").click(myFunction("param2")); > > function

[jQuery] Re: Trouble constructing selector string.

2009-06-13 Thread Karl Swedberg
Maybe $(this).attr('class') != 'Value' ? I wouldn't bother using $(this).attr('class') anyway. Instead, try this.className And make sure that the class is, in fact, "Value". --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2009, at 9:22 AM, rinse_

[jQuery] Autocomplete - Holding down key

2009-06-13 Thread Rune
Hi there I have implemented the very nice autocomplete plugin. Had to fight a couple of hours though because the thing just wouldn't show anything when I used an external data source. Finally I found out by placing some alert boxes around in the jQuery code that my page for some reason returned a

[jQuery] Re: anonymous function and code reusing

2009-06-13 Thread MorningZ
"I thought it should have worked but it doesn't" You cannot pass params like that in a click event instead of $(document).ready(function(){ $("#moon").click(myFunction("param")); $("#earth").click(myFunction("param2")); function myFunction(param){ alert(param); } }); use $(docum

[jQuery] Re: Dialog position : relative

2009-06-13 Thread Frodo
Try something like this (not perfect in all modes with all all borders and paddings, but close enough in many cases) var i = $("#myId"); var top = 0; var left =0; var x=0; //x is just for avoiding infinite loops var oParent = i[0]; while (oParent && x++ <10) { top += oParent.offsetTop - oP

[jQuery] Working with cross-domain iframe

2009-06-13 Thread Fall-From-Grace
I'm using http://valums.com/ajax-upload/ plugin to upload a file to another domain It works fine, but i cannot parse domain's response. Plugin makes a hidden iframe with entered data, and submit it. I get response from site, but cannot parse it due to 'security reasons' All i want is to get lin

[jQuery] Cross-site ajax file uploading

2009-06-13 Thread Fall-From-Grace
I'm using http://valums.com/ajax-upload/ plugin to upload a file to another domain It works fine, but i cannot get domain's response. Plugin makes an hidden iframe with entered data, and submit it. I get response from domain, but cannot parse it due to 'security reasons' All i want is to get lin

[jQuery] Validation callback for a single DIV validation

2009-06-13 Thread Carlo
Hi all I have to perform validation on a single DIV without a submit. Also I need to catch the validation success or failure to handle them. In all validation plugin examples I've found code like: submitHandler: function(form) { alert('valid'); }, invalidHandler: function(form

[jQuery] Fuction call works in Safari but not in FF 3.5

2009-06-13 Thread Diederik
Hi, I am having a small problem that my jquery function does work in Safari but does not work in FF 3.5. I am not sure whether the problem is with my coding skills, the jquery plugin that i use, jquery or even FF 3.5 . If i run the code below then firebug gives this error: $(".dynamicsparkline"

[jQuery] Show/hide divs depending on form parameters

2009-06-13 Thread Mark
Hi all, I am pretty new to jQuery, and I'm looking for a way to kind of 'filter' divs depending on the parameters supplied by a form. I have three select boxes that set 'area', 'level', and 'time' parameters (for courses). I have given corresponding classes to some example divs, and I want the

[jQuery] anonymous function and code reusing

2009-06-13 Thread Mirko Galassi
Hi guys, apologize for posting again the same topic. I haven't found a solution yet for my simple problem. I have a simple function that works when a link is clicked $(document).ready(function(){ $("#moon").click(function(){ alert("do something"); }); }); I need to reuse that functio

[jQuery] anonymous function and code reusing

2009-06-13 Thread jwc
Hi guys, apologize for posting again the same topic. I haven't found a solution yet for my simple problem. I have a simple function that works when a link is clicked $(document).ready(function(){ $("#moon").click(function(){ alert("do something"); }); }); I need to reuse that funct

[jQuery] Hide/show divs based on form parameters

2009-06-13 Thread Mark
Hi all, I'm trying to selectively hide and show divs based on what a user specifies using three select boxes in a form. I'm quite new to jQuery so I'm probably missing something obvious, but here's what I've got and it doesn't, work, they divs just stay hidden. Any help would be greatly appreci

[jQuery] jquery scripts only work linking to another site - looking for these downloads

2009-06-13 Thread BlueOysterCult
Hello I saw an example of an image slider I would like to use ( or am using). THe code requires javascript and css and my problem being is that even though I downloaded the javascript and css files - jquery. lavalamp stuff - it is not working unless I link to the site of which I originally saw

[jQuery] Re: DivMenu

2009-06-13 Thread Glazz
http://jsbin.com/ekaqe First click Euro (€), then a div shows up, the first problem is that if you click on the div, the div closes itself, and the other problem is, if you have 2 links to open divs they don't close itself, i need to click on the document page to close them Here is the JS: jQuer

[jQuery] blockUI does work

2009-06-13 Thread Alex
Hi all, I tried on blockUI and the below doesn't work? Any help please? Thanks. $(document).ready(function() { $("div#menu li").click(function() { $('div.blockMe').block({ message: null }); var type = ($(this).attr("id")); $(this

[jQuery] Re: Find the height of a div, apply the height to other divs, redo the heights on click

2009-06-13 Thread Ricardo
The container DIV should stretch by itself, you shouldn't need any calculations. If the inner DIVs are floated, just make the outer one floated too and it will expand to fit. And you can't get styles before any styles are applied, doesn't make sense right? :) What you can do is append a clone of

[jQuery] Re: Using Zend IDE with jquery

2009-06-13 Thread Sam Sherlock
I gave up with eclipse in favour of netbeans. However this is for Eclipse PDT but uses 1.2.6 http://www.langtags.com/jquerywtp/ The netbeans jquery addon also uses 1.2.6 I wonder how much of a chore it would be updating them to 1.3.2? I have not looked into doing it - S 2009/6/13 Josh Powell

[jQuery] [ lCarousel Lite ] Can't drag items outside Carousel

2009-06-13 Thread VaN
Hello, I'm trying to merge Carousel and Drag functions, but I'm facing problem. Here is the jCarousel lite page : http://www.gmarwaha.com/jquery/jcarousellite/ And here is my project : http://www.wir3d.net/tests/carousel_drag_02.html Carousel pager works great, when you click a page, carousel

[jQuery] Re: Event Load() ??

2009-06-13 Thread brian
It couldn't possibly work because the javascript isn't there. Add the code to cadastroCliente.php. On Fri, Jun 12, 2009 at 10:24 PM, Frank wrote: > > > Hello, > > I'm with a doubt in jquery, I am using the function load () to call > another page, but after I loaded this page, I can not use the id

[jQuery] Re: DivMenu

2009-06-13 Thread Charlie
get better response with a  link to see the problem, jsbin works great , has built in script libraries including jquery Glazz wrote: nobody can help me out?

[jQuery] Re: Plugin API the jQuery way

2009-06-13 Thread Richard D. Worth
jQuery UI Progressbar makes for an extremely simple example: http://jquery-ui.googlecode.com/svn/trunk/ui/ui.progressbar.js Other than what's provide by the widget factory in jQuery UI core, it has just one option (value), one method (value), and one event (change). You may also want to check out

[jQuery] Re: jQuery Conference for 2009?

2009-06-13 Thread ak732
Hopefully it's up in Boston again, either right before/after AJAX Experience. Makes things simple. And it's Boston, you know; lots of Irish bars serving Guinness on tap. jQuery/AJAX/Guinness, could there be a happier place?

[jQuery] Re: jquery.animate with className only

2009-06-13 Thread Richard D. Worth
jQuery UI has this feature as well: http://docs.jquery.com/UI/Effects/ClassTransitions http://jqueryui.com/demos/addClass/ http://jqueryui.com/demos/removeClass/ http://jqueryui.com/demos/toggleClass/ - Richard On Fri, Jun 12, 2009 at 3:11 PM, amuhlou wrote: > > This got me curious and afte

[jQuery] Re: Replace content with title attribute value

2009-06-13 Thread jay7
Brilliant, thanks a lot. Here is the final script that does exactly what I wanted: $(".date").each( function (i) { var formattedDate = $(this).attr('title'); $(this).html(formattedDate); }); $('.date').removeAttr("title");

[jQuery] Re: jQuery Conference for 2009?

2009-06-13 Thread MorningZ
I sent a tweet to Karl a few weeks ago, he replied "I'm pretty sure you can count on there being a jQuery conf again. Just not sure about any of the details yet." Didn't mention anything about Guinness though, heh heh... oh wait, that's not this conversation On Jun 12, 5:19 pm, ak732 wrote:

[jQuery] Re: tables and chairs app

2009-06-13 Thread Richard D. Worth
Take a look at jQuery UI for the drag and drop and resize features: http://jqueryui.com/demos/draggable/ http://jqueryui.com/demos/droppable/ http://jqueryui.com/demos/resizable/ Since you mention rotating, I think you're on the right track with thinking of using canvas. You could have little r

[jQuery] ajax Menu help

2009-06-13 Thread Nader dasuki
hello dears , how can i make same as this top menu : see this website : http://www.gettyimages.com/ plz help me son regards -- Eng. Nader Dasuqi Project Manager +9665339217533

[jQuery] Re: textarea chars counter

2009-06-13 Thread dreame4
If someone gets here at any time, the solution is http://stackoverflow.com/questions/686995/jquery-catch-paste-input On Jun 12, 2:43 pm, dreame4 <91drea...@gmail.com> wrote: > Thanks for your accurate remark. > > I came up with adding some event but I don't know which. Focus doesn't > work as I

[jQuery] calling functions within a jQuery plugin from another script

2009-06-13 Thread obiwanknothe
Hi all and thanks in advance for your help, I am creating a plugin (named - autoFormat) using the classic plugin style (see below). Can I call the sub function stripFormat from another script? If not how can I modify the plugin that will allow me to call this from another script? Bob (function

[jQuery] Event Load() ??

2009-06-13 Thread Frank
Hello, I'm with a doubt in jquery, I am using the function load () to call another page, but after I loaded this page, I can not use the id of another page. because the function $('#btnCadastrarCliente').click does not work? [index.php] $(document).ready(function(){ $('#btnCada

[jQuery] Event Load() ??

2009-06-13 Thread Frank
Hello, I'm with a doubt in jquery, I am using the function load () to call another page, but after I loaded this page, I can not use the id of another page. because the function $('#btnCadastrarCliente').click does not work? [index.php] $(document).ready(function(){ $('#btnCada

[jQuery] superfish NAVBAR menu - click on lowest menu and highlight that path

2009-06-13 Thread Touran
Hi, The superfish NAVBAR menu is exactly what I am looking for. The only addition I need is that when I click on a different bottom level node the path that is highlighted changes to the path of the item I have clicked on. Does anyone know how to do that thanks Touran

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2009-06-13 Thread Nicolas R
Hello all, I am working on a new version for this plugin to tackle the problems mentioned here and those received by email. I created a new group for this plugin to better organise this project. Here I describe the current status and where it is going: http://groups.google.com/group/jqueryfinder/