Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. Coding e Sistemistica
  4. Coding
  5. ajax e firefox

ajax e firefox

Pianificato Fissato Bloccato Spostato Coding
13 Post 2 Autori 2.5k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • H
    H
    horusbird
    scritto su ultima modifica di
    User 0
    #1
    ajax e firefox

    in questa pagina
    http://www.dueruoteitalia.com/add.php
    c'e' una funzione che dovrebbe estrarre in automatico i metatag da un sito.
    Con IE tutto funziona a regola d'arte mentre con Firefox non ne vuole sapere, oltre tutto anche altre cosette tipo alcuni menu' con firefox hanno problemi.
    In una pagina praticamente identica la stessa funzione (con gli stessi precisi .js) invece funziona:
    http://www.armchair.ie/add.php?cat=2
    mentre quest'altra NO:
    http://www.zubba.de/add.php?cat=58

    Puo' dipendere dal server su cui sono residenti i siti? Ed eventualmente cosa puo' essere?

    Ho anche installato su firefox il debbugger javascript e mi ritorna questo errore...

    Exception ``ReferenceError: ActiveXObject is not defined'' thrown from function AjaxRequest(url=string:"ajax.php?cmd=fetch_meta&url=http://www.mywebsite.com", callback_function=string:"UpdateForm") in <http://www.dueruoteitalia.com/themes/frezz/ajax.js> line 11.

    Qualche idea?

    Grazie mille

    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • G
      G
      gorka
      scritto su ultima modifica di
      Super User 20
      #2

      Firefox blocca i js che tentano di accedere ad altri domini, potrebbe essere il tuo caso?

      1 Risposta Ultima Risposta
      Miglior risposta 0
      0
      • H
        H
        horusbird
        scritto su ultima modifica di
        User 0
        #3

        L'ho ipotizzato anche io, ma perche' allora a parita' di condizioni uno dei link funziona?
        L'unica cosa diversa e' il server su cui e' fisicamente hostato il sito...

        grazie

        1 Risposta Ultima Risposta
        Miglior risposta 0
        0
        • H
          H
          horusbird
          scritto su ultima modifica di
          User 0
          #4

          Per tagliare la testa al toro ho provato a inserire come sito da cui estrarre i metatag lo stesso da cui inserisco il form e... stesso problema!

          1 Risposta Ultima Risposta
          Miglior risposta 0
          0
          • G
            G
            gorka
            scritto su ultima modifica di
            Super User 20
            #5

            Dai un'occhiata a questo topic, sembra essere lo stesso problema

            1 Risposta Ultima Risposta
            Miglior risposta 0
            0
            • H
              H
              horusbird
              scritto su ultima modifica di
              User 0
              #6

              Ho guardato quel post anche se le mie competenze non mi aiutano a capire granche' :bho:

              Ho anche rifatto il debug e l'errore preciso e' questo:

              Stopped for error handler.
              #0: function AjaxRequest(url=string:"ajax.php?cmd=fetch_meta&url=http://www.dueruoteitalia.com", callback_function=string:"UpdateForm") in <http://www.dueruoteitalia.com/themes/frezz/ajax.js> line 11
              009: for (var i = 0; i < msxmlhttp.length; i++) {
              010: try {
              011: req = new **ActiveXObject(msxmlhttp[**i]);
              012: } catch (e) {
              013: req = null;

              1 Risposta Ultima Risposta
              Miglior risposta 0
              0
              • H
                H
                horusbird
                scritto su ultima modifica di
                User 0
                #7

                Mi correggo ulteriormente, questo errore viene fuori anche con il sito in cui la funzione lavora correttamente, quindi pur non funzionando non credo che questi errori influiscano.
                Io non so che pesci prendere.... 😞

                1 Risposta Ultima Risposta
                Miglior risposta 0
                0
                • G
                  G
                  gorka
                  scritto su ultima modifica di
                  Super User 20
                  #8

                  Ho fatto un debug con greasemonkey e xmlhttprequest debug, ecco il risultato:

                  POST ajax.php?cmd=fetch_meta&url=http://www.giorgiotave.it

                  null

                  505 (HTTP Version Not Supported)

                  Date: Mon, 21 May 2007 10:25:24 GMT
                  Server: NOYB
                  Keep-Alive: timeout=15, max=93
                  Connection: Keep-Alive
                  Transfer-Encoding: chunked
                  Content-Type: text/html; charset=iso-8859-1

                  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                  <HTML><HEAD>
                  <TITLE>505 HTTP Version Not Supported</TITLE>
                  </HEAD><BODY>
                  <H1>HTTP Version Not Supported</H1>
                  The server encountered an internal error or
                  misconfiguration and was unable to complete
                  your request.<P>
                  Please contact the server administrator,
                  [email protected] and inform them of the time the error occurred,
                  and anything you might have done that may have
                  caused the error.<P>
                  More information about this error may be available
                  in the server error log.<P>
                  <HR>
                  <ADDRESS>Apache/1.3.33 Server at www.zubba.de Port 80</ADDRESS>
                  </BODY></HTML>

                  1 Risposta Ultima Risposta
                  Miglior risposta 0
                  0
                  • H
                    H
                    horusbird
                    scritto su ultima modifica di
                    User 0
                    #9

                    Gorka

                    Ho fatto un debug con greasemonkey e xmlhttprequest debug, ecco il risultato:

                    POST ajax.php?cmd=fetch_meta&url=http://www.giorgiotave.it

                    null

                    505 (HTTP Version Not Supported)

                    Date: Mon, 21 May 2007 10:25:24 GMT
                    Server: NOYB
                    Keep-Alive: timeout=15, max=93
                    Connection: Keep-Alive
                    Transfer-Encoding: chunked
                    Content-Type: text/html; charset=iso-8859-1

                    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                    <HTML><HEAD>
                    <TITLE>505 HTTP Version Not Supported</TITLE>
                    </HEAD><BODY>
                    <H1>HTTP Version Not Supported</H1>
                    The server encountered an internal error or
                    misconfiguration and was unable to complete
                    your request.<P>
                    Please contact the server administrator,
                    [email protected] and inform them of the time the error occurred,
                    and anything you might have done that may have
                    caused the error.<P>
                    More information about this error may be available
                    in the server error log.<P>
                    <HR>
                    <ADDRESS>Apache/1.3.33 Server at www.zubba.de Port 80</ADDRESS>
                    </BODY></HTML>

                    Gentilissimo! 🙂
                    Poiche' conosco i miei polli mi farebbe piacere che l'errore fosse quello che viene originato proprio dal server del mio provider e quindi quello che viene fuori da http://www.dueruoteitalia.com/add.php .
                    Non e' che saresti cosi' gentile da fare il debug su quell'indirizzo?
                    Grazie ancora

                    1 Risposta Ultima Risposta
                    Miglior risposta 0
                    0
                    • G
                      G
                      gorka
                      scritto su ultima modifica di
                      Super User 20
                      #10

                      POST ajax.php?cmd=fetch_meta&url=http://www.giorgiotave.it

                      null

                      403 (Forbidden)

                      Date: Mon, 21 May 2007 13:13:25 GMT
                      Server: Apache
                      Content-Length: 282
                      Connection: close
                      Content-Type: text/html; charset=iso-8859-1

                      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                      <html><head>
                      <title>403 Forbidden</title>
                      </head><body>
                      <h1>Forbidden</h1>
                      <p>You don't have permission to access /ajax.php
                      on this server.</p>
                      <hr>
                      <address>Apache Server at www.dueruoteitalia.com Port 80</address>
                      </body></html>

                      1 Risposta Ultima Risposta
                      Miglior risposta 0
                      0
                      • H
                        H
                        horusbird
                        scritto su ultima modifica di
                        User 0
                        #11

                        Grazie, sono stato sino ad ora al telefono con il tecnico del server su cui e' hostato il mio sito e, nonostante abbia verificato direttamente che mentre eseguivo lo script con IE e Firefox uno funzionava e l'altro no, lui insiste che non puo' essere un problema di server.
                        L'errore 403 esce ma i files sono tutti settati 777.... mi chiedeva il tecnico se per caso lo script fa chiamate diverse in funzione del browser utilizzato, ma veramente non mi pare (per quel poco che conosco il javascript).
                        Lo script completo e' questo e la funzione incriminata e' la FetchMeta() funzione e' la seguente... altre idee?

                        function AjaxRequest(url, callback_function) {
                          var req = null;
                          var msxmlhttp = new Array(
                            'Msxml2.XMLHTTP.5.0',
                            'Msxml2.XMLHTTP.4.0',
                            'Msxml2.XMLHTTP.3.0',
                            'Msxml2.XMLHTTP',
                            'Microsoft.XMLHTTP');
                          for (var i = 0; i < msxmlhttp.length; i++) {
                            try {
                              req = new ActiveXObject(msxmlhttp[i]);
                            } catch (e) {
                              req = null;
                            }
                          }
                        
                          if(!req && typeof XMLHttpRequest != "undefined") {
                            req = new XMLHttpRequest();
                          }
                          if (req != null) {
                            req.open("POST", url, true);
                            req.onreadystatechange = function() {
                              if ((req.readyState == 4) && (req.status == 200)) {
                                var json = req.responseText.parseJSON();
                                var callback = callback_function + '(json)';
                                eval(callback);
                              }
                            }
                            req.send(null);
                            delete req;
                          }
                          return true;
                        }
                        
                        function UpdateForm(objects) {
                          document.forms['add_frm']['fetch_meta'].disabled = false;
                          for (var i in objects) {
                            if (i != "toJSONString") {
                              if (document.forms['add_frm'][i]) {
                                document.forms['add_frm'][i].value = objects[i];
                              }
                            }
                          }
                        }
                        
                        function FetchMeta() {
                          var url = document.forms['add_frm']['url'].value;
                          document.forms['add_frm']['fetch_meta'].disabled = true;
                          AjaxRequest('ajax.php?cmd=fetch_meta&url=' + url, 'UpdateForm');
                        }
                        
                        function UpdateSubCategory(objects) {
                          document.getElementById(objects['div_tag']).innerHTML = objects['select_box'];
                        }
                        
                        function FetchSubCategory(cat, selected_cat, div_tag) {
                          document.getElementById(div_tag).innerHTML = "loading...";
                          AjaxRequest('ajax.php?cmd=fetch_sub_category&cat=' + cat + "&selected_cat=" + selected_cat+ "&div_tag=" + div_tag, 'UpdateSubCategory');
                        }
                        
                        function UpdatePricing(objects) {
                          document.getElementById("listing_type_div").innerHTML = objects;
                        }
                        
                        function FetchPricing() {
                          var cat = document.forms['add_frm']['cat'].options[document.forms['add_frm']['cat'].selectedIndex].value;
                          var cat1 = document.forms['add_frm']['add_cat1'].options[document.forms['add_frm']['add_cat1'].selectedIndex].value;
                          var cat2 = document.forms['add_frm']['add_cat2'].options[document.forms['add_frm']['add_cat2'].selectedIndex].value;
                          if (document.forms['add_frm']['periodprice']) {
                            var periodprice = document.forms['add_frm']['periodprice'].options[document.forms['add_frm']['periodprice'].selectedIndex].value;
                          }
                          document.getElementById("listing_type_div").innerHTML = "loading...";
                          AjaxRequest('ajax.php?cmd=fetch_pricing&cat=' + cat + "&cat1=" + cat1 + "&cat2=" + cat2 + "&periodprice=" + periodprice, 'UpdatePricing');
                        }
                        
                        1 Risposta Ultima Risposta
                        Miglior risposta 0
                        0
                        • H
                          H
                          horusbird
                          scritto su ultima modifica di
                          User 0
                          #12

                          Ho risolto!!!! 🙂
                          Aggiungendo nel file .htaccess il valore SecFilterEngine Off il problema è sparito.
                          Mi piacerebbe capire come mai ma l'importante e' che ora funziona.
                          Grazie della disponibilita'!

                          1 Risposta Ultima Risposta
                          Miglior risposta 0
                          0
                          • G
                            G
                            gorka
                            scritto su ultima modifica di
                            Super User 20
                            #13

                            Grazie a te per averci postato la soluzione al problema, che potrebbe essere d'aiuto per altri.

                            Purtroppo non so spiegarti bene il motivo ma penso dipenda dai caratteri di escape presenti nei parametri passati tramite ajax

                            1 Risposta Ultima Risposta
                            Miglior risposta 0
                            0

                            Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                            Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                            Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                            Registrati Accedi
                            Rispondi
                            • Risposta alla discussione
                            Effettua l'accesso per rispondere
                            • Da Vecchi a Nuovi
                            • Da Nuovi a Vecchi
                            • Più Voti


                            • Accedi

                            • Non hai un account? Registrati

                            • Accedi o registrati per effettuare la ricerca.
                            • Primo post
                              Ultimo post
                            Home Accedi Registrati
                            Menu
                            • CATEGORIES
                            • La Community Connect.gt
                            • Presentati alla Community
                            • News Ufficiali da Connect.gt
                            • Internet News
                            • A Scuola Di
                            • Digital Marketing
                            • Intelligenza Artificiale
                            • SEO & GEO
                            • Web Marketing e Content
                            • Google Analytics e Web Analytics
                            • Google Ads & Advertising
                            • YouTube
                            • TikTok, Instagram e altri Social
                            • Google Adsense, Affiliazioni e Guadagno
                            • E-Commerce
                            • Coding e Sistemistica
                            • Help Center: consigli per il tuo progetto
                            • Hosting e Cloud
                            • Coding
                            • CMS & Piattaforme Self-Hosted
                            • Annunci e Collaborazioni
                            • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
                            • Collaborazioni WEB e Lavoro: offro e cerco
                            • Impresa, Fisco e Leggi
                            • Consulenza Legale e Professioni Web
                            • Consulenza Fiscale, Imprese, Startup e P.Iva
                            • Gli Off Topic
                            • PC, Smartphone e altri Hardware
                            • Tutti i Software
                            • GT Fetish Cafè
                            • Discussioni
                            • Non letti 0
                            • Recenti
                            • Hashtag
                            • Popolare
                            • Utenti
                            • Privacy
                            • Termini e condizioni
                            • © 2026 Search On Media Group S.r.l.