парсить значение ord и math, ниже все как я это делаю.  
                  
                  
                  
                  
                  
                  function parseUrl()
                  
                  
                  {
                  
                  
                     url = “ezamples.com” // генерирую линк
                  
                  
                     const urlParams = new          URLSearchParams(window.location.search);
                  
                  
                     const ord = urlParams.get('ord');
                  
                  
                     const math = urlParams.get('math')
                  
                  
                     httpGet(url,ord, math)
                  
                  
                  }
                  
                  
                  
                  
                  
                  Затем отправляю запрос 
                  
                  
                  
                  
                  
                  
                  
                  
                  function httpGet(theUrl, ord, math)
                  
                  
                  {
                  
                  
                      var xmlHttp = new XMLHttpRequest();
                  
                  
                      xmlHttp.open( "POST", theUrl, false ); // false for synchronous request
                  
                  
                      xmlHttp.send( null );
                  
                  
                      return xmlHttp.responseText;
                  
                  
                  }
                  
                  
                  
                  
                  
                  
                  
                  
                  Отправляю запрос ^^
                  
                  
                  
                  
                  
                  Написал своё гавно только что. В жсе я не очень. Нужны Советы и поправки где в моем гавне, ошибки?
                  
                  
                
открой для себя fetch
Обсуждают сегодня