[jQuery] Functions

2009-11-17 Thread Denis Caggiano
Hi, Just to looking for a better way to use jQuery, here is my doubt. There is a page that uses $.post to call another page that build a report in html table format to put the generated code in a div. So far so good...but...in one of the columns of the report, has a link that executes a javascript

[jQuery] Re: jQuery & Functions

2009-11-10 Thread Lukas
Hi MorningZ, thanks for your help it is greatly appreciated. Yes i did get a bit confused with empty (i blame php :P). I've only been playing with jquery or anything besides plain old document.form.elementname JS for a week so i'm all over the palce. I now have it all working just fine. final co

[jQuery] Re: jQuery & Functions

2009-11-10 Thread MorningZ
What is this syntax supposed to accomplish? if( !$.(arrFieldNames[x]).empty() ){ Issues: "empty()" is a *method* and it empties the children from a DOM object (see the docs: http://docs.jquery.com/Manipulation/empty) You've also got a period after the $, that's not good (nor going to work!)

[jQuery] jQuery & Functions

2009-11-10 Thread Digital Evasion
Firstly hello everyone and apologies for breaking new ground in terms of simple idiot questions. Ok so I'm trouble doing something I would consider as simple with jquery. I have a form and i want to run a common function (that checks a bunch of inputs) that will be run when certain fields blur. wor

[jQuery] Re: Is there any possibility to get Light window option Using Jquery functions , Autocomplete hints from database

2009-06-23 Thread Liam Potter
Check out the fancybox plugin and an autocomplete plugin Fancybox - http://fancy.klade.lv/ Autocomplete - http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ anjith wrote: Hai, I am New to Jquery When i click a hyperlink(anchor tag) I need to display a php page in light wi

[jQuery] Is there any possibility to get Light window option Using Jquery functions , Autocomplete hints from database

2009-06-23 Thread anjith
Hai, I am New to Jquery When i click a hyperlink(anchor tag) I need to display a php page in light window. Autocomplete or Auto-suggest similar to googlesuggest In google.comI heard we can do this using Jquery Thanks and Regards, Anjith

[jQuery] Functions

2009-06-09 Thread simon
I have some code seperated by script: $(document).ready(function(){ code in here function thisismyfunction(){ } }); then later on i have $(document).ready(function(){ thisismyfunction() }); code in here with a call to the function above, but because its seperated it will not call

[jQuery] Functions

2009-06-09 Thread simon
I have soem code that is seperated. $(document).ready(function(){ });

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Dmytro Liepieshkov
Hi. You can try script below var a,b,c; ... setTimeout(function(){movebus(a,b,c);}, 5000); ... On May 25, 2:05 am, Mike wrote: > I have a jQuery function with three parameters which works just fine > when invoked directly, > >            movebus(a,b,c); > > but when I try to delay its invocatio

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Dmytro Liepieshkov
Hi. You can try script below var a,b,c; ... setTimeout(function(){movebus(a,b,c);}, 5000); ... On May 25, 2:05 am, Mike wrote: > I have a jQuery function with three parameters which works just fine > when invoked directly, > >            movebus(a,b,c); > > but when I try to delay its invocation

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Jason Persampieri
Alternatively, another method would be - setTimeout( function() { movebus(a, b, c);}, 300); This format is preferred as it won't invoke 'eval', allows for more complex logic and gets you some nifty closure action. _jason On May 25, 1:36 am, Surya Prakash wrote: > Hi U can try as below: > var

[jQuery] Re: jQuery functions called from setTimeout fails

2009-05-25 Thread Surya Prakash
Hi U can try as below: var a; var b; varc c; setTimeout("movebus("+a+","+ b+","+ c+")",300); i hope this is help ful.. let me know this works for u r not,,, On Sun, May 24, 2009 at 4:05 PM, Mike wrote: > > I have a jQuery function with three parameters which works just fine > when invoked d

[jQuery] jQuery functions called from setTimeout fails

2009-05-25 Thread Mike
I have a jQuery function with three parameters which works just fine when invoked directly, movebus(a,b,c); but when I try to delay its invocation using setTimeout, as in setTimeout("movebus(a,b,c); ", 5000); I receive the error message in Firebug "movebus(a,b,c) not defi

[jQuery] Help with jquery functions

2009-03-26 Thread Progressed
dear members, new on the whole jquery thingie, and need help on for the follwing: I want to refresh a dive that contains a php query. It has to refresh every 3 seconds. What i see is that the follwing code isnt correct. it also starts $(document).ready... twice... it has to be wrong, but what do

[jQuery] scope change of jquery functions in popup window

2009-03-04 Thread rafi
Hi, I want to use jquery functions in popup window which is opened using window.open function. For this what i wrote command in popup window is: var $ = window.opener.jQuery; now when i try to use xpath selectors to hide all spans which has name attribute as "route" in popup, it actu

[jQuery] loading jquery functions for a form, loaded with ajax

2009-02-12 Thread s4crifi...@gmail.com
Hi. In my application, i need to load a page with ajax. Loaded page contains jquery functions, to handle form submitting. The problem is that when i load that form with ajax, none of the functions works and when i push "submit" it opens target url, not reloads itself with ajax.. when

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-11 Thread Ariel Flesler
Nice, let me know how it goes. On Sun, Jan 11, 2009 at 2:05 PM, kape wrote: > > Thanks, I'll actually give that a try. > > On Jan 11, 9:46 am, Ariel Flesler wrote: >> I just made a plugin to do EXACTLY what you're asking for. >> It's not formally released yet so there's no documentation. If you

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-11 Thread kape
Thanks, I'll actually give that a try. On Jan 11, 9:46 am, Ariel Flesler wrote: > I just made a plugin to do EXACTLY what you're asking for. > It's not formally released yet so there's no documentation. If you > want, you can use it. > > http://test.flesler.com/jquery.broadcast/ > > Note that it

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-11 Thread Ariel Flesler
I just made a plugin to do EXACTLY what you're asking for. It's not formally released yet so there's no documentation. If you want, you can use it. http://test.flesler.com/jquery.broadcast/ Note that it requires jQuery 1.3. That means you need to use the version on trunk or any of the recently r

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-10 Thread Ricardo Tomasi
27;); >             }).removeClass('buttonDisabled'); >           } >           superRemoveAttr.call(this, name); >         }; > > But again, I think there should be a better way without overwriting > the jQuery functions. > > On Jan 9, 2:44 pm, Eric Garside wr

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-09 Thread Eric Garside
>             }).removeClass('buttonDisabled'); >           } >           superRemoveAttr.call(this, name); >         }; > > But again, I think there should be a better way without overwriting > the jQuery functions. > > On Jan 9, 2:44 pm, Eric Garside wrote:

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-09 Thread Dave Methvin
Can you just use CSS to style the buttons? button { color: #000 } button[disabled=disabled] { color: #ccc }

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-09 Thread kape
this.each(function() { return $(this).hasClass('buttonDisabled'); }).removeClass('buttonDisabled'); } superRemoveAttr.call(this, name); }; But again, I think there should be a better way without overwriting the jQuery fu

[jQuery] Re: How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-09 Thread Eric Garside
$.fn.enable = function(callback){ return this.each(function(){ if (callback) return $(this).data('enableCB', callback); if (typeof $(this).data('enableCB') == 'function') $(this).data ('enableCB')(); }); } $.fn.disable = function(callback){ return this.each(function()

[jQuery] How can I add a TRUE custom event or modify existing jQuery functions?

2009-01-09 Thread kape
I have created custom styled buttons in my page and would like to toggle their class and therefore their look when they get disabled or enabled. So is there any way to call a function when .removeAttr ('disabled'), .attr('disabled', ''), and .attr('disabled', 'disabled') are invoked? Basically,

[jQuery] Functions and variables

2008-12-04 Thread Will
I'm sure this is dealt with somewhere in the jQuery tutorials but I have not been able to find it. I'm new to jQuery and used to working with functions and variables so that I can create reusable code and not have to hard code every event that could happen. This is pretty much basic programming.

[jQuery] Re: scope of jquery functions?

2008-06-17 Thread Hamish Campbell
The issue is that the click function is bound on document.ready - so stuff added later won't have the binding. See the FAQ: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F On Jun 18, 10:21 am, Brian Cummiskey <[EMAIL PROTECTED]> wrote: >

[jQuery] scope of jquery functions?

2008-06-17 Thread Brian Cummiskey
Hello all, New to this list and working on my first site with jQuery. So far so good, for the most part. I've run into one problem that i can't put my mouse on. I have a simple slide-out 'cart'. After you add an item via an ajax post, the slide out shows the cart with the new items in it.

[jQuery] functions and jquery

2008-06-02 Thread MarcDK
I have a problem with functions in jquery. Here is my code: $(function() { function klappmenu(id_name) { id_status=id_name+"_status"; head=id_name+"_head"; var id_status = $.cookie("+id_status+"); if (id_status == null){ $("h3#"+head).addClass('zu'); $("#"+id_name).css("display

[jQuery] Functions from xml parsed document

2008-03-29 Thread elspiko
Hi one and all, I'm loading a page from an xml file, no problems works fine; below is what is output to give a better understand of what im trying to do... <\img src=blah1.jpg /> The plan is, when someone clicks on a thumbnail, it get displayed in the main image. If i hard code some values

[jQuery] Extend/Override jQuery Functions for IE6

2008-03-08 Thread Daniel S. Kim
After days of searching and experimenting with solutions for IE6 issues (peekaboo, etc.) I am having with my css implementation and jQuery, I believe a temporary work around is to extend/override (not sure what the exact term is) some jQuery functions when used in IE6. I am sure there is an

[jQuery] Re: jqModal - how to call jquery functions on returned AHAH?

2008-02-24 Thread metoikos
'a.ex2trigger', > >onLoad: loadAjax }); > > }); > > > var loadAjax = function(jqmHash) { > > > $("#productinfo > ul").tabs(); // trying to init jquery.ui.tabs > > > }; > > > > I also tried using jqmHash.w as a second parameter

[jQuery] jqModal - how to call jquery functions on returned AHAH?

2008-02-23 Thread J. Childers
Hash) { > > $("#productinfo > ul").tabs(); // trying to init jquery.ui.tabs > > }; > > > I also tried using jqmHash.w as a second parameter, but also to no avail. Can anyone point me in the right direction? Thanks. -- View this message in context: http://www.nabbl

[jQuery] Re: Accessing jQuery functions from outside

2008-02-01 Thread Juha Suni SC
wyo wrote: The class is reserved for other uses or is it possible to assign multiple classes. Besides does "addClass" add another class to an object or does it replace the existing class? Of course an element can have multiple classes: foo You can get it with $('a.second') or $('a.third'), y

[jQuery] Re: Accessing jQuery functions from outside

2008-02-01 Thread wyo
On Jan 31, 3:38 pm, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > wyo ha scritto: > > > > Why don't you declare the function outside the document.ready ? > Since I want to use the function during startup but prevent it from being used before document.ready and I want to use it afterwards.

[jQuery] Re: Accessing jQuery functions from outside

2008-01-31 Thread the_woodsman
Have you tried putting the fn outside of document ready, and then calling it in both document ready and the onclick? Btw, you don't put the "javascript:" in an onclick, only in a href, that might cause problems too... On Jan 31, 1:44 pm, wyo <[EMAIL PROTECTED]> wrote: > I've some functions which

[jQuery] Re: Accessing jQuery functions from outside

2008-01-31 Thread Giovanni Battista Lenoci
wyo ha scritto: I've some functions which I'd like to use outside of jQeury in normal HTML, e.g. $(document).ready(function() { function collapse (i) { $('#expanded_'+i).hide(); } }); ... ... What do I have to write at the onclick? Why don't you d

[jQuery] Accessing jQuery functions from outside

2008-01-31 Thread wyo
I've some functions which I'd like to use outside of jQeury in normal HTML, e.g. $(document).ready(function() { function collapse (i) { $('#expanded_'+i).hide(); } }); ... ... What do I have to write at the onclick?

[jQuery] Re: jQuery functions on loaded html

2007-11-24 Thread Karl Swedberg
you click on an arrow image the sub-listings are loaded via a plain html file (eventually this will load from an api call), the image is changed, the list is then slideToggle'd. Problem: It seems that none of my jQuery functions work on the loaded html. Neither the hover menu onclick

[jQuery] Re: jQuery functions on loaded html

2007-11-24 Thread Wil Everts
x.html > > Source: http://wil1.com/jtest/wil.js > > Description: When you click on an arrow image the sub-listings are loaded > via a plain html file (eventually this will load from an api call), the > image is changed, the list is then slideToggle'd. > > Problem: It seem

[jQuery] jQuery functions on loaded html

2007-11-24 Thread Wil Everts
that none of my jQuery functions work on the loaded html. Neither the hover menu onclick of the company titles and the html load or extend onclick of the arrorw seem to work... am I missing something? Thanks, Wil

[jQuery] functions after $.get work strange

2007-09-27 Thread [EMAIL PROTECTED]
Im trying to set somehow variable inside of $.get callback and get outside this callback. Im doing it in this way (because I dont know any other way): function isTracked(personcode) { ret='false'; // it should return string 'true' or 'false' $.get('trackstudent/istracked.php',{'personcode': pers

[jQuery] functions not working on ajax generated content

2007-08-19 Thread MrNase
Hello! I have one very annoying problem. First of all, I have a list of items. Each items contains information that I want to display on the webpage using several functions. Here's an example: function getNumbers() { var numberofentries = $('#kilometer-data li').size(); } Everything works whe

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-09 Thread emerson999
Thanks all! The additions jostylr made to karl's work did the trick. Just started the actual work in porting over my jquery using scripts, and so far so good.

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-08 Thread jostylr
While I am new to both Greasemonkey and jQuery (both are dripping with amazing potential), it is true that onclick='AlertBox()' will not work because this is being evaluated after Greasemonkey has disappeared out of sight. Karl's remedy should have worked since that is referencing the actual funct

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-08 Thread Sean Catchpole
Not sure why your script isn't working. You can review the code of another jQuery greasemonkey script here: http://userscripts.org/scripts/source/6061 ~Sean

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-08 Thread emerson999
On my lunch break, and I did a bit more looking into it. From what I understand, and someone more familiar with greasemonkey may be able to correct me, it actually looks like what I'm trying to do might not be possible, by intentional design. There's an extension called chickenfoot which looks a b

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-08 Thread emerson999
No luck, which is really odd as I can't see any reason that wouldn't work. Not even a javascript error when the button is pushed. I might just need to break down and look inside the greasemonkey plugin to see exactly what it's doing with the userscript files before passing it on to mozjs. A little

[jQuery] Re: Greasemonkey + jquery + functions

2007-06-08 Thread Karl Swedberg
Not sure this will work, but worth a try: * greasemonkey init code + The main jquery lib code* $('').prependTo ('body').click(function() { alert("Popup from userscript function!"); }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 8, 2007, a

[jQuery] Greasemonkey + jquery + functions

2007-06-08 Thread emerson999
I've been trying to use jquery within a greasemonkey script, and keep hitting the same problem. Both from a simple copy and paste of jquery into a greasemonkey script, and using the version of jquery modified for greasemonkey over at http://userscripts.org/scripts/show/7373 , there's one problem w