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 491281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:59:42+00:00 2026-05-13T01:59:42+00:00

On my website I have it setup where when someone clicks on one of

  • 0

On my website I have it setup where when someone clicks on one of my items, a modal JQuery dialog box pops up. Works great (thanks to Stackoverflow help)! So now I dynamically create linkbuttons and imagebuttons inside the dialog, depending on what was clicked on. When I created said buttons (all server side), this is what I told them to do:

inserttext2.OnClientClick = "window.open('" + vendorurl + "')"
vendorpic.OnClientClick = "window.open('" + vendorurl + "')"

The variable vendorurl is figured out earlier, but it is the URL that will open up in a new tab/window when someone clicks on the appropriate control. When someone does click on it, it does open the new tab like its supposed to! Hooray. But! When I go back to my original tab that had the JQuery dialog open, it is now gone! How would I go about making sure the Dialog doesn’t close unless someone actually clicks the little X thingy to close it?

I assume since I used the OnClientClick, then all the action would happen user-side via javascript, and not create a postback (or whatever is happening).

EDIT:
In case you need to see it, the problem can be duplicated by going here:
http://www.mobiuspc.com
Then click on the processor tab, then click on the 5th item down which should be AMDZ940XCGIBOX. This is one I use for testing, as once you click on (just once, and don’t drag it), then in the resulting dialog window it has multiple links available to click on. Not all of the items have the links, hence why I standardized to this one item for consistent tests.

  • 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-05-13T01:59:43+00:00Added an answer on May 13, 2026 at 1:59 am

    Try this for the OnClientClick

    "window.open('" + vendorurl + "'); return false;"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

setup: cakephp, jquery 1.8.7, cakephp.bee.pl ajax helper I have a website who is set
Setup I have a website that draws RSS feeds and displays them on the
Basically I have a website. I have a properly setup sitemap so I assume
I have a website that is perfectely centered aligned. The CSS code works fine.
I have setup new instance of Solr indexing on a website. I want Solr
I currently have a website setup where unique links are generated every time a
I have a symfony website running on the standard LAMP setup. I need to
A society I belong to have a website which someone who left a few
I have 2 web servers. One hosts my main website (www.site.com), and the other
I've setup my app/website such that I have an absolute-positioned canvas element on top

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.