Coder Social home page Coder Social logo

Comments (5)

1cg avatar 1cg commented on May 15, 2024

100% agreement. After the 0.3 release (which is going to break a few things, so I'm violating semantic versioning) I'll adopt exactly that branch structure.

Sorry for the confusion!

from intercooler-js.

1cg avatar 1cg commented on May 15, 2024

Will leave this open until that model is adopted.

from intercooler-js.

flexd avatar flexd commented on May 15, 2024

Cool, no worries. I was just looking at the code for ic-deps, and tried out 'ignore', and then realised the latest release is 0.2.0, which does not have that.

I managed to fix my issue of the reloading form (the gif in the other issue) by just not loading the form initially with Intercooler and rather rendering it "the old fashioned way", server-side. It requires some duplicate code on my server-side, but it looks great.

This is off-topic for the current issue though, are you on IRC or somewhere else? I'd love to talk some time, but it's after midnight here and I have to be up early.

My current approach of using ic-post-to and returning the form if there is any errors will not work in all scenarios.
For a comment form where you just write a new comment and it and reload a list of all comments with ic-get-from, then that will work, but for a scenario where you have a form that is validated server-side and returns the altered form with error messages per-field, it will not work out so well.

For example like this,

intercooler_form_neat

As you can see, I can return a nice looking form with the missing/required fields shown clearly.
But, how would I proceed if the search is successful and I want to show the content in the right hand box?

I have been thinking about using something like a custom HTTP-header to signify that the search was successful and that it should be responded to differently. Perhaps, I am curious to see how you would solve it. :-)

from intercooler-js.

1cg avatar 1cg commented on May 15, 2024

The right hand side should depend on the URL that is targeted by the search, I think. something like the search box url is '/search' and then the results div has ic-src='/search/results' and then ic-include='#searchForm' to send up the search parameters.

We should probably have this conversation on the newsgroup for everyone to see. :)

https://groups.google.com/forum/#!forum/intercooler-js

from intercooler-js.

1cg avatar 1cg commented on May 15, 2024

Adopted as of 0.3.0

from intercooler-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.