Click here to Skip to main content
15,891,657 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
Answerprogramming question Pin
_Maxxx_9-Sep-15 1:08
professional_Maxxx_9-Sep-15 1:08 
GeneralRe: programming question Pin
Sander Rossel9-Sep-15 1:19
professionalSander Rossel9-Sep-15 1:19 
JokeRe: programming question Pin
Kornfeld Eliyahu Peter9-Sep-15 1:21
professionalKornfeld Eliyahu Peter9-Sep-15 1:21 
GeneralRe: programming question Pin
Sander Rossel9-Sep-15 1:28
professionalSander Rossel9-Sep-15 1:28 
GeneralRe: programming question Pin
Brittle16189-Sep-15 1:49
Brittle16189-Sep-15 1:49 
GeneralRe: programming question Pin
Kornfeld Eliyahu Peter9-Sep-15 1:51
professionalKornfeld Eliyahu Peter9-Sep-15 1:51 
GeneralRe: programming question Pin
Brittle16189-Sep-15 2:01
Brittle16189-Sep-15 2:01 
AnswerRe: Sort of programming question-ish... Pin
newton.saber9-Sep-15 1:51
newton.saber9-Sep-15 1:51 
Consider why this is a difficult thing to do with no standard solution.
It is because it is an odd thing to do.
That sounded very rude so I hope you are still with me. (I'm really not trying to be rude, just direct.)

What I mean is that you are posting the data (expected) and the template (unexpected).
Here, by template, I mean HTML.
HTML is really just a template.

I'm on the outside of your solution so I immediately think, "Why? Why is Sander posting HTML, when the HTML (template) should be described at the server side? Why would he post HTML when that is surely described on the server side? Since it is on the server side, the server doesn't need the template data posted since it already has it."

The only reason I can figure is that you are allowing users to post markup for their posts something like you can do here in this forum. Is that it?

If it is, then this will always be a challenge, because now you actually have to become an HTML parser because now instead of allowing a browser to handle the __template__ you have to pull out the bytes which represent the __template__ and separate them from the bytes which are the data.

Well, I'm not offering much of a solution, but possibly a different take on what is really going on.
I think separation of concerns leads us to think more clearly about each piece of a solution.
Hopefully I've added something to this discussion.
GeneralRe: Sort of programming question-ish... Pin
Sander Rossel9-Sep-15 2:59
professionalSander Rossel9-Sep-15 2:59 
GeneralRe: Sort of programming question-ish... Pin
GenJerDan9-Sep-15 6:19
GenJerDan9-Sep-15 6:19 
AnswerRe: Sort of programming question-ish... Pin
Ferd Really9-Sep-15 4:43
Ferd Really9-Sep-15 4:43 
GeneralRe: Sort of programming question-ish... Pin
Sander Rossel9-Sep-15 5:32
professionalSander Rossel9-Sep-15 5:32 
GeneralWSO CCC 09/09/15 Pin
super8-Sep-15 22:33
professionalsuper8-Sep-15 22:33 
GeneralRe: WSO CCC 09/09/15 Pin
chriselst9-Sep-15 0:26
professionalchriselst9-Sep-15 0:26 
GeneralRe: WSO CCC 09/09/15 Pin
super9-Sep-15 0:30
professionalsuper9-Sep-15 0:30 
GeneralRe: WSO CCC 09/09/15 Pin
chriselst9-Sep-15 0:32
professionalchriselst9-Sep-15 0:32 
GeneralRe: WSO CCC 09/09/15 - we have a winner Pin
super9-Sep-15 0:37
professionalsuper9-Sep-15 0:37 
GeneralRe: WSO CCC 09/09/15 - we have a winner Pin
chriselst9-Sep-15 0:38
professionalchriselst9-Sep-15 0:38 
GeneralRe: WSO CCC 09/09/15 - we have a winner Pin
Nagy Vilmos9-Sep-15 0:50
professionalNagy Vilmos9-Sep-15 0:50 
GeneralMQOTD Pin
V.8-Sep-15 22:22
professionalV.8-Sep-15 22:22 
GeneralRe: MQOTD Pin
Johnny J.8-Sep-15 22:23
professionalJohnny J.8-Sep-15 22:23 
GeneralRe: MQOTD Pin
den2k888-Sep-15 22:41
professionalden2k888-Sep-15 22:41 
GeneralRe: MQOTD Pin
Quirkafleeg8-Sep-15 22:57
Quirkafleeg8-Sep-15 22:57 
GeneralRe: MQOTD Pin
chriselst8-Sep-15 22:58
professionalchriselst8-Sep-15 22:58 
GeneralRe: MQOTD Pin
RUs1238-Sep-15 23:32
RUs1238-Sep-15 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.