I was not able to use your previous reference. I need to stay with the javascript format in my new thread. The switch syntax you reffered me to did not work in my case.
<!-- Javascript -->
function whichColour(obj){
if(obj.group_name.selectedIndex == 1)
<!-- Section 1 -->
{...
In my Javascript I want to add a third section, which calls a "option C" in my select statement. I am not able to get the correct syntax in the Javascript. Using the return in the javascript in the current location will show the first and second section, but when I add the third section nothing...
If want to add a third section to this function what is the syntax?
function whichColour(obj){
if(obj.group_name.selectedIndex == 1){
obj.directory.length=4
obj.directory.options[0].value="msds_pds/QEP Product Data Sheets/"
obj.directory.options[0].text="msds_pds/QEP Product Data...
Wullie,
I am already using this code to upload files and it works, but when I want to overwrite the same file with a new file the code does nothing?
Thanks, awieland
GUJUm0del,
The permissions on the folder are set for 'Everyone' and 'Full Control', which includes modify? Do you have any other ideas?
Thanks, awieland
GUJUm0del,
I am not receiving any errors. I tryed inserting the <cftry> and <cfcatch> tags and nothing came back. I did not receive an error and the page launched successfully, but the files did not update on the server? Any other suggestion or code you need to see?
Thanks,awieland
j4606,
Sorry about that I forgot to include the javascript, here it is.
<script language="JavaScript">
function setValue(obj1, obj2)
{
obj2.value = obj1.value;
return true;
}
</script>
Thanks
I am using the following code to Upload files to the server with no problems, but when I try to use this code to modify an existing file nothing happens on the server and the file is not updated?
Thanks In Advanced
CODE:
<cfif #FORM.hsmFileName# NEQ '' >
<!--- Modify Small Image files...
...am using the following to call the SERACH variable. So, I am only looking to adjust my javascript function on the form page to pass the variable?
*****************************************
search_form2.cfm: form page
*****************************************
<script type="text/javascript"...
Adam,
I need to use the JavaScript I submitted in my thread and modify it to send a 'Y' or an 'N'. I have tryed using what you suggested and it crashes my system. Thanks
Tracy,
1. Where in my code do you see me creating one of two checkboxes?
2. Using my code how would I create one checkbox and check whether or not it is checked using the same value. The reason I am asking is becuase I am not sure what you are suggesting. Thanks
Dan,
The site uses JavaScript to pass the variable 'Y' or 'N' and I can pass a 'Y' but can update to a 'N' with the above JavaScript. I do not know how picking up server side would help?
Dan,
Q1. Why are you using checkboxes instead of radio buttons, given that Y and N are mutually exclusive (at least I assume they would be).
A1. I am using a single checkbox so the user can check or uncheck the box. As far as I know a user can not select or deselect a single radio button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.