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

  • Home
  • SEARCH
  • 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 501399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:11:09+00:00 2026-05-13T06:11:09+00:00

I have a slight javascript problem, and this is the reason to why i

  • 0

I have a slight javascript problem, and this is the reason to why i dislike javascript.
On my page i use Colorbox to popup a div with the possibility to add a new image. Then i use Cutesoft Editor as an Image Picker that opens a Window where the user can select an image. My problem is that the Image Picker window opens behind the Colorbox, so the user can’t select the image unless they close the popup.
Picture of the colorbox and the button for the image picker http://gazet.se/TemporaryFiles/preview.png
I have been reading all the documentation for Cutesoft that i can find and the only command that i can find is editor.FocusDocument() but it still does’t work. I am starting to suspect that Colorbox is causing this problem and that Cutesoft isn’t permitted to display a popup over Colorbox.

Cutesoft guide

Colorbox guide

Code to show the image popup (Executes when the button on the picture is pressed):

function callInsertImage(clientID) {
    var editor1 = document.getElementById('<%=Editor1.ClientID%>');    
    editor1.FocusDocument();  
    var editdoc = editor1.GetDocument();    
    editor1.ExecCommand('new');
    editor1.ExecCommand('InsertImage');
    editor1.FocusDocument();
    InputURL(clientID);
    editor1.FocusDocument();    
}    

function InputURL(clientID)
{
    var editor1 = document.getElementById('<%=Editor1.ClientID%>');
    var editdoc = editor1.GetDocument();  
    var imgs = editdoc.images;
    if(imgs.length > 0) {
        document.getElementById(clientID).value = imgs[imgs.length - 1].src;
        if (document.getElementById(clientID).value.substr(0, 19) == 'http://www.gazet.se')
            document.getElementById(clientID).value = "~" + document.getElementById(clientID).value.substr(19);
        editor1.ExecCommand('new');
        document.getElementById(clientID).focus();   
    }  
    else {
        setTimeout(function() { InputURL(clientID); }, 500); 
    }  
}

Code to open colorbox:

function NewImage() {
    ResetBox();
    this.boxTitle.innerHTML = 'Ny bild';
    this.buttonSave.value = 'Lägg till bilden';        
    $.fn.colorbox({open:true,width:"700px",inline:true,href:"#inline_example1",speed:100});
}
  • 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-13T06:11:09+00:00Added an answer on May 13, 2026 at 6:11 am

    I think it has to do with the css properties of these layers(html elements), which are responsible for the layering order. look into it(i.e. Firebug) and search for z-index. The z-index of the window picker is probably lower than the z-index of the Cutesoft editor.

    edit: I just checked it. The Colorbox has z-index:9999; and the ImagePicker has z-index: 8888;. I suggest changing colorbox.css line 6 to

    #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:8000; overflow:hidden;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a slight problem. Trying to post XML to a server. To do this,
I have a slight problem, I am trying to capture the input of two
I have found this example on StackOverflow: var people = new List<Person> { new
I have a slight problem with Powershell strings. There is a Java program I'm
I have two files with slight differences. A normal diff will show me the
Have you managed to get Aptana Studio debugging to work? I tried following this,
This is my first time using JQuery in any of my projects. I have
I have a slight issue with getting Auto Complete to search when the text
I have a new web app that is packaged as a WAR as part
I have a login.jsp page which contains a login form. Once logged in the

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.