Hello,
I have a problem with the following function:
I would like to define the hight/length of the window which I open when
I call the function.
The problem is that the window opens but not with the size I defined
when calling the function.
Tanks for your help.
<head>
<script LANGUAGE="JavaS cript">
function FuncWindow(strP age,Vlargeur,Vh auteur,)
{
var Vhauteur
var Vlargeur
string=
"toolbar=0,scro llbars=1,locati on=0,statusbar= 0,menubar=0,res izable=1,width= Vlargeur,height =Vhauteur,Left= 200,Top=100";
fin=window.open (strPage,"Find" ,string);
fin.focus();
// document.write (Vhauteur)
}
</script>
</head>
<body>
<A
onclick="FuncWi ndow('../pages/aide/perso_accueil_c odepostal.asp', 300,500)">
<input type="button" name="btnEntrer " value=" Entrer " ></a>
</body> 5 1208
Hello,
This script works.
<head>
<script language="JavaS cript">
function FuncWindow(strP age, string) {
fin = window.open(str Page, "Find", string);
fin.focus();
// document.write( Vhauteur);
}
</script>
</head>
<body>
<input type="button" name="btnEntrer " value="Entrer"
onClick="FuncWi ndow('../pages/aide/perso_accueil_c odepostal.asp',
'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0,
resizable=1, width=500, height=480, left=200, top=100');" />
</body> pr***********@y ahoo.fr wrote: Hello,
I have a problem with the following function: I would like to define the hight/length of the window which I open when I call the function. The problem is that the window opens but not with the size I defined when calling the function.
[...]
function FuncWindow(strP age,Vlargeur,Vh auteur){
string=
"resizable=1,wi dth="+Vlargeur+ ",height="+Vhau teur+",left=200 ,top=100";
fin=window.open (strPage,"Find" ,string);
}
scrollbars will be added if the document needs them.
Mick
Thanks from a newby to both of you.
It works fine.
Bi
You have to concatenate the arguments:
string="toolbar =0,scrollbars=1 ,location=0,sta tusbar=0,menuba r=0,resizable=1 ,width="+Vlarge ur+",height="+V hauteur+",Left= 200,Top=100";
Danny
On Thu, 23 Jun 2005 03:00:19 -0700, <pr***********@ yahoo.fr> wrote: Hello,
I have a problem with the following function: I would like to define the hight/length of the window which I open when I call the function. The problem is that the window opens but not with the size I defined when calling the function.
Tanks for your help.
<head> <script LANGUAGE="JavaS cript"> function FuncWindow(strP age,Vlargeur,Vh auteur,)
{ var Vhauteur var Vlargeur string= "toolbar=0,scro llbars=1,locati on=0,statusbar= 0,menubar=0,res izable=1,width= Vlargeur,height =Vhauteur,Left= 200,Top=100"; fin=window.open (strPage,"Find" ,string); fin.focus(); // document.write (Vhauteur) } </script> </head>
<body> <A onclick="FuncWi ndow('../pages/aide/perso_accueil_c odepostal.asp', 300,500)">
<input type="button" name="btnEntrer " value=" Entrer " ></a> </body>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ su*****@gmail.c om wrote: This script works.
No, it does not.
<head>
<script language="JavaS cript">
<http://validator.w3.or g/>
function FuncWindow(strP age, string) { fin = window.open(str Page, "Find", string);
The value of `string' is used here "as is", however you pass it
below containing spaces that it must not contain.
fin.focus();
You do not test for the host object's method before you call it.
Error-prone.
<http://validator.w3.or g/>
// document.write( Vhauteur);
Your point?
} </script>
</head>
<body> <input type="button" name="btnEntrer " value="Entrer" onClick="FuncWi ndow('../pages/aide/perso_accueil_c odepostal.asp', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=1, width=500, height=480, left=200, top=100');" />
People using a UA without client-side script support will not
be able to make use of that button. Please Read the FAQ before
you post.
<http://jibbering.com/faq/#FAQ4_24>
PointedEars This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Derek Hart |
last post by:
I wish to execute code from a string. The string will have a function name,
which will return a string:
Dim a as string
a = "MyFunctionName(param1, param2)"
I have seen a ton of people discuss how reflection does this, but I cannot
find the syntax to do this. I have tried several code example off of
gotdotnet and other articles. Can somebody please show me the code to do
this?
|
by: John Miles |
last post by:
Hi --
This is a bit of an implementation-specific problem, but I'd like to
post it here to see if there's a general answer within the auspices of
the language.
I'm developing a high(er)-level scripting language designed explicitly
to complement C++. One of the language's features is the ability to
pass "out" parameters to an MSVC __cdecl function by reference. After
the C++ function returns, but before popping the parameters from the
|
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {
document.images.src = eval("mt" +menu+ ".src")
}
alert("imgOff_hidemenu");
hideMenu=setTimeout('Hide(menu,num)',500);
|
by: simon |
last post by:
Always when I need data reader in my programs, I simply have functions,
which creates it for me:
Dim rdr As SqlDataReader
dim sql as string
sql="myStoredProcedure"
rdr = createDataReader(sql, False)
And the functions are:
|
by: Bryan Parkoff |
last post by:
Do C/C++ Compiler allow function to contain more than 8 parameters? I
checked MS Visual C++ 6.0 that it can only limit 8 parameters, but
most C/C++ Compiler can limit maximum 256 parameters. Can you please
verify for me?
Usually, I write function that is about 100 lines. I would need
20 parameters which they are all reference to global variable inside
struct. For best optimization, it does not require to create stack
frame because...
| |
by: Morgan Cheng |
last post by:
Hi All,
I was taught that argument valuse is not supposed to be changed in
function body. Say, below code is not good.
void foo1(int x)
{
x ++;
printf("x+1 = %d\n", x);
}
It should be "refactor-ed" to be
|
by: Maxwell_Smart |
last post by:
Is there a way for a function to refer to itself generically? I'd like
to use such a thing (should it exist) for convenience and consistency,
not functionality.
For example:
Function Common(Some_String as String) As String
...
End Function
|
by: John Friedland |
last post by:
My problem: I need to call (from C code) an arbitrary C library
function, but I don't know until runtime what the function name is,
how many parameters are required, and what the parameters are. I can
use dlopen/whatever to convert the function name into a pointer to
that function, but actually calling it, with the right number of
parameters, isn't easy.
As far as I can see, there are only two solutions:
1) This one is portable. If...
|
by: Tony Lownds |
last post by:
(Note: PEPs in the 3xxx number range are intended for Python 3000)
PEP: 3107
Title: Function Annotations
Version: $Revision: 53169 $
Last-Modified: $Date: 2006-12-27 20:59:16 -0800 (Wed, 27 Dec 2006) $
Author: Collin Winter <collinw@gmail.com>,
Tony Lownds <tony@lownds.com>
Status: Draft
Type: Standards Track
|
by: arne |
last post by:
Hi all,
imagine I call a function, but omit one of the parameters, like:
foo.c:
void foo( int a, int b ) {
/* do something with a and b */
return;
}
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |