Hi can someone please guide me through how I can edit a page in a web app..
this is the web app I want to edit..
www.ehour.nl
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi can someone please guide me through how I can edit a page in a web app..
this is the web app I want to edit..
www.ehour.nl
Are you asking how to make changes to a page of html?
How does this relate to java programming?
If you don't understand my answer, don't ignore it, ask a question.
If you don't understand java programming, what do you expect to happen?
If you are having problems with java code, paste the code here and ask some questions about the problems you are having.
If you don't understand my answer, don't ignore it, ask a question.
I did some reading and I think I can't edit it..and need to recreate the app using the source but I don't want to do that..
so , I figured I'll just use javascript and css to change what I need and not touch the .class
..my problem now is..is it possible to know if the member that logged in is a user or admin..through javascript?..
Try asking those questions on a javascript forum.
If you don't understand my answer, don't ignore it, ask a question.
Can java pass a value to javascript?
It used to be able to. I'm not sure what the current version of java allows.
I have an html page with an applet I use locally. This code is 8 years old.
This code calls the applet from a javascript function:
Then in the SearchApplet class:// Start the search // alert("startSearch with " + str); document.MyApplet.startSearch(str); ..... Later in same page: <APPLET CODE=SearchApplet name="MyApplet" archive="SearchFiles.jar" id ="MyApplet" width="1" height="1" codebase="." MAYSCRIPT> <PARAM NAME=Source Value="E:/"> <PARAM NAME=Depth Value=8> <PARAM NAME=Mask Value="*.html"> <PARAM Name=Debug Value="YesXXX"> </APPLET>//------------------------------------------------------------------------------------ // Called from JavaScript to start the search and build a new window with the results public void startSearch(String s) {
To talk to the browser:netscape.javascript.JSObject win = JSObject.getWindow(this); ... //--------------------------------------------------------------------- // Write the results to a new Window private void writeToWindow(String txt) { // Problem if text contains HTML control chars??? // String outText = txt.replace('\n', ' ').replace('\r', ' ').replace('"', '\''); // Use a simple string - fails with \n!!! // outText="Does this make it to the window?\\n On two lines!"; // simple string WORKS??? // System.out.println("outText=" + outText + "<"); try { // Create the window win.eval("var newWin=window.open(\"\", \"\"," + " 'width=700,height=400,top=0,left=0," +"resizable=yes,location=yes,toolbar=yes,scrollbars=yes,status=yes,menubar=yes');"); // Now put some text in the new window ByteArrayInputStream bais = new ByteArrayInputStream(txt.getBytes()); BufferedReader br = new BufferedReader(new InputStreamReader(bais)); String line = ""; while((line = br.readLine()) != null) { line = line.replace('"', '\'').replace('\\', '/'); // <<<<<<<<< NEEDS work HERE // Other changes ??? win.eval("newWin.document.write(\"" + line + "\\n\");"); } win.eval("newWin.document.close();"); // Where does this go??? }catch(Exception ex) { ex.printStackTrace(); } } // end writeToWindow() } // end class
If you don't understand my answer, don't ignore it, ask a question.