473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 2041
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*************************@newsstand.cit.cornell .edu>
in comp.infosystems.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.html"
onclick="return popWnd(this.href,410,500)">Popup Title</a>

And the JavaScript function:

function popWnd(src, w, h, name) {
name = "MYSITE_" + name;
var wnd = window.open(src, name,
"resizable,scrollbars,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
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...
1
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...
3
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 +=...
0
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...
2
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...
4
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
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,...
2
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...
1
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.