Solved

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

Posted on 2004-08-16
3
285 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
remove border from element 5 78
show form submit button based on jquery sum 5 28
URGENT - Wordpress site missing  theme 9 41
Connection to multiple databases 13 19
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

773 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