Dudas sobre el control de usuarios a una página web y información sobre Personal Web Server

Un Saludo y que todo te vaya bien por alli. Tengo 3 preguntas.
La Primera es, necesito saber si hay alguna forma de bloquearle a los usuarios que puedan imprimir el contenido de una pagina web, o que si ellos eligen imprimir del browser les imprima una pagina en blanco, mi jefe esta urgido de bloquear eso a los usuarios en una pagina que tiene informacion que no nos conviene que la impriman. (Ya tengo el tip para bloquear el boton derecho del mouse).
La Segunda es si puedo tener una lista (en un form) que dependiendo de la seleccion hecha en otra asi sean los datos que muestre. Por ejemplo, Tengo una lista de provincias y otra de ciudades, si selecciono en la lista de provincias la provincia de "Ontario", que en la lista de ciudades me presente solo las ciudades de que pertenecen a "Ontario". La pagina en que la tengo es un form en una asp.
La Tercera pregunta es relacionada a si sabes algun lugar donde pueda conseguir "Personal Web Server" para windows ME, o si hay alguna forma de instalarle el PWS de windows 98.
Gracias anticipadamente!!.. Y que tengas un mejor dia que el de ayer.
Respuesta
1
Vamos por partes:
1.- Impresión
Por desgracia no puedes controlar el que la impriman o no. Es imposible.
2.- Combo dependiendo de otra...
Esto si que lo puedes hacer y lo tienes que hacer mediante javascript. Es la única manera que he encontrado de hacerlo... Para ello deberas tener dos frames (uno visible, el tuyo, y otro oculto). Deberas programar que cuando haya un cambio en la combo, cargue un asp en el frame oculto (al cual le pasaras el valor de dicha combo por parámetro) que te generará codigo Javascript para limpiar la segunda combo y rellenarla dinámicamente con los nuevos datos.
3.- PWS para Windows ME.
Te pongo el articulo que encontré para instalar el PWS en Windows ME. Yo lo he hecho y funciona.
I send you this copied article. I tried it end it's gone fine
For those who have been unable to get PWS to run on WinMe, here's the
process that worked for me: 1) Download the newest version of PWS from
http://download.microsoft.com/msdownload/ntoptionpack/en/x86/win.95/download
.exe. Yes, this is the NT 4.0 Option Pack, but it includes the version of
PWS for Win95 which can be used on WinMe with the following tweaks. After
downloading Download.exe, run it and select the option to download PWS for
Win95. 2) See
http://support.microsoft.com/support/kb/articles/q246/0/81.asp. Download the
patch and implement per the instruction in this KB article. 3) Important! Do
a Custom install of PWS, installing only the Transaction Server component.
To do this, uncheck all the options, then check Transaction Server - it will
add checks to the other components needed for it, but not the Personal Web
Server option. 4) After Setup completes and a reboot, re-run Setup and add
PWS. Reboot after Setup completes. 5) PWS should now work. Easiest way to
implement using it for local copies of your web pages is to copy the
contents of the entire local folder structure of your web site to
C:\Inetpub\wwwroot (or the folder you selected during PWS setup). To
clarify, if the local copy of your web site is in D:\MyWebSite, with the
default start page and all sub-folders located there, you copy all the files
and sub-folders, but not the D:\MyWebSite folder itself. 6) If you are using
ASP and your start page is default.asp, allow your file to overwrite the
default.asp file already in C:\Inetpub\wwwroot. If you are using index.htm
or some other start page, you need to rename the PWS default.asp file so it
is not the default page for the local site. 7) In your web browser address
bar, type... localhost ...to bring up your start page. Other installation
issues I encountered: 1) PWS Setup replaced regsvr32.exe with an old
version. Extract regsvr32.exe from the WinMe Setup files to
C:\Windows\System to replace the old version that PWS installed there. 2) My
linked .js files would not work at first because they were in a folder
called "Scripts", but PWS comes pre-configured with a Virtual Directory by
that same name. So, references to that folder were actually going to the
Virtual Folder, and the requested .js file did not exist there. Solution:
Open the Advanced Options page of PWS manager and remove or rename the
"Scripts" Virtual Directory. Bill James Visit my VBScript Page:
www.bilsway.com/vbspage/ Revised 29/Oct/2000 20:54
Espero poder haberte sido útil.
Salu2,
Xavi.

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas