Small Javascript function
$15-20 USD
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
Nº del proyecto: #2955703