Connecting Tech Pros Worldwide Help | Site Map

how to set document stable in a same place

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 17th, 2006, 10:55 AM
balakrishnan.dinesh@gmail.com
Guest
 
Posts: n/a
Default 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


  #2  
Old August 18th, 2006, 12:25 AM
RobG
Guest
 
Posts: n/a
Default Re: how to set document stable in a same place


balakrishnan.dinesh@gmail.com wrote:
Quote:
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

  #3  
Old August 21st, 2006, 07:25 AM
balakrishnan.dinesh@gmail.com
Guest
 
Posts: n/a
Default Re: how to set document stable in a same place

Thanks for ur suggestion , its working fine

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.