473,405 Members | 2,272 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,405 software developers and data experts.

Getting Css to "hit" the text

Nat
Hi, I've got this code (which have beeb giving me lots of trouble...).
It's a .NET webapplikation project, written in C# - and now with some
Javescript written in to it:

--------------------
protected override void Render(HtmlTextWriter w)
{
if (helpString!=null)
{
w.Write("<span class='tooltipiconouter'><img title =
'"+this.helpString+"' class='tooltipIconInner' align='center' src =
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
window.open(\"\", \"\", \"width=300, height=200, directories=no\");
myWin.document.write(\"" +helpString+"\");'></a></span>");
}
}
--------------------

Now it would seem as if class='tooltipIconInner' have some affect on my
myWin.document.write(\"" +helpString+"\");
But it doesn't, why? Do I have to write class='tooltipIconInner' in to
the code some where diffrent or what?

The HTML that is generated look like this:

--------------------
<td><span id="_ctl0_EditOrganization1_EXTLABEL1"
class="brod">Text</span><span class='tooltipiconouter'><img title =
'TextTextTextText Text Text Text Text Text Text Text
TextTextTextText'class='tooltipIconInner' align='center' src =
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
window.open("", "", "width=300, height=200, directories=no");
myWin.document.write("TextTextTextText Text Text Text Text Text Text
Text TextTextTextText");'></a></span></td>
--------------------

Nat
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
2 1063

"Nat" <-N********@sondagsavisen.dk> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Hi, I've got this code (which have beeb giving me lots of trouble...).
It's a .NET webapplikation project, written in C# - and now with some
Javescript written in to it:

--------------------
protected override void Render(HtmlTextWriter w)
{
if (helpString!=null)
{
w.Write("<span class='tooltipiconouter'><img title =
'"+this.helpString+"' class='tooltipIconInner' align='center' src =
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
window.open(\"\", \"\", \"width=300, height=200, directories=no\");
myWin.document.write(\"" +helpString+"\");'></a></span>");
}
}
--------------------

Now it would seem as if class='tooltipIconInner' have some affect on my
myWin.document.write(\"" +helpString+"\");
But it doesn't, why? Do I have to write class='tooltipIconInner' in to
the code some where diffrent or what?

The HTML that is generated look like this:

--------------------
<td><span id="_ctl0_EditOrganization1_EXTLABEL1"
class="brod">Text</span><span class='tooltipiconouter'><img title =
'TextTextTextText Text Text Text Text Text Text Text
TextTextTextText'class='tooltipIconInner' align='center' src =
I don't see a space before "class", typo? The browser might like/require it.
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
Here you mix <a href> code into the <img> element. I think you want to
start the <a href> before the <img> and close (</a>) it afterwards.
window.open("", "", "width=300, height=200, directories=no");
myWin.document.write("TextTextTextText Text Text Text Text Text Text
Text TextTextTextText");'></a></span></td>
--------------------

Nat
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #2
Nat
Thanks for your help. But I solved it, at last, by splitting it in to
pieces and adding some html (more document.write), like this:

-------------------------------
<img title = '"+this.helpString+"' align='center' src =
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
window.open(\"\", \"\", \"width=300, height=500, directories=no\");
myWin.document.write(\"<html><body bgcolor=#EDF4FB><font size=2
face=arial>\"); myWin.document.write(\""+helpString+"\");
myWin.document.write(\"</font></body><html>\");'></a></span>");
-------------------------------

Thanks again

Nat

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

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

Similar topics

2
by: Praveen | last post by:
In the ISPF editor I am using, for a particullar PO Dataset I am getting the result of FIND statement narrowed down to the colums 48-56. i.e. if I give "FIND 'TO' ALL", the result I am getting as...
8
by: Lyn | last post by:
I am trying to get my head around the concept of default, special or empty values that appear in Access VBA, depending on data type. The Access Help is not much (help), and the manual that I have...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
2
by: eBob.com | last post by:
I've got the basics of an XML ini file working. I.E. I can stash away and retrieve user preferences. (Code below.) But how do I handle a new preference? Say I have A and B. And then I invent...
1
by: fif3336 | last post by:
Hi everyone, I'm forwarding here a 100 euro bounty hunt I've started at drupal.org. It's about making a "word-html cleaner" module for the open source cms Drupal. All informations, including my...
5
by: garfy | last post by:
Hi i get this error in validation Line 22 column 6: document type does not allow element "title" here. <title>Seo Web Design Los Angeles - Web Design And Search Engine Optimization L ...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
2
by: alxasa | last post by:
Hello, I am hoping someone can help me with this. I need a javascript function, which sits inside a <input type="text" name="firstname"> line of code. Now, if someone starts typing fine, but when...
13
by: Kevin Liebowicz | last post by:
Yes, I wasted the past two days trying to fix this. Yes, this is on a Win2003 Server. Yes, this machine is a domain controller. Yes, I seen the dozens of KB articles like this one:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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,...
0
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...

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.