473,657 Members | 2,595 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 1064

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="allChecke d.html" onclick="return checkAll();">Ch eck 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
13281
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 = "application/vnd.ms-word" to create the actual document. My problem is that I want to place a picture (which resides on the server) into the word document as well. However all I seem to get is the place for the image but a picture of an "x" meaning that the...
3
5381
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 webuser to select the template, merge his DB record, and produce a formatted document that can be printed or downloaded. We need to do this without specialized software on the client, since it will be universally available to webusers. We...
5
1150
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 seems. It's as if the length is fixed not allowing for scrolling down the page. I know this must be a simple thing, but can't seem to find it. Thank anyone for their assistance. David A. Beck
8
2617
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 something entirely different? The docs only mention regular triggers being executed alfabetically.
0
978
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. PySimpleXML simplifies the translation of XML documents into very usable trees of Python structures (dictionaries, lists, etc), and also simplifies the translation from those structures back to XML or pretty XML. Specifically, this library can convert a...
30
2728
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
1972
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 switch between the two different picture sets by a simple onclick where I change the picture sets. I started to modify my existing code and ran into the problem where the img within a div is not loading in IE, it works fine in Mozilla but in IE I...
6
18214
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 files are in the same web server, other are in a remote location. Any help will be appreciated.
23
6583
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 use it? IE5 or IE6? Thanks
0
8305
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
8730
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
8503
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,...
0
8605
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 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...
0
7321
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, 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...
0
5632
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
4151
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...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.