Re: JavaScript Image Problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16689
interpreted = N
texte = >I've put up a site using JavaScript images for buttons. The script works >fine on pages unless those pages are passed through WebCatalog. In such >cases, the images are not responding to OnMouseOver, though text sent to >the message bar does work.Remember that WebCatalog is looking for things like [xxx] and changing them based on what it thinks it should substitute there. In your case, I'd guess that document[name].src is being changed because [name] is a variable from the OrderFile in your cart. If the [name] in your OrderFile is blank, this gets changed to document.src before the client browser's JavaScript can see it.The solution is to wrap [Raw]...[/Raw] around your entire JavaScript section so WebCatalog doesn't try to interpret anything inside there.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: JavaScript Image Problem (Tim Newton 1998)
  2. Re: JavaScript Image Problem (PCS Technical Support 1998)
  3. JavaScript Image Problem (Tim Newton 1998)
>I've put up a site using JavaScript images for buttons. The script works >fine on pages unless those pages are passed through WebCatalog. In such >cases, the images are not responding to OnMouseOver, though text sent to >the message bar does work.Remember that WebCatalog is looking for things like [xxx] and changing them based on what it thinks it should substitute there. In your case, I'd guess that document[name].src is being changed because [name] is a variable from the OrderFile in your cart. If the [name] in your OrderFile is blank, this gets changed to document.src before the client browser's JavaScript can see it.The solution is to wrap [raw]...[/Raw] around your entire JavaScript section so WebCatalog doesn't try to interpret anything inside there.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Separate SSL Server (1997) Practice runs ? (1997) WebCat B13 Mac CGI -- Frames question (1997) greater than or equal to (1997) Sendmail and attachments? (1998) Help! WebCat2 bug (1997) Rendering out a page (1997) Re:no template caching (1997) emailer error -108 (1997) WCS Newbie question (1997) WebCat2.0 [format thousands .0f] no go (1997) Fw: Webcat followup question (1999) Emailer setup (1997) Ampersand (1997) Online reference (1997) LOOP and IF statements (1997) Execute Applescript (1997) GrandTotal not right (1997) Next X hits (1996) Monthly Reports (2000)