Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 8 Jahren, 7 Monaten
Letzter Beitrag:
vor 8 Jahren, 7 Monaten
Beteiligte Autoren:
Fabrice Harari.pcs.crosspost, JB

[WebDev 12] Dynamic web page?

Startbeitrag von JB am 12.05.2009 11:20

I am really struggling with this one.

I have a sidebar that needs to be dynamically created depending if the user is logged into the website.

For example I don't want to show the registration cell if they are logged in.

I can't work out how to do this. Obviously the simplest way is to make the cell invisible, but that's really yuck.

What I am really after is a way that I can prevent the code for the cell from being generated based on certain criteria (i.e. if user has logged in).

Any suggestions?

Thanks

Jonathan

Antworten:

Re: [WebDev 12] Dynamic web page?

Hi Jonathan...

I generally just make the cell invisible which means that it's available
when:
- the users logs out
- I'm blocking the session because of inactivity
- the user blocks the session (going to lunch and not wanting anybody to
mess with your work in progress anybody?)then needs to relogin to unblock it

But if you don't want that, you can always:
- have your login in a separate page and display it when needed using
pageDisplayDialog
-OR-
- have your login in a separate page and display it in a empty cell
containing an iframe. you can use the same cell to display numbers of
things, and as it's just a placeholder, it doesn't weight much on the page

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


Jonathan Buckland wrote:
> I am really struggling with this one.
> I have a sidebar that needs to be dynamically created depending if the user is logged into the website.
> For example I don't want to show the registration cell if they are logged in.
> I can't work out how to do this. Obviously the simplest way is to make the cell invisible, but that's really yuck.
> What I am really after is a way that I can prevent the code for the cell from being generated based on certain criteria (i.e. if user has logged in).
> Any suggestions?
> Thanks
> Jonathan
>
Message forwarded from pcsoft.us.windev

von Fabrice Harari.pcs.crosspost - am 12.05.2009 14:50
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.