This content has been marked as final. Show 5 replies
You wouldn't usually want to or need to load the same data in twice.
I checked the link to your swf and I couldn't see it attempting to load any external data via http activity. So I don't think this code is running in your full swf (or perhaps it's only after signing in etc?)
Also, LoadVars automatically calls its own decode method by default, so you do not need to use 'decode' in the onLoad handler.
Here's something which might help. Hopefully the comments etc, explain a little bit. The function.apply line is probably the one that might be a little difficult to comprehend. Its only there as a quick way to append the values to the _global.keywords array (assuming that you want append them).
Dear Sir: This is quite a bit to digest and I have to enter it into and try the new code out. However, I want to thank GWD so much for taking the time and trouble to help me.
You're welcome. Hopefully it will make sense when you try it.
I must say thank G-o-d, but I must also say thank you so much, GWD. It works!
You can see it at:
(You don't need to log in to make it work. The login info is to save the testing process for educational diagnosis.)
Note: I found that in mySQL data which becomes name-value pairs from a php script: a) spaces become + and Load Vars turns them back into spaces b) ? are not OK- I get undefined
each array of data needs to have its own my_lv variable, but can keep prop and temparray variables the same for each array
Thanks, thanks, thanks again!
Again, you're welcome.
Using LoadVars is only one way to do this. And you should urlencode your values in your serverside script before returning them. That way you can pass "?" or "=" in the values if you need to, they will just be encoded to allow that to work properly (this is important because there will be other values like "%" that will be affected as well I believe).