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
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
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!)
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
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
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
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
I have soem code that is seperated.
$(document).ready(function(){
});
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
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
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
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
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
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
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
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
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
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
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
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
> }).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:
Can you just use CSS to style the buttons?
button { color: #000 }
button[disabled=disabled] { color: #ccc }
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
$.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()
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,
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.
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:
>
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.
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
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
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
'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
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
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
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.
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
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
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?
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
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
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
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
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
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.
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
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
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
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
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
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
50 matches
Mail list logo