No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
you can save an existing excel file to a .xml file and wrap it with [CODE] <cfsavecontent variable="strXmlData"> <cfoutput> <!--- Excel that was converted into an xml here ---> </cfoutput> </cfsavecontent> <cfheader name="content-disposition" value="attachment; filename=franchisee.xml" /> <cfcontent type="application/msexcel" variable="#ToBinary( ToBase64( strXmlData.Trim().ReplaceAll( '>\s+', '>' ).ReplaceAll( '\s+<', '<' ) ) )#" /> …
I guess you can do this. This is the sample of the image tag. [CODE] <img src="Creek.jpg" alt="creek image" width="359" border="0" height="310" onclick="changeImage(this)"/> [/CODE] this could be your javascript function [CODE] function changeImage(obj){ obj.src = //insert your new image path here' } [/CODE] Hope that help:)
basically the code is just like this: [CODE] <img src="Creek.jpg" alt="creek image" width="359" border="0" height="310" onclick="changeImage(this)"/> [/CODE] this is the javascript code [CODE] function changeImage(obj){ obj.src = 'the path of your new image here'; } [/CODE] hope that you did understand this code :)
You can search javascript event handlers if you like. Javascript has methods like onclick(), onsubmit(), onmouseover() and more to handle those kinds of things.
You can try to find some Capitalization method from the database that you are using and search it like. In postgreSQL they have initcap() method for capitalizing the first letters of the words. I don't really know but I did not find any method in coldfusion that converts the first …
[QUOTE=mmonclair;1090975]Hi all, I am working on an interface that communicates with a PostgresSQL to create and grade a multiple choice test. The steps go like this: 1. Get user information 2. Set up a record of the user's test in the database 3. Pull in questions and possible responses from …
[QUOTE=oldnewbee;1049566]First I run a simple query to get the max ID from the table, which returns a number 10284. To which I would like to add a randomly generated number. So I get a number like '2' and it adds it and I get 10287 - which is INCORRECT! I …
The End.
grungy coder