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:
Browser compatibility (Was: Search Engine bots) (2002)
[TaxableTotal] - not working with AOL and IE (1997)
Shopping Cart variation... (1997)
sending formatted e-mail? (1998)
Replace context problem ... and answers (1997)
Is this possible in simple search? question? (1998)
Emailer Chokes on bad address (1997)
WebDNA 4.5 not starting on boot? (2002)
Now when I send TeaRoom Order fields it does not post in Invoice. (1997)
[WebDNA] Yosemite (2014)
customers order (1999)
send mail problem? (1997)
[WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016)
Fedora Core 6 (2007)
WCS Newbie question (1997)
[protect] on NT? (1997)
Help!!!! Purchases not going through! (1997)
Attn: Bug in GeneralStore example b15 (1997)
RequiredFields (2000)
WebCat2: Items xx to xx shown, etc. (1997)