![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Under Construction! |
|||||||||
IMPORTANT: CFOUTPUT.... Probably, one of the most important pitfalls to avoid is forgetting your CFOUTPUT tags. Often you may be sitting there trying to figure out why your page doesn't link to another page properly when a variable is involved. It usually is because you forgot your CFOUTPUT tag. Anytime there is a #variable# in a normal HTML tags or output, you MUST have CFOUTPUT tags around them. IF in doubt-- CFOUTPUT! Javascript problem solved... I had designed my application-using Navigator as a client, but when I tested it on IE, some buttons didn't function properly. The problem was that I was using Images as button, which called a Javascript function to submit a form. I did this using an <a href="##" onClick='doit()' tag around the image that submits the form. The doit() function submits the form. This worked fine for Navigator, but in IE here is a Javascript bug which didn't process the onClick event. This problem was solved by changing the tag to the following: <A HREF="javascript:doit()". Notice how I put the double ## in the href tag above. Remember you must use a double ## in Cold Fusion to process the tag as a single #. Spell checking ... A good spell checker for Cold Fusion can be found at the following address: http://www.emteksys.com/products/cfx_spell/ I have found this tag to be very useful and the example code can be easily modified to fit your needs. Creating new windows... In my application, I have a page, which creates a new window for a user to search the web, the problem was that every time they clicked it, they would loose their original search because the page would reload. I solved this problem by naming the window the current date and time (without slashes or :) in my Javascript winopen function. This ensured that a new window would be opened every time. CFLOCATION note... Remember that you cannot use a CFLOACTION if you are setting up a cookie on the page, or the cookie will not be set up. You can solve this by using the following meta tag where the 0 is the time delay in seconds. You could increase this number to suit your needs: <CFOUTPUT> |
|||||||||
![]() |
|||||||||
|