Re: [Proto-Scripty] Uploading an image with Ajax.request

2009-12-13 Thread Vladimir Tkach
do post form to iframe 2009/12/12 Andy Daykin daykina...@gmail.com Hello, I was wondering if this is possible to do: I want to upload an image using Ajax.request like such: var form = $('addimage'); new Ajax.Request('http://myurl.com/uploadImage.php', { method: 'post',

Re: [Proto-Scripty] Uploading an image with Ajax.request

2009-12-13 Thread Vladimir Tkach
Like this one solution: http://github.com/markcatley/responds_to_parent 2009/12/12 Andy Daykin daykina...@gmail.com Hello, I was wondering if this is possible to do: I want to upload an image using Ajax.request like such: var form = $('addimage'); new

Re: [Proto-Scripty] Uploading an image with Ajax.request

2009-12-13 Thread Alex McAuley
You cannot access binary data with javascript - it is server side only - Ergo you cannot upload files with Ajax style comms. Post to an Iframe to get round this or use flash uploaders (there are many) to interact directly to the client. Alex Mcauley http://www.thevacancymarket.com -

Re: [Proto-Scripty] Re: Progressive update messages from single request

2009-12-13 Thread Alex McAuley
Joe. Certainly in winblows the output buffering may not work due to the modules and the way memory is managed in winblows differs to *nix. I have tested it on CentOs, Debian, BSD, HP UNIX,Solaris and it works fine but not tested it on Wamp... Alex Mcauley http://www.thevacancymarket.com

Re: [Proto-Scripty] Re: Autocompleter does not work in FireFox 3.5.5

2009-12-13 Thread Alex McAuley
Everyone seems to have missed a solid point on this ... The scripts are loded localhost:4402 and the server= localhost:8080 Thats an XDR as the ports differ ... Perhaps 3.5.5 has some different security protocol in place that wont allow it but earlier did Alex Mcauley

[Proto-Scripty] Observer problem

2009-12-13 Thread Rui Campos
Hello, I'm currently doing a college project on ruby on rails and I have to do a common Tag system for wiki pages. I have an observer observing a input field to check if a tag that the user is trying to add already has a similar one on the system, if there is one, a text box appears asking if the

[Proto-Scripty] Re: Observer problem

2009-12-13 Thread T.J. Crowder
Hi, If you're replacing the element you're observing, that's your problem -- events are observed on instances. Even if you replace an element with the ID X with another element with the ID X, they're different elements. From your description, it sounds like you're replacing more than you really

[Proto-Scripty] Re: Observer problem

2009-12-13 Thread Rui Campos
Thanks for the reply, it solved my problem :) I moved the input box away from the part that I want to update and it worked. Thanks again, Rui Campos. On Dec 13, 10:03 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, If you're replacing the element you're observing, that's your problem