473,387 Members | 1,899 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,387 software developers and data experts.

Netscape problem

Hi,
I have a problem with Netscape. I am using javascript to pass values and
redirecting to the same place. it works fine in IE and not in netscape.
please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" + WardrobeSet;

document.forms(0).submit();

}

Please Advice,
Stephen.
Nov 18 '05 #1
5 1229
I think you mean you have a problem with IE...just because something works
doesn't mean it should....anyways, try:

document.forms[0].action = "test.html";
document.forms[0].submit();

(replace the parantheses for square brackets).

Karl

"Stephen" <st*********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Hi,
I have a problem with Netscape. I am using javascript to pass values and
redirecting to the same place. it works fine in IE and not in netscape.
please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" + WardrobeSet;

document.forms(0).submit();

}

Please Advice,
Stephen.

Nov 18 '05 #2
Try to use document.forms[0]
HTH
-----Original Message-----
Hi,
I have a problem with Netscape. I am using javascript to pass values andredirecting to the same place. it works fine in IE and not in netscape.please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx? WardrobeSet=" + WardrobeSet;
document.forms(0).submit();

}

Please Advice,
Stephen.
.

Nov 18 '05 #3
Hi Karl,
the problem is not with IE, the form works on IE but not with netscape, I
did try it with [] instead of ().
another problem is, its a post back event to retrieve values.
Stephen.
"Karl" <none> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I think you mean you have a problem with IE...just because something works
doesn't mean it should....anyways, try:

document.forms[0].action = "test.html";
document.forms[0].submit();

(replace the parantheses for square brackets).

Karl

"Stephen" <st*********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Hi,
I have a problem with Netscape. I am using javascript to pass values and
redirecting to the same place. it works fine in IE and not in netscape.
please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" + WardrobeSet;
document.forms(0).submit();

}

Please Advice,
Stephen.


Nov 18 '05 #4
In the spirit of teaching a man how to fish, you can type "javascript:" in
the address bar of netscape to get a javascript console up, it wouldn't have
said to replace ( with [, but it might have been helpful.

Karl

"Karl" <none> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I think you mean you have a problem with IE...just because something works
doesn't mean it should....anyways, try:

document.forms[0].action = "test.html";
document.forms[0].submit();

(replace the parantheses for square brackets).

Karl

"Stephen" <st*********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Hi,
I have a problem with Netscape. I am using javascript to pass values and
redirecting to the same place. it works fine in IE and not in netscape.
please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" + WardrobeSet;
document.forms(0).submit();

}

Please Advice,
Stephen.


Nov 18 '05 #5
I was being something of a jack :) IE shouldn't work with (), I know it
does, but it shouldn't so in that sense it's a problem with IE because it's
giving you the false sense that the problem is with netscape.

As for your postback problem, I'm not sure what you are trying to do:

- You are on index.aspx
- you run that javascript
- you want the action page (index2.aspx) behave as though it was posted back
to?

You won't be able to do that...you'll get invalid viewstate errors and there
isn't much you can do about it. If this is really waht you want, you might
want to explain in more detail what you are trying to do and I might be able
to help you find a better alternative.

Karl

"Stephen" <st*********@hotmail.com> wrote in message
news:uf**************@TK2MSFTNGP10.phx.gbl...
Hi Karl,
the problem is not with IE, the form works on IE but not with netscape, I
did try it with [] instead of ().
another problem is, its a post back event to retrieve values.
Stephen.
"Karl" <none> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I think you mean you have a problem with IE...just because something works
doesn't mean it should....anyways, try:

document.forms[0].action = "test.html";
document.forms[0].submit();

(replace the parantheses for square brackets).

Karl

"Stephen" <st*********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Hi,
I have a problem with Netscape. I am using javascript to pass values and redirecting to the same place. it works fine in IE and not in netscape. please suggest.

function popup(WardrobeSet)

{

document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" +

WardrobeSet;
document.forms(0).submit();

}

Please Advice,
Stephen.



Nov 18 '05 #6

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

Similar topics

2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
4
by: Yvan J. Gagnon | last post by:
I am encountering a strange problem in Netscape 7 with a CFM file I am trying to troubleshoot (the page is working fine in NS Communicator and IE). Below is a sample of the problematic line of...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
13
by: Gaurav | last post by:
Hello, i have some java script with in html. It runs fine on IE 6.0 but doesnt run on netscape 7.1 Can someone tell me whats the problem ? And how can i solve it. here is the url ...
2
by: Kevin Ly | last post by:
Consider the test case below. The onmouseout event does NOT fire when my mouse/cusor is moved off the left side of the browser. It does if it is moved off the top, bottom, and the right side that...
18
by: Dennis | last post by:
It seems that garbage collection is somewhat flawed in Netscape as the following little script can bring a machine to its knees in about an hour when run on Netstcape 7.1. I've tried freeing the...
4
by: Wm | last post by:
I have a script that changes a main/enlarged image when you click on a thumbnail. It works fine in IE, but for some reason it won't do anything in Netscape 7.1. Does anyone know if this is a...
5
by: moondaddy | last post by:
I have a <a> element in a datagrid which wraps some asp.net labels. this element also has an onclick event which does not fire in netscape 6 (and perhaps other browsers for all I know...). Below...
4
by: Vik | last post by:
1. To show the sort order in a datagrid, a label is added to the datagrid header in the ItemCreated event (this method is taken from a book): With lblSorted ..Font.Name = "Webdings" ..Font.Size =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.