Comments (5)
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.
Will leave this open until that model is adopted.
from intercooler-js.
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,
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.
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.
Adopted as of 0.3.0
from intercooler-js.
Related Issues (20)
- simple Django - Intercooler.js example on how to pass a django variable to a view HOT 2
- It appears the google group is gone HOT 4
- Default values not displayed on refresh HOT 5
- IC potential clash with jquery ? HOT 2
- Set history and new URL after ic-get-from? HOT 3
- Suggest clarification on `ic-target` HOT 1
- How get and populate different targets with a single POST request HOT 3
- Can ic-get-from include value of triggered input? HOT 2
- Prepend element before a target and remove element afterwards HOT 5
- Query string keeps getting bigger ic-get-from / ic-current-url HOT 1
- Preventing default for a button inside a form HOT 4
- ic-push-params: multiple GET parameters with same name cannot be pushed to URL HOT 1
- Intercooler.ready is executed on document.ready HOT 9
- Elements with SSE trigger do not get cleaned up when swapped out of the DOM HOT 6
- ic-action does not support chained derefences HOT 5
- New add-object form includes a dependent select HOT 2
- document bootstrap version on example(s)
- intercooler-1.1.1.min.js offline HOT 3
- ic-trigger-from not working on form with ic-post-to HOT 1
- Extending the functionality of Intercooler to other controls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intercooler-js.