FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Serialise in Browser Code
Serialise in Browser Code
Débuté par Peter Holemans (BE), 21 avr. 2021 15:36 - 1 réponse
Connectez-vous…
Peter Holemans (BE)
#1
Membre enregistré
123 messages
Popularité : +7 (9 votes)
Posté le 21 avril 2021 - 15:36
Hello team
I have a hybrid class, meaning a class that can be used server and browser side.
On the server side I can perfectly serialise the class into a string (that is browser synchronised) and on the browser side I can perfectly deserialise it again into the class on the browser side.
On the other hand, I just cannot seem to get the serialise to work on the browser side again.
If I use the below browser side syntax I get an error in the browser (no compiler errors).
//Serialize the object to pass to the Ajax call
SerBuf
is
Buffer
Serialize
(
NewMOList
,
SerBuf
,
psdJSON
)
AJAXExecute
(
ajaxUpdateControls
+
ajaxSynchronizeServerVariables
,
MediaObjectAdd
,
SerBuf
)
Upon execution I get this message by Chrome:
So it seems the buffer type is the issue but when I change it to string, I get a compilation error on the serialise() function...
Did anybody get the serialise to work or am I just having a brain f@rt here ?
Thanks in advance !
--
Peter Holemans
www.mcs2.eu
www.pixontri.eu
Signaler
0
0
Peter Holemans (BE)
#2
Membre enregistré
123 messages
Popularité : +7 (9 votes)
Posté le 04 mai 2021 - 11:33
Hi,
This is a (compiler) bug confirmed by Tech Support and they are working on a fix.
Cheers !
--
Peter Holemans
www.mcs2.eu
www.pixontri.eu
Signaler
1
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte