Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem running script in .cfm 1

Status
Not open for further replies.

TruthInSatire

Programmer
Aug 12, 2002
2,964
US
This is a bit crazy but i'm trying to run this rte script on my site. I made a stripped down version of this page in two formats. both pages are EXACTLY the same with the exception of the file name. one is rte.cfm and the other is rte.htm. the htm page works just fine but nothing shows up on the .cfm page. please help. the rte script is here:

Thanks

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
>> both pages are EXACTLY the same with the exception of the file name.

Only that's not strictly true, is it? Non-code differences aside, there are many things that are effectively different (assuming the HTML page is:


and the PHP is:

)

- The HTML version uses "richtext_compressed.js", while the PHP version uses "richtext.js" - is there a difference between thse?

- The PHP page has open "script hiding" tags, but no closing ones - this could throw off a browser trying to parse a badly-formed document.

Look into those, and see how you go.

Hope this helps,
Dan
 
how about a link to the cfm version that isn't working? ;-)


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
billy, i'm not having a problem with the php page. i'm having a problem with a coldfusion page which IS exactly the same once it hits the browser where the js is taking place. The only coldfusion taking place is in the application.cfm file which doesn't do anything, otherwise it's just HTML

Sorry jeff I knew I needed to post them but I was in a hurry and about to leave. here are the files.

All three pages are the same code (even use the same .js file)
the only thing different is the white space generated by the application.cfm file. however, I did the following steps and it works so i don't see how it is the whtie space.
1. viewed the .cfm source
2. saved the file as rtefromcfm.htm
3. published
4. opened the page and it works

Thanks for the help thus far.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
just for kicks i did a "save as" to create an asp and php page too they both work


created another cfm page with the same "save as" file it does NOT work


Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Hi,

I'm not sure if this will be any assistance but the following Javascript errors occur when I view the page in Firefox.

Error: invalid assignment left-hand side
Source File: Line: 1, Column: 2
Source Code:
""=";"rng;"curr"";"all"s"";"isIE;"isG"o;"isSafari;"isK"qu"or;"";"";"cssFi";functi" "it"(imgPath,"cPath,css?ua=navigator.us"Ag"""isIE=("msie")!=-1)&&"op"a")==-1)&&"webtv")==-1)"isG"o="g"o")!=-1"isSafari="safari")!=-1"isK"qu"or="k"qu"or")!=-1)"""m"ById&&"d"

Error: initRTE is not defined
Source File: Line: 21

Error: writeRichText is not defined
Source File: Line: 27




Michael Brennan-White
New Hampshire Treasury Department
 
Thanks Michael. Is that the only page you got the error in? What about the others?

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
I'm not sure why my reply didn't go through before.

The CFM page was the only one that received the JS error

Michael Brennan-White
New Hampshire Treasury Department
 
Thanks again. did you happen to try that is the source of the cfm page saved as an htm page.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top