473,785 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Individual Pop-up resize

Hey,

I am using javascript for pop-ups, but I want each pop-up on the page
to have its own resize. This is the code that I have:

<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)re turn true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
window.open(hre f, windowname, 'width=650,heig ht=350,scrollba rs=no');
return false;
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<td><a href="auctions/dbracelet.html" onClick="return popup(this,
'notes')">Diamo nd Bracelet</a></td>
</BODY>
---------------------------------------

I would obviously prefer to NOT have any javascript, but have not been
able to find resources to help me with utilizing normal html pop-ups
and resizes.

Thanks,

Avi

Jul 23 '05 #1
3 1917
al********@yaho o.com wrote:
Hey,

I am using javascript for pop-ups, but I want each pop-up on the page
to have its own resize. This is the code that I have:

<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)re turn true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
window.open(hre f, windowname, 'width=650,heig ht=350,scrollba rs=no');
return false;
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<td><a href="auctions/dbracelet.html" onClick="return popup(this,
'notes')">Diamo nd Bracelet</a></td>
</BODY>
---------------------------------------

I would obviously prefer to NOT have any javascript, but have not been
able to find resources to help me with utilizing normal html pop-ups
and resizes.

Thanks,

Avi

How do you mean 'normal html pop-ups and resizes'? You can have a hyper
link that has a target (ie <a href=whereever. html target=new1> and <a
href=whereever. html target=new2> would give you two popup windows, one
called new1, the other called new2) or you can use window.open in
javascript - These are the only methods I am aware off, thus I don't see
you doing anything other than the norm...

How do you mean that you want each page to have its own resize?

randelld
Jul 23 '05 #2
Randell D. wrote:
al********@yaho o.com wrote:
Hey,

I am using javascript for pop-ups, but I want each pop-up on the page to have its own resize. This is the code that I have:

<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)re turn true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
window.open(hre f, windowname, 'width=650,heig ht=350,scrollba rs=no'); return false;
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<td><a href="auctions/dbracelet.html" onClick="return popup(this,
'notes')">Diamo nd Bracelet</a></td>
</BODY>
---------------------------------------

I would obviously prefer to NOT have any javascript, but have not been able to find resources to help me with utilizing normal html pop-ups and resizes.

Thanks,

Avi
How do you mean 'normal html pop-ups and resizes'? You can have a

hyper link that has a target (ie <a href=whereever. html target=new1> and <a href=whereever. html target=new2> would give you two popup windows, one called new1, the other called new2) or you can use window.open in
javascript - These are the only methods I am aware off, thus I don't see you doing anything other than the norm...

How do you mean that you want each page to have its own resize?

randelld


Lets say I have multiple links on a page that I want to pop-up. I want
to make each pop-up height and width different. I don't want to have
to define this at the header...I would like to define this in the body,
where i put the link itself.

Jul 23 '05 #3
al********@yaho o.com wrote:
Randell D. wrote:
al********@yaho o.com wrote:
Hey,

I am using javascript for pop-ups, but I want each pop-up on the page to have its own resize. This is the code that I have:

<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)re turn true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
window.open(hre f, windowname, 'width=650,heig ht=350,scrollba rs=no'); return false;
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<td><a href="auctions/dbracelet.html" onClick="return popup(this,
'notes')">Diamo nd Bracelet</a></td>
</BODY>
---------------------------------------

I would obviously prefer to NOT have any javascript, but have not been able to find resources to help me with utilizing normal html pop-ups and resizes.

Thanks,

Avi
How do you mean 'normal html pop-ups and resizes'? You can have a

hyper
link that has a target (ie <a href=whereever. html target=new1> and

<a
href=whereever. html target=new2> would give you two popup windows, one
called new1, the other called new2) or you can use window.open in
javascript - These are the only methods I am aware off, thus I

don't see
you doing anything other than the norm...

How do you mean that you want each page to have its own resize?

randelld
Lets say I have multiple links on a page that I want to pop-up. I

want to make each pop-up height and width different. I don't want to have
to define this at the header...I would like to define this in the body, where i put the link itself.


Arguments !

Pass those dimensions into the function, replacing hardcoded values:

function popup(mylink, windowname, w, h)
..........
..........
window.open(hre f, windowname, 'width=' + w +',height=' + h +
',scrollbars=no ');
return false;
}

<a href="auctions/dbracelet.html" onclick="return
popup(this.href ,'notes','650', '350')">Diamond Bracelet</a>

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2418
by: Roy Smith | last post by:
In the recent "transforming a list into a string" thread, we've been discussing the fact that list.pop() is O(1), but list.pop(0) is O(n). I decided to do a little timing experiment. To be sure, I did verify experimentally the expected result, but along the way, I came upon an interesting artifact that I'm at a loss to explain. I used the following to generate some timing numbers for pop() on various sized lists: import time
4
4705
by: Andre | last post by:
Hi guys, newbie question. I am having trouble with a script that is supposed to login me to my account on yahoo pop server. When i do this: import getpass, poplib, re POPHOST = "pop.mail.yahoo.com" POPUSER = "mylogin" POPPASS = "mypass" pop = poplib.POP3(POPHOST)
1
2251
by: spencer | last post by:
Hi, The code. def buildStackMajor(): for node in dirStackMinor: #print 's is the node...', node dirStackMajor.append(node) dirStackMinor.pop() print 'POP the stack...', len(dirStackMinor) print 'after pop...', dirStackMinor
6
23206
by: Will | last post by:
Hi, Sorry to be a pest... But I can figure this out. I'm pushing to a stack. then I need to check to see if the word is a palindrome. Is the code below correct? if so, how can I check the entire word?
2
2298
by: John Hoge | last post by:
I would like to open an exit pop when a user leaves my site, but I don't want to the back button to trigger the pop if the user remains in my site. I'm using the onUnload attribute of the Body tag to do this. All internal links set a variable of inSite to true on their onClick event handler, so the exit pop will not open if the user follows an internal link. Should the user hit the back button, the pop will be displayed. Is
15
4167
by: Stig Brautaset | last post by:
Hi group, I'm playing with a little generic linked list/stack library, and have a little problem with the interface of the pop() function. If I used a struct like this it would be simple: struct node { struct node *next; void *data; };
25
4203
by: Nicholas Parsons | last post by:
Howdy Folks, I was just playing around in IDLE at the interactive prompt and typed in dir({}) for the fun of it. I was quite surprised to see a pop method defined there. I mean is that a misnomer or what? From the literature, pop is supposed to be an operation defined for a stack data structure. A stack is defined to be an "ordered" list data structure. Dictionaries in Python have no order but are sequences. Now, does anyone know...
7
24939
by: Scott | last post by:
As said before I'm new to programming, and I need in depth explaination to understand everything the way I want to know it, call it a personality quirk ;p. With pop() you remove the last element of a list and return its value: Now I know list is a bad name, but for the sake of arguement lets assume its not a built in sequence> 'example'
4
2567
by: j_depp_99 | last post by:
The program below fails on execution and I think the error is in my pop function but it all looks correct.Also could someone check my code as to why my print function is not working? I havent included the other parts of my program but will if someone needs it. Please help; I have had it. I have checked all C++ websites and cannot figure it out. <code> template<class Type> void Novice<Type>::Print()
20
5747
by: merrittr | last post by:
I need some C advice I want to read in string commands from a user when the user enters a \n I want to push it on the stac. Then at some point , if the user enters the word print pop off and print each word (or using another stack pointer scan the stack printing each string). here is a stub of what i want to do. (how do I implement this currently my code doesn't work due to my lack of strings and pointers) #include <stdio.h>
0
9480
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,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
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,...
1
7499
isladogs
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...
0
6739
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();...
0
5381
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
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
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.