Re: emulate desktop multi-windows

2018-01-19 Thread johnf
Thank you very much - I was about to check out EXTjs along with 
DojotoolKit today.


It looks like I might be able to get this done using web tech.

Johnf


On 01/19/2018 02:42 AM, Jani Tiainen wrote:


Hi,

Also Dojotoolkit has windows (or actually Dijit does which is part of 
Dojotoolkit):


https://dojotoolkit.org/reference-guide/1.10/dojox/layout/FloatingPane.html

To my knowledge also Kendo UI does have such a window you're looking for.

On 19.1.2018 0.10, johnf wrote:


I believe I understand what you are saying.  But I was hoping that 
Django offered the javascript framework that allowed multi-windows.  
To get what I want I will have to use a javascript framework - I 
understand.  But that said, I have been researching several of the 
javascript frameworks and they do in fact allow new tabs (using 
chrome).  Example: google mail will allow multi-pages (actually tabs) 
of contacts just with multi clicks on the GMAIL dropdown.  But that 
wasn't what I was hoping for - I want individual windows/forms that I 
can resize, move, Max, Min, etc... So far the only thing I have found 
was the electron  app I spoke about earlier.  The electron framework 
allowed windows that can be resized, moved about the screen, and 
closed.  I am still researching but so far only Electron.  BTW the 
Electron is really a desktop app using web tools (css, html, 
javascript, and nodejs).  I'm guessing (mostly from your emails) that 
there are javascript frameworks that will allow what I looking for - 
I  just haven't found it YET!


Johnf


On 01/18/2018 11:12 AM, Andréas Kühne wrote:

No John,

I don't think you understand what we are saying :-)

Like I said earlier - Django is a HTML framework - like ALL HTML 
framework, it renders the pages you are seeing on the backend and 
presents the information to the user. That is per design in the HTML 
world. You click on a link and then the server renders a new page 
and so on. There is no way to add "windows" in any other way than to 
open a new browser. That is the way HTML works.


If you want to add a fancy single page application (which  is what 
you are suggesting) then the only way to do so is to use a 
Javascript framework of some kind. What that does is to add the 
ability to do windows and the like - just in the way you want to do 
it - and that is still within the "web UI wold". If you look at 
things like the google cloud engine interface or gmail or the amazon 
AWS interface, that is all done on the web, with a web UI. However 
all of those pages REQUIRE javascript to function.


So it is often requested and I am currently working on a single page 
application that uses django for the backend, but HTML cannot render 
the single page application - that is done in a javascript 
framework. So web UI is completely on par with a desktop application 
but it requires more components that you are willing to use :-)


Regards,

Andréas

2018-01-18 19:26 GMT+01:00 johnf >:


The reason I wanted Django was to insure that the data is valid
(using python).   When they enter the data and the submit button
is clicked I want to be able to modify the response using python.

So what I'm hearing from the list - is that in general - people
are not using the Django template system.  Is that right?

I have been doing a little research and have discovered a couple
of javascript tools that allow multi -
windows/forms/dialogs/frames.   But then - like you said - I'm
replacing the Django template system.

It seems that web UI is still not up to the desktop abilities. 
That's not good.  BTW I was looking at Electron and discovered
that it can easily match the desktop multi-window and it's using
web tech.  So I'm guessing it is possible but not often requested.

Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages
render one page at a time in one webbrowser window. That is the
way HTML works.

You can via javascript do some funky things, like Single page
applications - but then most of the templating engine in django
isn't used. You could create templates on the backend and send
them via ajax to the frontend but that is mainly used for
rendering partial pages and not for complete pages. Also, it
would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at
all? Django isn't the best framework for getting information
from a REST API and then publishing the information. You really
should be looking into running a single page application in
that case...

Django can be used to create a REST backend for the single page
application however.

Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf 

Re: emulate desktop multi-windows

2018-01-19 Thread Jason
In other words, Django has the ability to generate HTML from the context 
you provide it, which is then rendered by the browser.  It doesn't have the 
ability to manipulate as you want because you need to set up a method for 
the browser to communicate back to the server.

That's what people here are saying.  You have the ability to handle 
requests, process data and return responses with django.  Now you need to 
use browser-side development in order to have your users *consume* and 
*interact* with your Django application.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/331d45f2-37ab-4a90-a3f6-65bc171b3a99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-19 Thread Andréas Kühne
HI John,

Django is a HTML framework - you would need to add the javascript part
yourself - that's just the way it works.

There are several different ways of doing what you want, here are a couple
of examples:
http://www.qooxdoo.org/current/widgetbrowser/
https://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml

I wouldn't use qooxdoo, but the dialogs are nice :-)

It's really just a matter of searching google

Look into which JS framework you want to use and then the ui will solve
itself.

Regards,

Andréas

2018-01-18 23:10 GMT+01:00 johnf :

> I believe I understand what you are saying.  But I was hoping that Django
> offered the javascript framework that allowed multi-windows.  To get what I
> want I will have to use a javascript framework - I understand.  But that
> said, I have been researching several of the javascript frameworks and they
> do in fact allow new tabs (using chrome).  Example: google mail will allow
> multi-pages (actually tabs) of contacts just with multi clicks on the GMAIL
> dropdown.  But that wasn't what I was hoping for - I want individual
> windows/forms that I can resize, move, Max, Min, etc... So far the only
> thing I have found was the electron  app I spoke about earlier.  The
> electron framework allowed windows that can be resized, moved about the
> screen, and closed.  I am still researching but so far only Electron.  BTW
> the Electron is really a desktop app using web tools (css, html,
> javascript, and nodejs).  I'm guessing (mostly from your emails) that there
> are javascript frameworks that will allow what I looking for - I  just
> haven't found it YET!
>
> Johnf
>
> On 01/18/2018 11:12 AM, Andréas Kühne wrote:
>
> No John,
>
> I don't think you understand what we are saying :-)
>
> Like I said earlier - Django is a HTML framework - like ALL HTML
> framework, it renders the pages you are seeing on the backend and presents
> the information to the user. That is per design in the HTML world. You
> click on a link and then the server renders a new page and so on. There is
> no way to add "windows" in any other way than to open a new browser. That
> is the way HTML works.
>
> If you want to add a fancy single page application (which  is what you are
> suggesting) then the only way to do so is to use a Javascript framework of
> some kind. What that does is to add the ability to do windows and the like
> - just in the way you want to do it - and that is still within the "web UI
> wold". If you look at things like the google cloud engine interface or
> gmail or the amazon AWS interface, that is all done on the web, with a web
> UI. However all of those pages REQUIRE javascript to function.
>
> So it is often requested and I am currently working on a single page
> application that uses django for the backend, but HTML cannot render the
> single page application - that is done in a javascript framework. So web UI
> is completely on par with a desktop application but it requires more
> components that you are willing to use :-)
>
> Regards,
>
> Andréas
>
> 2018-01-18 19:26 GMT+01:00 johnf :
>
>> The reason I wanted Django was to insure that the data is valid (using
>> python).   When they enter the data and the submit button is clicked I want
>> to be able to modify the response using python.
>>
>> So what I'm hearing from the list - is that in general - people are not
>> using the Django template system.  Is that right?
>>
>> I have been doing a little research and have discovered a couple of
>> javascript tools that allow multi - windows/forms/dialogs/frames.   But
>> then - like you said - I'm replacing the Django template system.
>>
>> It seems that web UI is still not up to the desktop abilities.  That's
>> not good.  BTW I was looking at Electron and discovered that it can easily
>> match the desktop multi-window and it's using web tech.  So I'm guessing it
>> is possible but not often requested.
>>
>> Johnf
>>
>> On 01/18/2018 09:48 AM, Andréas Kühne wrote:
>>
>> Hi,
>>
>> I think you are not thinking this completely through correctly.
>>
>> Django is a framework used to generate HTML pages. HTML pages render one
>> page at a time in one webbrowser window. That is the way HTML works.
>>
>> You can via javascript do some funky things, like Single page
>> applications - but then most of the templating engine in django isn't used.
>> You could create templates on the backend and send them via ajax to the
>> frontend but that is mainly used for rendering partial pages and not for
>> complete pages. Also, it would be really cumbersome to write the code.
>>
>> If you already have a REST backend, why do you need django at all? Django
>> isn't the best framework for getting information from a REST API and then
>> publishing the information. You really should be looking into running a
>> single page application in that case...
>>
>> Django can be used to create a REST backend for the single page
>> application however.

Re: emulate desktop multi-windows

2018-01-18 Thread johnf
I believe I understand what you are saying.  But I was hoping that 
Django offered the javascript framework that allowed multi-windows.  To 
get what I want I will have to use a javascript framework - I 
understand.  But that said, I have been researching several of the 
javascript frameworks and they do in fact allow new tabs (using 
chrome).  Example: google mail will allow multi-pages (actually tabs) of 
contacts just with multi clicks on the GMAIL dropdown.  But that wasn't 
what I was hoping for - I want individual windows/forms that I can 
resize, move, Max, Min, etc... So far the only thing I have found was 
the electron  app I spoke about earlier.  The electron framework allowed 
windows that can be resized, moved about the screen, and closed.  I am 
still researching but so far only Electron.  BTW the Electron is really 
a desktop app using web tools (css, html, javascript, and nodejs).  I'm 
guessing (mostly from your emails) that there are javascript frameworks 
that will allow what I looking for - I  just haven't found it YET!


Johnf


On 01/18/2018 11:12 AM, Andréas Kühne wrote:

No John,

I don't think you understand what we are saying :-)

Like I said earlier - Django is a HTML framework - like ALL HTML 
framework, it renders the pages you are seeing on the backend and 
presents the information to the user. That is per design in the HTML 
world. You click on a link and then the server renders a new page and 
so on. There is no way to add "windows" in any other way than to open 
a new browser. That is the way HTML works.


If you want to add a fancy single page application (which is what you 
are suggesting) then the only way to do so is to use a Javascript 
framework of some kind. What that does is to add the ability to do 
windows and the like - just in the way you want to do it - and that is 
still within the "web UI wold". If you look at things like the google 
cloud engine interface or gmail or the amazon AWS interface, that is 
all done on the web, with a web UI. However all of those pages REQUIRE 
javascript to function.


So it is often requested and I am currently working on a single page 
application that uses django for the backend, but HTML cannot render 
the single page application - that is done in a javascript framework. 
So web UI is completely on par with a desktop application but it 
requires more components that you are willing to use :-)


Regards,

Andréas

2018-01-18 19:26 GMT+01:00 johnf >:


The reason I wanted Django was to insure that the data is valid
(using python).   When they enter the data and the submit button
is clicked I want to be able to modify the response using python.

So what I'm hearing from the list - is that in general - people
are not using the Django template system.  Is that right?

I have been doing a little research and have discovered a couple
of javascript tools that allow multi -
windows/forms/dialogs/frames.   But then - like you said - I'm
replacing the Django template system.

It seems that web UI is still not up to the desktop abilities. 
That's not good.  BTW I was looking at Electron and discovered
that it can easily match the desktop multi-window and it's using
web tech.  So I'm guessing it is possible but not often requested.

Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages
render one page at a time in one webbrowser window. That is the
way HTML works.

You can via javascript do some funky things, like Single page
applications - but then most of the templating engine in django
isn't used. You could create templates on the backend and send
them via ajax to the frontend but that is mainly used for
rendering partial pages and not for complete pages. Also, it
would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at
all? Django isn't the best framework for getting information from
a REST API and then publishing the information. You really should
be looking into running a single page application in that case...

Django can be used to create a REST backend for the single page
application however.

Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf >:

I have the backend covered with REST.   When I try to google
hybrid google comes up with hybrid mobile apps.  I did find
fragment.js but I don't see any type of real information on
how to use it.   I did find some info on javascript and
multi-windows but here again it looks like it wants to
replace the template system that Django uses.

It just seems to me that this issue must have come up in the

Re: emulate desktop multi-windows

2018-01-18 Thread Karol Bujaček



On 01/18/2018 05:25 PM, johnf wrote:


I have the backend covered with REST.   When I try to google hybrid 
google comes up with hybrid mobile apps.  I did find fragment.js but I 
don't see any type of real information on how to use it.   I did find 
some info on javascript and multi-windows but here again it looks like 
it wants to replace the template system that Django uses.


It just seems to me that this issue must have come up in the past.  
There must be a solution provided by Django without replacing parts of 
the Django framework


Johnf



Dear Johnf,

You can also take a look at django-jstemplate at 
. From their page:


   A templatetag framework for easier integration of mustache.js
   , dust.js
   , handlebars.js
   , or other JavaScript templates with
   Django templates.


Best regards,
Karol

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0e0a3f5c-5177-d3ec-5501-486b431de837%40fossilgroup.net.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread Andréas Kühne
No John,

I don't think you understand what we are saying :-)

Like I said earlier - Django is a HTML framework - like ALL HTML framework,
it renders the pages you are seeing on the backend and presents the
information to the user. That is per design in the HTML world. You click on
a link and then the server renders a new page and so on. There is no way to
add "windows" in any other way than to open a new browser. That is the way
HTML works.

If you want to add a fancy single page application (which  is what you are
suggesting) then the only way to do so is to use a Javascript framework of
some kind. What that does is to add the ability to do windows and the like
- just in the way you want to do it - and that is still within the "web UI
wold". If you look at things like the google cloud engine interface or
gmail or the amazon AWS interface, that is all done on the web, with a web
UI. However all of those pages REQUIRE javascript to function.

So it is often requested and I am currently working on a single page
application that uses django for the backend, but HTML cannot render the
single page application - that is done in a javascript framework. So web UI
is completely on par with a desktop application but it requires more
components that you are willing to use :-)

Regards,

Andréas

2018-01-18 19:26 GMT+01:00 johnf :

> The reason I wanted Django was to insure that the data is valid (using
> python).   When they enter the data and the submit button is clicked I want
> to be able to modify the response using python.
>
> So what I'm hearing from the list - is that in general - people are not
> using the Django template system.  Is that right?
>
> I have been doing a little research and have discovered a couple of
> javascript tools that allow multi - windows/forms/dialogs/frames.   But
> then - like you said - I'm replacing the Django template system.
>
> It seems that web UI is still not up to the desktop abilities.  That's not
> good.  BTW I was looking at Electron and discovered that it can easily
> match the desktop multi-window and it's using web tech.  So I'm guessing it
> is possible but not often requested.
>
> Johnf
>
> On 01/18/2018 09:48 AM, Andréas Kühne wrote:
>
> Hi,
>
> I think you are not thinking this completely through correctly.
>
> Django is a framework used to generate HTML pages. HTML pages render one
> page at a time in one webbrowser window. That is the way HTML works.
>
> You can via javascript do some funky things, like Single page applications
> - but then most of the templating engine in django isn't used. You could
> create templates on the backend and send them via ajax to the frontend but
> that is mainly used for rendering partial pages and not for complete pages.
> Also, it would be really cumbersome to write the code.
>
> If you already have a REST backend, why do you need django at all? Django
> isn't the best framework for getting information from a REST API and then
> publishing the information. You really should be looking into running a
> single page application in that case...
>
> Django can be used to create a REST backend for the single page
> application however.
>
> Regards,
>
> Andréas
>
> 2018-01-18 17:25 GMT+01:00 johnf :
>
>> I have the backend covered with REST.   When I try to google hybrid
>> google comes up with hybrid mobile apps.  I did find fragment.js but I
>> don't see any type of real information on how to use it.   I did find some
>> info on javascript and multi-windows but here again it looks like it wants
>> to replace the template system that Django uses.
>>
>> It just seems to me that this issue must have come up in the past.  There
>> must be a solution provided by Django without replacing parts of the Django
>> framework
>>
>> Johnf
>>
>> On 01/18/2018 06:22 AM, Jani Tiainen wrote:
>>
>> Hi.
>>
>> Yes and no. Usually you do SPA, a single page application, that just
>> talks to backend, Django in this case, using some means. REST api and JSON
>> data is quite common.
>>
>> So basically you need only one template that fires up rest of your
>> interface.
>>
>> There are though alternative approaches like using hybrid of JS library
>> to request HTML fragments and render them using JS. Fragments then are
>> generated using templates.
>>
>> 18.1.2018 15.46 "johnf"  kirjoitti:
>>
>> But doesn't Django provide the template system?  Do you replace the
>> template system with DoyuoToolkit?
>>
>> Johnf
>>
>>
>>
>> On 01/18/2018 05:43 AM, Jani Tiainen wrote:
>>
>>> Hi,
>>>
>>> This actually doesn't have anything to do with Django, but frontend.
>>> Basically you need to pick some Javascript UI framework that supports
>>> features you're after.
>>>
>>> Personally I've only used Dojotoolkit (free, nicely licensed) and ExtJS
>>> (commercial).
>>>
>>> On 18.1.2018 15.07, johnf wrote:
>>>
 Hi,

 I have a desktop CRUD application that allows the same form to be
 opened 

Re: emulate desktop multi-windows

2018-01-18 Thread johnf
The reason I wanted Django was to insure that the data is valid (using 
python).   When they enter the data and the submit button is clicked I 
want to be able to modify the response using python.


So what I'm hearing from the list - is that in general - people are not 
using the Django template system.  Is that right?


I have been doing a little research and have discovered a couple of 
javascript tools that allow multi - windows/forms/dialogs/frames.   But 
then - like you said - I'm replacing the Django template system.


It seems that web UI is still not up to the desktop abilities. That's 
not good.  BTW I was looking at Electron and discovered that it can 
easily match the desktop multi-window and it's using web tech.  So I'm 
guessing it is possible but not often requested.


Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages render 
one page at a time in one webbrowser window. That is the way HTML works.


You can via javascript do some funky things, like Single page 
applications - but then most of the templating engine in django isn't 
used. You could create templates on the backend and send them via ajax 
to the frontend but that is mainly used for rendering partial pages 
and not for complete pages. Also, it would be really cumbersome to 
write the code.


If you already have a REST backend, why do you need django at all? 
Django isn't the best framework for getting information from a REST 
API and then publishing the information. You really should be looking 
into running a single page application in that case...


Django can be used to create a REST backend for the single page 
application however.


Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf >:


I have the backend covered with REST.   When I try to google
hybrid google comes up with hybrid mobile apps.  I did find
fragment.js but I don't see any type of real information on how to
use it.   I did find some info on javascript and multi-windows but
here again it looks like it wants to replace the template system
that Django uses.

It just seems to me that this issue must have come up in the
past.  There must be a solution provided by Django without
replacing parts of the Django framework

Johnf


On 01/18/2018 06:22 AM, Jani Tiainen wrote:

Hi.

Yes and no. Usually you do SPA, a single page application, that
just talks to backend, Django in this case, using some means.
REST api and JSON data is quite common.

So basically you need only one template that fires up rest of
your interface.

There are though alternative approaches like using hybrid of JS
library to request HTML fragments and render them using JS.
Fragments then are generated using templates.

18.1.2018 15.46 "johnf" > kirjoitti:

But doesn't Django provide the template system?  Do you
replace the template system with DoyuoToolkit?

Johnf



On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django,
but frontend. Basically you need to pick some Javascript
UI framework that supports features you're after.

Personally I've only used Dojotoolkit (free, nicely
licensed) and ExtJS (commercial).

On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the
same form to be opened many times.  Example: I can
open a customer's (A) record in one window/form and
then from the first window/form (customer A's) open a
second or third window to process customer B or
customer C etc... all without closing any of the
windows/forms. IOW I can have many windows open at
the same time all using the same form with different
customer records.

How can I do this with Django?  I would like to
replace the desktop app with a web app using Django.


Johnf



-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
django-users+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-users@googlegroups.com
.
Visit this group at
https://groups.google.com/group/django-users
.
To view this discussion on 

Re: emulate desktop multi-windows

2018-01-18 Thread Andréas Kühne
Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages render one
page at a time in one webbrowser window. That is the way HTML works.

You can via javascript do some funky things, like Single page applications
- but then most of the templating engine in django isn't used. You could
create templates on the backend and send them via ajax to the frontend but
that is mainly used for rendering partial pages and not for complete pages.
Also, it would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at all? Django
isn't the best framework for getting information from a REST API and then
publishing the information. You really should be looking into running a
single page application in that case...

Django can be used to create a REST backend for the single page application
however.

Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf :

> I have the backend covered with REST.   When I try to google hybrid google
> comes up with hybrid mobile apps.  I did find fragment.js but I don't see
> any type of real information on how to use it.   I did find some info on
> javascript and multi-windows but here again it looks like it wants to
> replace the template system that Django uses.
>
> It just seems to me that this issue must have come up in the past.  There
> must be a solution provided by Django without replacing parts of the Django
> framework
>
> Johnf
>
> On 01/18/2018 06:22 AM, Jani Tiainen wrote:
>
> Hi.
>
> Yes and no. Usually you do SPA, a single page application, that just talks
> to backend, Django in this case, using some means. REST api and JSON data
> is quite common.
>
> So basically you need only one template that fires up rest of your
> interface.
>
> There are though alternative approaches like using hybrid of JS library to
> request HTML fragments and render them using JS. Fragments then are
> generated using templates.
>
> 18.1.2018 15.46 "johnf"  kirjoitti:
>
> But doesn't Django provide the template system?  Do you replace the
> template system with DoyuoToolkit?
>
> Johnf
>
>
>
> On 01/18/2018 05:43 AM, Jani Tiainen wrote:
>
>> Hi,
>>
>> This actually doesn't have anything to do with Django, but frontend.
>> Basically you need to pick some Javascript UI framework that supports
>> features you're after.
>>
>> Personally I've only used Dojotoolkit (free, nicely licensed) and ExtJS
>> (commercial).
>>
>> On 18.1.2018 15.07, johnf wrote:
>>
>>> Hi,
>>>
>>> I have a desktop CRUD application that allows the same form to be opened
>>> many times.  Example: I can open a customer's (A) record in one window/form
>>> and then from the first window/form (customer A's) open a second or third
>>> window to process customer B or customer C etc... all without closing any
>>> of the windows/forms.  IOW I can have many windows open at the same time
>>> all using the same form with different customer records.
>>>
>>> How can I do this with Django?  I would like to replace the desktop app
>>> with a web app using Django.
>>>
>>>
>>> Johnf
>>>
>>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE
> 3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> 

Re: emulate desktop multi-windows

2018-01-18 Thread johnf
I have the backend covered with REST.   When I try to google hybrid 
google comes up with hybrid mobile apps.  I did find fragment.js but I 
don't see any type of real information on how to use it.   I did find 
some info on javascript and multi-windows but here again it looks like 
it wants to replace the template system that Django uses.


It just seems to me that this issue must have come up in the past.  
There must be a solution provided by Django without replacing parts of 
the Django framework


Johnf


On 01/18/2018 06:22 AM, Jani Tiainen wrote:

Hi.

Yes and no. Usually you do SPA, a single page application, that just 
talks to backend, Django in this case, using some means. REST api and 
JSON data is quite common.


So basically you need only one template that fires up rest of your 
interface.


There are though alternative approaches like using hybrid of JS 
library to request HTML fragments and render them using JS. Fragments 
then are generated using templates.


18.1.2018 15.46 "johnf" > kirjoitti:


But doesn't Django provide the template system?  Do you replace
the template system with DoyuoToolkit?

Johnf



On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django, but
frontend. Basically you need to pick some Javascript UI
framework that supports features you're after.

Personally I've only used Dojotoolkit (free, nicely licensed)
and ExtJS (commercial).

On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the same
form to be opened many times.  Example: I can open a
customer's (A) record in one window/form and then from the
first window/form (customer A's) open a second or third
window to process customer B or customer C etc... all
without closing any of the windows/forms. IOW I can have
many windows open at the same time all using the same form
with different customer records.

How can I do this with Django?  I would like to replace
the desktop app with a web app using Django.


Johnf



-- 
You received this message because you are subscribed to the Google

Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-users+unsubscr...@googlegroups.com
.
To post to this group, send email to django-users@googlegroups.com
.
Visit this group at https://groups.google.com/group/django-users
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com

.


For more options, visit https://groups.google.com/d/optout
.


--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7449fab6-b78a-bfd6-3003-dcaf0fb34827%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread Jani Tiainen
Hi.

Yes and no. Usually you do SPA, a single page application, that just talks
to backend, Django in this case, using some means. REST api and JSON data
is quite common.

So basically you need only one template that fires up rest of your
interface.

There are though alternative approaches like using hybrid of JS library to
request HTML fragments and render them using JS. Fragments then are
generated using templates.

18.1.2018 15.46 "johnf"  kirjoitti:

But doesn't Django provide the template system?  Do you replace the
template system with DoyuoToolkit?

Johnf



On 01/18/2018 05:43 AM, Jani Tiainen wrote:

> Hi,
>
> This actually doesn't have anything to do with Django, but frontend.
> Basically you need to pick some Javascript UI framework that supports
> features you're after.
>
> Personally I've only used Dojotoolkit (free, nicely licensed) and ExtJS
> (commercial).
>
> On 18.1.2018 15.07, johnf wrote:
>
>> Hi,
>>
>> I have a desktop CRUD application that allows the same form to be opened
>> many times.  Example: I can open a customer's (A) record in one window/form
>> and then from the first window/form (customer A's) open a second or third
>> window to process customer B or customer C etc... all without closing any
>> of the windows/forms.  IOW I can have many windows open at the same time
>> all using the same form with different customer records.
>>
>> How can I do this with Django?  I would like to replace the desktop app
>> with a web app using Django.
>>
>>
>> Johnf
>>
>>
>
-- 
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf
But doesn't Django provide the template system?  Do you replace the 
template system with DoyuoToolkit?


Johnf


On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django, but frontend. 
Basically you need to pick some Javascript UI framework that supports 
features you're after.


Personally I've only used Dojotoolkit (free, nicely licensed) and 
ExtJS (commercial).


On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the same form to be 
opened many times.  Example: I can open a customer's (A) record in 
one window/form and then from the first window/form (customer A's) 
open a second or third window to process customer B or customer C 
etc... all without closing any of the windows/forms.  IOW I can have 
many windows open at the same time all using the same form with 
different customer records.


How can I do this with Django?  I would like to replace the desktop 
app with a web app using Django.



Johnf





--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf

Doesn't opening a new browser window imply using lots of memory?

Johnf


On 01/18/2018 05:11 AM, Andréas Kühne wrote:

Hi,

You would have to either write a single page application that handles 
the window creations (to make it more like an application). But the 
standard way would just to open a new browser window - You can use the 
target property on an a tag (for the link to the customer) to open a 
new page each time (target="_blank").


Regards,

Andréas

2018-01-18 14:07 GMT+01:00 johnf >:


Hi,

I have a desktop CRUD application that allows the same form to be
opened many times.  Example: I can open a customer's (A) record in
one window/form and then from the first window/form (customer A's)
open a second or third window to process customer B or customer C
etc... all without closing any of the windows/forms.  IOW I can
have many windows open at the same time all using the same form
with different customer records.

How can I do this with Django?  I would like to replace the
desktop app with a web app using Django.


Johnf

-- 
You received this message because you are subscribed to the Google

Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-users+unsubscr...@googlegroups.com
.
To post to this group, send email to django-users@googlegroups.com
.
Visit this group at https://groups.google.com/group/django-users
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com

.
For more options, visit https://groups.google.com/d/optout
.


--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCccE9WsdQ4p3WiVQtix8SFGk6a4r%3D7XnbLgVAQmmWjABw%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10457f9b-0045-b364-9e73-b28cc92578e3%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread Jani Tiainen

Hi,

This actually doesn't have anything to do with Django, but frontend. 
Basically you need to pick some Javascript UI framework that supports 
features you're after.


Personally I've only used Dojotoolkit (free, nicely licensed) and ExtJS 
(commercial).


On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the same form to be 
opened many times.  Example: I can open a customer's (A) record in one 
window/form and then from the first window/form (customer A's) open a 
second or third window to process customer B or customer C etc... all 
without closing any of the windows/forms.  IOW I can have many windows 
open at the same time all using the same form with different customer 
records.


How can I do this with Django?  I would like to replace the desktop 
app with a web app using Django.



Johnf



--
Jani Tiainen

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a0022ee-a772-e0e5-a192-e8988fde1a28%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread Andréas Kühne
Hi,

You would have to either write a single page application that handles the
window creations (to make it more like an application). But the standard
way would just to open a new browser window - You can use the target
property on an a tag (for the link to the customer) to open a new page each
time (target="_blank").

Regards,

Andréas

2018-01-18 14:07 GMT+01:00 johnf :

> Hi,
>
> I have a desktop CRUD application that allows the same form to be opened
> many times.  Example: I can open a customer's (A) record in one window/form
> and then from the first window/form (customer A's) open a second or third
> window to process customer B or customer C etc... all without closing any
> of the windows/forms.  IOW I can have many windows open at the same time
> all using the same form with different customer records.
>
> How can I do this with Django?  I would like to replace the desktop app
> with a web app using Django.
>
>
> Johnf
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCccE9WsdQ4p3WiVQtix8SFGk6a4r%3D7XnbLgVAQmmWjABw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


emulate desktop multi-windows

2018-01-18 Thread johnf

Hi,

I have a desktop CRUD application that allows the same form to be opened 
many times.  Example: I can open a customer's (A) record in one 
window/form and then from the first window/form (customer A's) open a 
second or third window to process customer B or customer C etc... all 
without closing any of the windows/forms.  IOW I can have many windows 
open at the same time all using the same form with different customer 
records.


How can I do this with Django?  I would like to replace the desktop app 
with a web app using Django.



Johnf

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.