Jump to content

xmlxpert

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by xmlxpert

  1. Dear allplease i need your advice , i found a webhosting company and very cheap, but how i can make sure that this hosting company is secure and i want want to know if they have good support .... http://www.genuineasp.com/ waiting for rsponse
    Hi, I dont think they have a good support, even thought their are cheap but still security is a main concern.For the past few months now no reply from emails about my concern (emails) in which they seem to have a problem about that. If you want to know more about whats happening about genuineasp.com, wait for more response about this at http://www.webproworld.com/viewtopic.php?t=68181
  2. Hi, I have this xml document in which I decided to write a DTD associated with it and seems like W3C tutorial isn't much of a help. Is there any DTD tutorial website hat you may have known hope that really helps?cheers,

  3. background-color : #xxxxxx;height: Xpx;it doesnt have to be px either, theres tons of different measurement units

    I see so this is I use
    { background: #CCDEF0; height: 109px; vertical-align: bottom; }

    And it works! , Thank You Brendon

  4. i see, its alright but how about this bgcolor? there isnt any css equivalent of this or is there?This code is actually from my site and fixing some errors from w3c validator, so I'm stack with this code then eh? Guess I cant validate then too bad :)thanks on the reply Brendon

  5. Hi, How do I create a CSS syntax out of this code? But seems like vAlign is not xHTML attribute so its better not to include it.

    <td vAlign=bottom bgcolor=#CCDEF0 height=109>

  6. Hi, I dont know whats wrong with this but seems like theirs nothin wrong (a validation from validator.w3.org)

        Error Line 11 column 19: document type does not allow element "table" here; assuming missing "object" start-tag.<table width="100%">
  7. Hi, How do I disable Save As Picture ... menu in a page? I dont want anyone to simple copy paste my image files :) . Is this client scripting code all behind this security or on the server side itself?

  8. Hi, How do I increment the value by one on the last record (the child ID) in appending a new record in my xml file? But before that, how do I know its the last record? I'm using asp and xsl.data.xml

    <product>               <On sale>	                   <id>1</id>                   <name>Television</name>                   <description>14 " HiFi</description>                   <dateadded>apr 6, 2006</dataadded>                </On sale>                <On sale>                        <id>2</id>                     <name>Washing</name>                    <description>rotor max</description>                    <dateadded>apr 7, 2006</dataadded>                </On sale></product>

  9. A much more speedy solution in my opinion would be for the database to contain the parts of the XML itself and the server side script would only have to assemble and/or transform the data there.

    Hi, Is this code speedy enough? Im new with xml and asp. This script does is transform the data there as what you say or does it? :)default.asp
    <%    dim xmlhttp,xmlDom,xsldom,Query    set xmlhttp=createobject("MSXML2.XMLHTTP")    set xmlDom=createobject("MSXML2.domdocument")    set xslDom=createobject("MSXML2.domdocument")        xmldom.async=false    xsldom.async=false    query = "<main><sql>select * from product</sql></main>"    xmlhttp.Open "POST","http://localhost/www\XML\xml_27/data.asp", false    xmlhttp.send query    if xmlhttp.status <> 200 then        response.write "Error !!!"   end if        xmldom.load xmlhttp.responseXML    xsldom.load server.mappath(".")+"/"+view    response.write XMLDom.transformNode(XSLDom)%><%set xmlhttp = nothingset xmldom= nothingset xsldom = nothing%>

    data.asp

    <% Option Explicit %><%Response.ContentType = "text/xml"%><?xml version="1.0"?><%   dim xmlDom   dim Conn,rs,fld,query   set xmlDom=createobject("MSXML2.domdocument")   Set Conn = server.CreateObject("adodb.connection")   set rs = server.createobject("adodb.recordset")   xmldom.load request   query = xmldom.documentElement.childNodes(0).text    Conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+server.mappath(".")+"\database.mdb;Persist Security Info=False"   rs.open query,conn,3,1 %><recordset total="<%=rs.recordcount%>"><head><%for each fld in rs.fields%><field name="<%=fld.name%>"/><%next%></head><rows><%do until rs.eof%><row><%for each fld in rs.fields%><col><%=fld.value%> </col><%next%></row><%rs.movenext%><%loop%></rows></recordset><%rs.closeconn.closeset conn = nothingset rs= nothingset xmldom = nothing%>

  10. YES,body tag <body> is used to define stuff on a page<html><body></body><head></head></html><tbody> is used in a table and only in that tableIt help to define were the body of your page is (like body of a report)

    Thanks dcole, now I know!
  11. Hi, I dont know how the Open Method of xml works. this code is actually a data island from an asp file. I get an error Invalid syntax using this;

    query = "<main><sql>select * from product</sql></main>"  xmlhttp.Open "POST",server.mappath("datasource.asp"), false  xmlhttp.send query 
    but this one works fine;
        query = "<main><sql>select * from product</sql></main>"    xmlhttp.Open "POST","http://localhost/www\XML\xml_27/datasource.asp", false    xmlhttp.send query
  12. Hi, I'm planning in creating a forum and I decided to put all my data to a xml file. And so I decided this approach; section.xml = to view all sections thread.xml = to view all thread from a given sections message.xml = to view all messages from a given thread message(number).xml = to view all responses from a given message, number is a unique ID from a datafield in message.xml, a new file is created everytime a new message is made. Is this good? What is the best way in creating a forum anyways? thanks! :)

  13. Hi, Can someone help me on how to use a navigational page using xml or xsl? I cant actually find any tutorial on w3c about that. Im a asp newbie and its quite easy using that navs so why not use it on xmls.

  14. Hi, Do you think its alright if a site first connect first to a database and get a record and save this record to a xml file and read this file to a browser? Seemd like its time consuming isn't, you see im a asp newbie and connecting to a database with this is easy on me and so I decided to do that from here to there approach :).

  15. Hi, i got this xml file in which I dont know how to view the data file ascendingly or descendinglyin an html file based on its date child root. if I got this code, Do I need to use XSL for this for me to view it asc or desc?<Settings> <View> <topic>XML file</topic> <date>02/05/06 1:30 am</date> </View> <View> <topic>XHTML file</topic> <date>02/05/06 1:25 am</date> </View> </Setting>

  16. If it doesn't work, try making an empty span inside the anchor and apply the dataFld attribute to it instead.
    Hi, sorry boen it still wont work, but anyways what I did was just add another root actually a URL root :), even though its added work or even waste of time, thanks anyways on the reply boen...:)
    <?xml version="1.0" encoding="ISO-8859-1"?><!-- Edited with XML Spy v4.2 --><Personal><Record>  <FullName>King Manchester</FullName>  <PersonalDesc>Lord of all Lords.</PersonalDesc>  <URL>tomyaspfile</URL></Record><Personal>
    and use this instead<A dataFld="URL"> link to King Manchester from record.xml </A>
  17. Hi, Very well I'll put some quotes then, thanks. And im not using Firefox or Opera :) , but my point is the data that I want is still missing. <A dataFld=FullName href="topic.asp?dataFld="&FullName> Cannot link to King Manchester from record.xml </a>How come I couldn't get the attribute value of dataFld and reference it to my asp file?

  18. Hi, I got this code in which I couldn't get the data I want to be link from an xml file. default.html

    <HTML><xml id=cdRecord src="record.xml"></xml><TABLE dataSrc=#cdRecord cellSpacing=1 cellPadding=2 width="100%" border=0 height="70">  <A dataFld=FullName href="topic.asp?dataFld="&FullName> Cannot link to King Manchester from record.xml </a></TABLE></HTML>
    record.xml
    <?xml version="1.0" encoding="ISO-8859-1"?><!-- Edited with XML Spy v4.2 --><Personal> <Record>  <FullName>King Manchester</FullName>  <PersonalDesc>Lord of all Lords.</PersonalDesc> </Record><Personal>
  19. Instead of making a server side include, you could store all the presentation for it in the ASP file (or in XSLT and use ASP to execute it- that's what I would prefer) and keep all the data in XML.
    Now I'm Refresh, Thanks boen_robot I'll do that.
×
×
  • Create New...