Welcome Guest, Not a member yet? Register   Sign In
HTML in Model
#3

I agree, and it was my gut feeling that no HTML should be in model .... unfortunately I have no idea where to start since when I call the model/function , it will return only JSON data, then where do I get my formatting from.

Normally when you run an AJAX call you have the "success" handler in which you just print the result like $('#mydiv').html(data) where "data" contains the full rendered HTML with values , but since I can't use HTML in the model , where do I get that from then.

Sorry, i'm totaly confused
Reply


Messages In This Thread
HTML in Model - by AngelTrader - 09-25-2019, 11:13 PM
RE: HTML in Model - by ciadmin - 09-25-2019, 11:26 PM
RE: HTML in Model - by AngelTrader - 09-25-2019, 11:35 PM
RE: HTML in Model - by dave friend - 09-26-2019, 06:11 AM
RE: HTML in Model - by albertleao - 09-26-2019, 10:14 AM
RE: HTML in Model - by ciadmin - 09-26-2019, 10:30 AM
RE: HTML in Model - by AngelTrader - 09-26-2019, 10:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB