Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 27
  1. #1
    Utente di HTML.it L'avatar di SPEED78
    Registrato dal
    Jan 2003
    Messaggi
    358

    include da altro server

    si può fare un include da altro server????
    grazie a tutti

  2. #2

  3. #3
    Utente di HTML.it L'avatar di SPEED78
    Registrato dal
    Jan 2003
    Messaggi
    358
    grazie luke a buon rendere

  4. #4
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Originariamente inviato da lukeonweb
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  5. #5
    Utente di HTML.it L'avatar di SPEED78
    Registrato dal
    Jan 2003
    Messaggi
    358
    corwin me ne sono accorto che non si può fare tu mi sai per caso dire come?

  6. #6
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
    xmlhttp.Open "GET", "http://www.html.it", false
    xmlhttp.Send
    response.write xmlhttp.responsetext
    set xmlhttp = nothing

    Il problema sono le immagini e i link, perchè se non sono degli url assoluti non funzionano correttamente.
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  7. #7
    Utente di HTML.it L'avatar di Baol74
    Registrato dal
    Jul 2002
    Messaggi
    2,004
    Per usare la direttiva Include="http:// devi avere una classe che interpreta questa direttiva (baol.cjb.net)...

    L'altervativa è appunto l'uso di msxml. La limitazione è che per leggere un file direttamente non puoi dargli l'estensione asp altrimenti viene interpretata dal server.

    Per superare il problema puoiimplementare un servizio web anche rudimentale per farti restituire la pagina con estensione asp.

    Ciao

  8. #8
    Utente di HTML.it L'avatar di SPEED78
    Registrato dal
    Jan 2003
    Messaggi
    358
    grazie baol e grazie corwin
    ho un paio di punti non chiarissimi:

    xmlhttp.Open "GET", "http://www.sassarinet.net/sh/file.inc", false
    1)devo dare il percorso assoluto del mio file
    2)devo mettere qualkosa nel file di richiamo?
    response.write xmlhttp.responsetext
    qua cosa ci devo mettere ilnome del file
    scusate se vi stresso ma è fondamentale per me grazie

  9. #9
    Utente di HTML.it L'avatar di SPEED78
    Registrato dal
    Jan 2003
    Messaggi
    358
    :quote: up

  10. #10
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Scusa ma no capisco dove sia il problema...
    invece di mettere "http://www.hmtl.it" ci metti L'URL completo al file che ti interessa. Il resto rimane uguale.
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

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.