SWF doesn't change its text changed dynamically with jQuery and C # 3.0

I have a web page in ASP.NET MVC (C #) and jQuery where I have a SWF file that reads its content from an XML file. To reproduce this SWF, I've already tried the jQuery Flash plugin, jQuery Media, and swfobject

.

The same page has an input text where I am writing a message and this text will be loaded into SWF via AJAX. The text will be saved in an XML file, and in the "Success" AJAX option, I will omit the div where the SWF will be rendered and loaded into it again using the SWF, but with the changed text.

The first time the text changes. But when I try to change it a second time, the text in the SWF doesn't change at all. The SWF reloads, but the text does not change. And if I look into the XML file, it updates with the text I pasted into, no matter how many times I try to paste the text.

I think this is a cache issue. I dont know. I tried to empty the div where the flash is displayed. I have also already tried to remove the div and insert again, but nothing seems to work.

I already tried meta content=no-cache

it but it didn't work either.

Does anyone know how this can be solved?

Thanks!

0


a source to share


1 answer


When you load an XML file into flash, put a random sequence at the end of the file name, so it ends with my_XML.xml? r = 123456



While this seems like a slightly confusing way to update data in swf - is there a reason you can't pass it directly with javascript?

0


a source







All Articles