Visualizzazione dei risultati da 1 a 3 su 3

Discussione: non Trovo l'Errore

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786

    non Trovo l'Errore

    Salve,

    ho questo Codice:

    codice:
    <%
       url = "http://www.html.it/rss/webnews_focus.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 
    ' Include in Db
       strURL = strURL(strURL,"http://webnews.html.it/focus/","")
       strURL = strURL(strURL,".htm","")
       
       Stampa = strTitle & " " & strURL & " "
    
    '--->
          Next  
          
    	  set objNodeList = Nothing 
       End if 
    %>
    mi da questo errore:

    Tipo di errore:
    Errore di run-time di Microsoft VBScript (0x800A000D)
    Tipo non corrispondente: 'strURL'
    /beta/pro.asp, line 36
    Questa è la Linea:

    codice:
       strURL = strURL(strURL,"http://webnews.html.it/focus/","")
    Come mai ?

    Grazie !
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  2. #2
    Forse invece di

    codice:
    strURL = strURL(strURL,"http://webnews.html.it/focus/","")
    volevi

    codice:
    strURL = Replace(strURL,"http://webnews.html.it/focus/","")

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786
    Grazie
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.