I want to redirect all pages from one website to another. They will be permanent redirects, but I am looking for a way to make it look cool.
Is it possible (It does not HAVE to be a 301 redirect) that when someone goes to a page on the old website, they automatically go to the new website with a message explaining the transfer, and everything around the message goes grayscale until the user clicks ok...?
I have a modest website that uses a lot of Javascript.
If anybody views the site and does not have Javascript enabled I want to politely redirect them to another page, so I put this bit of code in my <head> section :
So far so good. It appears to work, *and* it passes the the 'W3C MarkUp Validation Service' test ( http://validator.w3.org/ ).
Now the bad news: Google doesn't index my site any more, presumably because their crawler always gets redirected.
Does anybody have a solution to this dilema, please? Redirecting to a 'with-script' page is not an option because my page is linked-to by many other sites.
I would like to check a web page for updates that is written in JavaScript and requires me to log on with a username and password, then email me a snapshot of the web page or a copy of the web page.
Is there any software out there will let me do this?
Does anyone know of a handy way to disable a user from downloading javascript when they save a page?
Here is my problem. I have javascript that disables right clicks on a page. However the user could just "save" the page to there desktop and remove the function that disables right clicks.
Anyone know of a good work around? I've heard of other complex ways, but I was looking for a simple solution.
I'm not sure what this is called, I think it's remote script execution, but I could be wrong, so bear with me.
I have a call that I make for an adserver:
<script src="http://www...."></script>
That populates the page at that point with some text. When it works, it works great, the text comes back, and everything is good. However, when the remote server does not return right away, or maybe the connection is down, my page hangs on it.
So my question is, is there a way to structure the call on my end so that my page continues loading even if this call doesn't return?
We are downloading a few thousand rows of data for users to choose from and need to speed up the operation. The data is related in four levels. The current design allows the user to select the first level from about 20 choices and then the next level's choices are retrieved from the server. This is taking about 4 seconds. We are required to make it faster.
We need to be able to download all the data once and save it for use any time this particular page is visited. The app is a support app and the page will be used throughout the day. The obvious idea is to cache it in a Java applet but we are not allowed to use applets. The other idea is to embed it in JavaScript arrays but we have tried this and the performance penalty is about the same and will be incurred on other lookups on the page becuase the page reloads for these other lookups (we are using WebLogic netui).
What we need is a cookie that is not submitted unless the page explicitly sends it; that is, some data needs to be downloaded once per session and remain in the browser memory/on the disk throughout the session. It would be nice if we could write to a temp file or access a heap - can we? Any ideas?
Has anyone tried sending web pages containing javascript to another user also using Outlook Express?
Mine don't work on the other end - although I'm not sure if this is because they don't have Javascript enabled in MS Explorer 6. I save the entire HTML file + script into my Stationery folder. Then I select Message/New Message Using [select stationery file]. Should it work? Say I sent this by email:
<html> <head> <script> alert("Hi there!"); </script> </head> <body> <p>Can you see the alert box? Let me know.</p> </body>
I am new to JavaScript and I have been sifting through the previous posts about some specific help I need with a redirect problem. No luck there! Could someone take a look and give me some suggestions. I could really use some help.
What I am trying to accomplish is the following:
-grab the user bookmarked URL. -strip some of the URL from the beginning -pass what's leftover of the URL and append that to a new URL. -i would then like to call this function in the body tag and pass it to onLoad
<HEAD> <script> var domain=window.location.href; var domain2 = domain.substr(0,29); document.write("https://hfdev1.test.com/rw"+domain2")
function test() { document.location.href="https://hfdev1.test.com/rw"+domain2" } </script> </HEAD> <body onload="test()">
var el = document.createElement("iframe"); el.setAttribute('id', 'ifrm'); document.body.appendChild(el); el.setAttribute('height', 250);
[Code].....
And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.
I need to re-direct site visitors to a new URL, but I don't want that URL to appear in the Address field in the browser. I'm sure I've read somewhere that there is a way to do this, but I can't find it. Does anyone know this, or have I dreamt it?
Hi I'm trying to hack together a simple login (ish). The idea is to give the impression of a login when all I'm really doing is using the password to redirect a client to their own sub directory.
But I'm now stuck. Here's what I've put together so far. I'm a complete novice at Javascript - but I'm sure you'll see that. Code: <body> <SCRIPT LANGUAGE="JavaScript">
<!-- Begin function submitentry(){ var password = '' password = document.login.password.value.toLowerCase() if (password != null) { location.href= password + "/index.htm"; } // End --> </SCRIPT>
I'm working on a page that uses javascript very much. My problem is now that i cannot redirect to another page in IE with window.location =<URL>; This command gets executed (proofed with alert messages) but nothing happens. FF acts like expected but i cant get it work in IE. What can be the problem here?
Why is it that we use bridge pages that say 'If you're not redirected...'.I can see it if you've moved a page and want the user to see the new url before redirecting, but are there other reasons? Does a meta refresh or window not work in some browsers?
Following is my problem def: Load a HTML page and set the form fields on that page and submit it using javascript. I tried following code: I wrote a html file with following code in it.
Page where I'm redirecting user after 5 seconds to another page. This part of the script seems to work fine and redirects to the URL I want. However, the issue comes when I try and add parameters onto the URL. The redirect will stop working. I believe it's a formatting issue, as I've used the code in a different application. [code]...
I want to know if there is a way to prevent users from manually typing in the URL and entering the page after they have already signed out?
I was able to make the back button disabled.
Let's say if they have already click logout and when they click back, it won't go anywhere, which is what I want.
But, if they manually type in the url address, it will take them to that page. What I want to do is after they logout and whenever they try to type the url, it should not take them to that page, but instead to the login page.
I'm working in an .asp page where the user can delete a record. However i want an alert window to be displayed when the user clicks on delete asking the user if he really wants to or not ( the kind that has the two buttons ). If the user clicks no then the record delete is cancel, and if the user click yes then if goes to the page where it will be delete it.
Disclaimer 1: I am not a programmer, just a curious designer, so please take that into consideration in your replies.
Disclaimer 2: Despite all advices against it, I couldn't find a better solution to my website than using iFrame
Disclaimer 3: Before asking for help, I researched *several* forums and although I found people discussing similar issues,
implementing a method to intercept and redirect external links to a dynamic iframe. By "dynamic" iframe I mean an iframe whose SRC would be filled up in accordance to the external URL being intercepted and that it would resize its HEIGHT accordingly in order to avoid scroll bars.The function for resizing the iframe id="child" is already correctly implemented like so:
<script language="JavaScript"> <!-- function calcHeight()[code]...
This "replacement" function would be called onLoad and if tested true would run and refresh the page with the proper value in the iframe SRC.All this should be accomplished while still making the iframe HEIGHT dynamically adjustable and show a "clean" URL in the browser, such as "http:[url].....The potential issues I foresee is an infinite loop due to two onLoad queries (one for SRC, another for HEIGHT) in the parent and child objects, which might required a merge into a single script.
I'm trying to create a form where the user enters data in a field and is redirected to a URL based on that entry - example: user enters 1234 and he is directed to mypage.com/1234/index.htm - if that folder does not exist it would give a 'try again' error.