Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Netscape problem

Reply
Thread Tools

Netscape problem

 
 
Stephen
Guest
Posts: n/a
 
      08-18-2004
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.


 
Reply With Quote
 
 
 
 
Sergey Poberezovskiy
Guest
Posts: n/a
 
      08-18-2004
Try to use document.forms[0]
HTH

>-----Original Message-----
>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.
>
>
>.
>

 
Reply With Quote
 
 
 
 
Karl
Guest
Posts: n/a
 
      08-18-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
 
Stephen
Guest
Posts: n/a
 
      08-19-2004
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:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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.
> >
> >

>
>



 
Reply With Quote
 
Karl
Guest
Posts: n/a
 
      08-19-2004
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:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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.
> >
> >

>
>



 
Reply With Quote
 
Karl
Guest
Posts: n/a
 
      08-19-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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:%(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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.
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netscape 7.1 to Netscape 8 Skid Schermerhorn Firefox 2 09-05-2005 04:04 PM
Can't access Netscape mail with Netscape email client anymore. Mark Adams Computer Support 6 03-14-2005 03:31 PM
Accessing Netscape mail via Netscape mail client A. Toprak Computer Support 0 12-24-2004 06:46 AM
Netscape with JRE 1.5 beta 1 ignores Netscape signing Mickey Segal Java 1 05-21-2004 01:52 PM
websphere, oracle, netscape: netscape timeout Tom Java 0 08-01-2003 11:03 PM



Advertisments