ok code whizzessssssss,
We have one employee with a nickname in quotes (for some unknown reason!!) like Jack "The Ripper" Ripperson and I'm trying to read the FlashVar the .NET guy is passing to me where I can include the " when the dynamic text box draws his name.
Do I have to get them to escape the character right in the DB before it's passed?
Do I have to get them to check if(hisNameHasQuotes) convert to something before sending?
Is there something I can do such as escape(LastName) - which doesn't work I was just trying to explore options.
What do I do if I can't specifically escape a character because the info is dynamic? I know I can \" in a string literal, but I don't actually touch this data.
Any suggestions?
ok supposedly the .NET guy is escaping the " in the name but I'm getting nowhere with this.
How can I receive Jimmy "The Tulip" as a firstName FlashVar from .NET?
to be honest I'm not sure, but perhaps swapping the quote for & quot ; (lose the 2 spaces of course) instead would work? I suggest taking .NET out of the equation while testing this, and just try this out from a plain HTML page that loads your Flash.
Replace() function in .NET was the answer.
I think it is Replace("""", "“"); to choose the unicode symbol for it. I think it was actually breaking swfObject and not the Flash itself.
Interesting though, I learned the real typographic 'curly quotes' as “ and †but they didn't let me because their .NET log in page shows the name with the 'double inch' symbol instead.
Lesson learned.
Thanks,