locked
ajax with jquery change font size and style RRS feed

  • Question

  • User-1997257017 posted

    In a vb.net 2010 web form application that I support that uses alot of AJAX, the application has a 'Word editor' teachers and counselors use to access generic template letters.These people and then change the wording that are sent to parents of students.
    After the application runs, the html is stored in a SQL Server 2016 field called stringtemplate where the value is declared as varchar(max).

    The letters are generated using ajax and most of the application uses ajax with jquery.

    My question is I am trying to change the font size and color of the letters that are generated. When I look at the html that is stored in the stringemplete field,
    I do not see the html changes that I made. The html that is generated had no css tags to identity any part that can be overwritten

    This application also has css styles sheets that are used somehow.

    Thus I am wondering if there is some part of the ajax that I need to look at so I can change the font size,font style and colors of parts of the letter? if so, can you tell me what to look at?

    I added this question to the web form forum since I did not know where is the better forum to ask this question to.

    Friday, October 12, 2018 9:40 PM

Answers

  • User475983607 posted

    Thus I am wondering if there is some part of the ajax that I need to look at so I can change the font size,font style and colors of parts of the letter? if so, can you tell me what to look at?

    I can only speak from my experience using Word templates and mail merge in a few ASP projects.  The users control the main document content and format using MS Word and Word templates.  The ASP application stores the data elements like a person's name is in a database.  I assume the VARCHAR(MAX) column is at least one data source in the application.  Then at some point the program generates letters by grabbing the data from the database, the code loops through the result set, and populates a new Word Document by merging the data.  

    Anyway, in my experience the word template has all the formatting.  Use Word to open the template an change the font.  In MS Word, it is possible restrict the styles a user can select.  That makes it easier to lock down the fonts.  Again, in my experience the formatting is up to the user.  If the user messes it up then it a training issue.

    With all that being said, I recommend that you get with your team or team lead and ask how the letter feature works.  Your question infers that the solution might involve AJAX/jQuery which is like asking, "Can program language X change formatting?" and the answer is yes but without code and an explanation of how the program works there's no way to even begin to answer the question. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 13, 2018 12:08 PM