I've been tasked with building a Meta-Tags creator tool for my company. The user will be able to type in a few pieces of information and have Meta tag information created for them. The user will be able to choose from multiple generic paragraphs, all set up roughly like this: [dealerName] in [city1], [stateAbv] has your [condition1] [brand1] [type1] or [brand1] [type2] in stock. From [city1] to [city5], and all over [region1], [dealerName] is waiting for you to test drive you [condition1] [brand1]. There will be form fields corresponding to each of these names in brackets. So the user will fill out the appropriate fields, then select which text style they want. I'd like to offer the user a live preview so that as they type in their values, any matching value ([city1]) gets replaced with the value of the corresponding form field. My thought would be to create several variables, each containing a generic paragraph, named according to the value of that form field. I'd write that paragraph to the page (brackets and all). Then I'd create a function which loops through the form and does a replace through the selected text string with the values from any form field. I think from a coolness fact, I'd love to have it change AS the user types in the information, but that's not a big deal. Anyone have a better idea? ____________________________________ Andy Matthews Senior Coldfusion Developer
Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com <http://www.dealerskins.com/>
dealerskinslogo.bmp
Description: Windows bitmap
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
