Hi ,I have following Requirement:I have a Textarea which captures some HTML Source. This is a VF Item. My Requirement is to validate the Content of this HTML source on Save Event.Some of Requiremnets are like:1. Some tags like <BR> <IMG> <HR> should be auto replaced with <BR/> <IMG/> anf <HR/> and so on.. which can be done using pattern mathching and replacement of string in VF Item.2. Pop - Up the User with a HTML or Some interactive way so that he can enter alt="" tag if he has missed in alt tag in <IMG src=""/> Tag. [ Preferabbly Text Box. And set this new alt value with new html source like <IMG src="" ALT="VALUE"/>.3. Some Automatic deletion tags like <maquee> etc.So.. to achive this over all functionality in templating how do i go about it.I have already tried implementing some basic tag replacements like <b> with <strong> in VF Item source. But i am worried about my requiremnet no 2 . Which seems to be more dauting task.can this be acheivable through Call server??If anyone has come across such a scenario or have done some thing similar to this pls help me out.Many Thanks in Advance.Cheers,Praveen
2. Pop - Up the User with a HTML or Some interactive way so that he can enter alt="" tag if he has missed in alt tag in <IMG src=""/> Tag
Alternatively for #2 you may want to consider custom CGI script that will parse out Tags that you want massaged and give your user some GUI to do so. onSaveValid is perhaps the Event to invoke this code. Please note that simple IWItem.setValue *may* be inadequate to manipulate VFE field, you may need eWebEditPro methods like pasteHTML, etc...Although not at all rocket science any implementation of your #2 won't be exactly trivial either
Fish,Thanks a lot for ur inputs..Can you please let me know more on enabling XHTML.. so that i can dig more on top of this. Cheers,Praveen