[WebDNA] responsive designs rows

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 113952
interpreted = N
texte = 1552 --0000000000001885610563fba571 Content-Type: text/plain; charset="UTF-8" I'm finally diving into the responsive web design world and having trouble grasping the grid system and I came across a problem. Designing a real estate website I wanted the *first row* "featured listings". However, when the grid collapses I end up with multiple rows of "featured listings". So I spent two days working a solution. Mind you, I'm a novice! What the code below does... It sends the width ON "load" to an external page with the correct about of "featured listings" to properly fit my "180 px width"
AND recalculates it and when the web page is stretched! You do have to play with and allow for padding and such, but it will give you that single row of "*featured listings*"! ------------------- Test.tpl: Load
--------------------------- external file: featured.tpl [text]NUM=[format 8.0f][math]([LOAD] - 95) /200[/math][/format][/text] [search db=../0.0.0.0.0.0.0.0.01.00.L1.COUNTRIES.DB&neL0datarq=WTF&max=[NUM]]NUM=[NUM] [founditems][L1.Territory.LG],[/founditems] [/Search] --------------------------- --0000000000001885610563fba571 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm finally diving into the responsive web design worl= d and having trouble grasping the grid system and I came across a problem. = Designing a real estate website I wanted the first row "feature= d listings". However, when the grid collapses I end up with multiple r= ows of "featured listings". So I spent two days working a solutio= n. Mind you, I'm a novice! What the code below does... It sends the wid= th ON "load" to an external page with the correct about of "= featured listings" to properly fit my "180 px width" <div= > AND recalculates it and when the web page is stretched! You do have to= play with and allow for padding and such, but it will give you that single= row of "featured listings"!
-------------------
=
Test.tpl:

<!DOCTYPE html>
<html>
<head>
<script src=3D"ht= tps://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">= ;</script>

<script>
$(docume= nt).ready(function(){
=C2=A0{$("#div1").load("feat= ured.tpl?LOAD=3D" + $(window).width());}
});

<= /div>
var resizeTimer;
$(window).on('resize', functio= n() {
=C2=A0 clearTimeout(resizeTimer);
=C2=A0 resizeTi= mer =3D setTimeout(function() {
=C2=A0{$("#div1").load(= "featured.tpl?LOAD=3D" + $(window).width());}
=C2=A0 },= 600);
});
</script>

</head>
<body>
Load<hr>
<div id=3D"div1"></div>

=
<form method=3Dpost action=3D"[thisurl]">
&l= t;input id=3D"clientWidth" type=3D"text" name=3D"w= idth" value=3D"">
<input type=3D"submit= " value=3D"refresh">
</form>
<script>=C2=A0
=C2=A0 document.getElementById(= "clientWidth").value =3D document.documentElement.clientWidth;
</script>

</body>
&l= t;/html>
---------------------------
external = file:=C2=A0featured.tpl

[text]NUM=3D[format 8= ..0f][math]([LOAD] - 95) /200[/math][/format][/text]

[search db=3D../0.0.0.0.0.0.0.0.01.00.L1.COUNTRIES.DB&neL0datarq=3DWT= F&max=3D[NUM]]NUM=3D[NUM]
[founditems][L1.Territory.LG],[/fou= nditems]
[/Search]
---------------------------
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --0000000000001885610563fba571-- . Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] responsive designs rows (Brian Harrington 2018)
1552 --0000000000001885610563fba571 Content-Type: text/plain; charset="UTF-8" I'm finally diving into the responsive web design world and having trouble grasping the grid system and I came across a problem. Designing a real estate website I wanted the *first row* "featured listings". However, when the grid collapses I end up with multiple rows of "featured listings". So I spent two days working a solution. Mind you, I'm a novice! What the code below does... It sends the width ON "load" to an external page with the correct about of "featured listings" to properly fit my "180 px width"
AND recalculates it and when the web page is stretched! You do have to play with and allow for padding and such, but it will give you that single row of "*featured listings*"! ------------------- Test.tpl: Load
[thisurl]">
--------------------------- external file: featured.tpl [text]NUM=[format 8.0f][math]([LOAD] - 95) /200[/math][/format][/text] [search db=../0.0.0.0.0.0.0.0.01.00.L1.COUNTRIES.DB&neL0datarq=WTF&max=[NUM]]NUM=[NUM] [founditems][L1.Territory.LG],[/founditems] [/Search] --------------------------- --0000000000001885610563fba571 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm finally diving into the responsive web design worl= d and having trouble grasping the grid system and I came across a problem. = Designing a real estate website I wanted the first row "feature= d listings". However, when the grid collapses I end up with multiple r= ows of "featured listings". So I spent two days working a solutio= n. Mind you, I'm a novice! What the code below does... It sends the wid= th ON "load" to an external page with the correct about of "= featured listings" to properly fit my "180 px width" <div= > AND recalculates it and when the web page is stretched! You do have to= play with and allow for padding and such, but it will give you that single= row of "featured listings"!
-------------------
=
Test.tpl:

<!DOCTYPE html>
<html>
<head>

<script>
$(docume= nt).ready(function(){
=C2=A0{$("#div1").load("feat= ured.tpl?LOAD=3D" + $(window).width());}
});

<= /div>
var resizeTimer;
$(window).on('resize', functio= n() {
=C2=A0 clearTimeout(resizeTimer);
=C2=A0 resizeTi= mer =3D setTimeout(function() {
=C2=A0{$("#div1").load(= "featured.tpl?LOAD=3D" + $(window).width());}
=C2=A0 },= 600);
});
</script>

</head>
<body>
Load<hr>
<div id=3D"div1"></div>

=
<form method=3Dpost action=3D"[thisurl]">
&l= t;input id=3D"clientWidth" type=3D"text" name=3D"w= idth" value=3D"">
<input type=3D"submit= " value=3D"refresh">
</form>
<script>=C2=A0
=C2=A0 document.getElementById(= "clientWidth").value =3D document.documentElement.clientWidth;
</script>

</body>
&l= t;/html>
---------------------------
external = file:=C2=A0featured.tpl

[text]NUM=3D[format 8= ..0f][math]([LOAD] - 95) /200[/math][/format][/text]

[search db=3D../0.0.0.0.0.0.0.0.01.00.L1.COUNTRIES.DB&neL0datarq=3DWT= F&max=3D[NUM]]NUM=3D[NUM]
[founditems][L1.Territory.LG],[/fou= nditems]
[/Search]
---------------------------
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --0000000000001885610563fba571-- . Brian Harrington

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Don't know if this is a sily question... (2003) Help with Shipping Costs (1997) [WebDNA] WebDNA Email Auth Functioning? (2014) WebCat b15 Mac plug-in (1997) 3.0 [TEXT] variables (1998) show all problem (1997) [carts] and databases (1997) WebCat virtual postcard is done! Thanks for the help! (1998) Some ThankYou page problems (1997) Carts & cookies (1999) WebDNA 4.5.1 Now Available (2003) FlushDatabases (2000) Today's suggestions (1998) Extended [ConvertChars] (1997) Bug or syntax error on my part? (1997) RE: [WebDNA] making all fields on a form mandatory (2013) Signal Raised Error (Part III) (1997) Sort Order on a page search (1997) URGENT! ACGI Stopped!!!! (1997) Webcatalog error, Plug-in for Webstar (1996)