Unfortunately the code suggested by vacunita didn't work, but I did find the answer on another forum:
<INPUT TYPE="file" NAME="filename" onKeyDown="this.blur()" onContextMenu="return false;">
Readonly disables the Browse button, but the javascript you suggested might be the answer I'm looking for. And a lot easier than what I was thinking. Thanks!
This is for our Intranet site, and we're still using IE7 as standard. We won't be upgrading for a while, so I would like to find a solution, if possible.
I couldn't find the answer to this question using search.
I would like to use an input box with a type of file, which users will then use to upload a file. But I also want to disable the text input, so they can ONLY use the browse button to select a specific (existing) file, rather than typing...
Thanks for your help - I now have my form working exactly as required (after some delays due to pedantic JS syntax requirements)! Here are the final pieces of relevant code:
<CFQUERY NAME="qryMsg"
DATASOURCE="Helpdesk">
SELECT id
, ct_id
, title
FROM broadcast_messages
WHERE...
Thanks for your response. In answer to your question, the information to be displayed will vary from one sentence, to three or four sentences - no more than that. I would say the first approach would probably be easiest for me personally, since I have no experience with AJAX or XML.
Any...
I am trying to write a piece of code to populate a dialog box, and I'm not quite sure of my next step (or even if it's possible). I've searched the FAQs and forums, but haven't found anything related to this.
I have a form with a select box. When an option is selected, I want the form to run...
I've done this numerous times.
Format your page as you would like it to appear in MS Word (including fonts, highlighting, etc.) then add the following code AFTER your cfoutput end tag, but before your body tag:
<CFHEADER NAME="Content-Type" VALUE="application/msword">
<CFHEADER...
Thanks - I knew I was missing something obvious!
My code is now working fine for the single quote, but I'm having a little trouble with the double quote (") - presumably because it's a reserved character in JS.
Is there some other syntax I should use besides this:
if (str.search(/\"/g) <...
I'm trying to write a simple function to search for quotes in a CF form field (called heading).
I suspect there is some special syntax required around using quotes, since they are special characters in JS, but I'm self-taught and having trouble finding any references!
My function is as follows...
Thank you! That second piece of code solved the problem, and everything's working perfectly. I suspected it was the CFLOOP tag, and I tried various combinations with the listfind function, but not in combination with the valuelist function.
Thanks again - you're a life-saver!
Helen
Sorry, should have included the cfoutput tags in the last piece of code:
<CFOUTPUT QUERY = "qryMeasures">
<TR>
<TD COLSPAN="3" ALIGN="left" VALIGN="top">
<INPUT TYPE="checkbox"
NAME="SEL_#b_id#"
VALUE="Y"
<CFLOOP QUERY="qryProjectMeasures">
<CFIF...
I having trouble populating checkboxes dynamically, and I'm hoping someone can help me.
I have three tables. This first is the parent:
PROJECTS
Project_ID
Name
History
Directorate_ID
The second is a list of values, grouped by Directorate_ID:
MEASURES
ID
Directorate_ID
Measure
The third is...
Thanks, that helps. I also discovered another way within the Enterprise Manager (which I hadn't used before) - these things aren't obvious when you're completely self-taught!
Helen
My apologies if this has been answered elsewhere, but the search function is not currently available.
I have a SQL Server database (which currently has an Access front-end). I was wondering if there is a way of reporting from within the SQL Query Analyser on all the table/column definitions...
Thanks again. As this mailout is only required once a year, I might just do a simple manual extract of the list of email addresses (there are only about 100 records), and import it as a text file to Outlook Express. I think it will be a lot easier!
Helen
Thanks for the response - I have that file as well, but Access won't let me use it as a reference (I get an error saying "Can't add a reference to the specified file"), and there are no references at all to any Outlook libraries in the select list!
Helen
Hi there
I'm trying to do something similar to Mike, ie. a mass mailout of a simple email in Outlook Express (with a Word attachment, so I can't use SendObject), using email addresses stored in an Access database.
I understand the code above, but I get an undefined user error when trying to...
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.