Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:23:17+00:00 2026-06-15T11:23:17+00:00

I am using SimpleModal Basic Modal Dialog and when I try to implement a

  • 0

I am using SimpleModal Basic Modal Dialog and when I try to implement a modal window popup on change of a jump menu, the dialog box opens, but I am quickly redirected to a url that doesn’t exist.

How do I prevent that from happening?

Here is my HTML for the jump menu:

<select name="fieldname" size="1" onChange="go()" class="select" >
              <option selected="selected"><em>Questions Bulk Edit Options...</em></option>
              <option value="http://74.39.250.15/questions_listing.asp?categoryState=1">Change Category Assignments</option>
              <option class="basicConfirmapprove" href="#">Change Status to Approved</option>
              <option value="http://74.39.250.15/questions_listing.asp?categoryState=2">Move to Another Folder</option>
            </select>

Here is my JavaScript for the page:

<script type="text/javascript">
<!--
function go(){
location=
document.Category.fieldname.
options[document.Category.fieldname.selectedIndex].value
}
//-->
</script>

Here is my HTML for the modal window:

<div id="basic-modal-confirmapprove">
            <%  
'Page Preferences
PageName = ""
%>

<!--#include file="header_modal.asp"-->
<div><center>Are you sure you want to approve all the selected items?</center></div> 
  <br />
<div align="center"><a href="#" class="button simplemodal-close">Cancel</a>&nbsp;&nbsp;<a href="#" class="keybutton simplemodal-close">OK</a></div>
<!--#include file="footer_modal.asp"-->

And here is my JavaScript for the modal window:

// Load dialog on click
$('#basic-modal .basicConfirmapprove').click(function (event){
    $('#basic-modal-confirmapprove').modal();

    return false;
});

How do I prevent the jump to “….com/Change Status to Approved” url? Obviously it doesn’t exist. If I click back, it shows the previous window with the modal window perfectly.

Chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:23:18+00:00Added an answer on June 15, 2026 at 11:23 am

    Because you have the onchange=”go()” event handler wired up, this code will execute as soon as the drop down value changes. You will need to put in something like this if you don’t want to redirect:

    var redirectValue =  document.Category.fieldname.options[document.Category.fieldname.selectedIndex].value;
    
    if (redirectValue.substring(0,4) == "http")
    {
        window.location = redirectValue;
    }
    

    This way the redirect will only happen if the value starts with “http”, so if they choose the basicConfirmapprove then you should be safe

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using simplemodal to popup a modal window. I've tested the modal window functionality
I am using the jquery simplemodal plugin to popup a modal box and display
I'm using SimpleModal plugin ( http://www.ericmmartin.com/projects/simplemodal/ ) for generating a simple modal dialog. Now
I use this call to create modal window using simplemodal ( http://www.ericmmartin.com/projects/simplemodal/ ): $.get(openform/,
I'm using simple-modal http://www.ericmmartin.com/projects/simplemodal/ I have one modal that opens on a button click,
I have a form within a SimpleModal modal, but when I try to use
I'm having an issue where when initializing a modal window using the jquery.simplemodal plugin.
I am using simple modal window to show dynamic content(table) on modal window popup.
I managed to get multiple modal windows working using the simplemodal plugin, but I
I'm using SimpleModal to display a modal whose height needs to change in response

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.