Welcome! Log In Create A New Profile

Advanced

[WebDev 12] Dynamic web page?

Posted by JB 
JB
[WebDev 12] Dynamic web page?
May 12, 2009 01:20PM
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
Fabrice Harari.pcs.crosspost
Re: [WebDev 12] Dynamic web page?
May 12, 2009 04:50PM
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 [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
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: