Hi,
I want to execute a javascript in my xslt file.
that does the following!
this script launches a popup
window without the Windows frame or titlebar
(that is, a "containerless" window). In other
browsers, it launches a standard popup window.
Position, width, and height are settable.
Automatic closing of the window on leaving the
page may also be optionally set.
I seached on google but the code does not work in the xslt file.
Anyone please assist!
Regards,
18 14666
Post the code that you're working with.
Hi, This the entire xslt file with the script (framework) that i want,
Thank You for the assistance. -
<HEAD>
-
<SCRIPT TYPE='text/javascript'>
-
<!-- Original: CodeLifter.com (support@codelifter.com) -->
-
<!-- Web Site: http://www.codelifter.com -->
-
-
<!-- This script and many more are available free online at -->
-
<!-- The JavaScript Source!! http://javascript.internet.com -->
-
-
-
var windowW=214 // wide
-
var windowH=398 // high
-
var windowX = 260 // from left
-
var windowY = 100 // from top
-
var urlPop = "http://srv08-za119/fcParmalatTest/browse2.aspx?o=739.html"
-
var title = "This Is A Frameless Popup Window"
-
-
var autoclose = true
-
-
s = "width="+windowW+",height="+windowH;
-
var beIE = document.all?true:false
-
function openFrameless() {
-
if (beIE) {
-
NFW = window.open("","popFrameless","fullscreen,"+s);
-
NFW.blur();
-
window.focus();
-
NFW.resizeTo(windowW,windowH);
-
NFW.moveTo(windowX,windowY);
-
var frameString=""+
-
"<html>"+
-
"<head>"+
-
"<title>"+title+"</title>"+
-
"</head>"+
-
"<frameset rows='*,0' framespacing='0' border='0' frameborder='0'>"+
-
"<frame name='top' src='"+urlPop+"' scrolling='auto'></frame>"+
-
"<frame name='bottom' src='about:blank' scrolling='no'></frame>"+
-
"</frameset>"+
-
"</html>";
-
NFW.document.open();
-
NFW.document.write(frameString);
-
NFW.document.close();
-
}
-
else {
-
NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
-
NFW.blur();
-
window.focus();
-
NFW.resizeTo(windowW,windowH);
-
NFW.moveTo(windowX,windowY);
-
}
-
NFW.focus();
-
if (autoclose) {
-
window.onunload = function(){NFW.close();}
-
}
-
}
-
-
</SCRIPT>
-
</HEAD>
-
-
<body>
-
<a href="javascript:openFrameless()">Click Here</a>
-
</body>
-
-
Don't use document.all. Try something like this: -
var windowW=214 // wide
-
var windowH=398 // high
-
var windowX = 260 // from left
-
var windowY = 100 // from top
-
var urlPop = "http://srv08-za119/fcParmalatTest/browse2.aspx?o=739.html"
-
var title = "This Is A Frameless Popup Window"
-
-
var autoclose = true
-
-
s = "width="+windowW+",height="+windowH;
-
var NFW;
-
function openFrameless() {
-
NFW = window.open("","popFrameless","fullscreen=yes,"+s);
-
NFW.blur();
-
window.focus();
-
NFW.resizeTo(windowW,windowH);
-
NFW.moveTo(windowX,windowY);
-
var frameString=""+
-
"<html>"+
-
"<head>"+
-
"<title>"+title+"</title>"+
-
"</head>"+
-
"<frameset rows='*,0' framespacing='0' border='0' frameborder='0'>"+
-
"<frame name='top' src='"+urlPop+"' scrolling='auto'></frame>"+
-
"<frame name='bottom' src='about:blank' scrolling='no'></frame>"+
-
"</frameset>"+
-
"</html>";
-
NFW.document.open();
-
NFW.document.write(frameString);
-
NFW.document.close();
-
}
-
NFW.focus();
-
if (autoclose) {
-
window.onunload = function(){NFW.close();}
-
}
-
Hi, Thank You - I have to aplogize for the late reply as i was sick for a few days.
Unfortunately it does not work: click on link nothing happens
but at the bottom stand error on page when check the no decription!
Regards
Remove the closing bracket } from line 31.
Hi, Thank You - we had a public holiday here in SA yesterday!
I removed line 31 but no luck.
When I clcik on the link to open in new window
the address is: javascript:openFrameless()
and: The Page cannot be displayed.
Could it be with the href calling the script?
Thank You
Regards
The code displays a small popup window.
See this link for a note on fullscreen. It's not supported in the newer browsers including IE.
A Big Thank You, I really appreciate the help!
I only tried this because i could not change the border style of a drop down in HTML
Now i would have to think of another way!
Thank You
I only tried this because i could not change the border style of a drop down in HTML
That should be possible. Post your code.
Thank You, Please have a look!
I searched on google & it is said that this is not possible as I want to change the border color of a drop down & size.
This works fine on a normal text box!
I'm coding in Flwocentric which has a style property & i can change the xslt file
but the problem is that it can't change the drop downs border.
One can change the text color, width but not the border in HTML. - height : 19px; border : 1px solid #CCCCCC;
I saw a workaround where one has to add 4 images, one for each border side to hide the border, but i also don't know how.
Can you think of another way?
Regards
Which browser are you using? In Firefox, for example, I can set the border whereas in IE6, it doesn't work. What you can do is put the select element in a span element and set the border on the span element.
Hi, Thank You & once again i apologize for the late reply as it was my Eid yesterday.
I really hope this can work as I am using IE6.
Can you please give an example:
<Span><Style>
Regards
Just as an example, to give you the idea:
[HTML]<span style="border: 1px solid red;"><select><option>...</select></span>[/HTML]
Thank You, I have to leave now!
Will try on Monday!
Thanks
Hi,
It sets a border around the select(drop down), where I want to change the border attributes of the drop down.
Thank You
Regards,
It sets a border around the select(drop down), where I want to change the border attributes of the drop down.
I'm afraid that's probably the best you can do in IE6/IE7 and possibly other browsers. See, for example, this page.
A Big Thank You for all your help, I really appreciate it!
Thank You
No problem. You're welcome. Good luck in the rest of your project!
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Shayne H |
last post by:
I want to be able to add a clock to the title of a VB.NET form.
Simply updating the FormClass.Text property does not quite make it, the
titile only changes once the form is minimised/maximised....
|
by: Russell |
last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull.
I have a modal dialog that is an IFrame.
The IFrame contains another window - which contains the appropriate...
|
by: Targa |
last post by:
Im using the code below to pop up a window: It works fine except for that in
the titlebar, my domain name is listed before the page title like below:
http://mydomain.com - MyPopupwindowname -...
|
by: Daniel Morrissey |
last post by:
Why will the following code not change the window title of the new window?
window.open "Default.htm" ,"YO"
|
by: Earl Teigrob |
last post by:
I am thinking about using a popup window to edit settings that will affect
parent asp.net page. The data that is changed in the popup window will be
saved to the datastore that is loaded and...
|
by: Novice |
last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window
But default if I do the
Response.Write("..."
The output...
|
by: Kavi |
last post by:
in the pop up window, there is always a url before the title of the
window, is there a way i can only have the title, and no url?
i cannot give u a link to my page, but i have found an example...
|
by: Jon |
last post by:
Hi,
I am calling the function showpopupWindow(item) to open and write a
popup window. When testing in IE6 locally the popup window displays my
text in both the title and status bars but when...
|
by: jessy |
last post by:
hi all,
i need to be using a frameless popup window with no titlebar or status bar or anything , i found many scripts online for that frameless popup but seems i got the name wrong "frameless"...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| | |