Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-08 17:37:28

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

XAMPP, localhost and testing for responsive design...

Once you have a design for Textpattern set up in a XAMPP installation, how do you view it on a phone or tablet to test for responsiveness?

Thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#2 2014-03-08 20:26:18

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: XAMPP, localhost and testing for responsive design...

Firefox Web Developer/Responsive Design View gives you a rough idea.

Edit: or you could somehow put your xampp server online.

Last edited by etc (2014-03-08 20:28:30)

Offline

#3 2014-03-08 21:37:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: XAMPP, localhost and testing for responsive design...

This viewport resized bookmarklet allows you to do similar things to the firefox responsive design view but also works in other browsers.

If you’re running your test site using XAMPP on localhost (i.e. not in a virtualhost with a made-up url) and your mobile devices are on the same network, you should be able to simply determine the IP of your computer in your local network (often 192.168.xxx.xxx) and plug that into your mobile device. See this tutorial for an example. That may be all you need.

Another option would be me to use dyndns which you can activate temporarily. It gives you an internet address that is in effect a gateway to your localhost on your computer. You can then plug that dyndns address in your mobile devices. You don’t have to put your site online or install it anywhere. There are lots of tutorials on the internet: google for xampp and dyndns. MAMP Pro (similar to xampp) provides in-built dyndns setup options but not sure if XAMPP does.

There are a few other programs that provide multi-device testing with live-refresh such as ghostlab, Adobe Edge Inspect, browsersync, prepos or mixture.io. There are also further options as discussed in this article on synchronised cross-device testing. Of those I’ve only ever used mixture.io, which also has a whole host of other useful webdev stuff. You can also use it entirely without textpattern for prototyping a layout but it also has a so-called simple mode that provides you with live refresh using your own mamp/wamp/xampp setup. It’s not free (likewise most of the other ones mentioned) but there’s a fully working 14 day trial.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2014-03-08 22:19:52

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: XAMPP, localhost and testing for responsive design...

In Safari I use the ResponsiveResize extension.

Offline

#5 2014-03-09 01:26:43

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: XAMPP, localhost and testing for responsive design...

Thanks for all the replies. These suggestions expose another gaping hole in my knowledge before moving my sites from TextDrive to a new host. Again, many thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#6 2014-03-09 02:24:38

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: XAMPP, localhost and testing for responsive design...

By the way, for a XAMPP installation of Textpattern on a Windows PC, should the Site URL in Textpattern’s preferences be: localhost/mysite OR /localhost/mysite/ OR just mysite?

Again, thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#7 2014-03-10 10:18:53

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: XAMPP, localhost and testing for responsive design...

GugUser wrote #279596:

In Safari I use the ResponsiveResize extension.

+1.

Offline

#8 2014-03-10 12:04:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: XAMPP, localhost and testing for responsive design...

6sigma wrote #279604:

By the way, for a XAMPP installation of Textpattern on a Windows PC, should the Site URL in Textpattern’s preferences be: localhost/mysite OR /localhost/mysite/ OR just mysite?

localhost is a domain; a loopback back to your local interface (127.0.0.1).

  • it doesn’t start with a slash
  • it can’t be just mysite unless its a loopback you have created that resolves back to your local machine

The site URL always consists of:

domain | ipv4 | ipv6 [:[port]] [/path/to/site]
  • mandatory fully qualifiable IP address or domain name
  • follow by an optional port number, if its something else than 80 (HTTP) or 443 (HTTPS)
  • followed by an optional path to the install location from the web server’s document root

Offline

#9 2014-03-26 10:34:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: XAMPP, localhost and testing for responsive design...

I know that a couple of weeks have passed since the last comment here but I just came across xip.io/ which might be of help


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB