473,806 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

popup question, and search question.

After reading Harlan's post about popups some of my questions were
answered but..

I was going to use differnet popups on a lot of my pages. These popups
contain bios on Cornell faculty. Two days ago this was the best place to
put this info, that was until I tested it on my officemates computer
where she has Adzapper installed and it killed the popup before it could
be read. I assumed MANY people have this or similar software.

So, the reason I chose to display this info in a popup was I could
control it's size, I could turn off all the unnecessary items on the
browser window, it just seemed better and maybe "more hip" to put it
here. (I know I'm gonna be clobbered for trying to be hip..)

Now it seems I have to find another way. What is the difference between
making a link that has a target that will open a new window and a popup
window? Can I control the size of this window and its placement?

Search question.

I have a search area on all pages where you type in what you are looking
for and then you have to click the word "search" for the search to
begin. How would I make the search begin by having the user just hit
their return/enter key?

Thanks!

Steve
Jul 20 '05 #1
3 2081
Steve K wrote:
I was going to use differnet popups on a lot of my pages. These popups
contain bios on Cornell faculty. Two days ago this was the best place to
put this info, that was until I tested it on my officemates computer
where she has Adzapper installed and it killed the popup before it could
be read. I assumed MANY people have this or similar software.

So, the reason I chose to display this info in a popup was I could
control it's size, I could turn off all the unnecessary items on the
browser window, it just seemed better and maybe "more hip" to put it
here. (I know I'm gonna be clobbered for trying to be hip..)
Why not just put the information into a normal page? Most people don't
consider their browser controls to be unnecessary at all. I don't see how
it's "more hip" in the slightest - with few exceptions, people regard
popups as an annoyance. As far as I can see, you are going to a lot of
trouble to work around people trying to make the web less annoying for
themselves for no apparent gain.

Now it seems I have to find another way. What is the difference between
making a link that has a target that will open a new window and a popup
window? Can I control the size of this window and its placement?
No.

I have a search area on all pages where you type in what you are looking
for and then you have to click the word "search" for the search to
begin. How would I make the search begin by having the user just hit
their return/enter key?


That happens automatically on most browsers, unless you have eschewed normal
forms for the neutered type that require Javascript to operate. Supply a
URL and you might get more useful information.
--
Jim Dabell

Jul 20 '05 #2
In article <sm************ *************@n ewsstand.cit.co rnell.edu>
in comp.infosystem s.www.authoring.html, Steve K <sm***@cornell. edu>
wrote:
So, the reason I chose to display this info in a popup was I could
control it's size, I could turn off all the unnecessary items on the
browser window, it just seemed better and maybe "more hip" to put it
here. (I know I'm gonna be clobbered for trying to be hip..)
There's nothing wrong with being hip. It's just that your definition
of "hip" is wrong. :-) True hipness means making pages that can be
viewed by the largest possible number of people and annoy the
smallest possible number.
Now it seems I have to find another way. What is the difference between
making a link that has a target that will open a new window and a popup
window? Can I control the size of this window and its placement?


True hipness also means recognizing that the visitor's desktop
belongs to the visitor, not to you. If the visitor wants a separate
window, she'll create one. Your attempts to do that, however you do
it, will annoy people who don't want separate windows.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
Steve K wrote:
So, the reason I chose to display this info in a popup was I could
control it's size, I could turn off all the unnecessary items on the
browser window, it just seemed better and maybe "more hip" to put it
here. (I know I'm gonna be clobbered for trying to be hip..)

Now it seems I have to find another way. What is the difference between
making a link that has a target that will open a new window and a popup
window? Can I control the size of this window and its placement?


I don't like popups but as a compromise and as just another reply -
I've used the following approach when I was requested to make it to
popup:

<a href="popup.htm l"
onclick="return popWnd(this.hre f,410,500)">Pop up Title</a>

And the JavaScript function:

function popWnd(src, w, h, name) {
name = "MYSITE_" + name;
var wnd = window.open(src , name,
"resizable,scro llbars,width=" + w + ",height=" + h);
if (wnd) {
wnd.focus();
return false;
} else
return true;
}

This way if the UA have no or turned off JavaScript support the link
will function as such normal. Further if the UA have no or turned
off capability to open new windows from within scripts the function
will return true where will cause the link to be followed and again
function as normal.

I don't use 'target' attribute on the link because it would
additionally and unnecessary break the user preferences in this case.

You could add function parameters for window placement as well but
make sure the opened window is at least resizable and would show
scrollbars if there is content overflow.

--
Stanimir

Jul 20 '05 #4

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

Similar topics

3
17068
by: nadia | last post by:
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user can search for something. The user can then select what they want, and the popup window closes and the main form (which is still open) shows the search results. Can anyone suggest a best course of action to acheive this? Thanks
1
2275
by: QA | last post by:
Go to http://dictionary.reference.com/search?r=67&q=apple you see this <!-- FASTCLICK.COM POP-UNDER CODE v2.0 for dictionary.com (12 hour) --> <script language="javascript"><!-- var min_hour_frequency=12; var fastclick_site_id=4366; document.write('<scr'+'ipt language="javascript" '+ 'src="http://code.fastclick.net/pu.js"></scr'+'ipt>'); // --> </script> <!-- FASTCLICK.COM POP-UNDER CODE v2.0 for dictionary.com (12 hour) -->
3
1994
by: ypress | last post by:
Hi. I have a page that contains this simple function: <script language="javascript"> function openPop(url, name, w, h) { var features = ""; features += "scrollbars=no,"; features += "menubar=no,"; features += "resizable=no,";
0
1400
by: Steve | last post by:
C# windows I have a simple(ish) enquiry screen. on this I have a search button. I want the search window to popup as a seperate non-modal window, allow the user to search and display the results in a datagrid on the popup search window. When the user double clicks a row in the datagrid I want it to display the full details back in the screen that called the popup window. The search window though needs to stay as it is so they can pick...
2
1763
by: rmorvay | last post by:
Do to the complexities of the amount of data that I have in a single record for a datagrid, I allow users to click a datagrid row and it spawns another browser page to allow edits to the data in that row. Once they update the data, it is committed to the database and the form is closed. I need to refresh the calling page by triggering the Search button's event in order to refresh the page properly with the updated info and utilizing the...
4
3488
by: Q. John Chen | last post by:
I have a "Delete" button on WebForm, but I want to popup a warning message with OK and Cancel in case user clicked the button by accident. HOW?
3
6181
by: Xah Lee | last post by:
there are two library for popup balloons: • Erik Bosrup's overlib at: http://www.bosrup.com/web/overlib/ • Walter Zorn from: http://www.walterzorn.com/tooltip/tooltip_e.htm however, their code is a bit dense to decipher. i wanted to know, what is the basic mechanism to make this possible?
2
3589
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code to LinkButton_search_Click() so that the code in there runs before opening the popup window? The problem is that I fill a Session variable when I click on the button that will then be used in the Page_Load of my Popup window. So basically this is...
1
3934
by: ApexData | last post by:
I am in the process of eliminating too many ComboBoxes used for searching. My MainForm will have a Button that will launch a PopUp Search Form. This SearchForm is a continuous form that has 7-Fields displayed, and the user can click on any field label to change the order of the records. This all works. How do I code to have the MainForm display the record that the user clicked on in the Popup SearchForm. I am currently trying the...
0
9719
marktang
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...
0
9597
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
10369
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
10372
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
7650
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
6877
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
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.