« first day (3750 days earlier)      last day (1183 days later) » 
07:00 - 20:0020:00 - 00:00

8:01 PM
JQuery the solution to everything
 
Oh, I forgot to flip the boolean value
This still doesn't work, even after adding clicked = !clicked;:
<script>
    const $ = document.querySelector.bind(document);

        $(".buttonOne").addEventListener("click", (e) => {
            let clicked = false;
            if (clicked)
            {
                e.target.innerText = "Forget";
            } else {
                e.target.innerText = "Connect";

            }

            clicked = !clicked;
        });

        $(".buttonTwo").addEventListener("click", (e) =>
        {
            let clicked = false;
            if (clicked)
            {
 
user14692552
How did this break???jsfiddle.net/53wdL47g
 
user14692552
I altered the JSON just a bit, and now it wont work
 
@BlackPanther please make an mcve
|| mcve
 
Invalid command! Did you mean: msie, dice, mcve? Try help for a list of available commands..‍.‍.‍.‍.‍.‍
If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
user14692552
8:12 PM
@JBis I want to turn my SharePoint list info just into JSON so I created a script that should run on page load that way I can see it in the console but its telling me Unexpected end of input?
 
user14692552
<script>
var  myJsonString; //To store the data into JSON format
    function GetSampleListItems() {
        siteURL = _spPageContextInfo.siteAbsoluteUrl;
        var apiPath = siteURL + "/_api/lists/getbytitle('NFLReport')/items";
        $.ajax({
            url: apiPath,
            headers: {
                Accept: "application/json;odata=verbose"
            },
            async: false,
            success: function(data) {
                if(data.d.results.length>0)
                {
                  myJsonString = JSON.stringify(data);
 
user14692552
shouldn't this be enough?
 
@JBis For an html like this, I am trying to make the buttons toggleable:
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <button class="buttonOne">Toggleable Connect</button>
    <button class="buttonTwo">Connect</button>
    <button class="buttonThree">Connect</button>
    <script src="script.js"></script>
  </body>
</html>
 
user14692552
8:27 PM
NEvermind you cant GET a field that is a lookup field? Since when has this been an issue
 
9:00 PM
@BlackPanther If you still cant debug your issue, Id suggest just forking / copying this project's EXACT code and using it repl.it/@skylerspark/test#index.html
Are you just using raw HTML files in a file explorer or something?
Because it could be that your script isnt even being referenced
 
@MisterSirCode No, I'm working in an ASP.NET Core MVC .cshtml razor file
 
are you good at c# because you are making a bunch of mistakes that are language agnostic?
 
@JBis What mistakes?
@MisterSirCode copying and pasting your code changes the text for a split second, it does not stay toggled
Why doesn't this code work?
<p id="demo"></p>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {

    $(".buttonOne").click(
        function () {
            if (this).text(function (i, text) => {
                return text === "Connect"? "Forget" : "Connect";
            })

        })

        function()
        {
            $("#demo").html("Hello, World!");

        }
})
</script>
What a waste of time
I see why typescript is so popular.
 
9:33 PM
HeyGuys
 
@MaxCoplan Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
This API designed to be way to complex. I'm sorry but favicon.ico is basically a standard but this is well insane.
26
Q: How to get high resolution website logo (favicon) for a given URL

HarishI'm developing a web browser on Android and want to show the URL logo for the most visited sites like in Chrome (4 X 2). But the problem is that most favicons (eg: http://www.bbc.co.uk/favicon.ico) are of size either 16X16 or 32X32 and they don't look good when scaled up. Is there a way I can d...

 
10:02 PM
he left out the manifest file so its not even a complete example
 
 
1 hour later…
11:23 PM
Where can I find the best live ReactJS chat?
I am using context to serve the results of an async call. I want a function in a downstream component to execute when that async call is resolved. How can I implement this?
 
11:50 PM
@GeoffreyHale can you show an example? codesandbox.io
 
07:00 - 20:0020:00 - 00:00

« first day (3750 days earlier)      last day (1183 days later) »