0.097
thk thk Τρι. 15 Σεπ. 2009 18:01 0 views
να παρει στους στρατιωτικούς οπλα απο το περιπτερο , ετσι θα σωσει πολλα. και στρακαστρουκες.
thk thk Δευ. 14 Σεπ. 2009 14:02 tags javascript , madpy , προγραμματισμός , python 1 views
Forget all the rest.I did not know then or I have not figured .
use CDATA declarations if you want to include html in xml.
Its so simple..


On of the most common things xml is used today is in ajax. Ajax is a method to make a request to an http server through javascript and stands for Asychronous Javascript And Xml .
Madpy , kaotonik, openroom  make heavy use of ajax.
So furhermore , one of the most common things you may want to do with ajax is fetch html data from server.
And this is when some problems arise , with the main rule in xml that every tag (<>) must be properly closed. So there is problem  when you want to include data that includes tags ('<', '>') , like html data, inside an xml node.
Just google for "include html in xml" and you 'll notice many developers have the same problem every day.
So here i ll demonstrate one  approach I am using in madpy (server side programming is in python) to transfer html inside xml documents.

On server side when you create the xml document , escape the html data from any xml special characters like <,& and so on.
For this , you 'll need to import escape module from xml.sax.saxutils

from xml.sax.saxutils import escape
escapedHtml= escape(htmlData)

Now the html is ready to be included inside an xml node.
All tags and other special characters are properly escaped after this , for example < becomes &lt.

Now on client side (html, javascript) when you receive the xml document through the ajax call, and you finally want to add in your html document the escaped html data of an xml node, get the escaped html and assign it to the html element you want , through innerHTML attribute of the element.

myNewDiv.innerHTML = escapedHTMLData;

that's all..



thk thk Κυρ. 13 Σεπ. 2009 6:15 0 views
το κλού στους asian dub ειναι ο χεβιμεταλας ψηλός με το ταμπούρλο. το παιρνει και βγαίνει μπροστα και ειναι πολυ αρχηγος.
thk thk Κυρ. 13 Σεπ. 2009 5:37 0 views
12 αρχισανε , κατι ξέραμε... καλοι ήταν αλλά οι μπαγασηδες παντα παιζουν καινουργια και οχι παλια γνωστα και αγαπημένα
thk thk Παρ. 11 Σεπ. 2009 17:35 0 views
παντως ο ssta κανει πολυ στρες τεστ στο madpy μου βγαζει στην επιφανεια προβληματα , τα διορθωνω και η ζωη συνεχιζεται και το madpy εξελισσεται
thk thk Παρ. 11 Σεπ. 2009 0:48 tags συναυλία 0 views
"αντε τι θα γίνει ρε παιδιά θα κουνηθείτε λιγάκι?" faith no more στο βύρωνα 10 αυγούστoυ 2...
"αντε τι θα γίνει ρε παιδιά θα κουνηθείτε λιγάκι?"
faith no more στο βύρωνα 10 αυγούστoυ 2009.
τελικα κατι κουνηθηκε..
thk thk Πεμ. 10 Σεπ. 2009 16:13 0 views
ωρες ωρες σκανε κατι προβληματα στο programming και λες δε μπορει καποιος ειναι μεσα στο πισι και με κοροϊδευει . parseInt function της javascript: της δινεις string για να σου επιστρεψει int. Στο '03' επιστρεφει 3 , στο '07' επιστρεφει 7 σωστα ως εδω ... στο '09' μου επιστρεφει 0! Και λες δε μπορει εγω κανω μαλακια αλλα τι??? και τελικα κανει η javascript   link
thk thk Πεμ. 10 Σεπ. 2009 13:56 0 views
εγω εννοουσα αυτο ομως..
thk thk Πεμ. 10 Σεπ. 2009 13:56 0 views
τι σας αρεσει? τα κομμάτια , τα κόμματα ή οι κόμματοι ?
thk thk Πεμ. 10 Σεπ. 2009 13:43 0 views
ναι για αρχη διαδωστε να κανουμε κανα site , eshop , δυναμικο site , booking system , τοπικο δικτυο προσβασης στο ιντερνετ χωρις να πληρωσει αυτος που θα το παρει. (επιχορηγηση). και θα τα βρουμε ....