[Javascript] Trouble with id

Del Wegener del at delweg.com
Tue Jun 5 08:30:25 CDT 2007


Thanks Peter and Anthony;
My use of ( or lack of ) quotes was indeed the problem.
Peter, your suggestion works fine.
I should know better, but still make silly erros like this.
Thanks for you help.
Del
  ----- Original Message ----- 
  From: Peter Brunone 
  To: javascript at LaTech.edu 
  Sent: Monday, June 04, 2007 10:39 PM
  Subject: re: [Javascript] Trouble with id


   I would guess it has to do with the fact that your event handler code should have quotes around it just like any other HTML attribute, and you're not switching quote types (i.e. single to double) when delimiting the ID parameter.  
  In short, this would be right:

  <a href="#" onmouseover ="toggle_visibility('hint4')">
  <img src="../../image/icon_toggle.jpg" width="22" height="22" 
  border="0"></a>
  <span class = "hidden_hint" id="hint4">
  Add -<img src="../images/sq_root_7.gif" align="absmiddle"> to both sides
  of the equation.
  </span>

  Does that help?

  Cheers,

  Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070605/266dfdc6/attachment.htm>


More information about the Javascript mailing list