oh and i should say to anyone who does look at my code - i would love
feedback on how to improve my coding or to know if i have done
anything ridiculously stupid.
cheers.b

On Jun 28, 5:42 am, brook <[email protected]> wrote:
> so im still not comfortable enough with my coding to start putting
> stuff on forge, but my final take on on this is here -
>
> http://stickandlogdesigns.com/downloads/beta/UploadHandler.js
>
> another reason not to put in on forge is that arian's looks nicer...
> mine, does a couple more things (checks for required fields, validates
> emails, adds a cover over the form to give feed back
> [succes,error,add a animated loader ...] to the user) but it would
> probably make more sense to start with arian´s and handle those types
> of things outside.
>
> for anyone glancing through this just wanting a quick answer on how to
> do it themselves ... the entirety of the iframe ajax business came
> down to about 6 lines of code
>
> .... after the user submits the form, first stop the event and then
>
> var ifrm = new Element("iframe",
> {src:"javascript:false",name:"iframe"})
> document.body.grab(ifrm)
> var hiddenForm = this.form.clone()
> ifrm.grab(hiddenForm)
> ifrm.setStyle("display","none")
> hiddenForm.set("target","iframe")
> ...
> hiddenForm.submit()
>
> listen for the iframe to fire "load".  the sever-side response then
> comes is then = ifrm.contentWindow.document.body.innerHTML
>
> oh and sandy - that is probably the best way to hold the i pad, sure,
> but i found this to be a much more complete howto
>
> http://techland.com/2010/05/07/ipadshred/
>
> On Jun 27, 7:19 pm, Sanford Whiteman <[email protected]>
> wrote:
>
> > > There's now way to do file uploads in Safari on iPads and iPhones as
> > > there is no form file widget.
>
> > You're holding it wrong. Here's a howto that might help:
>
> >http://www.youtube.com/watch?v=ccBE14umRJs
>
> > -- S.

Reply via email to