473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ad page Tooltip not work - Reload xslt file?

200 100+
Hi, I need help please!
My tooltip works fine but the moment one reload the page which is set on some objects then the tooltip does not work!

How can i bypas this or make it reload the xslt file?

<xsl:if test="Tooltip != ''">
<a>
<xsl:attribute name='href'>#</xsl:attribute>
<xsl:attribute name='rel'>ttip_<xsl:value-of select='@name' /></xsl:attribute>
<xsl:attribute name='onClick'>this.blur();return false;</xsl:attribute>
<img src="images/help.jpg" align="texttop" border="0" style='border : none; cursor:default; outline-style:none;'></img>
</a>
<div id="{concat('ttip_',@name)}" class="balloonstyle" style="width: 230px; border : none;">
<xsl:value-of select="Tooltip" />
</div>
</xsl:if>
<xsl:if test="@dynamic='true'">
<xsl:element name="asp:imageButton">
<xsl:attribute name='id'>reload_<xsl:value-of select='@name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='imageurl'>images/CFG/blank.gif</xsl:attribute>
</xsl:element>
</xsl:if>


Please what am i doing wrong?
Regards
Jan 21 '08 #1
2 2226
ismailc
200 100+
Hi, - i think i'm kind of screwed as i think when it first loads the xslt loads the aspx file then it fine - i can refresh the page it's okay but i loose my inserted values. Once the page is loaded & click on an autopost event then it executes a javascript funtion that kind of only load the objects & not the entire page then the tooltip is out!

i know it's a lot but i have to get this going!

The xslt file loads this aspx file that - on autopost call a jscript function


ASPX File

<%@ Register TagPrefix="uc1" TagName="MainMenu" Src="MainMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Header.ascx" %>
<%@ Page language="c#" AspCompat="true" Codebehind="myProcessItem.aspx.cs" AutoEventWireup="false" Inherits="FlowCentric.Net.Navigator.myProcessItem" smartNavigation="True" enableViewStateMac="False" debug="False" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>myProcessItem</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
<LINK href="skins/<% =Session["skin"] %>/styles.css" type="text/css" rel="stylesheet">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body>
<form id="Form1" method="post" encType="multipart/form-data" runat="server">
<uc1:header id="Header1" runat="server"></uc1:header><uc1:mainmenu id="MainMenu1" runat="server"></uc1:mainmenu>
<table class="tbDetail" width="100%">
<tr>
<td class="wrnHead"><asp:label id="lblMessage" runat="server"></asp:label></td>
</tr>
<tr>
<td class="row1"><asp:label id="lblName" runat="server"></asp:label></td>
</tr>
</table>
<asp:placeholder id="plc" runat="server" EnableViewState="False"></asp:placeholder>
<table class="tbDetail" width="100%">
<tr>
<td class="wrnHead"><asp:label id="lblMessage2" runat="server"></asp:label></td>
</tr>
</table>
</form></body></HTML>



View the source it calls the foll funtion:

<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("m icrosoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
<script type="text/javascript" src="/ig_common/20043/scripts/ig_csom.js" ></script>
<script type="text/javascript" src="/ig_common/20043/scripts/ig_webmenu.js" ></script>
<script language="JScript" type="text/JScript" src="/aspnet_client/system_web/1_1_4322/SmartNav.js"></script>
Jan 22 '08 #2
ismailc
200 100+
Hi, the tooltip is in the xslt file which i think is called via 'tbDetail' in the aspx.

Is there a way to maybe incorporate the tooltip in the aspx page, so that the javascript can also load it again after Postback?

<xsl:if test="Tooltip != ''">
<a>
<xsl:attribute name='href'>#</xsl:attribute>
<xsl:attribute name='rel'>ttip_<xsl:value-of select='@name' /></xsl:attribute>
<img src="images/help.jpg" align="texttop" border="0"></img>
</a>

<div id="{concat('ttip_',@name)}" class="balloonstyle">
<xsl:value-of select="Tooltip" />
</div>
</xsl:if>

Thank You
Jan 22 '08 #3

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

Similar topics

2
by: Christoph | last post by:
Can someone point me to a *good* resource (tutorial, hopefully) that discusses how to dynamically transform XML using different XSL templates on the same page? I've got one XSL template to convert...
1
by: zdhiu | last post by:
Hi javascript gurus, I have a simple html file (simple.html) with javascript. In html page there is sentence from variable defined in .js file (myFirst.js). Once I reload another .js file...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
7
by: TomDestry | last post by:
I have a web page and lots of XML files. When a link is clicked on the page, it calls a function via onclick with the XML file as a parameter: <body onload="InitContent();"> <a name="fileName"...
1
by: ismailc | last post by:
Hi, I have a tooltip that is javascript but works for the first page but on next page one has to (F5) refresh for it to work. I thought of refreshing it automatically just one after load. I...
1
by: timsamshuijzen | last post by:
The website I am developing is implemented as a Single Page Interface (SPI). During a visitor's session all new content gets loaded by JavaScript (Ajax), no new pages get loaded and the URL in the...
0
by: support | last post by:
I can't seem to find the appropriate help page for this simple problem. I have a web page, e.g. http://people-places-work.info/showCelebrities.aspx and create the xml (by hitting the "Export as...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.