Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40295

Re: Select in one device but view on another

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Select in one device but view on another
Date 2021-07-14 02:28 +0200
Organization PointedEars Software (PES)
Message-ID <1936879.oMNUckLgyt@PointedEars.de> (permalink)
References <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> 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?

<http://www.catb.org/~esr/faqs/smart-questions.html>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-08 08:51 +1000
  Re: Select in one device but view on another JJ <jj4public@gmail.com> - 2021-07-08 06:04 +0700
  Re: Select in one device but view on another Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-07-07 23:09 +0000
    Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-08 12:57 +1000
      Re: Select in one device but view on another "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-07-11 14:33 -0700
  Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 02:28 +0200
    Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 02:53 +0200
      Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-14 15:15 +1000
        Re: Select in one device but view on another Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-07-14 23:19 +0200
          Re: Select in one device but view on another Andrew Poulos <ap_prog@hotmail.com> - 2021-07-15 09:01 +1000

csiph-web