473,503 Members | 3,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to set document stable in a same place

hi Frnds,

My senario is this,
~ Im having a html page which have a content of more than one
page, so obivously scroll will be present in my page.
~ In the bottom of my page , Im having some 10 checkbox for some
option.
to select all checkboxes, im having link called selectAll ,

~ The problem is -
When i click the selectAll link, all checkboxes were checked,
but the page going to the top , eventhough the focus is still in the
selectAll link .

~ I dont why the page is going top, can u tell me the reason, And
tell me to be stay there in the same position after clicking the link.

Thank u

Rgrds...
Dinesh

Aug 17 '06 #1
2 1058

ba*****************@gmail.com wrote:
hi Frnds,

My senario is this,
~ Im having a html page which have a content of more than one
page, so obivously scroll will be present in my page.
~ In the bottom of my page , Im having some 10 checkbox for some
option.
to select all checkboxes, im having link called selectAll ,

~ The problem is -
When i click the selectAll link, all checkboxes were checked,
but the page going to the top , eventhough the focus is still in the
selectAll link .

~ I dont why the page is going top, can u tell me the reason, And
tell me to be stay there in the same position after clicking the link.
Have the href attribute of the link do something useful (like request a
page from the server with the checkboxes checked). Have the onclick
handler return the exit status of the function it calls. Have the
function return false if the script runs successfully, e.g.:

<a href="allChecked.html" onclick="return checkAll();">Check all</a>

<script type="text/javascript">

function checkAll()
{
/* code to check all checkboxes */

if ( /* everything is OK */ ) return false;

}
</script>
--
Rob

Aug 18 '06 #2
Thanks for ur suggestion , its working fine

Aug 21 '06 #3

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

Similar topics

5
13271
by: Joan | last post by:
I am creating a word document from an asp page. I have no problems actaully creating the document and creating some tables that have data in them. I am using Response.ContentType =...
3
5364
by: Richard Fritzler | last post by:
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the...
5
1146
by: David A. Beck | last post by:
I'm working on a project that has several aspx webforms. I'm runniung in to a problme where the document length is not allowing me to add controls. The scrollbar in the design mode is disabled it...
8
2600
by: Frank van Vugt | last post by:
Hi, If during a transaction a number of deferred triggers are fired, what will be their execution order upon the commit? Will they be executed in order of firing or alfabetically or...
0
976
by: Vic Fryzel | last post by:
PySimpleXML 1.0 stable has been released. It allows a Python user to easily access XML elements via a structure of Python dictionaries and lists, xml.dom.minidom Document, or string. ...
30
2691
by: gaoxtwarrior | last post by:
a sort which is stable means it keeps the object's original order. A sort which is in place is stable. does anyone can explain me what is sort in place? thx.
4
1959
by: bdbeames | last post by:
Could someone help with this? I currently have a rotating picture that I have on our website's main page. This week we decided to add another set of pictures for users to view. The users can...
6
18200
by: mistral | last post by:
what is correct way open a PDF document in new window use hyperlink? I want show images thumbnails linked with PDF files, when click on thumbnail, PDF will be opened in new window. Some of PDF...
23
6541
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
7192
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,...
0
7315
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...
1
6974
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...
0
7445
tracyyun
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...
0
5559
agi2029
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,...
1
4991
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...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
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...

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.