Quantcast
Channel: Adobe Community : Popular Discussions - Getting Started
Viewing all 64538 articles
Browse latest View live

Javascript Question Remove Leading zero's

$
0
0
I have a hidden Input form that has a value of 78, I am using javascript to validate that the amount the User entered in a new Input form is greater than the amount in the hidden form. But this is failing when a user enters stuff like 0775 or 000745. Is there a way I could remove the leading o's zeros and then do the validation. <cfinput validate integer> allows entering of leading zeros, I want to remove the leading zeros. Is it possible?

Thanks

AJAX problems in CF8

$
0
0
I'm in the process of migrating an AJAX-heavy application from CF7 to CF8. CF8 is creating an unterminated string literal error on thesecond and subsequent AJAX call. Same code that runs fine in CF7. The AJAX is just pure javascript, no custom libraries or anything. The XMLHttpRequest.responseText is populated with the expected result.

In looking at the results, I don't see any reason an error should occur. The only variable is CF7/CF8.

Thoughts?

CF8 and CF7 at same time?

$
0
0
Hi,

I am running CF7 and I want to test and generally ***** CF8 before I move all of our code over to it. It would be really useful to have both installed and running on my local machine for this.

Can I install CF8 whilst CF7 is still installed? And will I be able to switch easily between the two so I can see code running in both instances? I just want to use the in-built web server on my local machine, nothing fancy.

I've reviewed the other threads about installing CF8 after CF7, but none seem to address wanting to have both installed and running at the same time. I could run them on seperate machines, but I'd rather not if possible.

Thanks!

Getting started web page error

$
0
0
Hello ColdFusion guru,

First, I am new to ColdFusion.
I download an evaluation version for Linux: coldfusion-702-lin.bin.
OS is Redhat AS3: Red Hat Enterprise Linux AS release 3 (Taroon Update 5)

Anyway the install is ok. I can login to CF main page as Administrator, but when I click on the Link: Getting Started and I got the error as:
" Oops. Sorry for the error.

One of several things could be happening:

* You're trying to execute a ColdFusion page with a URL other than the localhost or 127.0.0.1, or

* You haven't installed ColdFusion example applications or documentation.

If you tried to execute a ColdFusion page, you just need to:

* Execute example applications and ColdFusion utilities locally, using the localhost URL or 127.0.0.1, or,

* If the pages you want to execute are not present, rerun the ColdFusion installer to install the example applications or documentation. Code examples that you can run from the CFML Language Reference are installed along with the example applications.

Note that for maximum security, you should not install ColdFusion example applications or documentation on a production server."

Can some one point out what I need to do next to get this fix? Sorry for my ignorrant, but I am new to ColdFusion.

Thank you,

V-

How do I show my movie without restriction

$
0
0

Dear everybody

 

thanks for helpful answers, but I have another problem.

 

My website includes a flash-movie, but when I preview my site in internet explorer and connect to the movie I get the following message:

 

"To help protect your security, Internet Explorer has restricted this webpage from running scripts or Active controls that could access your computer."

 

How do I avoid this problem? I don't want the visitors of my site to see this message every time they are about to see my movie, and I have seen several movies on the web without getting the message.

 

Please help me, if you have the time!

 

Best regards

 

message in a bottle

Do cold fusion pages get search engine placement?

$
0
0

I'm new to cold fusion. I've been reading a couple of books. Following the layout ideas in one of those books I have developed a small cold fusion site. Nothing much to speak of and very basic. My homepage is a straight .html file (good for search engines). However, following the layout of the book, all of the rest of my pages are .cfm.

 

I use a "sitewrapper" which creates my header, left side, right side and footer automatically for each .cfm page. The content (which goes between the left and right) is .cfm files. All of the copy for each page is in the included files.

 

So my question is this: will search engines index the .cfm pages when they are "included" from another page? I don't really know how SEs work in that do they read the file in each page (.cfm or .html) or is it the "combined" output that the browser sees/outputs?

 

I would have to have to hardcode all of the individual pages in order to return a higher SE placement if that can be avoided. Each "section" has a separate header/footer based on what section the user is in.

 

Thank you in advance for any and all help/advice you can give. It is very much appreciated.

 

CF noob trying to learn ...

CFFLUSH and CFLOCATION don't work together?

$
0
0

I got a codes example from http://tutorial209.easycfm.com/ which is perfect for what I need. This little code is using cfflush to display "please wait" message.

It worked perfectly when I applied this code to my action page BUT unfortunately after the action page is done processing, normally a cflocation is ran at the end of action page to show the report page.

When I did not include this cfflush and the script, after finish processing my action page the cflocation called the report page but when I include cfflush and the script on my action page, cflocation is prevented from being called, so the process stop at the action page and I don't get to see my report page.

Does cfflush for some reason preventing cflocation from running???

Here is my code:

 

   <!--- I put cfflush code on TOP of my action.cfm page--->

  <cfflush interval="1">
  <!--- show the message saying there will be a delay --->
  <p id="wait" style="color:red; background-color: #CCCCCC; width: 200px; height: 50px;">Please wait while the data is processing.</p>

  .

  <cfinclude is working in here>

  .

  <cfif>

           <!--- some codes here ----> 

      <cfif>

              <!--- some more codes and queries here ---->

            <cfif>

               <!--- some more codes and some more queries here ---->

           </cfif>

              <!--- This script goes with CFFLUSH --->

 

 

 

 

 

              <script>

 

 

                 if (document.getElementById) {

                      wait

.style.display="none";}

 

 

             </script>

   </cfif>

 

</cfif>

   <!--- This cflocation is not run once the process is done BUT it is ran when I took out the cfflush and script --->

   <cflocationurl="showreport.cfm?y=#lyear#&fn=#reportname#">

 

Does anyone know why my cflocation doesn't get call when I include cfflush and the script????

datefield in inserts 01/01/1900 when left blank.

$
0
0

Hi,

Does anyone know why <cfinput type="datefield" name="date" size="10"> inserts 01/01/1900 when the field is left blank?  In my insert statement, I can see that a blank  " " is inserted.  When I query the record I get 01/01/1900.

 

Has anyone else run into this issue?

 

Thanks,

Maryam


Embedded carriage return

$
0
0

We have  an application with a textarea that is used for comments, free form text. It seems that if the user enters a line of text, then uses the enter key to go to the next line, it captures the carriage return. When the form is brought up for review, it is completely empty, yet all the data that was entered is in the table.

 

If the textarea is entered without using the enter key, the data displays when the form is reviewed.

 

I have never encountered this problem before and tried it and it does indeed do what is described above. I entered the textarea without using the enter key and the data displays. I went back to edit and added the enter key to the textarea and the form is completely blank.

 

What is going on and how can I prevent this from happening ?

Linking to powerpoint

$
0
0

I have a powerpoint document that I want to link to, so I have something like this :

 

<a href="../documentation/ClaimFormTrainingIntro.ppt" title="Claim Form Training">Claim Form Training</a>

 

It does open the document, but it appears to be cropped in the center, with alot of space to the right and left. If I open the document directly in powerpoint, it takes up the whole screen. But when I call it from the link, it does not appear right.

 

What else do I need to do to make the powerpoint link take up the entire screen ?

cfwindow, how do I .....

$
0
0

Ok I got this code setup for a little login window on page called login.cfm:

 

<cfif isdefined("form.HICMS")>
<script type="text/javascript">
ColdFusion.Window.hide("loginWindow");
</script>

 

Do Authentication ......

 

<cflocation url="private/" addtoken="no">
</cfif>

 

<cfwindow name="loginWindow" center="true" closable="false" draggable="false" modal="true" title="LOGIN!" initshow="true" resizable="false" width="400" height="180">
<cfform name="loginForm">
<cfinput type="hidden" name="HICMS" value="TRUE">
<table align="center" border="0" cellpadding="4" cellspacing="2" width="100%">
    <tr>
        <td align="center">
            <font color="#FF0000">*</font> <label>UserName: <cfinput name="userName" type="text" id="userName" required="yes" message="You must input a Username!"></label>
        </td>
    </tr>
    <tr>
        <td align="center">
            <font color="#FF0000">*</font> <label>Password: <cfinput name="passWord" type="password" id="passWord" required="yes" message="You must input a Password!"></label>
       
        </td>
    </tr>
    <tr>
        <td align="center">
            <cfinput type="submit" name="" value="Login!">
        </td>
    </tr> 
</table>
</cfform>
</cfwindow>

 

Along with a private directory with an index.cfm in it says 'hello welcome to private'.

 

Ok the problem: when it does the cflocation it all stays in the window, little tiny window. How do I get it to go back to the browser? tried hide window and destroy window with no luck, what am I missing here? cflocation does not work in cfwindow?

 

Any help is greatly appreciated.

Error message

$
0
0

Hello again , after adding the following code to my page I get a popup with an error message saying

Imports for tag CFFORM are missing. Use CFAJAXIMPORT to import them on your main page. [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]

 

<cfform id="speepri" action = "#CGI.SCRIPT_NAME#">
                <cfselect id="spepri" query="qhip" name="speprice" display="spd" value="cid">
                </cfselect>
                </cfform>

 

can anyone see what the problem is or how to solve it?

 

thx a mill

NEED HELP WITH BUTTON

$
0
0

HELLO, I'M NEW TO COLDFUSION.

IS THERE A BUTTON FUNCTION AND CLICK WILL TIGGER A COLDFUSION FUNCTION (NOT JAVASCRIPT FUNCTION)? WHAT I'M TRYING TO DO IS TO CREATE A BUTTON AND WHEN USER CLICK ON IT, IT WOULD CALL COLDFUSION FUNCTION. I NEED TO USE CF TAG AND CAN'T USE JAVASCRIPT FUNCTION. OR IS THERE ANY WAY TO USE CF TAG INSIDE JAVASCRIPT (FROM WHAT I UNDERSTAND IS NOT POSSIBLE)?


EG.

<cfinput name="TEST" type="button" value="TEST" onClick="#TEST()#">

<cffunction name="TEST" returntype="void">

          <cfoutput>
        "this is test"
        </cfoutput>
          </cffunction>
      

 

 

I DON'T KNOW IF IT IS POSSIBLE. AS, I SAID I'M NEW TO COLDFUSION. ANY HELP WILL BE GREATLY APPRICIATED.

 

THANKS

Excel Question

$
0
0

I have a CF application that outputs carrier tracking numbers. I need to export this data to excel. If the output is 1Z234TY988784AQ, the export works fine because of the alphas. If the output is 1234567890, without any alpha, excel thinks it is a number and exports it in the scientific notation. If I put a space at the beginning or end, then the ouput works fine.

 

However, the user then takes the excel file and uses it to compare against another file with carrier tracking numbers. They claim they are not finding any matches becasue of the space.

 

How do I get around the scientific export  ? Will csv file work ? I have not found any documentation yet on csv so I thought I would post my problem here.

 

Thanks

Finding errors in a Coldfusion source file at compile time

$
0
0

My application is built using Coldfusion, Flex and MySQL as backend. I am using FlexBuilder 3 for editing/compiling the Flex source(MXML and Actionscript) files. For the Coldfusion(CF) source files(cfm and cfc files), I am using Coldfusion Builder to edit the source files since it is an IDE for Coldfusion so using that I can see the CF syntax highlighted and text which is commented. After, I complete editing the Coldfusion source files in Coldfusion Builder I close them in CF Builder. Then, the application is compiled using the Flex Builder, but I cannot see any syntax errors if they exist in the Coldfusion source files and I learn of the errors at run time that there is a tag nesting error.

 

After, I edit the Coldfusion source files I close them in CF Builder so that Flexbuilder can compile the project and there is no issue of CF source file being locked due to being open in CF builder.

 

1. What can I do to ensure I see the CF errors at compile time?

 

2. Is there a better/another method than what I am doing to work on a project which has Flex/CF source files?

 

Any advice would be appreciated.

 

Thanks


date and datetime types with cfqueryparam

$
0
0

How do you get a date and a datetime type into a table with cfqueryparam ?

 

For date  I have tried <cfqueryparam value=#createodbcdate(thedate)# cfsqltype="CF_SQL_DATE" maxlength="23" null="yes"> and got NULL in the table.

For time I tried <cfqueryparam value=#now()# cfsqltype="CF_SQL_TIME" maxlength="23" null="yes"> but the date part of the datetime value was 1970-01-01.

 

In the table, types for these columns are datetime.

how to create 3D carousel with coldfusion

$
0
0

Hi ,

 

I need your help guys. I have a requirement where in main page i need to how all the latest products in format of 3D carousel where user will select any product and then go to information page from there.

 

I am looking for any examples that i can find in coldfusion  so that i will get some idea .

 

You people got this one done  before ? please help me

 

here is the site where i looked some example and i am looking for the  similar example to work on.

 

here is the link

 

http://www.freeflashcomponents.net/flash-menus/free-x-treme-3d-carousel-menu-xml-as3.html

David Powers’ tutorial, “Setting up CF development environment for DW”

$
0
0

I left this comment for Mr. Powers at the end of his tutorial and was advised to post here by the Moderator:

 

I had no problems until the very end:  can’t display the final page in Live View or in any browser.
 
One anomaly in the CF installation:  Adobe strongly advises running the CF 9.0.1 update [ http://kb2.adobe.com/cps/849/cpsid_84973.html ].  I ran this update after completing your installation procedure and before “Setting up in DW” for the Mac.  The “Update successfully installed” window included the following message:
 
“SolR server has been upgraded. Re-index all the collections.”
 
Having no idea what that meant, I proceeded to create the CF site in DW.  No variations from your text until Item #9, “Create a ColdFusion data source”:  my text box was labeled “Database FOLDER,” not “Database File” per your tutorial.  
 
Where did I go wrong?
 
Mac Pro Intel, OS 10.6.7, MAMP installed but not running at the time.

 

Can anyone here help me?

Installing CFMX on WS 2008 R2

$
0
0

We just upgraded our webserver and we have an older version of ColdFusion - MX. I tried running it on WS 2008 but it says it's not compatible. Is there any way to get this working or will be need to upgrade to the newest version?

 

Thanks!!

How to find a carriage return and Line feed?

$
0
0

I need to detect if a crriage retunr and line feed present on each row in my text file before allowing user to upload the text file

I know how to remove them from each line but what I need is to detect them no removing them from file.

Our concern is when the a row does not have carriage return and line feed.

Is there a way to find this using CF? Please help

thanks

Viewing all 64538 articles
Browse latest View live