add text formatting in Ajax bubbles? |
Post Reply |
Author | |
thedeacon
Groupie Joined: 09-July-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 30-March-2007 at 12:23pm |
Hi there, is it possible to make it so text is properly formatted in the ajax bubbles instead of just having on big blob of text? <br>, <p> and <ul> tags would really improve the looks of the Ajax bubbles. If anyone knows how to do this and is feeling kind, can you give me a hand? Thanks! |
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
You need to modify xml_getPrdInfo.asp. Search for "ClearHTMLTags" to see where it is used to remove HTML tags from multiple fields in the AJAX popups. If you remove that function from around the data, it won't remove HTML. Be careful though because more advanced HTML may cause problems with the display. Also note that the description is truncated to 50 characters...look for this line to modify that length: pDescription =Left(pDescription ,50) |
|
thedeacon
Groupie Joined: 09-July-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hi there, Thanks so much for such a fast response! I had previously tried to do just that, but I ended up with a blank Ajax window instead, any time I tried to alter the three lines that referenced "ClearHTMLTags2" and figured i was doing something wrong. there must be something I'm missing |
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Change a line like this: pDescription=ClearHTMLTags2(replace(rs("description"),"& quot;",chr(34)),0) to this: pDescription=replace(rs("description"),""",chr(34)) Note removing the function name and "(" and the ",0)" at the end of the line. We have done this and it works. |
|
thedeacon
Groupie Joined: 09-July-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
It worked! Indeed it worked! sir, you are not only my new favorite person, but I will also sing tales of your timely assistance that will be passed along the ages from father to son to grandson until finally becoming legend! What I did wrong was that I would delete the clearHTML tag, but then I forgot to delete the parenthesis and the ,0. I literally could smack myself for being such a blind fool....in fact, I just did smack myself! I may have to give your company a call soon. I've been so caught up with selling computers that I haven't gotten much time to work on the site and there just isn't enough work left that needs to be done to hire another full time employee. It's good to see you on these forums, it shows me that you really do know your stuff! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |