Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.178.197.196.134!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Select in one device but view on another Date: Wed, 14 Jul 2021 02:28:27 +0200 Organization: PointedEars Software (PES) Lines: 72 Message-ID: <1936879.oMNUckLgyt@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.196.134"; logging-data="23387"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.10 Cancel-Lock: sha1:WVX/CfMWES8dWzM3hrcT7ilfM10= X-User-ID: U2FsdGVkX18Zp00olI4OGpqqSyxJ3joCQeNq/I+kAp3opTsbgj9U+A== Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. There's an elearning web page I'm working on. It generates a quiz (as a > collection of a HTML page, JavaScript, and images) that gets downloaded. This can be easily be tampered with. > The quiz needs to be responsive ie also run well on a phone. OK. > Within the elearning page there's a button which will generate a live > version of the quiz for testing purposes. Meaning? > I work with a desktop computer to test the quiz on a phone I have to > either download the quiz, upload it to a server or to run the elearning --------------------------^ > page on a phone and then launch the test from there. Parse error. > I was wondering if there's a way I can work on a desktop computer but > more easily test on a phone. Set up a Web server either A) on the desktop computer or B) on another computer that acts as a remote server that can be accessed with the desktop computer and the mobile phone alike. In case B you will also have to synchronize your code with the remote server; special possibilities include opening files on the server in your IDE via SSH, in which case the synchronization is implicit. I am occasionally using case A: I am using my mobile phone as an Internet modem for my laptop (i.e. I am using mobile tethering via WLAN), which also means that the phone and the laptop are in the same network. I can therefore use the IP address assigned to the laptop’s WLAN adapter (by the mobile phone) to access Web sites on the local (development) Web server on the laptop from the mobile phone. I had to configure the Web server so that it reacts to that IP address which, fortunately, appears to be static (maybe it is based on the MAC address of the WLAN adapter of the laptop): $ head /etc/apache2/sites-available/local ServerName localhost ServerAlias 127.0.0.1 […] # home […] ServerAlias 192.168.x.y whereas the latter address is IPv4 address assigned to my laptop’s WLAN adapter. > I have a library that can create valid QR > codes that my phone can read and thought that it might be useful. QR codes for what? > Alas I can't really see how I can view a website on one device and have > the output display on another. That is something else than you have asked above. > Does anyone have any ideas on this? -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.