405 Not Allowed from inputEx Builder's Load , JSON Schema

22 views
Skip to first unread message

S Page

unread,
Jan 25, 2011, 12:10:48 AM1/25/11
to inp...@googlegroups.com
I want to build an HTML form from a JSON description, inputEx seems to do what I want.

When I try to load JSON into http://neyric.github.com/inputex/tools/builder/index.html , the response to the POST is a "405 Not Allowed" error from the nginx server.  I think the URL doesn't support POST.  I'll get a 405 even if I click [Cancel]. I cloned the git repo and a Load in my local tools/builder/index.html does nothing.  Maybe the Load isn't hooked up to anything?  (This is in SeaMonkey 2.1b1 and Firefox 4.0b10.)

If I enter invalid JSON in the Load pop-up window it fails validation (good), but it won't accept seemingly valid sample JSON Schema copied from http://tools.ietf.org/html/draft-zyp-json-schema-03 .  I tried switching the "required" attribute to the older "optional" but that didn't help. What JSON Schema variant is it checking?

Thanks for this intriguing system. (Apologies for the formatting of thsi HTML, I can't figure out the new Google Groups UI to give plain ASCII.)

Joe Developer

unread,
Jan 25, 2011, 1:19:48 AM1/25/11
to inp...@googlegroups.com
I think this is because the documentation used to be hosted on private servers, rather than github, it is possible that the backend no longer exists. Where does it try to POST to? 



--
You received this message because you are subscribed to the Google Groups "inputex" group.
To post to this group, send email to inp...@googlegroups.com.
To unsubscribe from this group, send email to inputex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/inputex?hl=en.

S Page

unread,
Jan 26, 2011, 3:57:38 AM1/26/11
to inp...@googlegroups.com
> Where does it try to POST to?

Upon clicking [Load] it posts to itself (tools/builder/index.html ).  I think a static page can't do anything with POSTed data -- JavaScript can't (?) read it-- and the web server serving neyric.gitub.com warns about this.  I wonder if it ever worked and if so, how?

Eric Abouaf

unread,
Jan 26, 2011, 4:07:23 AM1/26/11
to inp...@googlegroups.com
yeah, it looks like the event is not stopped properly and propagates to the browser.
Maybe an error is thrown before... I'll have a look

On Wed, Jan 26, 2011 at 9:57 AM, S Page <skie...@gmail.com> wrote:
> Where does it try to POST to?

Upon clicking [Load] it posts to itself (tools/builder/index.html ).  I think a static page can't do anything with POSTed data -- JavaScript can't (?) read it-- and the web server serving neyric.gitub.com warns about this.  I wonder if it ever worked and if so, how?

--
You received this message because you are subscribed to the Google Groups "inputex" group.
To post to this group, send email to inp...@googlegroups.com.
To unsubscribe from this group, send email to inputex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/inputex?hl=en.



--
Eric Abouaf
eric....@gmail.com
Tél: 06 29 86 37 89

Eric Abouaf

unread,
Feb 14, 2011, 8:31:00 AM2/14/11
to inp...@googlegroups.com
Alright this is fixed: https://github.com/neyric/inputex/commit/5a992d6a98d070c40ea028e7abc93e85434ed04e

An earlier version changed the onClick handler, so we must return false to stop the form event.
+ there was an issue with loading from an inputEx definition.

Cheers
Reply all
Reply to author
Forward
0 new messages