Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Dgandhi
  • Order by date
  1. Dgandhi

    window.onload() ??? Why doesn't it work?

    I am actually writing a custom JSP TAG to generate the code so I ended up doing something like: a = 5; b = 6; window.onload=startpoll(); Then, in startpoll(), I pick up these global variables. Not elegant, but I couldn't find any other way. By the time I'm processing the tag, I'm in the body.
  2. Dgandhi

    window.onload() ??? Why doesn't it work?

    Many thanks! I guess, there is no way to pass arguments to these load/unload functions. e.g., startPoll(3000);
  3. Dgandhi

    window.onload() ??? Why doesn't it work?

    Why does'nt this work? <BODY> <SCRIPT language=&quot;JavaScript&quot;> window.onLoad=alert(&quot;onLoad() called.&quot;); window.onUnload=alert(&quot;onUnload() called.&quot;); alert(&quot;In Body&quot;); </SCRIPT> </BODY> I would have expected the &quot;In...
  4. Dgandhi

    Refreshing DIV contents in Tables :-(

    I tried something that's funky but it partially worked: I created an absolute <DIV> within a relative <DIV> .tc {position:relative; layer-background-color:green;} .tcAbs {position:absolute; layer-background-color:yellow;} ... <td> <DIV class=&quot;tc&quot; ID=&quot;total2&quot;>...
  5. Dgandhi

    Refreshing DIV contents in Tables :-(

    Many thanks for everybody's active participation. Yes, absolute positioning works, but if I have a table where multiple elements in a column need to be updated, it makes it difficult to position them just right. On the other hand, if I use text fields, they'll work too, but then the user may...
  6. Dgandhi

    Refreshing DIV contents in Tables :-(

    bangers: Yes, the only reason for the DIV tag is to be able to change the value. Is there any other way to change the value of a table cell? Please (please!) let me know if there is an alternative. Also, even if I use a class on the <td> itself, there is no way for me to access the contents...
  7. Dgandhi

    Refreshing DIV contents in Tables :-(

    The example code that I submited earlier is for Netscape ONLY. That simplified example does the following: 1. Let's the user type in a value in the text field. 2. When the button is clicked, it attempts to change the table cell's value to that in the text field (by modifying the contents of...
  8. Dgandhi

    Refreshing DIV contents in Tables :-(

    Unfortunately, merging the class and the id values didn't work either. It has something to do with using the DIV tag within Tables. I can change the DIV contents outside the table, but not within it. Here's a simple example that can be used to reproduce the problem (NS 4.0 specific): <HTML>...
  9. Dgandhi

    problem with dynamically writing to ilayers

    I'm sorry I left out the details... Here is a simple code that can re-produce the problem (it is NS specific). <HTML> <HEAD> <TITLE>DIV & Tables...</TITLE> <STYLE TYPE=&quot;text/css&quot;> .tc {position:relative; layer-background-color:yellow;} </STYLE> <SCRIPT...
  10. Dgandhi

    Refreshing DIV contents in Tables :-(

    I have a &quot;refresh&quot; problem when I use the <DIV> tag in Tables using NS 4.0.Any help would be greatly appreciated. I put a DIV element in the table as follows: <td><DIV class=someClass ID=&quot;total&quot;></DIV></td> Then, I attempt to change the value of the table cell as...
  11. Dgandhi

    problem with dynamically writing to ilayers

    I have a similar problem with Tables and DIV. I put a DIV element in the table as follows: <td><DIV class=someClass ID=&quot;total&quot;></DIV></td> Then, I attempt to change the value of the table cell in Netscape as: document.layers[&quot;total&quot;].document.write(result); The table...

Part and Inventory Search

Back
Top