Hi… WebSite vs Application.
This is a suggestion.
If Wisej can do this, it will certainly be our favorite tool.
We need to open separate pages.
Personally I want to create a website for product sales.
But it is required to work as an ecommerce website.
In which people can open different pages of the same website at the same time (/details.xdq?productid=21, /details.xdq?productid=54, /contact.xdq).
Have different products on different tabs.
This would be great, we could use Wisej for the design of Incredible Websites.
Do not tell us it’s not in your plans.
Please Wisej, I know you can do it.
We are many users who have this need and we trust in you.
We hope that we will have this option soon.
Here is the attached sample on how to have multiple entry points within the same application. It can be done in many ways, this is one of them, reusing the same Default.html and using the page directly instead of calling a Main method on a different startup.
You can start the different pages:
Each one is an independent page within the same application. Wisej supports this to let a large system provide multiple views to different users. For example, a corporate ERP system may have a /Configuration subsystem, or a /Accounting subsystem, or a /Reports, or /Public, etc.
Each page starts a new session. Sharings sessions among different pages makes no sense and it would create a lot of problems at the first refresh or websocket update for the following reason: if you open a form or a dialog on /Page1 and then refresh /Page2 then the same form or dialog that was opened on Page1 would be shown on /Page2 when the state is restored.
Bypassing the entry point or entry form using the URL also doesn’t make sense in a stateful web application since it would allow a user to break the application’s workflow and open a form or dialog out of context.
Thank you for your interest in Wisej. I will setup a small sample for you to use in order to have multiple end points. Will post it later tonight or tomorrow.
Wisej supports multiple endpoints (or subappliactions). It doesn’t support URL with extensions like wx, wgx, gvw or anythins else. It supports “pretty” URL where you don’t have to write Default.html or MyApp.html or Accounting.html and instead write /MyApp or /Accounting. Each URL corresponds to 1 page only (SPA, as I have already mentioned).
The page can be empty or contain any HTML you like. It doesn’t have anything to do with the application – it’s used as the “canvas” where the widgets are created. This is how all Single Page Application (SPA) systems work.
If you are looking to a system similar to ASP.NET, PHP, MVC, JSP, … where each page can be loaded independently, Wisej is not the right framework.
In general, please keep in mind the following points the using Wisej:
I have a startup page like “default.html” or “home.html” in mi case, when I load my app in /home.html this load my Wisej Page “HomePage”… so far so good.
How can I do an other page named “contact.html” and this load the Wisej Page “ContactPage”
Any way to load different’s pages will be great… for example like “Facebook”.. this is a full WebSite…
Will be amazing that I can develop something like that with Wisej… Can you atach a simple sample?
We don’t have the extension wx to create “pages”. I think you are mixing it with visual webgui’s wgx extension. Wisej uses the Single Page Application (SPA) architecture, which is common for web applications. With Wisej you can use /Default.html or /MyPage.html or /MyApp, etc. See Configuration.
You can have sub-applications with a different page: a project in Wisej can have Default.html and it can have Accounting.html, for example. However, when you address a different URL you get a different session. Bypassing the entry point and being able to create a form from the URL was discarded because it messes up the state when refreshing and it only creates problems.
You can also use the deep linking approach (also typical of SPAs) to show different views of the application depending on the arguments in the URL. Basically we use all standard approaches for SPAs.
This work for show the page….
Dim phome As New home
Application.MainPage = phome
But how can i open at the same time the phome, and contact page, and productdetails page?
Open at the same tieme:
wx extension is just a sample.. maybe will be html i don’t know.
and the right click is important for “open this link in a new tab” or “open this link in a new window”… very used in any page.
Thanks again Luca.