Re: [Moo] Modify JSONP Header

2012-12-25 Thread Sid-ahmed D
Thank you for all reply guys :D

Re: [Moo] Modify JSONP Header

2012-12-21 Thread Sid-ahmed D
Could you please confirmed me if this example can work, because i tested and it's not working ...? insert_events(id, json[1]); insert_events(id, json[2]); insert_events(id, json[3]); insert_events(id, json[4]); insert_events(id, json[5]); insert_events(id, json[6]); insert_events(id, json[7]); in

Re: [Moo] Modify JSONP Header

2012-12-21 Thread Sid-ahmed D
Hello, Is it possible to limite simultaneous requests whit XHR ? I want to run 5 queries (for example) one by one after the end of the execution of the first. Best regards, Le jeudi 20 décembre 2012 21:18:45 UTC+1, Sid-ahmed D a écrit : > > Thank you :D > > Le jeudi 20 décembr

Re: [Moo] Modify JSONP Header

2012-12-20 Thread Sid-ahmed D
Thank you :D Le jeudi 20 décembre 2012 04:08:17 UTC+1, Sanford Whiteman a écrit : > > > Could you please say me if we can modify Header in JSONP request ? > > I use Mootools framework to make JSONP requests. > > You can't modify headers in JSONP. Only with full CORS support can you > get XHR-ty

[Moo] Re: Modify JSONP Header

2012-12-19 Thread Sid-ahmed D
I try to connect my website with Google API Calendar (with Javascript) and i need to inject header in JSONP requests. var ressource = { > "defaultReminders":[{"method":"sms", "minutes": 10}], > "id": "CalendarTEST" > }; > > new Request.JSONP({ > u

[Moo] Modify JSONP Header

2012-12-19 Thread Sid-ahmed D
Hello Everybody, Could you please say me if we can modify Header in JSONP request ? I use Mootools framework to make JSONP requests. Thank you. Best regards,

Re: [Moo] Link Cancel Request

2012-02-27 Thread Sid-ahmed D
Awesome. Thank you very much ^^

Re: [Moo] Link Cancel Request

2012-02-26 Thread Sid-ahmed D
Someone can help me? Le vendredi 24 février 2012 19:24:45 UTC+1, Sid-ahmed D a écrit : > > Not working for me. > > On Firefox or chrome. > > Le vendredi 24 février 2012 16:00:55 UTC+1, hazlema a écrit : >> >> http://jsfiddle.net/hazlema/RLvAa/1/ >> >>

Re: [Moo] Link Cancel Request

2012-02-24 Thread Sid-ahmed D
Not working for me. On Firefox or chrome. Le vendredi 24 février 2012 16:00:55 UTC+1, hazlema a écrit : > > http://jsfiddle.net/hazlema/RLvAa/1/ > > made a little change but is working with multiple requests in chrome. > >

Re: [Moo] Link Cancel Request

2012-02-24 Thread Sid-ahmed D
Hello Everyone, It's me again for same issue with addEvents My example : http://jsfiddle.net/RLvAa/ If i execute this, it's working. If i remove one "request.send();" and i write in #locate and if request during 2 seconds for example, it's not working. Requests launch one after others. Could

Re: [Moo] Link Cancel Request

2012-02-24 Thread Sid-ahmed D
Hello Everyone, It's me again for same issue with addEvents My example : http://jsfiddle.net/RLvAa/ If i execute this, it's working. If i remove one "request.send();" and i write in #locate and if request during 2 seconds for example, it's not working. Requests launch one after others. Could y

Re: [Moo] Link Cancel Request

2012-02-08 Thread Sid-ahmed D
Wa awesome. It's perfect thank you very much for your help.

Re: [Moo] Link Cancel Request

2012-02-08 Thread Sid-ahmed D
almost perfect ... but I need div name in onComplete for example. onComplete: function (json) {} $('form_'+id).dispose(); } Have you an idea ?

Re: [Moo] Link Cancel Request

2012-02-08 Thread Sid-ahmed D
Arrf But i lost a parameter "div" ?

[Moo] Link Cancel Request

2012-02-08 Thread Sid-ahmed D
Hello world, I need your help, please ^^ 3 requests are started by function "form_comment(x)" but just one can running. I try to use link cancel but doesn't work. "div" name is a primordial element and it can change depending on page. form_comment(div1); form_comment(div1); form_comment(div1)

[Moo] Re: Request.html with function

2011-12-16 Thread Sid-ahmed D
Thank you for your reply and your motivations to help me. I will rework my script.

[Moo] Re: Request.html with function

2011-12-15 Thread Sid-ahmed D
Sorry but my use is : http://jsfiddle.net/TAdu5/6/ but i can't use a function ? (i think)

[Moo] Re: Request.html with function

2011-12-15 Thread Sid-ahmed D
But if i send the result to another function, link 'cancel' doesn't work !

Re: [Moo] Re: Request.html with function

2011-12-15 Thread Sid-ahmed D
Okay i have a last question for use this scripts correctly. I need return the variable in request.html. http://jsfiddle.net/TAdu5/5/ Could you please (re) help me ? ^^

Re: [Moo] Request.html with function

2011-12-15 Thread Sid-ahmed D
jsFiddle was down but now it's ok. I don't understand because with test1, it's work. With the test2 : http://jsfiddle.net/TAdu5/3/. I try to do work "link cancel". I Have a issue with function() {...}(); ?? Thank you very much for your help ^^

Re: [Moo] Request.html with function

2011-12-15 Thread Sid-ahmed D
I try to execute correcty the last test : http://jsfiddle.net/TAdu5/3/ Link 'cancel' doesn't work.

[Moo] Re: Request.html with function

2011-12-14 Thread Sid-ahmed D
correct link : http://jsfiddle.net/TAdu5/3/ Thanks

[Moo] Request.html with function

2011-12-14 Thread Sid-ahmed D
Hi, I have a issue with Request function. I search to use link 'cancel' : http://jsfiddle.net/w8jKL/ This test works, but i want use a function in primary function and this exemple doesn't work. http://jsfiddle.net/TAdu5/1/ Could you please help me ? Thank you

Re : Re: [Moo] Request link

2011-09-04 Thread Sid-ahmed D
thank you for you reply :)

[Moo] Request link

2011-09-02 Thread Sid-ahmed D
Hi all, I have a issue with Request.HTML "link" option doesn't work with function ? Could you please say me why and how i can resolve this ? http://jsfiddle.net/gjNMW/ Thank you very much.

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
Thank you for your patience and your time. Hopefully this article will be used for someone else. Special thanks to Sanford Whiteman ^^ On Aug 8, 10:27 pm, Sid-ahmed D wrote: > Okay, > i need close Session after get all SESSION datas. > > session_start(); > $da

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
Okay, i need close Session after get all SESSION datas. session_start(); $datas = $_SESSION; session_write_close(); On Aug 8, 10:17 pm, Sid-ahmed D wrote: > Thank you ! you are genious ^^ > commom object is session_start (). > > When i remove this ... > GET test.php  200 OK 5.

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
Thank you ! you are genious ^^ commom object is session_start (). When i remove this ... GET test.php 200 OK 5.03s GET test2.php 200 OK 5.03s BUT ... i need to my session ... On Aug 8, 10:07 pm, Sanford Whiteman wrote: > > The requests on the back end, check if i receive a new message (mail) >

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
The requests on the back end, check if i receive a new message (mail) and on the front end users can refresh or change page with other Request.HTML. the requests on backend execute in 55 seconds. For now, users are blocked until this 55 seconds for change page ... On Aug 8, 9:59 pm, Sanford Whit

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
which is settings on server apache to allow multi-requests asynchronous ? On Aug 8, 9:15 pm, Sean McArthur wrote: > Can your test server only handle a single request at a time?

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
be ignored, > cancelled, or chained. Creating multiple instances of Request.* and having > them run simultaneously will not block the user... > > ~Philip > > On Mon, Aug 8, 2011 at 1:30 PM, Sid-ahmed D > wrote: > > > > > > > > > > > It is therefor

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
Could you please show me a example ? Because, i try and i try and ... nop .. I start 2 requests "simultaneously" to 5 secondes. I see in console log, 2 requests start "simultaneously" but the first finish to 5sec and seconds to 10 sec ... They start "simultaneously" but execute in 'chain' ... On

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
nk you On Aug 8, 8:02 pm, Sid-ahmed D wrote: > Thank you for your responses. > > I *should* --> i would :) > > On Aug 8, 7:36 pm, Philip Thompson wrote: > > > > > > > > > On Mon, Aug 8, 2011 at 12:25 PM, Aaron Newton wrote: > > > On Mon, Aug

[Moo] Re: Request simultaneously

2011-08-08 Thread Sid-ahmed D
Thank you for your responses. I *should* --> i would :) On Aug 8, 7:36 pm, Philip Thompson wrote: > On Mon, Aug 8, 2011 at 12:25 PM, Aaron Newton wrote: > > On Mon, Aug 8, 2011 at 10:21 AM, Philip Thompson > > wrote: > > >> They *should* run simultaneously as you have it. You do have the "lin

[Moo] Request simultaneously

2011-08-08 Thread Sid-ahmed D
Hello, How can I run two requests simultaneously? In my example, two requests are going on simultaneously, but the execution is done one after other ... var RQ1 = function() { new Request.HTML({ url: '/foo' link : 'chain', onSuccess: function (tree

[Moo] Re: reduce the number of AJAX requests

2010-08-03 Thread Sid-ahmed D
I think (function ... is more common though. > > > > > On Aug 3, 2010, at 6:15 AM, Fábio M. Costa wrote: > > > > > jiggliemon, > > > > > no you dont need the extra parentheses, you could do: > > > > > function(){ > > > > ... > > > >

[Moo] Re: reduce the number of AJAX requests

2010-08-03 Thread Sid-ahmed D
ou had before and stuff like that. It's safer. > > > -- > > Fábio Miranda Costa > > > On Mon, Aug 2, 2010 at 11:00 AM, Sid-ahmed D > > wrote: > > > > Perfect, it's working now. > > > Thank you. > > > > just to under

[Moo] Re: reduce the number of AJAX requests

2010-08-02 Thread Sid-ahmed D
lick 3 times in a row, it will call the first, when it finishes another > will be called and then another. > > -- > Fábio Miranda Costa > > On Mon, Aug 2, 2010 at 10:09 AM, Sid-ahmed D > wrote: > > > I can not put a variable "url" in this configur

[Moo] Re: reduce the number of AJAX requests

2010-08-02 Thread Sid-ahmed D
I can not put a variable "url" in this configuration. Could you please help me ? http://jsfiddle.net/KzMDG/1/ Thank On 2 août, 11:17, Dimitar Christoff wrote: > > You should never create the request object inside the click event. > > and why not if you don't plan on recycling it? > > Best regar

[Moo] Re: reduce the number of AJAX requests

2010-08-02 Thread Sid-ahmed D
I can not put a variable "url" in this configuration. Could you please help me ? http://jsfiddle.net/KzMDG/1/ Thank On 2 août, 11:33, Sid-ahmed D wrote: > Thank you for all your reply. > > On 2 août, 11:17, Dimitar Christoff wrote: > > > > You should never creat

[Moo] Re: reduce the number of AJAX requests

2010-08-02 Thread Sid-ahmed D
Thank you for all your reply. On 2 août, 11:17, Dimitar Christoff wrote: > > You should never create the request object inside the click event. > > and why not if you don't plan on recycling it? > > Best regards, > -- > Dimitar Christoff > blog:http://fragged.org/twitter:http://twitter.com/D_mit

[Moo] Re: reduce the number of AJAX requests

2010-08-01 Thread Sid-ahmed D
It's strange. In the Mootools documentation: Ignore is the default value, however it does not work. http://mootools.net/docs/core/Request/Request link - (string: defaults to 'ignore') On 2 août, 00:35, Sid-ahmed D wrote: > I can try this :http://jsfiddle.net/6UqAP/3/ &

[Moo] Re: reduce the number of AJAX requests

2010-08-01 Thread Sid-ahmed D
I can try this : http://jsfiddle.net/6UqAP/3/ But it's not work. On 2 août, 00:27, Sid-ahmed D wrote: > Thank.http://jsfiddle.net/6UqAP/2/ > > hehe :) > > On 2 août, 00:15, Fábio M. Costa wrote: > > > if you use the option link: 'ignore', no requests wil

[Moo] Re: reduce the number of AJAX requests

2010-08-01 Thread Sid-ahmed D
il hehe. > Send the correct and i can show how to set the link options, but its pretty > easy. > > -- > Fábio Miranda Costa > > On Sun, Aug 1, 2010 at 7:03 PM, Sid-ahmed D > wrote: > > > Hi, > > > How do you block the action of a function when it is started an

[Moo] reduce the number of AJAX requests

2010-08-01 Thread Sid-ahmed D
Hi, How do you block the action of a function when it is started and reactivate when the application is completed? http://jsfiddle.net/6UqAP/ Imagine that the query takes 10 seconds to appear, if I continue to click the go button .. other requests are sent to the server. Is there a way to block

[Moo] Re: Inject / set

2010-08-01 Thread Sid-ahmed D
Perfect Thank you Mihaitza and Fabio M.Costa :) On 1 août, 23:37, MIhaitza wrote: > orhttp://jsfiddle.net/6UqAP/ > > On Aug 2, 12:34 am, Sid-ahmed D wrote: > > > I found this : > > > Element.implement({ > >   appendHTML: function(html) { > >  

[Moo] Re: Inject / set

2010-08-01 Thread Sid-ahmed D
I found this : Element.implement({ appendHTML: function(html) { this.set('html',this.get('html')+html); return this; } }); On 1 août, 23:29, Sid-ahmed D wrote: > AppendHTML exist on Jquery but not on Mootools ?? > > On 1 août, 23:21, Fábio M. Costa

[Moo] Re: Inject / set

2010-08-01 Thread Sid-ahmed D
AppendHTML exist on Jquery but not on Mootools ?? On 1 août, 23:21, Fábio M. Costa wrote: > yes there is :D > > http://jsfiddle.net/6kspb/1/ > > just use appendText function. > > -- > Fábio Miranda Costa > > On Sun, Aug 1, 2010 at 6:16 PM, Sid-ahmed D > wrote: &

[Moo] Re: Inject / set

2010-08-01 Thread Sid-ahmed D
n, Aug 1, 2010 at 6:16 PM, Sid-ahmed D > wrote: > > > Hi all, > > > I wonder if it is possible to add content without deleting the > > existing content of a div # example. > > >http://jsfiddle.net/6kspb/ > > > Desired result is - > >       Hi, my name is : Sid > > > Thanks :)

[Moo] Re: equivalent appendHTML for Mootools

2010-07-28 Thread Sid-ahmed D
--Original Message- > From: mootools-users@googlegroups.com > > [mailto:mootools-us...@googlegroups.com] On Behalf Of Sid-ahmed D > Sent: Wednesday, July 28, 2010 8:49 AM > To: MooTools Users > Subject: [Moo] Re: equivalent appendHTML for Mootools > > Thank you but it's

[Moo] Re: equivalent appendHTML for Mootools

2010-07-28 Thread Sid-ahmed D
Thank you but it's too bad that Mootools does not support all custom events or support focus and blur events. On 28 juil, 04:51, Sanford Whiteman wrote: > Sorry, I didn't get to look at your Fiddle before. > > The most forward-looking way to do this is using event delegation. > > http://jsfiddle.

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
There may be a way to reload the javascript for the new DOM elements is taken into account. On 27 juil, 21:54, Sid-ahmed D wrote: > yes, I could. > But in my use, this function can be used by different elements. > I did this at the beginning (http://jsfiddle.net/FFCp8/) but the real >

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
ld do it like this:http://jsfiddle.net/cft4J/1/ > > the ok-div is created when you submit the form. but you trying to access > it before. > > On 27.07.2010 21:09, Sid-ahmed D wrote: > >  > voila la demo : >  >http://jsfiddle.net/cft4J/ >  > >  > Merci de votre aide.

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
here is the demo: http://jsfiddle.net/cft4J/ Thank you for your help. On 27 juil, 21:40, Sid-ahmed D wrote: > voila la demo :http://jsfiddle.net/cft4J/ > > Merci de votre aide. > > On 27 juil, 21:14, Sanford Whiteman > wrote: > > > Please  put  runnable,  fixable  d

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
voila la demo : http://jsfiddle.net/cft4J/ Merci de votre aide. On 27 juil, 21:14, Sanford Whiteman wrote: > Please  put  runnable,  fixable  demos  of  problem  pages in jsFiddle > (www.jsfiddle.com). > > -- S.

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
#x27;); )); )); On 27 juil, 20:55, Sid-ahmed D wrote: > Excellent :P > Perfect > > Thanks all :) > > On 27 juil, 20:43, Sanford Whiteman > wrote: > > > > How can I be sure elements are in the DOM ? > > > Use your browser's DOM inspector. > > > -- S.

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
Excellent :P Perfect Thanks all :) On 27 juil, 20:43, Sanford Whiteman wrote: > > How can I be sure elements are in the DOM ? > > Use your browser's DOM inspector. > > -- S.

[Moo] Re: equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
 this.set('html',this.get('html')+html); > >    return this; > >  } > > }); > > document.body.appendHTML(''); > > > On Jul 28, 1:41 am, Sid-ahmed D wrote: > > > Hi all, > > > > I wonder if there is an equivalent as [b]appendHTML[/b] (jQuery) for >

[Moo] equivalent appendHTML for Mootools

2010-07-27 Thread Sid-ahmed D
Hi all, I wonder if there is an equivalent as [b]appendHTML[/b] (jQuery) for Mootools? I would add [i]HTML code[/i], in the DOM. Merci à tous :)

[Moo] Equivalent for sleep (php) in mootools

2009-08-27 Thread Sid-ahmed D
Hi all, I search THE function equivalent for sleep (php) in mootools. I don't remenber but i know that this function exist and i don't find him. this isn't one of the following functions : -delay -setTimeout The function that i search, use like a function sleep in php. blabalbal; sleep(3); //