[Proto-Scripty] Re: ajax call

2013-07-22 Thread tab1ta
ok, i've choosen the right piece of software, (the one that seem to trigger the submit event), but still the ajax call is missing something. I'm pasting the final version: var lin={% raw line %} function str_to_obj(o){ document.write('
Re: [Proto-Scripty] Re: AJAX Tabs Widget
Victor, Thanks for the links... I'd already seen control.tabs and it doesn't appear to support ajax (if it does its not documented and the api makes no reference to it). The one on sourceforge appears to be a fork of the control.tabs and also I do see references to ajax in the source, it has no d

[Proto-Scripty] Re: AJAX Tabs Widget

> I'm now looking for/at tab controls that support ajax calls. The few that > I've found are pretty static in that you can assign tab "A" to a specific > AJAX request but you have no ability to dynamically create/destroy tabs. > LivePipe Control.Tabs: http://livepipe.net/control/tabs + somew

[Proto-Scripty] Re: AJAX Tabs Widget

I managed to get Rolands tabs.js to work. Essentially I added another parameter to the addPanel function called relationship and then used that in the new Element(). After Roland adds the Panel (creates a new tab) he calls openPanel which will inturn call the AJAX call back. Once there it was eas

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

> > Is response empty in network sniffer/web inspector? Or in javascript code? >>> >> The response is already empty in web inspector. > Very bad > You should check if it is actually written to HTTP response (maybe >> response is already flushed). >> > If I return some HTML in addition to my

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

Dear Victor, Am Mittwoch, 15. August 2012 11:47:25 UTC+2 schrieb Victor: > > I checked the response header and it's " >> Content-Type: >> text/html; charset=UTF-8". >> Unfortunately I couldn't check the response because it's empty. >> > > Is response empty in network sniffer/web inspector? Or in

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

> > I checked the response header and it's " > Content-Type: > text/html; charset=UTF-8". > Unfortunately I couldn't check the response because it's empty. > Is response empty in network sniffer/web inspector? Or in javascript code? > Printing the return-part in my controller I got the correc

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

Additional info: when I print out the response to console I only receive: ** So my base64-encoded string is cutted out. When calling my reloadurl directly in the browser the image shows up correctly. Any further suggestions to this? regards mabei Am Dienstag, 14. August 2012 09:24:51 UTC+2 sc

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

Dear Victor, thanks for your reply. I checked the response header and it's " Content-Type: text/html; charset=UTF-8". Unfortunately I couldn't check the response because it's empty. Printing the return-part in my controller I got the correct base64-encoded string. I checked prototype api docs an

[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText

> > I deliver a URL to my controller service via prototype ajax. This one is > fetching the image and returns > the image base64_encoded. > > While observing the response I noticed just an empty result. > How are you observing the response? Use network sniffer and/or Network pane from Web Devel

[Proto-Scripty] Re: ajax updated element not processing controls but will process effects

Apologies - I did not check the Prototype reference properly. FYI: Prototype's Ajax.Updater has an option called evalScripts that defaults to false (i/e it does not evaluate inline

[Proto-Scripty] Re: Ajax Call waits callback forever

Hi, First of all, thanks for the answer. I think that normally, I can't have two PeriodicalUpdate at once. Indeed, when looking at javascript console in chrome, I see that when the call is waiting, no other XHR is beginning. Plus, I don't know exactly how it works behind the library, but could it

[Proto-Scripty] Re: Ajax Call waits callback forever

Hi, I held off posting this earlier in case someone had something more useful to say, but if you're using PeriodicalExecuter to fire off ajax requests, I think you're opening yourself to some chaotic effects, since you've got a timed event firing off an event that takes unpredictable time (the aja

[Proto-Scripty] Re: Ajax Call waits callback forever

Hi ! As nobody seems to be looking or have an idea, here is the source code of the page : http://kraml.fr/lib/js/chat.js It seems that when being @home with 2 computers (on an Internet box) on the website, it "crashes" more often. Here are my ideas of what is being happening, if it reminds some

[Proto-Scripty] Re: Ajax Call waits callback forever

Hi there again ! New debugs showed me that the php file wasn't even called. I heard there could be limits on the number of concurrent ajax calls, is it true ? I think that to test it, I'm going to stop my periodicalupdater before an request and restart it right after, but it seems to me a bit wei

[Proto-Scripty] Re: Ajax - multiple messages on the same connection?

Thank you both for the informative replies :) However, I believe we can technically implement it now, using Comet and "long polling". What I'd like to do is: 1) The server is Tomcat, in my control. So I tell it not to close the connection, just keep writing into it (using some separator to indicat

[Proto-Scripty] Re: Ajax - multiple messages on the same connection?

On tiistaina 4. tammikuuta 2011 at 18.22, Phil Petree wrote: > There was some discussion of this for html 6 then for awile it looked like > they were gonna drop it and then it came back. Latest doc is here: > http://dev.w3.org/html5/eventsource/ > > But dont expect support anytime soon... > >

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi T.J. Crowder, Now works with your suggests. Thanks a lot. The ajax request look like doesn't work, because callback parse, it did call another ajax request not fixed with your suggets. Thanks. On 11 Nov, 15:43, Walter Lee Davis wrote: > On Nov 11, 2010, at 8:20 AM, fashionpeople wrote: > > >

Re: [Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

On Nov 11, 2010, at 8:20 AM, fashionpeople wrote: Hi T.J. Crowder, var jsonRequest = JSON.stringify(requestObject); new Ajax.Request(baseUrl + '/usermsg/index/sendmessage', { method: 'POST', requestHeaders: {Accept: 'application/json'}, parameters: {json: jsonRequest}, // ... In

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi T.J. Crowder, var jsonRequest = JSON.stringify(requestObject); new Ajax.Request(baseUrl + '/usermsg/index/sendmessage', { method: 'POST', requestHeaders: {Accept: 'application/json'}, parameters: {json: jsonRequest}, // ... In PHP: $request = $this->getRequest();

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, It's T.J., not J. > i want convert requestObject in JSON string and send to the server. > >  var jsonRequest         = > encodeURIComponent(JSON.stringify(requestObject)); > new Ajax.Request(baseUrl + '/usermsg/index/sendmessage', { >             method:     'POST', >             requestHeade

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

J. Crowder do not get me wrong, I thank you for the effort they put in helping others. i readed about your suggest to send data in this simple way: var jsonRequest = ...; new Ajax.Request( // ... parameters: {json: jsonRequest} // ... }); but my question is, i have al

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

It may be helping if you could trace and post here the following things : >From Javascript: - requestObject - JSON.stringify(requestObject) >From PHP: - $this->getRequest()->getRawBody(); - rawurldecode($this->getRequest()->getRawBody()); Also, why do you need to use JSON.stringify thing when, as

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, > I tried use fixedEncodeURI like suggest in your links. I've never even heard of fixedEncodeURI. People are taking the time to help you here, it's worth taking the time to carefully *read* what people have written and try the things they suggest (or not, of course, it's up to you). This is

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

I tried use fixedEncodeURI like suggest in your links. But doesn't work. I didn't understand the problem. On 9 Nov, 17:25, "T.J. Crowder" wrote: > Hi, > > > I replaced escape with encodeURI. But decoding fails again. > > Well, did you try actually doing what I suggested? > > -- T.J. > > On Nov 9

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, > I replaced escape with encodeURI. But decoding fails again. Well, did you try actually doing what I suggested? -- T.J. On Nov 9, 4:07 pm, fashionpeople wrote: > Hi, > > I replaced escape with encodeURI. But decoding fails again. > >    function sendMessage(baseUrl, idNickRcv, msg) { > >

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, I replaced escape with encodeURI. But decoding fails again. function sendMessage(baseUrl, idNickRcv, msg) { var requestObject = new Object(); requestObject.idNickRcv = idNickRcv; requestObject.msg = msg; var jsonRequest = JSON.stringify(request

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, I replaced escape with encodeURI. But decoding fails again. function sendMessage(baseUrl, idNickRcv, msg) { var requestObject = new Object(); requestObject.idNickRcv = idNickRcv; requestObject.msg = msg; var jsonRequest = JSON.stringify(request

Re: [Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Right. The best low-level way to translate JS to PHP and back again is using encodeURI or uncodeURIComponent on your JS side, and rawurldecode() or rawurlencode() on the PHP side. They are functionally identical, as long as you have set your PHP side to use UTF-8 as its default charset. W

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi again, I probably should have said that if you need to URL-encode anything on the JavaScript side, the JavaScript functions for that are `encodeURI` and `encodeURIComponent` (not `escape`), where the latter is the most useful. More: https://developer.mozilla.org/en/JavaScript/Reference/Global_O

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

Hi, I don't know that it's the problem because I'm not a PHP person, but you're using the `escape` function to encode your parameters, and then decoding them with a PHP function called `urldecode`. JavaScript's `escape` function does _not_ URL-encode things, it does something similar but different

Re: [Proto-Scripty] Re: AJAX callbacks are not executed atomically?

Same difference. Since the AJAX calls are Async you have no control over what gets completed first or what gets interrupted by what. If script a does a complex query taking 2.2 seconds and returns a large data set while script b does a simple query that takes .02 seconds and returns 100 bytes, sc

[Proto-Scripty] Re: AJAX callbacks are not executed atomically?

I believe I solved the problem. I had a queue of work orders. One of these work orders queued up another work order, so it was a nested AJAX request - BAD IDEA! On Sep 24, 12:56 pm, JoJo wrote: > I don't need A to finish before B. I need A's callbacks to not be cut > off by B's instantiation. >

[Proto-Scripty] Re: AJAX callbacks are not executed atomically?

I don't need A to finish before B. I need A's callbacks to not be cut off by B's instantiation. On Sep 24, 12:44 pm, Phil Petree wrote: > If you want a() to finish before b() and b() to finish before c() then you > will have to daisy chain in the onComplete code. > > On Fri, Sep 24, 2010 at 3:21

[Proto-Scripty] Re: Ajax request on anchor onclick is buggy in Safari

T.J., I was surprised too that the DB would have time to get an update before the page is unloaded, but I had a closer look at the example :o) If the links urls are downloadable file types like the ".exe" of the example, the browser will not unload the current page, and the Ajax request will comple

[Proto-Scripty] Re: Ajax request on anchor onclick is buggy in Safari

Hi, By default, Ajax.Request is *asynchronous*. I'm surprised, frankly, that you're seeing many database updates at all, regardless of the browser, since a request may not have been transmitted before the page gets torn down to make way for the new one. I wouldn't expect it to be reliable. If you

[Proto-Scripty] Re: Ajax request on anchor onclick is buggy in Safari

Your method seems really random. You should proceed differently. Imagine the user has JS disabled, it's click won't be logged, you should use a server side script that will log the click and redirect the user to the desired file : href="dispatcher.php?file=program.exe" If you don't have access to t

[Proto-Scripty] Re: Ajax abort method

I did something similar in that I just patched Ajax.Request with some extra functionality to allow timeouts, I never fussed with it further than fundamental tests but it certainly worked. Take a peak and maybe you can learn how to write something to meet your own needs http://positionabsolute.net

[Proto-Scripty] Re: Ajax abort method

Hi, There's a ticket for it: https://prototype.lighthouseapp.com/projects/8886/tickets/302 and it's mentioned in this one: https://prototype.lighthouseapp.com/projects/8886/tickets/308 Looks like #302 is waiting for someone to write some tests, but: I know that separate from Mark's stuff in #308

[Proto-Scripty] Re: Ajax JSON Request with Flickr URL response don't work in Firefox

Hi, I know that ncubica's actual problem has been solved via JSONP, but just for clarity: On Jun 24, 6:53 pm, David Behler wrote: > Hi Nahum, > > as far as I know Firefox does not allow for cross-domain AJAX requests. Firefox does indeed allow cross-domain requests, it was one of the first brow

[Proto-Scripty] Re: Ajax JSON Request with Flickr URL response don't work in Firefox

and the JSONP works at least for flickr... thanks for the support =) On Jun 24, 12:53 pm, David Behler wrote: > Hi Nahum, > > as far as I know Firefox does not allow for cross-domain AJAX requests. > > What you could to is to request a php file on your server and that php > file does the call to

[Proto-Scripty] Re: Ajax JSON Request with Flickr URL response don't work in Firefox

Yes thanks David, I just had read about this, and found this one for Prototype http://www.dandean.com/jsonp-for-prototypejs/ and the js file is in http://www.dandean.com/jsonp-for-prototypejs/src/jsonp.js this let you make cross domain calls, (at least is what he is saying) Im going to try in a few

[Proto-Scripty] Re: Ajax Updater Url

Hi, > In place of "add.php" I want to pass a url of a third party site, > where my form elements will be submitted. > >  such as - "http://www.aweber.com/scripts/addlead.pl"; > > how do I pass this url to the Ajax.Updater?? In exactly the same way as "add.php". But having done that, you're trying

[Proto-Scripty] Re: Ajax in IE7 vs. IE8

Hi, If the document the script is in came from a URL with (say) port 80, and you issue an XHR (Ajax) call to (say) port 801 or 802, you're initiating a cross-origin request that will (barring special handling) fail because it violates the Same Origin Policy[1]. So why is it working in IE8? Because

[Proto-Scripty] Re: Ajax onFailure never gets called

Hi, > I never see this alert when my web host is > overloaded and just doesn't respond at all. Take a look at "Bulletproof Ajax Requests", it appears that for some reason, `on0` is triggered in failed-to-connect situations: http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-reques

[Proto-Scripty] Re: Ajax onFailure never gets called

does oncomplete fire? On Mar 10, 4:31 pm, JoJo wrote: > I noticed that the onFailure callback never fires when there's > actually an error in Ajax.Request. Commonly, I just alert('server > busy') in the callback. I never see this alert when my web host is > overloaded and just doesn't respond at

Re: [Proto-Scripty] Re: Ajax Updater running from a DVD under IE8

Thanks very much, this seems to fix things very neatly. Walter On Feb 16, 2010, at 12:33 PM, gwyohm wrote: hi walter, this seem to be a known issue on rails trac. http://dev.rubyonrails.org/ticket/8259 It only happens on file:/// protocol when native XmlHttpRequest is used which is as a matter

[Proto-Scripty] Re: Ajax Updater running from a DVD under IE8

hi walter, this seem to be a known issue on rails trac. http://dev.rubyonrails.org/ticket/8259 It only happens on file:/// protocol when native XmlHttpRequest is used which is as a matter of fact default configuration. to work around this issue, you might want to patch your prototype.js file in tha

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

Well thanks for the help on posting a request to the iframe to handle the PDF. Here is my bigger problem and the reason for my original thought: how do you trigger code on completion of the PDF load in the iframe? Of course the original thought was to make an ajax request and and write the results

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

Blast (I *hate* double posting), forgot to say: By "theIFrameName" in that code I mean literally the value of a `name` attribute on the `iframe` tag (*name*, not *id*). -- T.J. :-) On Feb 9, 3:05 pm, "T.J. Crowder" wrote: > Hi, > > > It must be a post to the server, not a get. > > Okay, that's a

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

Hi, > It must be a post to the server, not a get. Okay, that's a *few* more lines of code: var markup, form; markup = "" + "" + "" + ""; $(document.body).insert({bottom: markup}); form = $('___unique_form_id___'); form.submit(); form.remov

Re: [Proto-Scripty] Re: Ajax Request PDF to IFRAME

Generate a form with the necessary values in the iFrame and submit the form. That's all I can think off right now. On 09 Feb 2010, at 01:03, kstubs wrote: It must be a post to the server, not a get. On Feb 8, 4:22 pm, "T.J. Crowder" wrote: Hi, Is this possible? Possible? It's downright

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

It must be a post to the server, not a get. On Feb 8, 4:22 pm, "T.J. Crowder" wrote: > Hi, > > > Is this possible? > > Possible? It's downright easy: > >     $('idOfIFrame').src = "pathToYourServerScript.xyz"; > > Very important that your server script set the correct content type, > of course. >

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

Hi, > Is this possible? Possible? It's downright easy: $('idOfIFrame').src = "pathToYourServerScript.xyz"; Very important that your server script set the correct content type, of course. I use something similar with a frame (not an iframe), but the concept should be transferrable. HTH, --

[Proto-Scripty] Re: Ajax Request PDF to IFRAME

Since the PDF is dynamically generated, the source is the streamed result of the ajax request. The iframe has no way to submit a POST to a server,but instead, can I stream to the iframe somehow, the ajax response? On Feb 8, 4:06 pm, Peter De Berdt wrote: > On 08 Feb 2010, at 23:34, kstubs wrote:

[Proto-Scripty] Re: Ajax Login and Firefox and Passwordmanager

Olla, ok i found it. You have to put the input for username before the passwort input. Elsewhise FF will ignore the username. Hope if anybody experiences the same Problem this will help. Ferion On 1 Feb., 18:34, Ferion wrote: > Hello Everybody, > > i'm trying to use a loginform for an pure aja

[Proto-Scripty] Re: Ajax Issue

Hi Sanil Music, What TJ (it's not CORWDER) want to explain is that you can't do what you're trying to do or use the ajax request in synchronous mode . In execution mode, the JS thread in the browser will execurt the AJAX.Request, and continue like if nothing was done by this function. There is jus

[Proto-Scripty] Re: Ajax Issue

I use & instead of &, but I don't know why you can't see it here. For you Cowder, that I wanted a Ajax Request like that, I would use it. I want something else. As in my code, I want to create a one function for all ajax requests. So, I just call that function, and in it I define callback function,

[Proto-Scripty] Re: Ajax Issue

Also, do you really mean to have & in your querystring? >     if(!ajaxRequest('/chat.php?a=chat_post&m='+encodeURIComponent & is HTML escaped. I think you mean & (an unescaped CGI separator). -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo

[Proto-Scripty] Re: Ajax Issue

Hi, There are several issues with that JavaScript code (I can't comment on the PHP). Two of the main issues: * You're checking the return value from a function (`ajaxRequest`) that you never return a value from. That means that the value you're checking is `undefined`, which is falsey, and so the

Re: [Proto-Scripty] Re: Ajax and json

Le lundi 21 décembre 2009 13:05, T.J. Crowder a écrit : > You're just looking in the wrong place. The second parameter to the > onSuccess callback is the value of the X-JSON *header*, if any. It's a > means of sending back extra data alongside the main response. You're > sending JSON back in the b

[Proto-Scripty] Re: Ajax and json

Hi, > What am I doing wrong? You're just looking in the wrong place. The second parameter to the onSuccess callback is the value of the X-JSON *header*, if any. It's a means of sending back extra data alongside the main response. You're sending JSON back in the body, not a header. To access that,

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Weird, maybe I thought it was doing what it should do... Either way, nice fix -- Sent from my Palm Prē evilC wrote: For future reference, document.observe('resize',winResize); Never fires. Maybe because the document as a whole has not been extended? However, Event.observe(window, 're

[Proto-Scripty] Re: Ajax functions not working inside classes.

For future reference, document.observe('resize',winResize); Never fires. Maybe because the document as a whole has not been extended? However, Event.observe(window, 'resize', winResize); worked fine. -- You received this message because you are subscribed to the Google Groups "Prototype & s

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Very, very cool. -- Sent from my Palm Prē evilC wrote: The idea of Placebook is social networking for places. Sort of like if you could have a facebook or twitter account for a place. People can log in and add locations, then people can make posts on it's wall, or add tags to the location to d

[Proto-Scripty] Re: Ajax functions not working inside classes.

The idea of Placebook is social networking for places. Sort of like if you could have a facebook or twitter account for a place. People can log in and add locations, then people can make posts on it's wall, or add tags to the location to denote activies and social groups associated with that place

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

A good place to start, add: console.log('this is my first debug output'); Anywhere inside of a loaded dom closure (like your initializer function or prototype's document.observe('dom:loaded', ...);  ) -- Sent from my Palm Prē evilC wrote: Great, that worked. I didn't realise "this" could be so

[Proto-Scripty] Re: Ajax functions not working inside classes.

Great, that worked. I didn't realise "this" could be something else... Also, bear in mind that I only started using prototype for this project yesterday. Hell, I ripped it out and put it back in since I made the first post - hence a lot of the code does not use prototype properly (Though a search

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Good outlook :)  I should also mention that whatever it your creating, so far, seems really neat. I'd like to see how it develops.  The code cleaning suggestions I made will make a diff regarding the fix I sent you. -- Sent from my Palm Prē evilC wrote: Thanks for all the help and advice guys

[Proto-Scripty] Re: Ajax functions not working inside classes.

Thanks for all the help and advice guys! Yes, I know the code is quite horrific at the moment - due to the way I have my uni projects scheduled, I need to get the basic add/edit functionality working as soon as humanly possible so that I can do some HCI evaluation on the UI. Once that is done, I ca

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Also, in PHP related advice, *ereg *and *split* are deprecated. if you turned on your PHP errors and use E_ALL, it will throw back errors. Rick On Sun, Dec 6, 2009 at 6:36 PM, Rick Waldron wrote: > Actually, my reasoning for that response was a fluke, so ignore it > > > the problem: you're cal

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Actually, my reasoning for that response was a fluke, so ignore it the problem: you're calling "*this*.deleteform()" I noticed you use all kinds of alert()'s for debugging... i'd recommend learning firebug and making it your very best friend. Firebug told me that " *this*" IS NOT *pb_editloc*, i

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

The problem is that when the dom is loaded... there is no such thing as "pb_add_location". On Sun, Dec 6, 2009 at 5:09 PM, T.J. Crowder wrote: > Hi, > > > Just tried onComplete - no joy > > You probably don't want onComplete. onComplete is called regardless of > whether the request was succ

[Proto-Scripty] Re: Ajax functions not working inside classes.

Hi, > Just tried onComplete - no joy You probably don't want onComplete. onComplete is called regardless of whether the request was successful. You probably want onSuccess and onFailure, doing different things. -- T.J. On Dec 6, 7:25 pm, evilC wrote: > Just tried onComplete - no joy > > I uplo

[Proto-Scripty] Re: Ajax functions not working inside classes.

Hi, > Once the AJAX reply comes back that the data was updated, I want to > destroy the form. But it won't let me. I guess for a similar reason to > my explanation above - the button started the call, and it is in the > response code that I wish to destroy it, so it technically hasn't > finished y

[Proto-Scripty] Re: Ajax functions not working inside classes.

Just tried onComplete - no joy I uploaded a copy to http://www.evilc.com/pb/pb.zip, should anyone be so kind as to be inclined to take a look at it. If you have a localhost LAMP server (I use XAMPP) with default sql account of root/ , it will work without any modifications - just create a databas

[Proto-Scripty] Re: Ajax functions not working inside classes.

I have put up a version on my web server. http://www.evilc.com/pb The JS file is at http://www.evilc.com/pb/placebook.js - the code you are interested in will be in the pb_editloc object near the end. The HTML of the form is at http://www.evilc.com/pb/templates/pb_add_location.html (the php grab

Re: [Proto-Scripty] Re: Ajax functions not working inside classes.

Instead of onSuccess, try using onComplete... -- Sent from my Palm Prē evilC wrote: Thanks TJ, I tried to make a self-contained version, so I ripped out prototype and did the same thing with object literals, and I still had issues, so clearly it wasnt prototype. In the end I figured out that t

[Proto-Scripty] Re: Ajax functions not working inside classes.

Thanks TJ, I tried to make a self-contained version, so I ripped out prototype and did the same thing with object literals, and I still had issues, so clearly it wasnt prototype. In the end I figured out that the button which fired off the AJAX request (ie the "Submit" button) was inside a form (I

[Proto-Scripty] Re: Ajax functions not working inside classes.

Hi, > is prototype broken? No, I use Ajax functions within classes all the time. > however, if you encapsulate the code inside a class: > > var myclass = Class.create({ > > > }); If I "cut and paste exact same code into here" I get this: > var myclass = Class.create({ > new Ajax.Reque

[Proto-Scripty] Re: ajax request

And identical (almost) answers !! - how bizarre!!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Tuesday, November 10, 2009 11:51 AM Subject: [Proto-Scripty] Re: ajax request

[Proto-Scripty] Re: ajax request

Hi, Nearly identical questions at almost the same time. :-) Here's the other one, where I've posted an answer: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/6af62cd45d76f06e HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowde

[Proto-Scripty] Re: ajax request

Could be the web server ... Alot of web servers have a max number of paralell requests per user Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "ziva" To: "Prototype & script.aculo.us" Sent: Tuesday, November 10, 2009 4:05 AM Subject: [Proto-Scripty] ajax req

[Proto-Scripty] Re: Ajax callbacks execute in unpredictable order

Hi, Just use the onCreate callback instead of the onLoading one and you will be all set. Best, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send

[Proto-Scripty] Re: Ajax callbacks execute in unpredictable order

So this means I can only have one swirly going on at any time because it's always hiding and showing #ajaxloadingindicator. What if I have two or more Ajaxed GUI element on the page that needed the swirlies? On Oct 19, 11:12 pm, "speedpac...@gmail.com" wrote: > Hi, > > I had the same issue, but

[Proto-Scripty] Re: Ajax callbacks execute in unpredictable order

Hi, I had the same issue, but fixed it as follows: Ajax.Responders.register( { onCreate: function() { // update a span on the page displaying the number of actively executing AJAX calls... $('ajaxcounter').update(Ajax.activeRequestCount); if (Ajax.activeRequestCount === 1) {

[Proto-Scripty] Re: ajax virtual desktop

yh that sounds great, if nothing else it may help cement a few ideas in my head. Ive seen many free frameworks thatplugin for window UI's e.c.t. but i wouldnt learn bugger all if i used them. video's, demo's, code snippets, and anything else anyone can provide will be of use to me in one way or an

[Proto-Scripty] Re: ajax virtual desktop

Hi DJ Lee. I have built and run a successfull ajax style cross browser desktop and is used in many businesses as a contact manager with alot more. I would be happy to share my code with you or help in anyway that i can. As luck would have it i started to make some video demo's last night to sh

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

fyi: http://code.google.com/p/chromium/issues/detail?id=22748 On Sep 25, 10:26 am, Alex wrote: > yeah sure, that's what i thought too. was just testing the water to > see if anyone else had come across the problem. nothing in google but > then, as you say, it's still very early days. > > On Sep

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

yeah sure, that's what i thought too. was just testing the water to see if anyone else had come across the problem. nothing in google but then, as you say, it's still very early days. On Sep 24, 5:22 pm, "T.J. Crowder" wrote: > Hi, > > That's strange.  It sounds like something to report to the G

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

Hi, That's strange. It sounds like something to report to the Google Frame team, though, since it doesn't happen normally. Google Frame is "early-stage"[1] after all... [1] http://code.google.com/chrome/chromeframe/ -- T.J. :-) On Sep 24, 3:53 pm, Alex wrote: > fair point... > > yeah, with

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

fair point... yeah, with 1.6.1, rails still reports "*/*" On Sep 24, 3:01 pm, "T.J. Crowder" wrote: > Hi, > > > This is with prototype 1.6.0.2. > > Any chance of trying it with something more recent?  1.6.0.3 was > released a year ago, and 1.6.1 was released last month. > > -- T.J. > > On Sep

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

Hi, > This is with prototype 1.6.0.2. Any chance of trying it with something more recent? 1.6.0.3 was released a year ago, and 1.6.1 was released last month. -- T.J. On Sep 24, 1:07 pm, Alex wrote: > hi everyone, > > just trying out our site at work with chrome frame, and found an odd > effe

[Proto-Scripty] Re: Ajax requests again

mp; script.aculo.us" Sent: Wednesday, August 26, 2009 10:40 AM Subject: [Proto-Scripty] Re: Ajax requests again Alex, > 1. Element that triggered the call (if any) "if any" doesn't make any difference to the question -- again, you can't get that information from

[Proto-Scripty] Re: Ajax requests again

J. Crowder" > To: "Prototype & script.aculo.us" > Sent: Wednesday, August 26, 2009 9:47 AM > Subject: [Proto-Scripty] Re: Ajax requests again > > Alex, > > > 1. The element that triggered the call > > What element?  Ajax calls can be initiated by any

[Proto-Scripty] Re: Ajax requests again

26, 2009 9:47 AM Subject: [Proto-Scripty] Re: Ajax requests again Alex, > 1. The element that triggered the call What element? Ajax calls can be initiated by any code, anywhere, and don't necessarily have anything to do with any element "triggering" them. For example:

[Proto-Scripty] Re: Ajax requests again

is clears things up a bit > > Alex Mcauleyhttp://www.thevacancymarket.com > > > > - Original Message - > From: "Timo" > To: "Prototype & script.aculo.us" > Sent: Tuesday, August 25, 2009 4:11 PM > Subject: [Proto-Scripty] Re: Ajax requ

[Proto-Scripty] Re: Ajax requests again

bit Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Timo" To: "Prototype & script.aculo.us" Sent: Tuesday, August 25, 2009 4:11 PM Subject: [Proto-Scripty] Re: Ajax requests again > > On 20 Aug., 17:15, Alex Mcauley > wrote: &g

[Proto-Scripty] Re: Ajax requests again

On 20 Aug., 17:15, Alex Mcauley wrote: > earlier on in the month i posted on how to do some things with Ajax > requests genericaly like adding a loading message to all requests and > i got a couple of responses but not many. > > I've been giving it alot of thought and i cam up with addMethods as

[Proto-Scripty] Re: Ajax call is not working in MAC(Firefox)

Dhttp://www.thevacancymarket.com > > > > ----- Original Message ----- > From: "Atanu Dey" > To: "Prototype & script.aculo.us" > Sent: Tuesday, July 21, 2009 11:05 AM > Subject: [Proto-Scripty] Re: Ajax call is not working in MAC(Firefox) > >

  1   2   3   >