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 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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 | Typhoon619/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:
[WebDNA] Sandbox Triggers (2008)
Emailer Questions (2000)
WebCat2b12 - New features for 1.6 users ... (1997)
Is there a way to just get to the last record in the database? (1997)
all records returned. (1997)
Sorting by date (1997)
how to check for no value while using [URL] to prevent cr (1999)
Display [price] in banner ad (1998)
Emailer program? (2000)
Verifying both name and password (was: THANKS) (1997)
Problem (1997)
Search inside Include (1998)
[WebDNA] Problem running Webdna (2011)
Simple way to create unique SKU (1997)
multi-paragraph fields (1997)
email [title] (1997)
oddball sorting problem -- almost okay now (2003)
Database Locking?!? (2000)
[WebDNA] improvements (2015)
WebCat2b12--[searchstring] bug (1997)