Solved

Prevent 1st Post Back Opening New Page After Selecting Value in Drop Down List

Posted on 2004-08-16
3
266 Views
Last Modified: 2010-05-18
I have a page that opens a new window on the 1st post back when selecting a value in a drop down list. I want to prevent this from happening. I posted the code at www.cypressinland.com/postback.htm
0
Comment
Question by:jamesh1031
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
adaoss earned 500 total points
ID: 11809646
Hi

try to remove this libe from your code (aprox. line 194):
<BASE target="bottom">

I think this will sole your problem, if not, then you have to review this function:

<!--
      function __doPostBack(eventTarget, eventArgument) {
            var theform;
            if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
                  theform = document.forms["Form1"];
            }
            else {
                  theform = document.Form1;
            }
            theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
            theform.__EVENTARGUMENT.value = eventArgument;
            theform.submit();
      }
// -->
</script>

Adao
0
 

Author Comment

by:jamesh1031
ID: 11809773
Great answer. Thank you.
0
 
LVL 4

Expert Comment

by:adaoss
ID: 11809902
Nice it solved your problem. And Thank you for the grade A :)

Adao
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to dynamically set the form action using jQuery.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now