Results 1 to 2 of 2
Jul 24, 2011, 10:39 #1
- Join Date
- Jul 2011
- 0 Post(s)
- 0 Thread(s)
So, I was wondering if the following is possible..
For example, say I want the preview box to refresh every time the user enters a space character. Is there a way to get only the new source code entered to render in the preview box without having to re-render the entire preview every time?
For example, if a user types 2x^3, I want the math equivalent to show up in the preview window. If a user then types in " + 2x" I want just the " + 2x" part to be drawn right next to the already-drawn "2x^3".
Is this possible? Or is the only way to re-render the entire preview every time the user types in a new term? I would like to only change what the user has edited. If a user edits the middle of the math, then I have no choice and have to re-render everything after what the user has just edited, but when the user is editing the math at the very end, can I not just tag it on to the end and render just that little piece?
Jul 24, 2011, 13:01 #2
- Join Date
- Jan 2007
- Christchurch, New Zealand
- 61 Post(s)
- 3 Thread(s)
It might be possible that way, but what seems to provide better control for the user could be to have them save the graph as a layer.Programming Group Advisor
The 2013 SitePoint Awards - Nominate your heroes now!