what i need is to show the "hexmsg" variable in that popup window.
please help.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
Try searching the forum since it is asked many times here.
Eric
Mkhaya Tini
Greenhorn
Joined: Oct 06, 2005
Posts: 23
posted
0
Ok, i kinda figured it out but again not really. I'm having a really weird problem:
I've a table. the content of each cell are unequal and when showing all, it does not look good. so, what i'm trying to do is, show only the first 30 letters and when click on these 30 letters a pop up window will show up and show the whole string. here is the javascript function i'm using:
function showAll(message){
var newWin = window.open ("../views/showmessage.jsp"); var fi = newWin.document.getElementById("shwmsg"); fi.value = message; }
where shwmsg is a text field in the popup window. the weird problem is, it is working or not working - completely randomly. I click on the link, nothing happens. I mean, the popup window shows up, but the text field is empty. I keep clicking and may be after 5 times, the messages shows up in the text field. then again it does not show. after may be another 3/4 click it shows. if it works, it should work all the time, and if it does not it should never work. does anyone have a clue?
off topic, but if someone can give me another way of doing this besides pop up, i might try using that too. thanks. [ October 11, 2005: Message edited by: Mkhaya Tini ]
Mkhaya please use real words rather than short-cuts like "u".
To "float" a div, use CSS to give it a z-index higher than any other, and to specify its dimensions and placement. The CSS display attribute can be used to show and hide the div (using values of 'block' and 'none', respectively).
Mkhaya Tini
Greenhorn
Joined: Oct 06, 2005
Posts: 23
posted
0
ToolTipText (title) is easy to implement but does not give the ability to print, which I need. Float is not working for this purpose either. can someone help me with sending a value to a popup window?
all i need is, create a popup from a main window, pass a value to the popup and show that value. anyone? thanks in advance.
Ah, I though you were saying you were passing through. My mistake.
HTML/JS isn't the same withour you
Mkhaya Tini
Greenhorn
Joined: Oct 06, 2005
Posts: 23
posted
0
thanks Eric Pascarello, it has been very helpful. another quick question for you, if you don't mind. is there a way to show the content of a javascript variable say var x ="Java Ranch" inside a paragraph?
so the final output will show the words "Java Ranch" but not in a text box or something like that but inside a <p>....</p> attribute.
the reason I need this is formatting. none of the <b>,<i> or stuff like those works in a textarea.