Using form fields in inputex mixed with json data

6 views
Skip to first unread message

Joe Developer

unread,
Jul 23, 2009, 12:27:07 PM7/23/09
to inp...@googlegroups.com
Hi, erm..
How do I get it to work?

Best Regards,
Joe

http://joedev.no-ip.org
Every Facet, Every Department Of Your Mind Is To Be Programmed By You, And Unless You Assume Your Rightful Responsibility To Program Your Own Mind, The World Will Program It For You.
Chat Google Talk: joe.d.d...@gmail.com Skype: joe-developer MSN: rf2...@hotmail.com

mhiggs

unread,
Jul 23, 2009, 12:43:18 PM7/23/09
to inp...@googlegroups.com
On Thu, 23 Jul 2009 23:27:07 +0700
Joe Developer <joe.d.d...@gmail.com> wrote:

> Hi, erm..

Hello, JD --

> How do I get it to work?
>

Form fields "mixed with" JSON data?

How are they mixed? (Shaken, or stirred?) ;-)

Maybe you mean 'filled' with JSON? That would be a good question... probably will have that myself later today...

As for 'mixing', I'd think there would be JSON data for the form and other JSON for something else -- and never the twain shall meet.

Sorry, I can't help here. Need more info, I guess. ;-)

Cheers,

Joe Developer

unread,
Jul 23, 2009, 1:04:09 PM7/23/09
to inp...@googlegroups.com

Hi,
sorry I meant file upload fields.

Thanks,

Joe
http://joedev.no-ip.org
Every Facet, Every Department Of Your Mind Is To Be Programmed By You, And Unless You Assume Your Rightful Responsibility To Program Your Own Mind, The World Will Program It For You.
Chat Google Talk: joe.d.d...@gmail.com Skype: joe-developer MSN: rf2...@hotmail.com


mhiggs

unread,
Jul 24, 2009, 10:51:48 AM7/24/09
to inp...@googlegroups.com
On Fri, 24 Jul 2009 00:04:09 +0700
Joe Developer <joe.d.d...@gmail.com> wrote:

> Hi,


> sorry I meant file upload fields.
>

Yeah, I haven't touched file upload yet. :(

Good luck!

-- Mike Higgins

neyric

unread,
Aug 10, 2009, 5:50:19 AM8/10/09
to inputex
Hi,

It's indeed not well explained and incompatible :

* The File Upload only works if the form is submitted by the browser
* The inputEx form sends JSON only if used in ajax (the form is not
submitted by the browser)

A solution :

You HAVE TO to use the browser submit method in order to send the
file.
If you want to send JSON from the rest of the form value, add a submit
handler to encode the value of the form in JSON in a hidden field.

Is it clear enough ? (maybe not...)


On 24 juil, 16:51, mhiggs <mhi...@iinet.com> wrote:
> On Fri, 24 Jul 2009 00:04:09 +0700
>

Joe Developer

unread,
Aug 10, 2009, 6:03:30 AM8/10/09
to inp...@googlegroups.com
Yeah I meant to come back to the mailing list with my implementation but too much work at the moment..

the unminified version of a form with upload is available here :
http://contest.freelancer.thruhere.net/assets/js/form.js

its a bit messy, but so it goes.

it relies on adding some endoceURI and a 'presubmit' function to inputex which can be seen here:
http://contest.freelancer.thruhere.net/assets/js/inputex/js/Form.js


Enjoy.

http://joedev.no-ip.org
Every Facet, Every Department Of Your Mind Is To Be Programmed By You, And Unless You Assume Your Rightful Responsibility To Program Your Own Mind, The World Will Program It For You.
Chat Google Talk: joe.d.d...@gmail.com Skype: joe-developer MSN: rf2...@hotmail.com


neyric

unread,
Aug 10, 2009, 6:25:03 AM8/10/09
to inputex
It's even better than my solution since it's included in the form
class !

Nice form :)

On 10 août, 12:03, Joe Developer <joe.d.develo...@gmail.com> wrote:
> Yeah I meant to come back to the mailing list with my implementation but too
> much work at the moment..
>
> the unminified version of a form with upload is available here :http://contest.freelancer.thruhere.net/assets/js/form.js
>
> its a bit messy, but so it goes.
>
> it relies on adding some endoceURI and a 'presubmit' function to inputex
> which can be seen here:http://contest.freelancer.thruhere.net/assets/js/inputex/js/Form.js
>
> Enjoy.
>
> http://joedev.no-ip.org
> Every Facet, Every Department Of Your Mind Is To Be Programmed By You, And
> Unless You Assume Your Rightful Responsibility To Program Your Own Mind, The
> World Will Program It For You.
> Chat Google Talk: joe.d.develo...@gmail.com Skype: joe-developer MSN:
> rf2...@hotmail.com
Reply all
Reply to author
Forward
0 new messages