Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. ijim
    3. Post
    I

    ijim

    @ijim

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 6
    • Post 10
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    10
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da ijim

    • Facebook connect errore 191

      Salve a tutti.
      Ho creato un dito web e volevo collegarlo con facebook, ho creato la mia app su developers.facebook.com, ho impostato tutti i parametri, e quando vado a fare la registrazione sul mio sito, mi fa fare il login su facebook, mi chiede di autorizzare il sito, ma poi mi da

      
      API Error Code: 191
      API Error Description: The specified URL is not owned by the application
      Error Message: Missing redirect_uri parameter.
      
      

      Ma non riesco a capire cosa non va!

      postato in Coding
      I
      ijim
    • Facebook connect errore 191

      Salve a tutti.
      Ho creato un sito web e volevo collegarlo con facebook, ho creato la mia app su developers.facebook.com, ho impostato tutti i parametri, e quando vado a fare la registrazione sul mio sito, mi fa fare il login su facebook, mi chiede di autorizzare il sito, ma poi mi da
      codice:
      API Error Code: 191API Error Description: The specified URL is not owned by the applicationError Message: Missing redirect_uri parameter.

      Ma non riesco a capire cosa non va!

      postato in TikTok
      I
      ijim
    • RE: server da zero

      Ciao scusa potresti dirmi dove hai spostato il mio post??? Grazie

      postato in Coding
      I
      ijim
    • RE: problemi con javax.servlet

      Guarda ho cambiato la domanda ( ma il problema è sempre quello!! ) il post lo trovi nella sezione server. Cmq continua a nn funzionare niente!

      postato in Coding
      I
      ijim
    • Partire da Zero

      Salve a tutti ho un problema, vorrei sapere come fare per risolvere questo problema:

      Io ho una stringa e la voglio scrivere su un file che sta sul server, allora la crea con javascript sul client, Come faccio ad inviarla???

      Ho provato con l'oggetto xmlHttpRequest ad inviarla a un file file.class che sta sul server.
      Il file .class l'ho creato con netBeans da questo sorgente ( tutto scritto da me ). Ho messo il file .class sul server, ma non mi funziona !!!!

      sorgente file javascrip sul client

      
      functio start(){
      var testo = "info=noText!";
      
          var xmlHttpRequest;
          function createAjax(){
              if( window.activeXObject ) xmlHttpRequest = new ActiveXObject( "Microsoft.XMLHTTP" );
              else if( window.XMLHttpRequest ) xmlHttpRequest = new XMLHttpRequest;
          }
          function Send( datas ){
              createAjax();
              var destination = "fixer?timeStamp=" + new Date().getTime();
              xmlHttpRequest.open( "POST", destination, true );
              xmlHttpRequest.onreadystatechange = inProgress;
              xmlHttpRequest.setRequestHeader( "Content-type", "application/x-www-form-urlencoded;" );
              xmlHttpRequest.send( datas );
          }
          function inProgress(){
              alert(xmlHttpRequest.responseText);
          }
      
      sand(testo);
      
      }
      
      ```e questo il sorgente java:
      

      import java.io.;
      import javax.servlet.
      ;
      import javax.servlet.http.*;

      public class fixer extends HttpServlet {

      protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          response.setContentType("text/html;charset=UTF-8");
          String rowData = request.getParameter("info");
          store( rowData );
          String resTx = new String(rowData);
          PrintWriter out = response.getWriter();
          try {
              out.println( resTx );
          } finally {
              out.close();
          }
      }
      
      public void store( String info ){
          // accesso e memorizzazione
          File db = new File("store.txt");
          FileOutputStream canale;
          try {
              canale = new FileOutputStream(db, true);
              PrintStream writer = new PrintStream(canale);
              writer.println(info);
          }
          catch (FileNotFoundException e) {
              e.printStackTrace();
          }
      }
      
      
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          processRequest(request, response);
      }
      
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          processRequest(request, response);
      }
      
      public String getServletInfo() {
          return "Short description";
      }
      

      }

      Qualcuno potrebbe aiutarmi??
      postato in Hosting e Cloud
      I
      ijim
    • server da zero

      Salve a tutti ho un problema, vorrei sapere come fare per risolvere questo problema:

      Io ho una stringa e la voglio scrivere su un file che sta sul server, allora la crea con javascript sul client, Come faccio ad inviarla???

      Ho provato con l'oggetto xmlHttpRequest ad inviarla a un file file.class che sta sul server.
      Il file .class l'ho creato con netBeans da questo sorgente ( tutto scritto da me ). Ho messo il file .class sul server, ma non mi funziona !!!!

      sorgente file javascrip sul client

      
      functio start(){
      var testo = "info=noText!";
      
          var xmlHttpRequest;
          function createAjax(){
              if( window.activeXObject ) xmlHttpRequest = new ActiveXObject( "Microsoft.XMLHTTP" );
              else if( window.XMLHttpRequest ) xmlHttpRequest = new XMLHttpRequest;
          }
          function Send( datas ){
              createAjax();
              var destination = "fixer?timeStamp=" + new Date().getTime();
              xmlHttpRequest.open( "POST", destination, true );
              xmlHttpRequest.onreadystatechange = inProgress;
              xmlHttpRequest.setRequestHeader( "Content-type", "application/x-www-form-urlencoded;" );
              xmlHttpRequest.send( datas );
          }
          function inProgress(){
              alert(xmlHttpRequest.responseText);
          }
      
      sand(testo);
      
      }
      
      ```e questo il sorgente java:
      

      import java.io.;
      import javax.servlet.
      ;
      import javax.servlet.http.*;

      public class fixer extends HttpServlet {

      protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          response.setContentType("text/html;charset=UTF-8");
          String rowData = request.getParameter("info");
          store( rowData );
          String resTx = new String(rowData);
          PrintWriter out = response.getWriter();
          try {
              out.println( resTx );
          } finally { 
              out.close();
          }
      } 
      
      public void store( String info ){
          // accesso e memorizzazione
          File db = new File("store.txt");
          FileOutputStream canale;
          try {
              canale = new FileOutputStream(db, true);
              PrintStream writer = new PrintStream(canale);
              writer.println(info);
          } 
          catch (FileNotFoundException e) {
              e.printStackTrace();
          }
      }
      
      
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          processRequest(request, response);
      } 
      
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
          processRequest(request, response);
      }
      
      public String getServletInfo() {
          return "Short description";
      }
      

      }

      Qualcuno potrebbe aiutarmi??
      postato in Coding
      I
      ijim
    • RE: problemi con javax.servlet

      Grazie adesso provo e poi vi faccio sapere

      postato in Coding
      I
      ijim
    • Qualche dubbio

      Salve a tutti, ho creato un paio di pagine web, e sto iniziando a smanettare con Ajax! E fin qui nessun problema, per far funzionare ajax però so che sul server la richiesta deve arrivare ad un file .class e fin qui nessun problema...
      ma ci sono un paio di cose che mi stanno danno un pò di rogna:

      1. quando vado a scrivere il codice su eclipse mi dice che non trova il package javax.servlet, nonostante abbia istallato la j2ee

      2. non so come fare a istallare il plugIn wtp per eclipse ( WebToolProject ) che permette di scrivere codice su eclipse in javascript, xhtml e css

      3. non so niente di Apache TomCat

      ringrazio tutti quelli che mi daranno un aiuto....

      postato in Coding
      I
      ijim
    • RE: problemi con javax.servlet

      Grazie per il consiglio, ma continua a nn funzionare...

      postato in Coding
      I
      ijim
    • problemi con javax.servlet

      Salve a tutti, mi sono accorto che eclipse nn mi carica quando scrivo:

      
      import javax.servlet.*;
      
      ```perchè nel package javax nn ci sono le classi servlet, come faccio a mettercele????
      Grazie.
      postato in Coding
      I
      ijim