473,503 Members | 2,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show hide prob

14 New Member
hi this is rahul

i am using javascript:onclick=ShowHide('BI{@childId}',60) ,and it is working nicely....but the problem is whenever i am opening that xml page (where i have used show hide )for the first time it takes time to hide that part,and in future if more data will be there then it will take more time..........
so please do let me know any other alternative........
waiting......

thanks
May 23 '07 #1
4 1093
dorinbogdan
839 Recognized Expert Contributor
Please post your code and some XML.
May 23 '07 #2
rahul gupta
14 New Member
<TR><TD class="widgetTitle">
<a href="javascript:onclick=ShowHide('BI{@childId}',6 0)" id="aChangeCard">Change Card</a>
</TD></TR>

---------------
<script language="javascript">
ShowHide('BI<xsl:value-of select="@childId"/>',50);
ShowHide('CI<xsl:value-of select="@childId"/>',50);
</script>
May 23 '07 #3
dorinbogdan
839 Recognized Expert Contributor
I don't see the ShowHide function body.
Even it is javascript code, please post it too.
May 23 '07 #4
rahul gupta
14 New Member
i am using with the help of yahoo ui

here is the code----
function ShowHide(objID,paramHeight)
{
iHeight=paramHeight;
if (YAHOO.util.Dom.getStyle(objID, 'display')=='block')
{
minimisepanel(objID);
// imgref.src="images/downarr.gif";
return
}
maximisepanel(objID);
// imgref.src="images/uparr.gif";
}


++++++yahoo.js file++++


/*
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 0.10.0
*/

/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */

/**
* The Yahoo global namespace
* @constructor
*/
var YAHOO = window.YAHOO || {};

/**
* Returns the namespace specified and creates it if it doesn't exist
*
* YAHOO.namespace("property.package");
* YAHOO.namespace("YAHOO.property.package");
*
* Either of the above would create YAHOO.property, then
* YAHOO.property.package
*
* @param {String} sNameSpace String representation of the desired
* namespace
* @return {Object} A reference to the namespace object
*/
YAHOO.namespace = function( sNameSpace ) {

if (!sNameSpace || !sNameSpace.length) {
return null;
}

var levels = sNameSpace.split(".");

var currentNS = YAHOO;

// YAHOO is implied, so it is ignored if it is included
for (var i=(levels[0] == "YAHOO") ? 1 : 0; i<levels.length; ++i) {
currentNS[levels[i]] = currentNS[levels[i]] || {};
currentNS = currentNS[levels[i]];
}

return currentNS;
};

/**
* Global log method.
*/
YAHOO.log = function(sMsg,sCategory) {
if(YAHOO.widget.Logger) {
YAHOO.widget.Logger.log(null, sMsg, sCategory);
} else {
return false;
}
};

YAHOO.namespace("util");
YAHOO.namespace("widget");
YAHOO.namespace("example");
May 23 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4473
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main...
0
2077
by: Efkas | last post by:
I have a full custom application with some widged extending Controls like Label and PictureBox. I build a menu with these widgets. When I click on one of them, it calls a function to display...
4
4212
by: bridgemanusa | last post by:
Hi All: I have a very long page of html that I want to take portions and hide them in divs, then show when a link is clicked. I have the hide show part working when the link is clicked, however...
7
29118
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field...
5
8411
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
1
4150
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
2
3362
by: Alistair George | last post by:
Hi in Delphi its a piece of cake to show and hide a mainform eg mainform.show mainform.hide. However, after finding similar actions in C# seem to result in destroy of form object, which causes...
1
3782
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
7188
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
7063
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...
0
7258
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7313
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
6970
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
7441
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
4663
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...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
366
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.