[jQuery] Animation for cloned elements

2010-01-18 Thread Andy789
Hi All, I am trying to clone an element and add it with some animation efects. something like $item.clone(true).appendTo($list).slideDown("slow"); It adds an element correctly, but I cannot get any effects working (tried fadeIn etc). What am i doing wrong? Thanks

[jQuery] Re: Cannot pass vars via AJAX POST

2009-04-21 Thread Andy789
It was just a crazy setting in firebug (enable console). Otherwise, it doesn't show the output results On Apr 22, 1:01 pm, Andy789 wrote: > Hi All, > > I am stacked with a simple code (it works perfectly on my other site, > but I cannot find what could be wrong here): > >

[jQuery] Cannot pass vars via AJAX POST

2009-04-21 Thread Andy789
Hi All, I am stacked with a simple code (it works perfectly on my other site, but I cannot find what could be wrong here): 1) I pass vars to file test.php via $.post("test.php", {state: state, city: city, attorney: isAttorney, paral: isParal, detect: isDetect, same_state: isState}, f

[jQuery] Re: How to prevent loading jquery twice

2009-03-24 Thread Andy789
t; this:http://www.packtpub.com/article/using-javascript-effects-with-joomla > which seems to imply joomla can handle you script inclusion. > hope this helps > > on 23/03/2009 11:41 Andy789 said:: > > > also, it is working (only in FF, though) and not very stable. I think > &

[jQuery] Re: How to prevent loading jquery twice

2009-03-23 Thread Andy789
also, it is working (only in FF, though) and not very stable. I think what is happening, when I write the reference to the header, it does not mean that it is loaded. in fact, it is loaded SOMETIMES On Mar 23, 10:28 pm, Andy789 wrote: > we are talking about joomla's index.php (used a

[jQuery] Re: How to prevent loading jquery twice

2009-03-23 Thread Andy789
at you are trying to do hre, just load jquery in > the head. > > Andy789 wrote: > > Because some components are loaded inside of iframe and need its own > > jQuery. some compionents are loaded one-by-one and need only one > > common library > > > On Mar 23, 9:39 pm

[jQuery] Re: How to prevent loading jquery twice

2009-03-23 Thread Andy789
Because some components are loaded inside of iframe and need its own jQuery. some compionents are loaded one-by-one and need only one common library On Mar 23, 9:39 pm, Liam Potter wrote: > why would you beloadingthe library for each script? > > Andy789 wrote: > > Hi all, > &g

[jQuery] How to prevent loading jquery twice

2009-03-23 Thread Andy789
Hi all, I have different independent modules using jquery and need to avoid its double loading. So, instead of loading jquery, I am loading the code: if (typeof jQuery != 'undefined') { document.write(''); } Also, I have added a line var $j = jQuery.noConflict(); as a last line of jquery librar

[jQuery] Nyro modal - how to check if the div is rendered

2009-03-22 Thread Andy789
HI all, I am getting a synchronization problem when loading an ajax content via nyro modal - spent a few hours debugging it line-by-line. The problem is: sometimes, depending on internet connection, the modal window returns an error (object required) - mainly in IE. I could click the same link 10

[jQuery] Re: Simple alert inside each(function.... not working

2009-03-17 Thread Andy789
It was all my mistake, sorry. I had 2 clones of the same function and was editing a wrong one. everything works perfectly, all alerts etc Sorry, guys On Mar 18, 2:16 pm, Andy789 wrote: > OK, finally, I got it: everything was caused by qtip: adding a code > >    $j(this).qtip({ >

[jQuery] Re: Simple alert inside each(function.... not working

2009-03-17 Thread Andy789
and > "position: absolute; left: -px" will return with the :visibility > selector > An element which does not take up space, such as one with > "display:none" will not return with the :visibility selector. > > Now, in your code, you reference $j('selector&

[jQuery] Re: Simple alert inside each(function.... not working

2009-03-17 Thread Andy789
l alerts inside .each(function do not work. Any ideas? On Mar 18, 7:18 am, James wrote: > What happens if you remove the code for the qtip and leave the alert? > > On Mar 17, 10:14 am, Andy789 wrote: > > > Yes, this is what i was doing, but puzzled as why the second alert &g

[jQuery] Re: Simple alert inside each(function.... not working

2009-03-17 Thread Andy789
t returns "0", then your selector is wrong > > to help with that, there was this excellent post about breaking > changes in 1.3.2 release, in your case reading the ":visible" section > would probably be of great help > > http://www.learningjquery.com/2009/03/3-quic

[jQuery] Simple alert inside each(function.... not working

2009-03-17 Thread Andy789
Hi All, Here is a simple function - works fine, but I cannot get alerts for debugging - no errors - no alerts: function tips(){ $j('li.jqtip:visible').each(function() { alert('something here'); //this alert is not working !! $j(this).qtip({ content: $j(this).attr('title'), show: {

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Andy789
Thank you guys! I have made a slightly different logic, which seems to be working fine: function zipSearch2(){ var zip = $j('input#zip_entry').attr('value'); alert('second '+validation); ... } function zipSearch(){ var zip = $j('input#zip_e

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Andy789
Thank you guys! I have made a slightly different logic, which seems to be working fine: function zipSearch2(){ var zip = $j('input#zip_entry').attr('value'); alert('second '+validation); ... } function zipSearch(){ var zip = $j('input#zip_e

[jQuery] How to synchronize ajax events

2009-03-12 Thread Andy789
Hi All, Here is a simple fragment: function zipSearch(){ var zip = $j('input#zip_entry').attr('value'); validateZip(zip); alert('second '+validation); ... } function validateZip(zip){ $j.post("markers.php", { validate: zip},

[jQuery] Re: How to trigger "click" event in jquery

2009-03-07 Thread Andy789
Thank you guys! I did not know that jquery can handle only its 'own' bound events. I will have to use mootools as it works fine. I just wanted to avoid mixing jquery and mootools in the same function.

[jQuery] How to trigger "click" event in jquery

2009-03-05 Thread Andy789
Hi All, I am struggling with something very simple. 1. onclick event for li element is binded with mootools 2. I can easily trigger onclick via function with mootools like $('lst4').fireEvent('click'); ///works fine 2. I cannot trigger onclick via jquery. I am trying function test(){ //$('ls

[jQuery] Jquery adds its own tags to divs???

2009-02-04 Thread Andy789
Hi All, I cannot understabd why jquery adds these tags to my divs - something like: jquery1233798431484="2" jquery1233798241359="null" what is this?

[jQuery] How to synchronize callback events

2009-02-04 Thread Andy789
Hi All, This is my workflow logic: 1. I submit $.post AJAX request and get the callback data 2. This data is a raw html code, which is used to append some div 3. I have to scroll through all the new appended elements and make them draggable The problem is that the drag activation function start

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Andy789
Thank you. I think it should work - I will give it a try tomorrow. The whole mess is just to store these html strings in the database and extract it later to render a part of the page. any better solutions for this? On Feb 2, 9:20 pm, boermans wrote: > On Feb 2, 7:50 pm, Frederik Ring wrote: >

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Andy789
Because the parent element for #test contains many other divs - not only #test. On Feb 2, 8:38 pm, Frederik Ring wrote: > Why can't you just read the html() of the element containing your > #test?

[jQuery] How to get html string including the selected element

2009-02-02 Thread Andy789
Hi All, I need to get html for a dom structure like this: something if I use $('div#test').html(); it generates its innerHTML excluding How an I get the whole structure including id test? thanks

[jQuery] Re: Convert jquery object to a string

2009-02-02 Thread Andy789
Json parser? http://plugins.jquery.com/project/json any better solutions?

[jQuery] Convert jquery object to a string

2009-02-02 Thread Andy789
Hi all, Is there a simple way to convert jquery object to a string and back? I need to store a generated html dom structure in the database and restore it back to html. Any suggestions how to do it properly? Thank you

[jQuery] Re: Triggering a link with no click event

2009-01-31 Thread Andy789
Guys, thank you, but it still does not work. 1) The Maurício's solution is just a way of extracting the href value and creating onlick event to jump to that link. What I need is to emulate a click on the a element without opening a link directly. The reason for that: Rokbox scans all rel="rokbox"

[jQuery] Re: Triggering a link with no click event

2009-01-30 Thread Andy789
As I can see quite many posts on this subject I wanted to explain why I need this. I generate links for RokBox modal window - something like test next, I need to trigger these links from jscript function (from the external flash application). I could not figure out the way how to call RokBox dir

[jQuery] Triggering a link with no click event

2009-01-30 Thread Andy789
HI All, It could be a silly question, but I cannot find a simple answer... I need to trigger a link with href via an external function, i.e. Emulating click my link function linkClick(){ $("#test").click(); } It does not work and returns nothing. I understanbd that it is because the a#test d

[jQuery] Jquery pagination plugin problem

2009-01-26 Thread Andy789
Hi all, I am playing with the pagination plugin (http://plugins.jquery.com/ node/5912) and cannot figure out how to change number of items showing on a single page. Changing the param items_per_page changes the number of page links (navigation), but still shows a single item on a page. You may p