PDA

View Full Version : Help with Javascript


Rubu
October 11, 2005, 02:45 PM
Probably arnab can answer this, but its open for any one ;)

I'm having hard time with something that is supposed to be easy.

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 ("../showmessage.jsp");
var fi = newWin.document.getElementById("shwmsg");
fi.value = message;
}

this is not working. don't know why. any suggestions about how i can do this: create a popup window, pass a variable to it, show the value of the variable to the popup window.

Mahmood
October 11, 2005, 07:38 PM
Does this help?

http://www.banglacricket.com/raj/showtip.htm

If this will do, just view the source.

Rubu
October 12, 2005, 07:15 AM
thanks mahmood vai. i think this will help for sure. i tried to use window.createPopup() and works fine with IE but not with firefox, so i'd to give it up. i'll try this one out.