[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 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 defined".
>
> Can anyone suggest why this is?
>
> regards
>
> Mike
>
>


[jQuery] Re: Closing jqModal from inside of content loaded with AJAX

2009-05-24 Thread Surya Prakash
Close me  ... or Test
me... or

You need to specify below code in examples/2.html:
Close me

in parent window

$(document).ready(function(){

closeWindow= function()
{
parent.$.fn.colorbox.close();
}
});


i hope this is helps u..


Thanks,


On Wed, May 20, 2009 at 2:45 AM, wardenik  wrote:

>
> On May 16, 1:33 pm, wardenik  wrote:
> > Hi,
> >
> > I've put the sample code here:http://www.warden.pl/jq/test1/
> > Any help appreciated cause I'm out of ideas... :/
> >
> > After clicking "Reload" button, the same ajax.php is loaded, but the
> > "closeme" doesn't work any more.
> > Nor the "test me" which is invoked as you have written earlier.
> >
>
> Anybody?
>


[jQuery] Re: Closing jqModal from inside of content loaded with AJAX

2009-05-15 Thread Surya Prakash
Hi Dude,

below is the solution for it:

lets say ajax load page contains
Close Ajax

And on parent page implement this code:

CloseAjaxPage = function(){
 $("#modalClose").click();
   }

I hope this is clear
Please let me know if u have any issues

Happy JQuerying..

On Thu, May 14, 2009 at 9:08 PM, wardenik  wrote:

>
> Hi,
>
> I have a standard page loaded with jqmodal box that is loading a form
> via ajax.
> Now I want to close that modal after submit from the inside of page
> that was loaded, depending on the form result.
> I've tried
> parent.$(".jqmAlert").jqmHide();
> and many other versions but I always get "h is undefined" or some
> other errors.
> Maybe somebody had this problem and can give me a hint?
>
> Thanks!