Solved

popup window from .ascx file

Posted on 2004-09-16
7
600 Views
Last Modified: 2012-06-27
please help me create a popup window from a .ascx file. I'm unsure how to do this since the file does not have <head> tags to put my javascript in. the popup window is html and i need it to be small and without toolbars. is it possible to put code in the html file to get this done?
0
Comment
Question by:coletteck8
7 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 12075696
put javascript there by adding <script language="javascript"> </script> tags
0
 
LVL 35

Accepted Solution

by:
YZlat earned 40 total points
ID: 12075731
or you could put your javascript on the page that will include your ascx file but the best way (so you don't get confused later on) it's better to just add <script language="javascript"> </script> tags to your ascx page. You don't need to have <head>
0
 

Author Comment

by:coletteck8
ID: 12075805
so i can put the <script language = "javascript"> anywhere on the page?
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 5

Assisted Solution

by:darksinclair
darksinclair earned 40 total points
ID: 12075935
coletteck8 : a <SCRIPT> tag and </SCRIPT> tag are independant of any other tags.. Ie : they can be on any page regardless of what else is there.  so Yes you can pug a <SCIRPT language="javascript"> anywhere on the page even if you do not have a <HEAD> or <BODY> or anything else.

Cheers,
0
 
LVL 35

Expert Comment

by:YZlat
ID: 12076284
yeah, anywhere
0
 
LVL 23

Assisted Solution

by:apresto
apresto earned 45 total points
ID: 12077027
try this site:

http://javascript.about.com/library/tools/blpopwindow_maker.htm

its a cheap way out but it genarates the pop up code for you - all you have to do is specify the width and height and some other properties and BAM, its yours, also try this one out if u get no joy with that one:

www.accessify.com/tools-and-wizards/ pop-up-window-generator.asp

RESULTS PAGE:

http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=create+a+pop-up+window
0
 

Author Comment

by:coletteck8
ID: 12077196
thanks everybody for all your help. i got it working!
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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