Help - Search - Members - Calendar
Full Version: Draw Fuunction Limited In Firefox!
MonsterSmallBusiness Forums > MonsterCommerce > Using MonsterCommerce Software
bestcofurniture
I just realized the DRAWFUNCTION is VERY limited in Firefox. For instance, if I try to add a DRAWFUNCTION in the product description and preview in Firefox - I can see all the code. However, if view in explorer it displays correctly.

Unless I'm mistaken about this, I would reconsider using any custom DRAWFUNCTION unless it can be viewed across all browsers or at least a couple.

I have got the DRAWFUNCTION to work in some areas such as zooming in images and so forth. Unfortunatley MC is NOT making there stuff very compatible with other browsers - which is one of the only downfalls of this whole system.

On the other hand, if someone knows a good work-around please let me know.

Thanks!
agkits
What draw function are you trying to use in a description? If you are using APD then most of those draw functions should be used in the APD editor and not in a product description.
bestcofurniture
yes i understand that - that's what i've been doing. this particular thing i'm working on requires that i DRAWFUNCTION in the prod/descrip. it still doesnt change the fact that this system isnt very compatible worry.gif
ArcoJedi
If the <%DRAW%> function code displays in Firefox but does not display in IE, then this really might have more to do with an issue I've seen with IE than with Firefox. In my experience, if you are putting a certain draw function into a spot it is not designed to work in, the plain code will be rendered by the browser. However, when IE reads something that is possibly supposed to be VBSCRIPT type code like between <% - %> it hides these from displaying. Firefox does not hide these tags.

I believe the idea is that if the server does not correctly process the script tag (or the MC Draw function), and IE sees it, the browser does not visibly render it, but it still will be in the source code. Firefox does render the code visibly. It could be argued which browser is doing the right thing, as at different times hiding/displaying the non-functioning code might be exactly what the webmaster would want. IE makes it a little more difficult to troubleshoot, but it does hide your mistakes conveniently.

As an example, check out the following page in both IE and Firefox -
http://arconati.name/function-test.html
- there is an ASP function that is supposed to display the current time, however, this is a static .HTML page so the code will not work. In IE, the code is hidden (but it shows in the source), in Firefox it is displayed.

Check and make sure that the script is working at all in either browser, not in the preview screen but on the actual site. From what you've described, my guess is that the specific script you are trying to use doesn't work in the spot you are trying to use it. I hope this helps!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.