Java newbie - loadField onto an HTML page
Hi, I have very limited Java knowledge and this is probably a dumb question but I am hoping for some help. I am using "loadField" to pre-load a value on an HTML form but I also want the user to change that value if they think it is incorrect (in this particular case it is a telephone number). I do not have the field set as "readonly" but when the form displays the user is not able to change the value. What am I missing to get this to work?
I guess I may have answered my own question - I see that you can highlight the field and then hit "delete" to remove the default value and type in a new value. I guess I still have a question: Is this the only way it can be done or can you leave the value in the field and then type over it?
Similar Messages
-
Recordset onto basic HTML page
How easy is it to insert a recordset onto a basic html page.
Obviously I could convert the page to ASP and be able to do it, but
this particular page has links to it all over the shop and changing
the extension is not really possible.
Thanks
Dan...> How easy is it to insert a recordset onto a basic html
page
Impossible if you really mean "basic html". HTML has no
facility for
working with server-side data.
Now - you could ask your host to parse all html pages as if
they were ASP,
but then you'd have to write the code yourself, because DW
won't know that
foo.html is actually capable of supporting ASP/VBScript.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"dan brown5" <[email protected]> wrote in
message
news:fna676$636$[email protected]..
> How easy is it to insert a recordset onto a basic html
page. Obviously I
> could
> convert the page to ASP and be able to do it, but this
particular page has
> links to it all over the shop and changing the extension
is not really
> possible.
>
> Thanks
> Dan...
> -
How do I hide the grey java applet box in a html page
I have a page at http://www.iel.nzco.net/100/index.html with a java script box in the middle. The script runs a text around an image, but the page always shows the grey box until the image and the java class files download. Is there any way that I can hide the grey java box until the java stuff is loaded then "reveal" the image. I have tried using a layer with the star background in it but the grey box still shows up. Any ideas you may have will be appreciated
Hi raypuddy,
I have found only one example in a book I own "Java 2 - The Complete Reference" by Shildt and Naughton. Essentially it has to be performed in the init() method:
public void init() {
String s = getParameter("bgcolor");
if(s != null) {
Color color = new Color(Integer.parseInt(s.substring(1), 16));
setBackground(color);
getParent().setBackground(color);
getParent().repaint();
... etc.
The approach is to get the background painted ASAP and defer other class loading until after the Applet is up and running. Under IE there will still be some user feedback of the Applet loading (spinning globe, status line).
IMHO it is a lot of extra effort for little esthetic value.
Regards,
John -
How to create dom treeof html page with java
hi, all
i met with a problem how to create dom tree of html page wih jave, that is, given a html page, how to create a dom tree of this page with java?
thanks in advance.
regards
richardbut i m using this code to create node in html file
HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
Text txt = appHTML.createTextNode(name);
li.appendChild(txt);
appHTML.getElementById("name").appendChild(li);
this will display all name value which is coming from database,
and i want to assign a hyperlink to it,
I have id with name also so I thought that using id i will
create javascript like
function popup(id)
if(id==1)
var n1 = window.open("../list/name1.html");
if(id==2)
var n1 = window.open("../list/name2.html");
this way i want to popup particular file if i can pass id value in this function
so want hyperlink like
name -
Get parameters from html page from java application standalone ...
Hi all,
I work in one solution that i have values in Html Page and i want get the parameters values from html and cath they in java application standalone.
The Html page is in same host than de java application.
I want know if this is possible. I wnat know if without HttpServlet i can get the parameters from Html Page pure.
Thanks in Advance for the ideas,
Antonio.Hi Abdul,
The problem is my client want one solution where i have one page simple page Html and one application java standalone. This application runs in one machine, but we don't have web server. So the question is: Is possible without web server i can get the parameters values that is inside the html page from java application. I remember you that the application java is one .jar that run's with one command line from crontab "java -jar teste.jar". -
How binding a html page with JSF
Hi.. I have 2 page html but a need that since my html page load a page JSF... I try but if I only reference the page jsf since my html page occurs a contex error.
thankok.. i have a html page that references to a jsp page like ='<a href="agregarAlumno.jsp"></a> agregarAlumno.jsp is a page designed in sun java studio creator and the html page is made of in dreamweaver.. In my proyect I added the html page and since the page html is the reference for the page agregarAlumno.jsf. When I do click in the hiperlink since the html page for retrieve the page agregarAlumno.jsf ocurrs a error like context error when i try to call the jsp page...
Please help me.
Thank for all -
I have a webserver running and I want java to create a dynamic webpage if the user tries to search for a file that does not exist. For example, if the user types in http://abc.com/example.htm and it does not exist, I want Java to create a simple html page dynamically with the file name the user tried searching for. How would I go about doing this?
if u lost a cat, would u put up one poster or many, i
rest my caseWell, you're out-voted. We/they don't like duplicating answers. You could have posted a simple LINK to it rather than duplicating the question. That way, ppl could follow the link to see the master question and all answers if any. Now shove off. -
I have a webserver running and I want java to create a dynamic webpage if the user tries to search for a file that does not exist. For example, if the user types in http://abc.com/example.htm and it does not exist, I want Java to create a simple html page dynamically with the file name the user tried searching for. How would I go about doing this?
I suggest this cross-poster's request be denied for any further assistance. As he also gained an attitude when corrected (flamed) for cross-posting.
-
Referencing a "locally installed" Java applet from a server-based HTML page
How does one reference a "locally installed" Java applet from a server-based HTML page (i.e. via the applet, object, or embed tags)? I have seen references in documentation that this is possible, but I have not seen any examples. I have tried a few things, but nothing seems to be working.
Some background...
I'm working on a web site that aggregates Internet video. For many users, I would like the site to work "without" requiring Java to be installed (or any prompts, etc.). This version of the site allows users to stream videos directly over the Internet and does not require any sort of access to the local system.
However, in addition, I have a download manager that can be installed on the local system. Currently, it's a Windows-based "service" that is always running in the background, downloading files, etc. (with plans to later support other OSes).
My dilemma is trying to communicate between my web site running in the local browser (executing JavaScript code) and the download manager. I call this component the "gateway". I need the gateway to be able to do the following:
1) Pass user credentials from the web browser UI to the download manager (so it can communicate with my servers).
2) Check the status of downloaded videos
3) Launch a local media player (such as Windows Media, QuickTime, etc.) (or perhaps tell the download manager to launch the media player).
Under Windows XP, I have an ActiveX control that can do these things. It communicates with the download manager via reading/writing to a shared XML configuration file.
Unfortunately, under Vista and IE7 Protected Mode, ActiveX controls have become very restricted and my gateway no longer works. As such, I am looking at using Java for the gateway (also giving me the additional benefits of supporting additional browsers and OSes).
From my understanding, I believe I can created a "face-less" Java applet, whose methods can be called from JavaScript. Ideally, I'm thinking I could install the applet onto the local system at the same time the download manager is installed. This would give the applet the security permissions it needs to communicate with the download manager.
Thanks for any help and suggestions!Hi,
Put the .jar file and the .class file in the path mentioned in one of the aliases in the plsql.conf file like /images or create
a seperate directory and create an alias like /applets "path" in the plsql.conf file.
<html>
<body>
<applet code=com.chartapplet.chart.BarChartApplet
codebase=/applets/
archive=/applets/chart.jar width=300 height=200>
<param name=background value="white">
</body>
</html>
Hope this helps.
Thanks,
Sharmila -
I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
<iframe>
<table>
<tr>
<td>
<treeview id="tv1"></treeview>
</td>
</tr>
</table>
</iframe>
In UIA, i am able to traverse till the tree view but not able to see it.
I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement.
I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element.
i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
But trying the reverse way like navigating from root element to tree node, was not getting the element for me.
Please help me with suggestions or inputs to resolve this issue.Thanks Bernard,
It works fine with JInitiator but not working with
the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
Thx and Regards
dkklau -
I need to print Html Page into my printer, how can I do this. Any help will be appreciated.
WilFile > Print.
See: http://java.sun.com/javase/6/docs/technotes/guides/jps/spec/printing2d.fm.html
And:
http://java.sun.com/j2se/1.4.2/docs/guide/jps/index.html
And google "Java JPS" -
How to populate a table in the html page from the java script
Hi all,
I have doubt in populating a table in the html page. my application is as follows
I have a html page in which i have a combo box and a table following the combo box.
i have to populate the table depending on the item selected in the combo box.
for this i am using javascript to get the value of combo box onClick
then i have to call some function thru jsp to get the data and then i have to populate the table with thst into from java script
how can i do this, i.e populating html table from java script
Thanks in advance
satyaHi Mihai,
You can populate data in DO_INIT_CONTEXT method of ur impl class in your Z component.
data:
lv_struct_ref type ref to YOUR_STRUCTURE,
lv_value_node type ref to cl_bsp_wd_value_node,
lv_bo_coll type ref to if_bol_bo_col.
Data: current type ref to if_bol_bo_property_access.
data: dref type ref to data.
data: lv_guid_h type crmt_object_guid.
data: lt_attr type table of YOUR_STRUCTURE.
data: ls_attr type YOUR_STRUCTURE.
data: lr_entity type ref to cl_crm_bol_entity.
create object lv_bo_coll type cl_crm_bol_bo_col.
lt_attr is ur internal table.
Loop at lt_attr into ls_attr.
create data lv_struct_ref.
create object lv_value_node
exporting
iv_data_ref = lv_struct_ref.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = 'YOURFIELDNAME1'
iv_value = ls_attr-firstname.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = ' YOURFIELDNAME2'
iv_value = ls_attr-lastname.
lv_bo_coll->add( lv_value_node ).
typed_context->YOURCONTEXTNODE->set_collection( lv_bo_coll ).
endloop.
Regards,
Raghu -
How to get the source code of an HTML page in Text file Through java?
How to get the source code of an HTML page in Text file Through java?
I am coding an application.one module of that application is given below:
The first part of the application is to connect our application to the existing HTML form.
This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
Could any body provide coding hint for thatYou're welcome. How about awarding them duke stars?
edit: cheers! -
Java Applet in a HTML page: failing with PLS-00306: wrong number of args
We are trying to use a Java Applet in a HTML page. as our system needs to be able to retrieve a predefined set of data from a third party system that uses Dynamic Data Exchange Protocol (DDE) and are encountering errors from APEX and in IE itself.
We are using JavaDde from www.nevaobject.com that enables our Java applet to interact with Windows applications (Third Party System) using DDE.
This functionality is currently used in our Web Form 6i application and we are trying to use the same in the new ApEx application.
We are using ApEx version : 2.1 and actually aer encountering 2 problems:
Problem 1: ApEx failing with PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
Problem 2: IE crashes if Applet used in a complex page with several regions (1 Context, 4 Report Regions, 2 level Tabs, Links)
This problem does not occur in the page where there is only applet and one region. In the case of complex page the IE crashes if the page is reloaded
Test scenario:
1- Create a simple page with the HTML region.
2- Define the Source of the above region as follows
<OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#version=1,4,0,0"
WIDTH="1"
HEIGHT="1"
ID="simpleApplet"
NAME="simpleApplet">
<PARAM NAME="code" VALUE="simpleApplet.class" >
<PARAM NAME="archive" VALUE="simpleApplet.jar" />
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
</OBJECT>
3- Create a simple Java applet "simpleApplet" - for the test its enough if the applet will have just the init method printing out the mesage to the console
4- Create a Submit Button (not redirect) in Region Header and create unconditional (do not set When Button Pressed property) Page Branch to navigate to another page (the page without the applet)
6- Run the page and Submit -
The error below is returned by the engine:
In our case our applet is called ddeApplet - I do not know why is ApEx passing the Applet's ID down to the wwv_flow.accept method as a parameter
Tue, 24 Jul 2007 08:15:39 GMT
ORA-06550: line 7, column 2:
PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
ORA-06550: line 7, column 2:
PL/SQL: Statement ignored
DAD name: rbdev2_ax
PROCEDURE : wwv_flow.accept
URL : http://castor:7778/pls/rbdev2_ax/wwv_flow.accept
PARAMETERS :
============
P_FLOW_ID:
147
P_FLOW_STEP_ID:
500
P_INSTANCE:
6986070096861669560
P_PAGE_SUBMISSION_ID:
1005758
P_REQUEST:
CRASH
P_ARG_NAMES:
100380029717786501
P_T01:
147
P_T02:
101
P_T03:
5000044
P_T04:
1
P_T05:
S
DDEAPPLET:
Ddeapplet[panel0,0,0,1x1,layout=java.awt.BorderLayout,rootPane=javax.swing.JRootPane[,0,0,1x1,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
P_MD5_CHECKSUM:
ENVIRONMENT:
============
PLSQL_GATEWAY=WebDb
GATEWAY_IVERSION=2
SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_fastcgi/2.2.10 mod_perl/1.25 mod_oprocmgr/1.0
GATEWAY_INTERFACE=CGI/1.1
SERVER_PORT=7778
SERVER_NAME=castor
REQUEST_METHOD=POST
QUERY_STRING=
PATH_INFO=/pls/rbdev2_ax/wwv_flow.accept
SCRIPT_NAME=/pls
REMOTE_HOST=
REMOTE_ADDR=192.168.66.169
SERVER_PROTOCOL=HTTP/1.1
REQUEST_PROTOCOL=HTTP
REMOTE_USER=
HTTP_CONTENT_LENGTH=661
HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
HTTP_HOST=castor:7778
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_CHARSET=
HTTP_COOKIE=ISCOOKIE=true; LOGIN_USERNAME_COOKIE=rdanko; ORACLE_PLATFORM_REMEMBER_UN=RDANKO:ngrb; WWV_FLOW_USER2=70FBB00945FE46B9; V6_AUTHENTICATION_COOKIE=70FBB00945FE46B9
Authorization=
HTTP_IF_MODIFIED_SINCE=
HTTP_REFERER=http://castor:7778/pls/rbdev2_ax/f?p=147:500:6986070096861669560:::::
HTTP_SOAPACTION="theArrow",
It looks like whatever HTML you're including on your page is creating HTML input form elements inside the HTML form "wwv_flow". This form is posted to wwv_flow.accept, and of course, the PL/SQL procedure wwv_flow.accept doesn't know anything these additional arguments/form elements you're attempting to POST.
Joel -
How to create hyperlink in Html page using Java
Hello every one
I want to know that how can I create a hyperlink in Html page using java ?
Let for example
I have code like this and i want to give hyperlink to it using java.
rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
<tr>
<td ><span id="name"></span>
</tr>but i m using this code to create node in html file
HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
Text txt = appHTML.createTextNode(name);
li.appendChild(txt);
appHTML.getElementById("name").appendChild(li);
this will display all name value which is coming from database,
and i want to assign a hyperlink to it,
I have id with name also so I thought that using id i will
create javascript like
function popup(id)
if(id==1)
var n1 = window.open("../list/name1.html");
if(id==2)
var n1 = window.open("../list/name2.html");
this way i want to popup particular file if i can pass id value in this function
so want hyperlink like
name
Maybe you are looking for
-
Hi SAP Gurus, How to Creating new Material Group? Regards,
-
Upgrade window 2003 to Window 2008 R2 approach (Moss 2007)
I have moss 2007 running window 2003 32 bit (1wfe and 1sql server). There quite a few customization that i dont know about. I need to move it to Window 2008 R2 or higher. Anyone have done this? I need a good approach with less risk and impact. I'll b
-
Create multiple looping videos on one DVD
My client wishes to have a DVD with multiple video selections on the menu and the option to have those videos loop when they are selected to play, so they will play endlessly until they choose another video. Evidently this is going to a trade show of
-
How can i get Oracle BI tool in Excel
I have install oracle Bi Tool and I can't see the the BI tool in Excel menu . I need help
-
Foreign trade--Billing document should not be created with missing data
Hi, We have foreign trade set up. In that we defined incompletion schema at line item level with commodity code and country of origin as "Field ready for input - Incompletion check active". Can anybody tell me that, in the above setup, is it possibl