I am looking for a script in which when a user clicks on a button then a pop-up appears asking for the user to enter some input and when the popup comes then the rest of the page or page background should be faded(non-editable, non-selectable) and when the user inputs in the popup then the page should come to normal state.
Please help me out with this.
We are making a game like travian (www.travian.com) in php and SQL. Now we are facing a serious problem. We have the following example: Player A attacks player B, and this attack takes 1 hour. In the meantime player A and B are logged out. But the attack must be performed, since their teammates would like to know the status of the attack too. Now how can we execute a certain code at a specific time, NOT using players, so on the server? We're using a SQL database, and the coding is done in Php. I heard something about Stored Procedures...?
I'm going through a Flash tutorial and comparing it against a Flash program we have received from a 3rd party. Within the 3rd party package there are separate files that contain code. The .fla file only appears to contain movie clips, jpegs, and etc. In the tutorial file it appears the code is layered in the .fla file.
My question is do flash developers alter the .fla files to hide code from end users, or is the .fla file just structured differently? I'm leaning towards an altered .fla file and only by accessing the .as files directly through the code folder, seeing I cannot find any code by going through the .fla file. Thanks for any help in advance.
What if you had a 10,000 lines of code that converted text into speech, and you wanted to implement that cool functionality into a number of projects? Are you (a) going to copy/paste/fix the code into each new project, or are yopu going to (b) trty to put it into a library that you can re-use?
Separating the code from the content allows for (a) cleaner/clearer coding practices & (b) ease of reuse.
The library idea makes complete sense. It's used in other languages. Perhaps I'm not sure how to navigate thru the flash editor yet, but the library seems to only be filled with jpegs, movie clips, and etc. Is there a special section I should be looking in that I am just passing over?
See I used type key to get JSON response from the client, so the client which uses it have proper knowledge about what type of response it expects.
Should I use xml serialized date or Json serialzied date?
Yes, if you are creating JSON response, Use JSON serialized date, otherwise XML. (I guess it automatically does that way)
Question 2: Most of the deserialization APIs exposed (at least the ones I have seen) deserialize a stream, and not a single datetime value. Do I have to always wrap the datetime into a stream in order to get that deserialized?
Yes I think you are right, But you can create your own Serializer any time and use it.
Is there any easy way to get the query string parameter key-value pairs directly deserialized into a desired object?
Yes, I think there is. You might use Request.QueryString.AllKeys
Question XmlSerializer accepts only a child of ICollection and so I am not able to pass a HashTable etc.
Yes... HashTables are different than normal, you can pass hashtable.Value which is ICollection.