View Single Post
Join Date: Sep 2008
Posts: 4
Reputation: mjag16 is an unknown quantity at this point 
Solved Threads: 0
mjag16 mjag16 is offline Offline
Newbie Poster

populating text field in firefox not working

 
0
  #1
Sep 11th, 2008
i have a simple url -
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <a href="javascript:displayWindow('Slice 2100 (Commercial)');">SLICE 2100 (Commercial)</a>

that passes the the variable in a javascript function -
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <script language="javascript">
  2. function displayWindow(url)
  3. {
  4. var w, h, l, t;
  5. var nc;
  6.  
  7. w = 600;
  8. h = 409;
  9. l = screen.width/4;
  10. t = screen.height/4;
  11.  
  12. nc = url;
  13. document.forms['SellSheet'].elements['sellitsheet'].value = nc;
  14.  
  15. // no title
  16. // displayFloatingDiv('windowcontent', '', w, h, l, t);
  17.  
  18. // with title
  19. displayFloatingDiv('windowcontent', 'Floating and Dimming Div', w, h, l, t);
  20.  
  21. }
  22. </script>

the function then prints our the variable in a text field but it doesn't show in firefox -

my text field
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <input type="text" style="width: 292px" class="myTextBox" id="sellitsheet" />

any ideas?

thanks
Reply With Quote