Salve,
ho questo scritp, che visualizza delle news prese da un file xml, ora voglio paginare i risultati in modo da avere 5 risultati per pagina.
quale modifiche si devono fare per far ciò ?![]()
me le potete fare voi le modifiche per favore ?![]()
Grazie mille![]()
codice:<% url = "http://www.miosito.it/rss/news.xml" ' Creo oggetto DOM XML Set objXML = Server.CreateObject("msxml2.DOMDocument.3.0") objXML.async = false objXML.setProperty "ServerHTTPRequest", True ' validazione del documento XML objXML.validateOnParse =false' true ' non conservare spazi objXML.preserveWhiteSpace = false blnLoaded = objXML.Load(url) If Not blnLoaded Then Response.write "Nessuna news da visualizzare" Else Set objNodeList = objXML.getElementsByTagName("item") For Each objNode In objNodeList For Each objNode2 In objNode.childNodes Select Case objNode2.nodeName Case "title" strTitle = objNode2.firstChild.nodevalue Case "link" strURL = objNode2.firstChild.nodevalue Case "description" strDescription = objNode2.firstChild.nodevalue End Select Next Stampa = strTitle & " " & strURL & " " Next set objNodeList = Nothing End if %>

Rispondi quotando