html - JQuery and XML parsing assistance -
Here is Scenerio, I am making a simple app for my friend's website where its user image w / a caption can add. The problem is that my friend's webhost does not allow him to use server side scripts and databases. It is allowed to include Javascript and HTM on the site.
So I think that this solution would be doing XML instead of database and instead of serviced scripts I would use Javascript to parse the XML Now the next question is that I How do I code it? I just know the basic Java and Javascript
& lt ;! DOCTYPE html public "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Jquery and XML & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" name = "form1" method = "post" action = "jqueryxml" & gt; & Lt; P & gt; First name & lt; / P & gt; & Lt; Input type = "text" name = "first name" id = "first name" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; P & gt; Last name & lt; / P & gt; & Lt; Input type = "text" name = "last name" id = "lastname" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; P & gt; Sex & lt; / P & gt; & Lt; Input type = "radio" name = "gender" value = "male" /> Men & lt; Br / & gt; & Lt; Input type = "radio" name = "gender" value = "female" /> Woman & lt; Br / & gt; & Lt; Br / & gt; & Lt; P & gt; Image url & lt; / P & gt; & Lt; Input type = "text" name = "ImgURL" id = "last name" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; P & gt; Details & lt; / P & gt; & Lt; Textarea name = "desc" cols = "40" lines = "5" & gt; & Lt; / Textarea & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Input name = "submit" type = "submit" value = "submit" /> & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt;
I need some good help there!
Thank you!
An example of XML using parsing here is parsing
$ (Request.responseXML) .Find ("person"). Each (function () {var pointer = $ (this); var data = {pointer. ("Firstname"), pointer ("last name"), pointer, Reuters ("sex"), pointer,. Reuters ("imagerul "), Pointer, Reuters (" Details ")}});
Comments
Post a Comment