?
Solved

javascript pop up / ascx

Posted on 2014-07-15
3
Medium Priority
?
311 Views
Last Modified: 2014-08-03
Attached is javascript codes to popup div in the center. It works fine. But now I want to do something similar below.
Is it possible?

document.getElementById("box").innerHTML = "<uc1:Default runat="server" ID="testing" Visible="true" />"
New-Text-Document.txt
0
Comment
Question by:ITsolutionWizard
  • 2
3 Comments
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40197657
You are trying to place an asp control syntax inside the div that you create with your popup box.   What you would need to do is modify your popup box to use an iframe inside that created div and then have the iframe load a page that has this code as well as the other syntax , master page etc for that page.
0
 
LVL 1

Author Comment

by:ITsolutionWizard
ID: 40197660
no iframe.
0
 
LVL 21

Accepted Solution

by:
Randy Poole earned 2000 total points
ID: 40197678
Hmm, you can try something like this, on your page:
<div id='pushdiv'><uc1:Default runat="server" ID="testing" Visible="true" /></div> 

Open in new window

and change this line in your javascript:
document.getElementById("box").innerHTML = "This is a box. Click me to exit effect.";

Open in new window

to
document.getElementById("box").appendChild(document.getElementById("pushdiv"));

Open in new window

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

850 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