Solved

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

Posted on 2004-08-16
3
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 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