I want to be able to transform the contents of an XML file into a coldfusion structure, with structure elements named by the XML node names.
XML structure:
<text>
<node1>Node1 data</node1>
<node2>Node2 data</node2>
</text>
Coldfusion structure required:
struct.node1="N ode1 data"
struct.node2="N ode2 data"...
User Profile
Collapse
-
Transform XML data to Coldfusion structure
-
The code text I am using is:
Code:<cfinput type="submit" name="Next" width="120px" value=" #myforms.next# ">
-
Label cfinput submit controls using xml
I want to change the language of the word that appears on a cfinput submit control. I can control the word that appears on the control using the 'value' parameter. However, when I try to use an xml text expression to give a value to the 'value' paramater, I get alot of stuff surrounding the word that I do not want.
For example:
<?xml version="1.0" encoding="UTF-8"?><next>Apres </next>... -
Link to javascript functions
I'd like to screate a link to my javascript functions, such that they do not appear in the page source code and users cannot tamper with them. I've noticed that other websites appear to be able to this usings commands such as:
[HTML]<SCRIPT src="folder/functions.js" type=text/javascript></SCRIPT>[/HTML]
However, when I try this it does not work. Can anyone explain what I need to do to make this... -
I don't appear to be able to make this work. It appears logical enough to me. I've tried the code as suggested. I tried changing the colour of the text to highlight the effect. Unfortunately, it does appear any different from the text without the text-decoration setting.
I am using a CSS style on the text and I am manipualting that in the tag. I'm not sure if that will have anu effect?
i.e.
Code:<div class="css_style"
Leave a comment:
-
Animating flashing text
I'd like to animate some of the text on my website, such that in certain instances it appears to flash on and off as if it were a flashing bulb. Could anyone suggest the most efficient way of doing this?
Regards
Blackmore -
Form textarea element
In some of my online forms, I have a number of large 'textarea' cfinput elements that I have provided to allow the user to enter large amounts of text onto a MS Access database. I have made the 'textarea' cfinput elements deliberately large to allow the user to enter the text in paragraphs, within the 'textarea' elements using the Return key.
However, when the text is returned to the screen from the database the carriage returns are... -
To be honest I'm not sure? When I set-up my page files in Dreamweaver the file property content is that which appears by default. Do you have a source to guidance that explains what file properties are required for what I might be attempting to do in each page?
Another example; I've seen things like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
OR
<!DOCTYPE...Leave a comment:
-
Firefox Error Message
I am posting this question on the Javaxript forum as I suspect it has something to do with a Javascript issue.
When accessing my website with Firefox, the webpages produce the following error message:
<%@ page contentType="te xt/html; charset=iso-8859-1" language="java" import="java.sq l.*" errorPage="" %>
Can anyone explain why this is happening and how I can... -
-
Microsoft Vista and Access Database
I developed a Coldfusion based website that makes use of a Microsoft Access database with an ODBC driver connection. It appears that the ODBC driver does not work properly with the Microsoft Vista operating system. I would like to be able to develop my website further with a new computer I have just bought that operates with MS Vista.
Does anyone have a solution to this problem?
Is there another method for connecting to the... -
Microsoft Vista and Access Database
I developed a Coldfusion based website that makes use of a Microsoft Access database with an ODBC driver connection. It appears that the ODBC driver does not work properly with the Microsoft Vista operating system. I would like to be able to develop my website with a new computer I have just bought that operates with MS Vista.
Does anyone have a solution to this problem?
Is there another method for connecting to the MS Access... -
Augmenting hyperlink with javascript
I have tried to enhance the functionality of my website by adding some javascript functions to augment my hyperlinks. I have not removed the hyperlink as I am conscious that some browsers may have javascript disabled. So the server call needs to be retained if this is the case.
However, if javascript is not disabled I would like to cancel the hyperlink. Otherwise the link will effectively do the same thing twice; once on the client... -
Delete predictive text in form element
The text <cfinput> elements in my forms retain the previous values that I have typed in, appearing in a drop-down list under the text element. I would like to remove this feature from the form text elements. Could anyone advise me on how best to remove this predictive text feature from my form elements.
Regards
Blackmore -
Problems with array in form object
For multiple records of a similar type in a database query, I am attempting to define some checkbox form elements from the query using an array:
[CODE=cfm]
<cfset temp=ArrayNew(1 )>
<cfset i=1>
<cfloop query="myQuery" >
<cfset temp[#i#]=#myQuery.colNa me#>
<cfinput type="checkbox" name="temp[#i#]" value="#temp[i]#"/>... -
I am using Coldfusion MX7.
The sessiontimeout value is set at 10 seconds, but it is not set within a cfapplication tag. I've set it in the application.cfc .
i.e.
Code:<cfcomponent> <cfset this.sessiontimeout="#createtimespan(0,0,0,10)#" > <cfcomponent>
What is the scope of the cflogin structure? Is the lifetime...Leave a comment:
-
Securing Coldfusion application using cflogin
Following the guidance contained in Dreamweaver, I have declared a cflogin tag in the application.cfc file. This declaration contains an idletimeout setting of 10 seconds (N.B. 10 seconds for development purposes only).
[CODE=cfm]
<cflogin idletimeout="10 ">
<cfif Not IsDefined("cflo gin")>
<cfinclude template="./loginform.cfm">
<cfelse>... -
That works fine when I define the variable explicitly. However, I am actually attempting to define the variables by referencing values in a structure.
e.g.
[CODE=cfm]<cfloop index="tmpVar" list="#struct.s tr1#,#struct.st r2#">
<cfinput type="checkbox" name="myName" value="#tmpVar# ">
<cfoutput>#tmpV ar#</cfoutput>
</cfloop>...Leave a comment:
-
I've tried that aswell, and I get the same result.
Blackmore...Leave a comment:
-
Reference variable in cfinput checkbox value
I am attempting to loop through a list of string variables to define the values in a group of checkboxes. However, I am having difficulty writing the correct syntax, as the following syntax produces the output shown:
[CODE=cfm]<cfloop index="tmpVar" list="Str1,Str2 ">
<cfinput type="checkbox" name="myName" value=#tmpVar# />
<cfoutput>#tmpV ar#</cfoutput>...
No activity results to display
Show More
Leave a comment: