Hi @all
the following code specifies a type "MyBase64Binary" which is derived from a base class "TestBase"
using System;
using System.Xml.Serialization;
using System.Collections;
using System.Xml.Schema;
using System.ComponentModel;
namespace Test
{
public class TestBase
{
public TestBase()
{
}
}
...
Given the following HTML form:
<form id="myform">
Company: <input type="text" name="Company" value="ACME, INC."/>
First Name: <input type="text" name="Contact.FirstName" value="Daffy"/>
Last Name: <input type="text" name="Contact.LastName" value="Duck"/>
</form>
What is the best way serialize this form in javascript to a JSON ob...
What am I doing wrong here? I'm serializing a value, storing it in a database (table bb_meta), retrieving it... OK so far... but then I have to unserialize it twice. Shouldn't I be able to just unserialize once? This seems to work, but I'm wondering what point about serialization I'm missing here.
//check database to see if user has eve...
So I need to encode an array in PHP and store it in plain text in MySQL database, my question is should I use serialize() or json_encode()? What are the advantages and disadvantages of each of them?
I think either of them would do in this situation. But which one would you prefer and why? If it is for something other than an array?
...
I'd like to serialize a Bundle object, but can't seem to find a simple way of doing it. Using Parcel doesn't seem like an option, since I want to store the serialized data to file.
Any ideas on ways to do this?
The reason I want this is to save and restore the state of my activity, also when it's killed by the user. I already create a ...
I'm trying to serialize an object containing a number of data fields...where one of the fields is of datatype NSData which won't serialize. I've followed instructions at http://www.isolated.se but my code (see below) results in the error "[NSConcreteData data]: unrecognized selector sent to instance...". How do I serialize my object?
He...
I have a List which is populated with objects of various concrete types which subclass BaseType
I am using the WCF DataContractSerializer
<Children>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tasks"
i:type="d3p1:ConcreteTypeA"></BaseType>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/200...
Hi,
I was wondering if this is possible.
The serialize-string will be inserted in a mySQL-database, so it would be fine if all checkboxes would be inserted and not only the ones that is ticked(on).
it's possible to make on column in the database for each of the checkboxes, and use this if/else-statement:
if(isset($_GET['checkbox'])) {...
Hello,
I'm working on a server/client project
the client will be asking the server for info and the server will send them back to the client
the info may be string,number, array, list, arraylist or any other object
I found allot of examples but I faced issues!!!!
the solution I found so far is to serialize the object (data) and send ...
I have a serialized array of values saved to a file and need to change the value of one of the variables. In the example I change the value of $two and then save the whole array back into the file with the new value.
Is there a more efficient way of altering just the single value with out having to read and write the entire file/array.
...
I have some web services that use Message contracts. It's probably worth mentioning that for these services, I cannot shift to Data contracts...
One of my types specifies a property whose type happens to be an enum:
[SerializableAttribute()]
[MessageContract(IsWrapped = false)]
[KnownType(typeof(RiskTypeCode))]
public partial class Ris...
Searched all over and I can't find the answer. I can't get my sortable to serialize. All I'm getting is null data
$(document).ready(function() {
$("ul#sortable").sortable({
update : function () {
serial = $("ul#sortable").sortable("serialize");
$.ajax({
url: "sort_images_ajax.php",
...
Hay All,
I cant seem to get my head around this dispite the number to examples i read. Basically I have a 2d array and want to insert it into MySQL. The array contains a few strings.
I cant get the following to work...
$value = addslashes(serialize($temp3));//temp3 is my 2d array, do i need to use keys? (i am not at the moment)
$query...
I need to send full objects from Javascript to PHP. It seemed pretty obvious to do JSON.stringify() and then json_decode() on the PHP end, but will this allow for strings with ":" and ","? Do I need to run an escape() function on big user input strings that may cause an issue? What would that escape function be? I don't think escape ...
Code like this :
<form>
<ol>
<li>
<fieldset>
<legend>test</legend>
<ol>
<li>
<label for="qwerty">qwerty</label>
<span id="sprytextfield1">
<input name="qwerty" type="text" id="qwerty" />
<span class="textfieldRequiredMsg">error no qwerty input</span></sp...
basically im getting an allocation limit error/warning when i create a float** array.
the function i am calling to fill the float** retrieves data from a struct loaded from a file.
The function works fine when i use one object but when i load 2 objects into memory i get the limit error.
I am pretty sure this is to do with byte alignment ...
When using $.POST and $.GET in jquery is there any way to add custom vars to the URL and send them too?
i tried the following :
$.ajax({type:"POST", url:"file.php?CustomVar=data", data:$("#form").serialize()});
And :
<input name="CustomVar" type="hidden" value="data" />
$.ajax({type:"POST", url:"file.php", data:$("#form").serialize()...
Hi, I need to save a Template.Serialize in a Blob Field, How do it?
var
s : string;
....
s := Templ.Serialize; --- > size less that 1632 bytes Whay?
...
Hi! Im programming with django and i need to serialize an object to a string, but i need to get the string \/ serialized.
An example:
simplejson.dumps({'id' : 'root\/leaf'})
I need an output like this:
'{"id": "root\/leaf"}'
but i get this:
'{"id": "root\\\\leaf"}'
Thank you!!
PD: Sorry for my english :-P
...
So I am making a basic chess app to play around with some various elements of android programming and so far I am learning a lot, but this time I am lost.
When the orientation of the emulator changes the activity gets reset. Based on my research the same thing will happen anytime the application is paused/interrupted, ie. keyboard chang...