473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simple URL redirection not working - please help!!

Ok, I have the script below...

<script language="javascript">
function submitit() {
var url;
url = '../system/messageObject.asp?' + qry + '?' +
myform.fullname.value + '?' + myform.comments.value';
alert (url);
document.location = url;
}
</script>
When I display the URL using ALERT, the URL is exactly how I want it.
But the document.location (or any other function I use) does not load
the page! All I want to do is load the page the URL is pointing to.

What have I done wrong?

Thanks - this is killing me. I have tried all types of examples in
VBScript and Javascript, but they do not work :o(

Demon

Oct 11 '06 #1
1 1684
de**********@gmail.com <de**********@gmail.comwrote:
Ok, I have the script below...

<script language="javascript">
function submitit() {
var url;
url = '../system/messageObject.asp?' + qry + '?' +
myform.fullname.value + '?' + myform.comments.value';
alert (url);
document.location = url;
}
</script>
When I display the URL using ALERT, the URL is exactly how I want it.
But the document.location (or any other function I use) does not load
the page! All I want to do is load the page the URL is pointing to.

What have I done wrong?
Change

document.location = url;

to

window.location.href = url;

Then it should work.
Demon
HTH
../otto
Oct 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: newsgroupsKILLSPAM | last post by:
(*** apologies for the X-Post, but I felt it was relevant to all the groups ***) Hi guys, Would really appreciate some guidance with this. I have a page with a large centre-aligned image on...
3
by: J. W. McCall | last post by:
Sorry again if this is OT; I'm not sure if this is a python problem or just a CGI problem, but I couldn't find a decent CGI NG. Let me know if there's somewhere else I should be posting. I got...
10
by: MK | last post by:
Hello, I use BigInt lib from: http://www.codeguru.com/Cpp/data/data-misc/values/article.php/c4563/ It doesn't work properly. I describe my problem:...
5
by: Logickle | last post by:
Hi, all. I'm working on an application which requires communicating session info between separate web apps running on the same web server. The out of process server method sounded ideal, and...
6
by: Tomas Nilsson | last post by:
Working code below (paying back to the groups :) /Tomas Class SidFunctions Enum SID_NAME_USE SidTypeUser = 1 SidTypeGroup
5
by: ODAN | last post by:
We are testing a ASP.NET application in Visual Studion 2003 and written in C#. One of the pages that register new users on this application fails to redirect to another page when the button is...
1
by: paolol | last post by:
Hi, I'm tring VS2008 with a simple Windows program, just a grid and a db made of an XML file. All work fine until the 3th record then the dataSet1.WriteXml("pippo.xml"); don't write the new...
3
by: jld730 | last post by:
Hi All, I am looking for help on this simple script to unzip/extract the contents of a zip file. This is what I have so far: import zipfile, os, sys zip1 = ("C:\\Temp\\test11.zip") z =...
3
by: jwidener117 | last post by:
i am well virsed in html and CSS but I am making a new portfolio site for myself and I would like to implement some java for a simple way to display my images, using my links to the left when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.