0.097
@ kaotonik.nethomesthkpage382
thk thk Tue. 15 Sep. 2009 22:07 0 views
να έβαλα ειδικο χαρακτήρα και πανε τα μισα ...
thk thk Tue. 15 Sep. 2009 22:06 0 views
το αστερακι και οι ειδικοι χαρακτηρες κανουν κακο στη πληροφορικη. Συμβουλή: οταν διαλέγετε username αφηστε τις μαγκιές και τους ειδικούς χαρακτήρες στυλ *,
thk thk Tue. 15 Sep. 2009 22:01 0 views
το ρομποτ εκδικειται παιζει συνεχεια the final countdown
thk thk Tue. 15 Sep. 2009 18:12 0 views
λοιπόν ακουσα κατι φήμες για 2 ατομα ότι ψήνονται για εκπομπή το βράδυ να το δηλώσουνε εδω και να μη κρύβονται πισω απο το δακτυλο τους. ευχαριστω. δηλαδη παιζει το βράδυ να χουμε ραδιοφωνικό προγραμμα? ΤΙ ΦΑΣΗ!
thk thk Tue. 15 Sep. 2009 18:06 0 views
δινουμε πολλα στους στρατοκαυλους.
thk thk Tue. 15 Sep. 2009 18:01 0 views
να παρει στους στρατιωτικούς οπλα απο το περιπτερο , ετσι θα σωσει πολλα. και στρακαστρουκες.
thk thk Mon. 14 Sep. 2009 14:02 tags javascript , madpy , programming , 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 Sun. 13 Sep. 2009 6:15 0 views
το κλού στους asian dub ειναι ο χεβιμεταλας ψηλός με το ταμπούρλο. το παιρνει και βγαίνει μπροστα και ειναι πολυ αρχηγος.
thk thk Sun. 13 Sep. 2009 5:37 0 views
12 αρχισανε , κατι ξέραμε... καλοι ήταν αλλά οι μπαγασηδες παντα παιζουν καινουργια και οχι παλια γνωστα και αγαπημένα
thk thk Fri. 11 Sep. 2009 17:35 0 views
παντως ο ssta κανει πολυ στρες τεστ στο madpy μου βγαζει στην επιφανεια προβληματα , τα διορθωνω και η ζωη συνεχιζεται και το madpy εξελισσεται