Hello
We have a page that loads a long list of things. Each row has an onclick
where you can open a window for more information. When you do that the parent
page refreshes to the top of the page....so if you were near the bottom, you
would have to scroll back down to get back to where you were. I would like
the parent page to hold its position when the child opens. Any suggestions?
Thank You 9 1693
"Todd" <To**@discussio ns.microsoft.co mwrote in message
news:A9******** *************** ***********@mic rosoft.com...
Hello
We have a page that loads a long list of things. Each row has an onclick
where you can open a window for more information. When you do that the
parent
page refreshes to the top of the page....so if you were near the bottom,
you
would have to scroll back down to get back to where you were. I would like
the parent page to hold its position when the child opens. Any
suggestions?
>
Thank You
You would need to show us an example of the html and Javascript you are
using to achieve this.
Anthony Jones wrote on 21 sep 2006 in
microsoft.publi c.inetserver.as p.general:
>
"Todd" <To**@discussio ns.microsoft.co mwrote in message
news:A9******** *************** ***********@mic rosoft.com...
>Hello
We have a page that loads a long list of things. Each row has an onclick where you can open a window for more information. When you do that the
parent
>page refreshes to the top of the page....so if you were near the bottom,
you
>would have to scroll back down to get back to where you were. I would like the parent page to hold its position when the child opens. Any
suggestions?
>> Thank You
You would need to show us an example of the html and Javascript you
are using to achieve this.
It is not a asp = serverside, but a clientside issue, off topic.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Todd wrote:
We have a page that loads a long list of things. Each row has an
onclick where you can open a window for more information. When you do
that the parent page refreshes to the top of the page....so if you
were near the bottom, you would have to scroll back down to get back
to where you were. I would like the parent page to hold its position
when the child opens. Any suggestions?
Yes. Stop using <a href="#" onclick="...">. There is no need to use anchor
tags when a change of page is not desired. The [onclick] attribute applies
to virtually every element, not to mention the [cursor] CSS rule: http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
here is the line of code
<td align="center"> <a href="#"
onclick="window .open('ncdr.asp ?view=ncdr&id=< %=rsncdr("id")% >','NCDR','tool bar=0,location= 0,directories=0 ,status=0,menub ar=1,scrollbars =1,resizable=0, copyhistory=0,w idth=740,height =500')"><img
src="../images/view.gif" border="0" alt="View NCDR#
<%=branchloc% >-<%=rsncdr("ncdr num")%>"></td>
If the onclick is the issue, what would be the best way to achive the same
result
Thank You
"Dave Anderson" wrote:
Todd wrote:
We have a page that loads a long list of things. Each row has an
onclick where you can open a window for more information. When you do
that the parent page refreshes to the top of the page....so if you
were near the bottom, you would have to scroll back down to get back
to where you were. I would like the parent page to hold its position
when the child opens. Any suggestions?
Yes. Stop using <a href="#" onclick="...">. There is no need to use anchor
tags when a change of page is not desired. The [onclick] attribute applies
to virtually every element, not to mention the [cursor] CSS rule:
http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
[please do not toppost]
Todd wrote:
<td align="center"> <a href="#"
onclick="window .open(...)">
If the onclick is the issue, what would be the best way
to achive the same result
Onclick is not the issue. <ais the issue. Don't use it if it is not
appropriate to do so:
<td onclick="window .open(...)">
Take a look at what I suggested once again:
>Yes. Stop using <a href="#" onclick="...">. There is no need to use anchor tags when a change of page is not desired. The [onclick] attribute applies to virtually every element, not to mention the [cursor] CSS rule:
http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Dave Anderson" wrote:
[please do not toppost]
Todd wrote:
<td align="center"> <a href="#"
onclick="window .open(...)">
If the onclick is the issue, what would be the best way
to achive the same result
Onclick is not the issue. <ais the issue. Don't use it if it is not
appropriate to do so:
<td onclick="window .open(...)">
Take a look at what I suggested once again:
Yes. Stop using <a href="#" onclick="...">. There is no need
to use anchor tags when a change of page is not desired. The
[onclick] attribute applies to virtually every element, not
to mention the [cursor] CSS rule:
http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Thank You...I see what you mean now.....is there a way to replicate the
"finger cursor" that comes up when an anchor is used...looked into
onMouseover but this seems to change the text that the mouse is moving over,
not the curser itself. Appreciate the help
Todd wrote:
>>>...The [onclick] attribute applies to virtually every element, not to mention the [cursor] CSS rule:
http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
Thank You...I see what you mean now.....is there a way to
replicate the "finger cursor" that comes up when an anchor
is used...looked into onMouseover but this seems to change
the text that the mouse is moving over, not the curser
itself.
Again, my original response contains the answer. You can use styles inline
or through a CSS rule. Here is inline:
<td stlye="cursor:p ointer" onclick="...">
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Dave Anderson" wrote:
Todd wrote:
>>...The [onclick] attribute applies to virtually every element, not to mention the [cursor] CSS rule:
http://www.w3.org/TR/html4/interact/...l#adef-onclick http://www.w3.org/TR/CSS21/ui.html#propdef-cursor
Thank You...I see what you mean now.....is there a way to
replicate the "finger cursor" that comes up when an anchor
is used...looked into onMouseover but this seems to change
the text that the mouse is moving over, not the curser
itself.
Again, my original response contains the answer. You can use styles inline
or through a CSS rule. Here is inline:
<td stlye="cursor:p ointer" onclick="...">
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Thank you...I didn't fully understand your original response, however, it
makes perfect sense now...most appreciated!
Todd wrote:
Thank you...I didn't fully understand your original
response, however, it makes perfect sense now...most
appreciated!
My pleasure. It is no surprise to me that you were using <a href="#" ...>,
since there are SO MANY examples out there that use it. This is partly
because there were few alternatives many years ago, and that "trick" worked
for most browsers.
But Microsoft has applied onclick to most elements since version IE4, and
virtually everyone else has done so for the last 5 years, so it is no longer
necessary. Nevertheless, I estimate it will take at least more 5 years for
the practice to fade from documentation and use.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shock |
last post by:
Hello everyone,
I am having a problem with the program below. I have isolated the problem
to the onclick event that is located throughout arrQuestions. The onclick
event refers to a function and passes it two parameters. For the life of me
I cannot figure out what the error is, but one occurs everytime I click a
&%*$&# radio button. Also, the function only alerts the user immediately
as to what question/answer they clicked. I am...
|
by: Will |
last post by:
(My 4 questins at end after explination) The code below was provided to me
to "Popup" a window explaining what a Credit Card Verification Number is and
where to find it on a card... it is used as people enter their credit card
info on an ecommerce site. This is the first such site (Shopping Cart) I
have done and this code was provded by a user of the standard ASP Shopping
Cart software (CandyPress shopping cart.)
It works, but I don't...
|
by: Jamie Jackson |
last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The
onclick event that I'm inserting works correctly in Opera, but not in
FF or IE.
I'm retroactively adding the statement "return promptBeforeOpening();"
FF and IE rewrite it as I would expect them to, but it turns out that
that doesn't work (no disclaimer pops up, and the link is not
disabled):
|
by: Will |
last post by:
(My 4 questins at end after explination) The code below was provided to me
to "Popup" a window explaining what a Credit Card Verification Number is and
where to find it on a card... it is used as people enter their credit card
info on an ecommerce site. This is the first such site (Shopping Cart) I
have done and this code was provded by a user of the standard ASP Shopping
Cart software (CandyPress shopping cart.)
It works, but I don't...
|
by: RobG |
last post by:
I am trying to dynamically add an onclick to an element,
however I just can't get the syntax right. consider the
following function:
function doClick (evt,x) {
// do things with evt and x
}
Which is called statically by:
<button onclick="doClick(event,this);">Click me</button>
| |
by: jrsjrs |
last post by:
The "filetest.txt" contents is here
..................
one/yes
two/no
three/maybe
four/fun
five/ok
................
The main program is here
|
by: Daz |
last post by:
Hello everyone. I am sure the answer to my question is simple, but I
can't seem to dynamically add an onClick event to my script.
I have a table which is generated dynamically, I am just struggling
getting an onClick event to show in the HTML source.
Any help would be appreciated. Here is a block of my current code which
doesn't work.
var tr1 = document.createElement('tr');
|
by: Carlos Araya |
last post by:
I have the following link on a web page
<p class="menuitem"><a href="#"
onclick="loadFragment('http://rivendellweb.net/fortress/home',
'index')" title="The Fortress Home">The Fortress Home</a></p>
|
by: =?Utf-8?B?TWFyaw==?= |
last post by:
I am writing a control and want to handle an OnClick event on the client-side
before then conforming to the postback mechanism. I have got the server-side
events working for my OnClick event by adding to the rendered element's
OnClick handler using GetPostBackEventReference. How can I provide a
client-side onclick handler and then to use the aspnet form submit method
such that I can also subscribe to the server-side events too?
|
by: sourcie |
last post by:
I am changing an existing quiz found on "JavaScriptKit.com Multiple Choice Quiz"
I have an image. Instead of using the radio buttons with the normal true/false question, I want to place two hotspots on the image. One being correct(a) and the other incorrect(b). When the user clicks on the correct hotspot or place on the image, it should score and retain that value until the end of the quiz. At the end of the quiz, there is a submit button...
|
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: 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...
|
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |