Small Javascript function

Completado Publicado Jul 23, 2003 Pagado a la entrega
Completado Pagado a la entrega

I need a little Javascript function that I can place at the top of my ASP files to warn the user if they have accessed it via c:\... rather than http://localhost/

I currently have something like this:

<% if 1<>1 %>

If you are reading this then you have not gone through PWS/IIS

<% end if %>

But I want a javascript function that will use

myURL = new String([url removed, login to view]);

and analyse it to give a more meaningful response:

1. If the URL contains \inetpub\wwwroot, then show an alert box and redirect to <http://localhost/foldername/scriptname>

2. If it doens't contain \inetpub\wwwroot, ideally it would check if this path exists, and if it doesn't then do a [url removed, login to view] telling the user to install it (not sure if this is possible in clientside javascript - please mention in your bid).

3. If the path does exist (or we are unable to detect either way) then write a message telling them where they should move the folder to.

e.g. if the user has entered c:\program files\mytest\[url removed, login to view]

then it should say something like:

This folder does not appear to be in your web tree.

Please move the mytest folder (currently located at c:\program files\) to c:\inetpub\wwwroot. Once you have done this, click on this link: http://localhost/mytest/[url removed, login to view]

4. If there is a way of warning the user if Javascript has been turned off (i.e. a message that would be supressed by Javascript in the same way as my ASP works) then that would be very useful. Again please mention in bid if you can do it.

## Deliverables

1) Complete and fully-functional working script. 2) Complete ownership and distribution copyrights to all work purchased.

## Platform

Cross Browser Javascript

ASP Ingeniería MySQL PHP Arquitectura de software Verificación de software Web Hosting Gestión de páginas web Verificación de páginas web

Nº del proyecto: #2955703

Sobre el proyecto

5 propuestas Proyecto remoto Activo Jul 23, 2003

Adjudicado a:

timk98

See private message.

$12 USD en 4 días
(54 comentarios)
4.7

5 freelancers están ofertando un promedio de $13 por este trabajo

preyasvw

See private message.

$17 USD en 4 días
(34 comentarios)
4.4
misterlvw

See private message.

$15.3 USD en 4 días
(23 comentarios)
4.2
yedidyaweil

See private message.

$12.75 USD en 4 días
(4 comentarios)
2.6
mehivw

See private message.

$8.5 USD en 4 días
(0 comentarios)
0.0