Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19377 > unrolled thread
| Started by | justaguy <lichunshen84@gmail.com> |
|---|---|
| First post | 2013-04-20 11:57 -0700 |
| Last post | 2013-04-20 18:32 -0700 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.javascript
How to re-size multiple DIVs dynamically with drag? justaguy <lichunshen84@gmail.com> - 2013-04-20 11:57 -0700
Re: How to re-size multiple DIVs dynamically with drag? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-20 21:43 +0200
Re: How to re-size multiple DIVs dynamically with drag? justaguy <lichunshen84@gmail.com> - 2013-04-20 14:29 -0700
Re: How to re-size multiple DIVs dynamically with drag? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-20 23:57 +0200
Re: How to re-size multiple DIVs dynamically with drag? Tim Streater <timstreater@greenbee.net> - 2013-04-20 22:59 +0100
Re: How to re-size multiple DIVs dynamically with drag? justaguy <lichunshen84@gmail.com> - 2013-04-20 18:32 -0700
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2013-04-20 11:57 -0700 |
| Subject | How to re-size multiple DIVs dynamically with drag? |
| Message-ID | <e0303ef0-c893-46c8-8c25-105a4857ed4a@googlegroups.com> |
Hi all,
I have a page divided with 3 divs. Please see below. What I want to do is to be able to drag the middle navigation div to change the width of both the left and right divs, if dragged to left, decrease left div and increase right div and vice verse. Is it doable?
Many thanks.
<div id="leftDiv" style="width: 48%; float:left; vertical-align:top">
left column <br/>
rising sales from its Windows and Office software products
</div>
<div style="width: 2%; float:left; vertical-align:top" onDrag="if (left) {leftDiv-} else {rightDiv-}">
Nav controller
</div>
<div id="rightDiv" style="width: 50%; vertical-align:top; float:right;">
Content in the right div
</div>
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-04-20 21:43 +0200 |
| Message-ID | <1671655.QBiOOBingg@PointedEars.de> |
| In reply to | #19377 |
justaguy wrote:
> I have a page divided with 3 divs. Please see below. What I want to do is
> to be able to drag the middle navigation div to change the width of both
> the left and right divs, if dragged to left, decrease left div and
> increase right div and vice verse. Is it doable?
Yes.
> Many thanks.
>
> […]if
> (left) {leftDiv-} else {rightDiv-}
> […]
But this is not even remotely syntactically valid code. RTFM, STFW, UTFEC¹.
_____
¹ Use the F… Error Console
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2013-04-20 14:29 -0700 |
| Message-ID | <3fa6b807-ec63-4174-a48b-a45a08e6cc2a@googlegroups.com> |
| In reply to | #19379 |
On Saturday, April 20, 2013 3:43:47 PM UTC-4, Thomas 'PointedEars' Lahn wrote:
> justaguy wrote:
>
>
>
> > I have a page divided with 3 divs. Please see below. What I want to do is
>
> > to be able to drag the middle navigation div to change the width of both
>
> > the left and right divs, if dragged to left, decrease left div and
>
> > increase right div and vice verse. Is it doable?
>
>
>
> Yes.
Please elaborate.
>
>
> > Many thanks.
>
> >
>
> > […]if
>
> > (left) {leftDiv-} else {rightDiv-}
>
> > […]
>
>
>
> But this is not even remotely syntactically valid code. RTFM, STFW, UTFEC¹.
You're correct. That's my "wish".
>
>
> _____
>
> ¹ Use the F… Error Console
>
> --
>
> PointedEars
>
>
>
> Twitter: @PointedEars2
>
> Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-04-20 23:57 +0200 |
| Message-ID | <1558841.OttPiFFYqN@PointedEars.de> |
| In reply to | #19382 |
justaguy wrote: > Thomas 'PointedEars' Lahn wrote: >> But this is not even remotely syntactically valid code. RTFM, STFW, >> UTFEC¹. > > You're correct. That's my "wish". RTFM: <http://jibbering.com/faq/> <http://PointedEars.de/faq> <https://developer.mozilla.org/docs/JavaScript> STFW: <http://google.com/search?q=javascript+syntax&filter=0> UTFEC: <http://chromium.org/devtools> <https://twitter.com/igrigorik/status/325262328914403329> <http://getfirebug.com/> <http://www.google.com/search?q=internet+explorer+developer+tools&filter=0> <http://dev.opera.com/articles/view/introduction-to-opera-dragonfly/> <http://www.google.com/search?q=javascript+%28+error+OR+script%29+console&filter=0> -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2013-04-20 22:59 +0100 |
| Message-ID | <timstreater-1327AA.22594520042013@news.individual.net> |
| In reply to | #19382 |
In article <3fa6b807-ec63-4174-a48b-a45a08e6cc2a@googlegroups.com>, justaguy <lichunshen84@gmail.com> wrote: > On Saturday, April 20, 2013 3:43:47 PM UTC-4, Thomas 'PointedEars' Lahn wrote: > > justaguy wrote: > > > I have a page divided with 3 divs. Please see below. What I want to do is > > > to be able to drag the middle navigation div to change the width of both > > > the left and right divs, if dragged to left, decrease left div and > > > increase right div and vice verse. Is it doable? > > Yes. > Please elaborate. Don't bother with PointyHead, he's just being his usual helpful self. I just emailed you an example. -- Tim "That excessive bail ought not to be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2013-04-20 18:32 -0700 |
| Message-ID | <817504c8-74ab-4ec4-ac8c-5277618a24d8@googlegroups.com> |
| In reply to | #19387 |
On Saturday, April 20, 2013 5:59:45 PM UTC-4, Tim Streater wrote: > In article <3fa6b807-ec63-4174-a48b-a45a08e6cc2a@googlegroups.com>, > > justaguy <lichunshen84@gmail.com> wrote: > > > > > On Saturday, April 20, 2013 3:43:47 PM UTC-4, Thomas 'PointedEars' Lahn wrote: > > > > justaguy wrote: > > > > > > > I have a page divided with 3 divs. Please see below. What I want to do is > > > > > to be able to drag the middle navigation div to change the width of both > > > > > the left and right divs, if dragged to left, decrease left div and > > > > > increase right div and vice verse. Is it doable? > > > > > > Yes. > > > > > Please elaborate. > > > > Don't bother with PointyHead, he's just being his usual helpful self. I > > just emailed you an example. Thank you, Tim, I'll try it out. > > > -- > > Tim > > > > "That excessive bail ought not to be required, nor excessive fines imposed, > > nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web