70 Solved Topics
Remove Filter **Full error:** *xengine.js:2 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode* I have **no framework**. This is pure flat HTML, CSS and JavaScript. HTML goes on like this (up to relevant moment): http://pastebin.com/s8s2KLmt And the JavaScript (starting from line 1, no additional files, entire … | |
I'm working on certain PHP-skill-teaser. No background is really needed as error is purely PHP-based. The [PasteBin](http://pastebin.com/N8UKt1JW). I have double do-while in there, however I can't modify variables from within that loop, they simply don't affect the variable anyhow. I have tried a lot of solutions, including those about `$GLOBALS` … | |
*Story happens in imaginary universe, but I'm using current time "relativation".* vmWare Player type of application (but for free). I consider adding it to Open Source because everybody is saying how great it is and how fast bugs can be fixed. There's couple stories to be told: **Side of Manager** … | |
Doesn't exist. But I would love that it did. 2 days ago, I made search for it, I found this one pearl of a function, you just called it and it would perform just that. Today, I can't find it for heavens. I have been through about 5 fiddle's, about … | |
Hi. Has anyone maybe found this miraculous software. That I could install on Windows/Linux machine (server) and client on my own computer let it be Windows/Linux. And have really great response time and quality? The server would be at 100Mbps, my connection would be at around 50Mbps. If my machine … | |
In forum: "Web Development Discussion Community". I sought for unanswered topics, one of them being [this one](https://www.daniweb.com/web-development/aspnet/threads/498270/mvc). What's weird is in the [forum view](https://www.daniweb.com/web-development/31), the content of post mentions *Create a realtime notification in mvc aplication. It can be an alert notification.*, while the [topic itself](https://www.daniweb.com/web-development/aspnet/threads/498270/mvc) says *How to create … | |
I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. … | |
I'd like to create `/admin.php` page, which would have AJAX request, sent over to `/core/adm/index.php`, that's easy, basic AJAX request will do just that. But I don't want any direct access to `/core/adm/index.php`, I want it to be accessed only by AJAX request from `/admin.php`. Is there a way to … | |
I needn't even explain it, look it up. You needn't to click anything, just zoom-in 10%, then zoom out as far as you can, and notice how table cell and a div, go full on agression. View website itself under `5millionpixels-##.comlu.com`, (no I'm not a bot, but files are PHP, … | |
$replacedString = str_replace(array_keys($array1), $array1, $externalVariableString); I have an entire array above that called `$championToIdConversionArray`, it has about 650 switches, it looks something like this $array1 = array( "1" => "Banana", "12" => "Monkey", "2" => "Apple", "121" => "Human" ); Now if I let script parse numbers "121", it won't … | |
When I started videogame on my computer, I used i3-3217U with Intel HD Graphics 4000. GPU works at 350MHz (1.05GHz with Turbo). Runned nicely on 50FPS. When I tried passing this game to a friend, from the very installer, the game has been installed and all it's requirements have been … | |
How can I verify if programs that I'm using, if their traffic is going through VPN? I know I can go to random website using browser and check-up my IP. But it's a browser, I don't know if "my VPN provider" also "censors" traffic for/from all other programs besides browser. … | |
I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { … | |
I tried playing with AJAX a bit. This is just the chunk of JavaScript I got. // FIRST TIME REQUIREMENT var interAction = new XMLHttpRequest(); var responseAJAX; interAction.onreadystatechange = function() { if (interAction.readyState == 4 && interAction.status == 200) { alert(interAction.responseText); responseAJAX = interAction.responseText; } } alert("inside"); interAction.open("GET", "ss-controller.php?req=freshStart", true); … | |
Up there I have constant **Messages (1)** counter, but when I click on it, no new message appears. I cleared cache, I cleared cookies, I cleared my browsing history, I logged out, I logged back in. It's still there, I checked my messagebox, no inbox messages that are new. @edit … | |
When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely has PHP been programmed in C++. - How well C++ compiler of interpreter of PHP has been programmed. - How … | |
On certain websites you can order laptops, and sometimes even they allow you to change certain parts of it. Let's take the example of HDD, the website offered quite an amount of types of HDD's. The largest HDD they can deliver to the laptop is 2TB, could I instead ask … | |
I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do … | |
Recently I got interested into dynamic execution of scripts. That is, user clicks the button and the JavaScript part (or any other library attached to it) will send a request to a file with `$_GET[]` or `$_POST[]` data. Then PHP (preference) would execute the function or anything that it has … | |
The code beneath, is one chunk of code (after "Three."), both `<?php` and `?>` are parts excluded from parsing. 1. One 2. Two. 3. Three. <?php $images = glob("*.png"); $folderRoot = "http://" . $_SERVER["HTTP_HOST"] . dirname($_SERVER["PHP_SELF"]); foreach($images as $imageName) { $imageUrl = $folderRoot . "/" . $imageName; echo "<a href=" … |