Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
260 views
in Technique[技术] by (71.8m points)

JavaScript Error when using Flash Forms in ColdFusion 9

I'm having a problem with Flash Forms on ColdFusion 9 that worked perfectly under ColdFusion 8. When viewing the flash form in the browser, the form elements themselves display correctly, but the data for each field is not rendered in the input elements, and not present when submitting the form. When the page loads, I get an error:

964024021.mxml.cfswf:1 ReferenceError: Can't find variable: updateHiddenValue

The function updateHiddenValue is a function that's defined in /CFIDE/scripts/cfform.js, which is getting loaded into the page. If I use the Console and run the function directly, it runs without a problem:

enter image description here

To try and figure out why this might be happening, I fired up Charles and watched the requests to the server. As you can see in the screenshot below, the .js files receive 200 responses showing that they're good to go, but the cfswf requests are getting "connection closed" errors, and then 200 requests. The cfswf requests are obviously finishing correctly, or I wouldn't see the flash form at all.

enter image description here

So I need to figure out why I'm getting these .js errors so I can get this flash form workng. I can only assume that the error is originating from the flash side of things or via Flash Remoting (?), I just have no idea how to debug this issue and get things moving forward.

question from:https://stackoverflow.com/questions/12159196/javascript-error-when-using-flash-forms-in-coldfusion-9

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I occurred with the same error while i was developing one application . You might be declaring some other script before this which will bring conflict . Comment all others and try again . Mine was resolved by doing this hit an trial method . I commented all scripts run my application , it worked out .


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...