Flash forms in j2me applications
Can I use flash objects in my application without using netBeans technologies???
Hi
Flash and J2me both can be use differently, not together till now. We can either use Flash or J2ME as a development tool.
Cheers,
Rohan Chandane
Similar Messages
-
How to get "Subject" & "Message" text from Flash form to default e-mail MS Outlook?
Hi,
I have the following code which is working fine except I can't get the user typed data from flash form to my default e-mail (MS Outlook) application. How to edit the following code?
In the code:
1) To ----> this field is okay since this email ID doesn't change
2) Cc ----> this filed is also okay since no changes will be in email ID
3) Subject ----> this may not be always as "Feedback", user may like to change the subject
Whant I would like to add more here is:
1) From ----> this text to be retrieved from "fromText.txt" input text box
2) Message ----> this text to be retrieved from "MessageText.txt" input text box
//1.Button event listener
SendMail.addEventListener(MouseEvent.CLICK, SendEMail);
//2.The SendMail function open up email application to send email.
function SendEMail(event:MouseEvent):void {
var email:URLRequest = new URLRequest("mailto:[email protected]?CC=[email protected]&Subject=Feedback");
navigateToURL(email, "_blank");
Thanks in advance for any support.
Regards.Thanks for the reply. I tried the code and result is like the following:
To: [email protected]
Cc: [email protected]
Subject: [object TextField]?body=From: [object TextField]
Body: Blank
The problem exist in SUBJECT & BODY.
Further help, please.
Thanks.
PS: I removed the ? before body and put & ------> the result is as follows:
To: [email protected]
Cc: [email protected]
Subject: [object TextField]
Body: From: [object TextField]
[object TextField]
One more thing that it opens an empty web page with the following text in adress bar:
mailto:[email protected]?CC=poweruser@helpdesk&Subject=Feedback -
Flash Forms do not work in Production
My question is simple. I am unable to find server
requirements for Flash forms anywhere on Adobe's website. It claims
you can find more in the other technical documentation but I
couldn't. What technologies need to be installed in order to
utilize flash forms SERVER-WISE?
I have a production server, a pre-production server (running
full cfmx7), and a development server. The application works on the
test machine, and on pre-production. The flash form simply does not
render and no errors are displayed.
If I convert it to a normal cfform it displays fine on the
troubled machine. It will not display even the most simple of flash
forms.
Thanks for any help!Did you make sure that you have a virtual directory mapped to
the CFIDE directory in IIS on your production server?
Ron -
NaN/NaN/NaN (Not a number) Flash forms type="DateField"
I have an application using Cold Fusion flash forms where the user selects the date with the flash calendar and the application stores the date in text format in the database. When I have to do date calculations I use the cdate() function to convert to date.
In one out of every few hundred transactions, the text field in the database is filled with NaN/NaN/NaN rather than the date. When the cdate() function finds this, I get the expected error (invalid date or time string) or (data type mismatch).
Has anyone else had this experience where randomly and rarely the datefield calendar outputs NaN/NaN/NaN to the text field in the database rather than the date? Any thoguhts or suggestions would be appreciated.
ThanksStrange this doesn't happen to me, or everybody else, and that it is contrary to the Javadoc. Isn't it?
Perhaps what you really mean is that you get an NaN when you use the result in some way?
In a JavaSE , similar operation doesnt cause any problemsSo you aren't using JavaSE.
Perhaps it would have been useful for you to tell us what exactly you are using? -
Host Header Flash Forms Problems
Hello,
I'm running CFMX 7.01 on IIS 6, Windows 2003 Server....
I've created an intranet application that uses several flash
forms. The site is located in the folder of
C:\Inetpub\wwwroot\CorpComWeb. This can be referenced from the
Default website by
http://sandy/corpcomweb/ OR
http://CorpComm (after adding an
internal DNS host header and then referencing it in Website -
Advanced - Host header value). This works great for every page
EXCEPT the two pages that contain CF Flash Forms. When I try to
access these pages using
http://CorpComm/flashformpage.cfm it spins into infinity (no
error just never loads). If I access the page by
http://sandy/corpcomweb/ the
page loads fine.
Any ideas as to why this would be?
Thanks in advance!Ok, stupid mistake on my part.
When creating the new site in IIS, I forgot to add a virtual
directory pointing to CFIDE... -
Just upgraded from CF MX 6 to MX 7. Trying out flash forms,
but they are not working.
I tried out a simple First Name, Last name, Submit form
setting the form to flash. When viewing the page in Safari, Firefox
on a Mac and IE in Windows the page is blank. If I set take out the
flash tag and just leave it as a CFForm it shows perfectly in all
browsers. All browsers are able to view flash and shockwave files.
Not sure what is going on.
Any ideas?
Thanks.I am having the exact same issue. I have tried tutorial code
from several sites. I have added a name to my form. I checked to
make sure my CFIDE directory is mapped in my CFADMIN. I don't know
what else to try. Right now I have the exact same code for testing
as mishuno has. If i remove the type attribute I see a form. If I
add back in "format="flash"" I don;t see anything on the screen but
I do see flash code in the page source. HELP!!!!
<CFFORM width="500" name="testForm">
<cfinput type="text" name= "firstname" label="First
Name">
<cfinput type="text" name="lastname" label="Last Name">
<cfinput type="submit" name="submit" value="save">
</CFFORM>
I think I found the issue just now but I am not sure how to
change it. Although I have a CFIDE mapping ( /CFIDE set to:
C:\Inetpub\wwwroot\CFIDE ) set up in my CFadmin, my application.log
is showing the following error:
quote:
File not found: /CFIDE/scripts/cfformhistory.cfm The specific
sequence of files included or processed is:
C:\Data\users\dev.myservername.com\CFIDE\scripts\cfformhistory.cfm
So the flash is looking in the wrong place for the form
related files (which are in my CFIDE folder in the correct
location)
Anybody know what I need to change on my server??
-Phil -
Cfselect, cfinvoke, cfgrid in flash forms
In an MX7.02 cfform format="flash"
I would like a user to select an option in a cfselect. (e.g.
name)
The selected value would be passed to a cfinvokeargument
the cfc returns the query results to a cfgrid
get agent names....
<CFINVOKE COMPONENT="agentQA"
METHOD="getAgents"
RETURNVARIABLE="aData">
populate cfselect....
<cfselect label="Agent" visable="yes" name="agent"
query="aData" value="message_author" display="message_author">
</cfselect>
query messages posted by the selected agent...
<CFINVOKE COMPONENT="agentQA"
METHOD="getquery"
RETURNVARIABLE="qData">
<cfinvokeargument name="agent" value="??????????????">
</cfinvoke>
don't know how to bind the selected agent name to the
argument????????
output only the selected agent's messages to messagesgrid
<cfgrid format="flash" width="100%" height="100%"
name="messagegrid" query="qData" rowheaders="false">
</cfgrid>
Any suggestions? I'm open to a different approach since I'm
just learning flash forms in CF.
Thanks,
DonUsing the
selected="[your value]" argument.
This can be a value from a query.
For instance, try the example in
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000331.htm
but add
selected="4" to the cfselect tag
i.e.:
<cfselect
name = "employeeid"
size = "1"
multiple="yes"
required = "No"
query = "GetAllEmployees"
display ="name"
value ="emp_id"
queryPosition="Below" width="100" selected="4">
4 is the emp_id value of Aaron Smith.
In your application, you would replace
selected="4" with
selected="[your database value]" -
Re: flash form renders as blank page
Anyone find a solution from Adobe regarding the MS Server
2003 problem with
flash forms? Its dead on our site after the upgrade and the
fixes did not
work for us.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=143&threadid= 1171893&highlight_key=y&keyword1=flash%20formsI'm having a similar problem. In my case, when opening help the first time (using a call to RoboHelp_CSH.js), the help window works properly. If I do not close the help window and click a help link (same call to RoboHelp_CSH.js), the help window blanks out entirely. I'm not sure if roblinc61 has a different copy of the whcsh_home.htm file than I do, but line 295 for me is three lines lower (goNewWnd.document.location.href=gsURL;).
The only answers I've been able to find about this error message relate to the same origin policy which should not apply to me as I am building an intranet application in which the help is held in a directory of the main site and is accessed through relative paths (in .NET I'm setting the starting point as ~/Help/index.htm). -
We have several intensive CF Flash Form apllications built
and are looking to move to Flex Builder. We need to convert our
current applications to Flex and I was wondering if there is a
quicker way other than manually rebuilding the applications to get
them running with Flex? I have tried using a CFDUMP to retrieve the
MXML from the flash form hoping that I could work with that but
have noticed quite a few syntax discrepencies. Anybody find a way
of accomplishing this? Thanks!You are doing exactly what you will need to do to convert...
It is time consuming...your best bet is to start from
scratch. I have tried and I found it more difficult to correct the
syntax errors...plus I need the code time in Flex Builder to
understand the IDE and what it does... -
Resource for Flash Forms?
I have a new application assignment and want to give it a try
with Flash forms. Can anyone suggest a tutuorial or *gasp* a book
that covers flash based forms in CF development?tclaremont wrote:
> I have a new application assignment and want to give it
a try with Flash
> forms. Can anyone suggest a tutuorial or *gasp* a book
that covers flash
> based forms in CF development?
i guess it depends on your needs but these days i'd just go
w/flex. plenty of
resources for that. -
Can we load a J2ME application on SIM Card?
Hi All,
Can we load a J2ME application on SIM Card? I have seen SIM Manager Softwares but they only give phone book and pin code related functionality. Kindly tell me if there is any such software which can load an application on SIM ?
Thanks,
Muhammad Bilal Awan,
Sr. Software Engineer.Hi,
Usually SIM cards are from 16K - 64K in size but with the invent of Flash memory SIM cards have now capacity of upto 512MB i.e. half a gig.
These SIM card providers provide softwares which can load J2ME applications on SIM.
http://www.gi-de.com/pls/portal/mai...5066&p_pg_id=42
http://www.oberthurcs.com/press_page.aspx?id=21 -
Hi all,
My name is Unyime Edet, male, from Nigeria.
I am currently creating a website with Dreamweaver and i
really want to know how i can create a Flash Form for my
Registration/application form page, starting from the scratch. I
really need some help and i want to know how to start. I am using
Dreamweaver, Fireworks, Flash and ColdFusion MX. Please kindly let
me know how to validate flash forms, and also how to send the data
gotten from the forms to a customized email address, then after the
user click the SUBMIT button, it redirects the user to a Thank you
page, OR when the user fills an incorrect data, how a mesage can
popup in flash, telling the user that the field that is required is
empty, or has not been completed.
I will be very glad if my post is reviewed and solved. Thank
you all. My email address is: [email protected] My website is:
www.izi2brauz.t83.net.
Sincerely,
Unyime EdetYour replacement form.swf could be as simple as an empty
movie with just
getURL("form.html","_blank");
in a frame script space.
However, while this will get the new html doc on the user's
screen, there may be more code in the opener swf that needs to be
managed. There may be some code in there that is waiting for the
form to be sent, or dismissed, or there may be some code that is
waiting for that form.swf to be closed. You'll have to try it and
see what happens.
There are many Flash decompilers available for Flash as2
files. If these movies are your intellectual property then you
could use one of these tools to decompile the movie and fix the
problem at the source. -
Uploading a file from a J2ME application
Ok, obviously this is either not interesting, or no one really knows what to do, I would love any ideas even if they dont work, just anything that would help would be great :)
I am extremely new to servlet programming and reasonably new to J2ME. I want to upload a file from my device to a central server. I am not sure how to go about starting this. I have a html form that requests a file and posts it to the servlet fine, but I am not sure how I would get my J2ME application to do the same. Do I replicate the html from with in the program? Any help would be much appreciated.
My basic servlet and Java code is:
Java
public String sendPostRequest(String urlstring) throws IOException {
HttpConnection hc = null;
DataInputStream dis = null;
DataOutputStream dos = null;
String message = "";
// the request body
FileSystem fs = new FileSystem();
byte[] file = fs.returnFile("c:/other/dot/helloworld.txt");
if(file != null){
String fileString = ("file=" + new String(file));
try {
// an HttpConnection with both read and write access
hc = (HttpConnection)Connector.open(urlstring, Connector.READ_WRITE);
// set the request method to POST
hc.setRequestMethod(HttpConnection.POST);
// set request type
// Could possibly need to be "application/x-www-form-urlencoded"????????????????????????????????
hc.setRequestProperty("Content-Type", "multipart/form-data");
hc.setRequestProperty("Content-Length", fileString.length()+ "" );
// obtain DataOutputStream for sending the request string
dos = hc.openDataOutputStream();
byte[] requestBody = fileString.getBytes();
// send request string to Web server
for (int i = 0; i < requestBody.length; i++) {
dos.writeByte(requestBody);
// flush it out
dos.flush();
// obtain DataInputStream for receiving server responses
dis = new DataInputStream(hc.openInputStream());
// retrieve the responses from Web server
int ch;
while ((ch = dis.read()) != -1) {
message = message + (char) ch;
} finally {
// free up i/o streams and http connection
if (hc != null)hc.close();
if (dis != null)dis.close();
if (dos != null)dos.close();
Servlet
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.MultipartRequest;
public class DNTUpload extends HttpServlet{
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
try{
MultipartRequest multi = new MultipartRequest(req, "C:\\Servlets+JSP\\DNT", 5*1024*1024);
Enumeration files = multi.getFileNames();
String name = (String)files.nextElement();
File f = multi.getFile(name);
if(f != null){
out.println("<HTML>");
out.println("<HEAD><TITLE>FileUploader</TITLE></HEAD>");
out.println("<BODY>");
out.println("<H1>Should have saved file</H1>");
out.println("</BODY>");
out.println("</HTML>");
else{
res.setHeader("valserror", "ERROR");
}catch(Exception e){
out.println("<HTML>");
out.println("<BODY>");
out.println("failure!!");
out.println("</BODY>");
out.println("</HTML>");
Message was edited by:
-fluffy-I've only done one small j2me program and not recently, but here is a link that can give you some of the basics: http://today.java.net/pub/a/today/2005/02/09/j2me1.html
I'm guessing, but I believe you have to use http sockets to accomplish a file transfer with a phone. Also, there are some limitations with full sockets depending on which type of phone you using to write your app to.
Hope that helps! -
How to export a flash form to a pdf file?
Hi everybody,
I'm a newer with Flash 8. I'm using Flash Form Application with Action Script 2.0 to develop my GUI forms. Can I export a flash form or save it's texts entered by users to a PDF file on my local file system? Action Script 2.0 doesn't work with the local file system, is that right?
Thanks in advance!Hello Olga,
Can you please email me the function to export the smartform into a doc file? Email is [email protected]
Thanks so munch for your help.
Jereme Ebaugh -
Coldfusion does not recognize IE11 - Flash forms not working.
This is a problem that has me banging my head on my desk. We have a web application that still uses Flash based web forms. (Before anyone says it, I know we need to get away from the flash forms, but we cannot do this overnight.) The problem is that because IE11 no longer passes MSIE in the USER AGENT string, ColdFusion is placing an <Embed> tag instead of an <Object> tag to load the flash. I know that we could add our site to the Compatibility List, however we have too many users to guide this through. We need a solution that we can perform on our side, either modifying code, ColdFusion, or IIS. First has anyone else run into this problem? Does anyone have any potential solutions?
Thanks in advance for your help.We did find a stable work around that "tells" coldfusion to render flash forms for IE 10 even though the server call is coming from IE 11. I don't believe Adobe would necessarily want the method that we were forced to use advertised. It involved adding 10 lines of CF code to the top of each page that used flash forms. It was very unorthodox and we are simply using this to buy time to get our forms off the flash platform. I would be willing to email the solution to anyone interested.
Maybe you are looking for
-
i have a PC and i had itunes on it with lots of songs. A technician fixed my computer and deleted my itunes on the way. Iv'e reinstalled an itunes programm, how can i transfer the songs from my ipod touch onto the itunes? I'm afraid that if i'll sync
-
What is the alternative for DisplayMemberPath="Value" for Windows Store applications?
I think there is a bug with Windows Store Applications when it comes to using DisplayMemberPath="Value". Here is my code <ComboBox Height="40" VerticalAlignment="Stretch" SelectedValuePath="Key" DisplayMemberPath="Value" x:Name="comboBox1" FontSize="
-
Issue with the ABAP program to find BI lookups and code Patterns
Hello dears, I'm trying to use the ABAP program LOOKUP_FINDER: http://wiki.sdn.sap.com/wiki/display/BI/ABAPprogramtofindBIlookupsandcodePatterns But I have the following issue: Runtime Errors RAISE_EXCEPTION Short text Exception condition
-
My phone won't recognize my thumb print
I charaged my phone overnight and now this morning it won't recognize my thumb print and the salesperson at Verizon didn't set up a pin number for me.
-
How to use temporary interface in another interface as derived table in 10g
Hi , Can somebody please tell me how to use temporary interface in another interface as derived table in 10g. I have an option in odi 11g to this task.But i am working on odi 10g for my project.So that please help me to do this task. I can able to cr