Help Reqd URGENTLY!!!

Hi there,
i am not an expert in Java hence I am facing a Lots of problems.See, I have a java applet displaying a slider with a cross to drag. The slider has a value ranging from 1-100 and it (this value)has to be trapped and inserted in a database, from there it has to be retrieved in an ASP script and used for calculation. Now I knw i have come to the right place ... Can someone pull me outta this mess.....cos my TL is breathing fire down my neck. Please an EXPRESS solution is needed and APPRECIATED.
THANKS
Vinay

Dear smorgasbord,
Thers no need to be SARCASTIC and better not to go into the country part. But thanks for enlighting me. I admit I made a mistake of not giving the details. Well, I have this applet....(Code pasted below). As I told u I am not a hardcore Java programmer, but have knowledge abt it superficially. If u run ths applet, and slide the "x" across the slider, there is a corresponding value displayed as a tooltip. I want this value corresponding to the position of the "x" to be trapped and sent to a database. From the database it has to be used in ASP for further calculations. Can u help me??? If u need any further details do mail me : [email protected].
//******CODE *******//
import java.applet.Applet;
import java.awt.*;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.*;
public class SliderApplet extends Applet
implements ItemListener
class MsgBox extends Dialog implements ActionListener
     { boolean id = false; Button ok,can;
MsgBox(Frame frame, String msg, boolean okcan)
super(frame, "Message", true); setLayout(new BorderLayout());
add("Center",new Label(msg)); addOKCancelPanel(okcan); createFrame(); pack(); setVisible(true);
public void init()
super.init();
setLayout(new BorderLayout(0, 0));
Panel panel = new Panel();
panel.setLayout(new FlowLayout(0, 315, 0));
panel.setBackground(new Color(200, 100, 100));
add("North", panel);
check = new CheckPanel(getImage(getCodeBase(), "11.gif"), getImage(getCodeBase(), "12.gif"));
panel.add(check);
java.awt.Image image = getImage(getCodeBase(), "yellow_arr.gif");
java.awt.Image image1 = getImage(getCodeBase(), "red_arr.gif");
min = Double.valueOf(getParameter("MINVALUE")).doubleValue();
max = Double.valueOf(getParameter("MAXVALUE")).doubleValue();
String s = getParameter("PRECISION");
text = getParameter("TEXT");
TextPanel textpanel = new TextPanel(text, Color.white, new Color(153, 153, 153));
textpanel.addMouseListener(check);
if(s != null)
precision = Slider.getOrder(Double.valueOf(s).doubleValue());
slider = new Slider(min, max, precision, image, image1);
} else
slider = new Slider(min, max, image, image1);
slider.font = font;
add("Center", slider);
setBackground(new Color(102, 102, 102));
String s1 = getParameter("CURMIN");
String s2 = getParameter("CURMAX");
if(s1 != null && !s1.equals(""))
slider.setValue(0, (new Double(s1)).doubleValue());
isEnable = true;
slider.cur_min = (new Double(s1)).doubleValue();
slider.isCurMinSet = true;
if(s2 != null && !s2.equals(""))
slider.setValue(1, (new Double(s2)).doubleValue());
isEnable = true;
slider.cur_max = (new Double(s2)).doubleValue();
slider.isCurMaxSet = true;
slider.setEnable(isEnable);
check.setState(isEnable);
check.addItemListener(this);
public void setValues(double d, double d1)
slider.setValue(0, d);
slider.setValue(1, d1);
isEnable = true;
slider.setEnable(isEnable);
check.setState(isEnable);
repaint();
slider.repaint();
public void setDisabled()
slider.setValue(0, min);
slider.setValue(1, max);
isEnable = false;
slider.setEnable(isEnable);
check.setState(isEnable);
repaint();
public String getValue(int i)
if(!isEnable)
return "";
else
return Slider.truncDouble(slider.getValue(i), precision);
public void itemStateChanged(ItemEvent itemevent)
isEnable = check.getState();
slider.setEnable(isEnable);
void setEnable(boolean flag)
isEnable = flag;
check.setState(flag);
public boolean hasData()
return isEnable;
public SliderApplet()
isEnable = false;
font = new Font("Verdana", 0, 10);
private Slider slider;
private double min;
private double max;
private int precision;
private CheckPanel check;
private boolean isEnable;
private Font font;
private String text;
Thnks in advance,
Waiting in anticipation,
Vinay

Similar Messages

  • Urgent Help Reqd: Delta Problem....!!!

    Hi Experts,
    Urgent help reqd regarding follwoing scenario:
    I am getting delta to ODS 1 (infosource : 2LIS_12_VCHDR) from R/3. Now this ODS1 gives delta to Cube1. I got one error record which fails when going to cube (due to master data check).And this record would be edited later.
    So I thought of re loading cube and using error handling to split request in PSA and load valid records in cube.Later when I have coorect info abt error, I would load erroneous record manually using PSA.
    I did following steps:
    1)Failed request is not in cube...(setting is PSA and then into target)....also it has been deleted from PSA.
    2)Remove data status from source ODS1.
    3)Change error handling in infopackage to valid " Valid records update, reporting possible".
    4)start loading of cube.
    But when I did this I got following message :
    <b> "Last delta update is not yet completed.Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor"</b>
    But both my requests in cube and ODS are Green...no request is in yellow...!!
    Now the problem is :
    1) I have lost ODS data mart status
    2)how to load valid records to cube, since errorneous record can be edited only after 3- 4 days.
    3)How not to affect delta load of tomorrow.
    Please guide and help me in this.
    Thanks in advance and rest assured I will award points to say thanks to SDNers..
    Regards,
    Sorabh
    Message was edited by: sorabh arora

    Hi Joseph,
    Thanks for replying....
    I apolgize and I have modified the message above..
    I just checked in cube...there is no failed request for today...and neither in PSA....Person who has handed this to me may have deleted this is PSA..and why req is not in failed state in cube...I am not sure..though setting is "PSA and then into data package".....
    So how to go frm here....
    Thanks
    Sorabh

  • Error in MIRO Help Reqd

    I have setup new instance. Created p.o & done MIGO things worked fine. In MIRO typically error is seen in tax code. I have assigned Tax procedure TAXGB to country IN. In Fin Acct in tax on sales & purchases defined new taxcode VX with country option IN. Still during MIRO its showing error Tax code VN & Country IN doesnot exist in procedure TAXGB. In error msg its M8 249 & origin is shown as check invoice document.
    Help reqd from SAP Gurus pls.
    Regards

    Check these links
    while doing MIRO, i am getting error:-Tax code V0 country IN does not exist
    Tax code Z4 country IN does not exist in procedure TAXINJ
    Tax code V0 country IN does not exist in procedure TAXINN
    Tax code V0 country IN does not exist in procedure TAXINN

  • Need some quick help - fairly urgent!

    I've just taken over a new job and have been the task of finishing the new brochure for Christmas, there's not a lot to do but a lot of the measurements need changing
    This is the layout I'm dealing with..
    All the boxes have been made in Illustrator
    The text has been done in In'Design and it seems every piece of text is it's own box if that makes sense
    My question is, if I select the whole specification box - copy, paste it into Adobe Illustrator and change the text there, then paste the edited box back into In-Design, will I lose quality when it gets printed?
    I'm worried if I do it this way it may come out blurred? Or am I just worrying about nothing?

    I couldn't find an Illy file in the end and have ended up creating tables in ID to replicate what was already there!
    Didn't take very long and I guess if I didn't do it now, I'd come across the same situation next time!
    Date: Wed, 30 Nov 2011 08:48:07 -0700
    From: [email protected]
    To: [email protected]
    Subject: Need some quick help - fairly urgent!
        Re: Need some quick help - fairly urgent!
        created by Peter Spier in InDesign - View the full discussion
    There certainly are viable "quick fix" solutions proposed here, and if the dealine is looming and this file never needs to be touched again I might be tempted, but they are only postponing the pain for a file that needs periodic updates, and I wouldn't waste effort on them, myself, when that time can be put toward a proper rebuild now if that's the ultimate goal.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4054725#4054725
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4054725#4054725. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in InDesign by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Unable to get Rmi program working. Help plz - urgent.

    Any help to get this problem resolved would be of help.
    I get the error as below:
    D:\test\nt>java Client
    Server
    Client exception: Error marshaling transport header; nested exception is:
    javax.net.ssl.SSLException: untrusted server cert chain
    java.rmi.MarshalException: Error marshaling transport header; nested exception is:
    javax.net.ssl.SSLException: untrusted server cert chain
    javax.net.ssl.SSLException: untrusted server cert chain
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
    at java.io.DataOutputStream.flush(DataOutputStream.java:108)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:207)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
    at Server_Stub.passArgs(Unknown Source)
    at Client.main(Client.java, Compiled Code)
    the server was invokde as:
    D:\test\nt>java -Djava.rmi.server.codebase="file:/d:/test" -Djava.policy=d:/test/policy Server a b c
    Server bound in registry
    where policy had allpermission
    The server program is given as below:
    import java.net.InetAddress;
    import java.rmi.Naming;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.RemoteException;
    import java.rmi.RMISecurityManager;
    import java.rmi.server.UnicastRemoteObject;
    public class Server extends UnicastRemoteObject implements Message
         private static String[] args;
         public Server() throws RemoteException
              // super();     
              super(0, new RMISSLClientSocketFactory(),
                   new RMISSLServerSocketFactory());
         public String[] passArgs() {
              System.out.println(args[0]);
              System.out.println(args[1]);
              System.out.println(args[2]);
              System.out.println(args.length);
              System.out.println();
              return args;
         public static void main(String a[])
              // Create and install a security manager
              if (System.getSecurityManager() == null)
                   System.setSecurityManager(new RMISecurityManager());
              args=a;
              try
                   Server obj = new Server();
                   // Bind this object instance to the name "Server"
                   Registry r = LocateRegistry.createRegistry(4646);
                   r.rebind("Server", obj);
                   System.out.println("Server bound in registry");
              } catch (Exception e) {
                   System.out.println("Server err: " + e.getMessage());
                   e.printStackTrace();
    The RMISSLServerSocketFactory class is as below:
    import java.io.*;
    import java.net.*;
    import java.rmi.server.*;
    import javax.net.ssl.*;
    import java.security.KeyStore;
    import javax.net.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import com.sun.net.ssl.*;
    public class RMISSLServerSocketFactory implements RMIServerSocketFactory, Serializable
         public ServerSocket createServerSocket(int port)
              throws IOException     
              SSLServerSocketFactory ssf = null;
              try {
                   // set up key manager to do server authentication
                   SSLContext ctx;
                   KeyManagerFactory kmf;
                   KeyStore ks;
                   char[] passphrase = "passphrase".toCharArray();
                   ctx = SSLContext.getInstance("TLS");
                   kmf = KeyManagerFactory.getInstance("SunX509");
                   ks = KeyStore.getInstance("JKS");
                   ks.load(new FileInputStream("testkeys"), passphrase);
                   kmf.init(ks, passphrase);
                   ctx.init(kmf.getKeyManagers(), null, null);
                   ssf = ctx.getServerSocketFactory();
              } catch (Exception e)
                   e.printStackTrace();
                   return ssf.createServerSocket(port);
    The RMIClientSocketFactory is as below:
    import java.io.*;
    import java.net.*;
    import java.rmi.server.*;
    import javax.net.ssl.*;
    public class RMISSLClientSocketFactory     implements RMIClientSocketFactory, Serializable
         public Socket createSocket(String host, int port)
              throws IOException
              SSLSocketFactory factory =(SSLSocketFactory)SSLSocketFactory.getDefault();
              SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
                   return socket;
    And finally the client program is :
    import java.net.InetAddress;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.RemoteException;
    public class Client
         public static void main(String args[])
              try
                   // "obj" is the identifier that we'll use to refer
                   // to the remote object that implements the "Hello"
                   // interface
                   Message obj = null;
                   Registry r = LocateRegistry.getRegistry(InetAddress.getLocalHost().getHostName(),4646);
                   obj = (Message)r.lookup("Server");
                   String[] s = r.list();
                   for(int i = 0; i < s.length; i++)
                        System.out.println(s);
                   String[] arg = null;
                   System.out.println(obj.passArgs());
                   arg = obj.passArgs();
                   System.out.println(arg[0]+"\n"+arg[1]+"\n"+arg[2]+"\n");
              } catch (Exception e) {
                   System.out.println("Client exception: " + e.getMessage());
                   e.printStackTrace();
    The Message interface has the code:
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Message extends Remote
         String[] passArgs() throws RemoteException;
    Plz. help. Urgent.
    Regards,
    LioneL

    hi Lionel,
    have u got the problem solved ?
    actually i need ur help regarding RMI - SSL
    do u have RMI - SSL prototype or sample codings,
    i want to know how to implement SSL in RMI
    looking for ur reply
    -shafeeq

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • Lsmw issue plz help its urgent

    Hi Experts ,
    i need to create a LSMW using batch input .
    but the requirement is on the basis of conditions my recording need to be changed .
    dat means
    3127POL09 3127POL09-1 CTR 3127-1003E 100 FUL
    3127POL09 3127POL09-2 WBS 3127POL01 60 FUL
    for ctr i ill have to post data in screen number 200
    and for wbs i ill have to post data in screen number 400 .
    can we put some conditions in recording in lsmw ?
    i no we can create multiple recording but how can we use them to fullfill my requirement .
    plz help its urgent
    thanx in advance

    Hi,
    Within LSMW, there is an option to write our own code wherein this code can be incorporated.
    This is in the Field Mapping Option...
    Just go to the Menu Extras->Layout
    and click on the check box Form Routines
    Global Data.
    Here you can define Global Variables and also perform your ABAP Coding.
    Regards,
    Balaji.

  • Javafx deployment in html page(please help me urgent)

    i used the following method to deploy javafx in an html page.
    javafx file is:
    package hello;
    import javafx.scene.*;
    import javafx.stage.Stage;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.paint.Color;
    import javafx.scene.effect.DropShadow;
    Stage {
        title: "My Applet"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                x: 10  y: 30
                font: Font {
                     size: 24 }
                fill: Color.BLUE
                effect: DropShadow{ offsetX: 3 offsetY: 3}
                content: "VAARTA"
    I save the file as HelloApplet in a 'hello' named folder in my D:
    after that i downloaded from internet html code as
    <html>
        <head>
            <title>Wiki</title>
        </head>
        <body>
            <h1>Wiki</h1>
            <script src="dtfx.js"></script>
            <script>
                javafx(
                    archive: "HelloApplet.jar",
                    draggable: true,
                    width: 150,
                    height: 100,
                    code: "hello.HelloApplet",
                    name: "Wiki"
            </script>
        </body>
    </html>now i typed in DOS prompt as javafxc.exe HelloApplet.fx & i got the class files .
    _The main problem which is coming is how to create HelloApplet.jar file which is used in the html page without which the html page is not displaying the javafx script. Please help me urgently i am in the middle of my project & stuck up due to JAVAFX                   i am using WIndowsXP & javafx-sdk1.0 when i am typing jar command inside hello package it is displaying invalid command.in DOS prompt. If there is any other method to deploy javafx in html page then specify it also.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Crossposted: [http://forums.sun.com/thread.jspa?threadID=5323288].
    Please don't crosspost without notifying others. It is rude in terms of netiquette. Stick to one topic.

  • How to enable java script in my Firefox browser? help its urgent.

    how to enable java script in my Firefox browser? help its urgent.

    go to '''about:config''' and search for '''javascript.enabled''' change its value to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • Migration to an asm instance. plz help me urgent

    RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
    Starting backup at 20-AUG-07
    Starting implicit crosscheck backup at 20-AUG-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=328 devtype=DISK
    ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
    ORA-17507: I/O request size is not a multiple of logical block size
    Crosschecked 7 objects
    Finished implicit crosscheck backup at 20-AUG-07
    Starting implicit crosscheck copy at 20-AUG-07
    using channel ORA_DISK_1
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/20/2007 16:53:21
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size

    > plz help me urgent
    Adjective
        * S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
    And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
    Don't you think that this "it is urgent!" statement severely lacks manners?

  • Help! Urgent!!!  tree in web page

    I am new in Swing. I need to implement a tree in web page. The tree should appear in the left of a frame and the corresponding content should be displayed in the right of the frame.
    Could anyone give me an example? I need this help very urgently. Thank you very much in advance.
    my email addr:
    [email protected]

    this is mtmcode.js
    i try to send u another part of the code
    // Morten's JavaScript Tree Menu
    // version 2.3.0, dated 2001-04-30
    // http://www.treemenu.com/
    // Copyright (c) 2001, Morten Wang & contributors
    // All rights reserved.
    // This software is released under the BSD License which should accompany
    // it in the file "COPYING". If you do not have this file you can access
    // the license through the WWW at http://www.treemenu.com/license.txt
    * Define the MenuItem object. *
    function MTMenuItem(text, url, target, tooltip, icon)
    this.text = text;
    this.url = url ? url : "";
    this.target = target ? target : "";
    this.tooltip = tooltip;
    this.icon = icon ? icon : "";
    this.number = MTMNumber++;
    this.submenu = null;
    this.expanded = false;
    this.MTMakeSubmenu = MTMakeSubmenu;
    function MTMakeSubmenu(menu, isExpanded, collapseIcon, expandIcon)
    this.submenu = menu;
    this.expanded = isExpanded;
    this.collapseIcon = collapseIcon ? collapseIcon : "menu_folder_closed.gif";
    this.expandIcon = expandIcon ? expandIcon : "menu_folder_open.gif";
    * Define the Menu object. *
    function MTMenu()
    this.items = new Array();
    this.MTMAddItem = MTMAddItem;
    function MTMAddItem(item)
    this.items[this.items.length] = item;
    * Define the icon list, addIcon function and MTMIcon item. *
    function IconList()
    this.items = new Array();
    this.addIcon = addIcon;
    function addIcon(item)
    this.items[this.items.length] = item;
    function MTMIcon(iconfile, match, type)
    this.file = iconfile;
    this.match = match;
    this.type = type;
    * The MTMBrowser object. A custom "user agent" that'll define the browser *
    * seen from the menu's point of view. *
    function MTMBrowser()
    this.cookieEnabled = false;
    this.preHREF = "";
    this.MTMable = false;
    this.cssEnabled = true;
    this.browserType = "other";
    if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("WebTV") == -1)
    if(parseInt(navigator.appVersion) == 3 && (navigator.userAgent.indexOf("Opera") == -1))
    this.MTMable = true;
    this.browserType = "NN3";
    this.cssEnabled = false;
              else if(parseInt(navigator.appVersion) >= 4)
    this.MTMable = true;
    this.browserType = parseInt(navigator.appVersion) == 4 ? "NN4" : "NN5";
              else if(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)
    this.MTMable = true;
    this.browserType = "IE4";
              else if(navigator.appName == "Opera" && parseInt(navigator.appVersion) >= 5)
    this.MTMable = true;
    this.browserType = "O5";
    if(this.browserType != "NN4")
    this.preHREF = location.href.substring(0, location.href.lastIndexOf("/") +1);
    * Global variables. Not to be altered unless you know what you're doing. *
    * User-configurable options are at the end of this document. *
    var MTMLoaded = false;
    var MTMLevel;
    var MTMBar = new Array();
    var MTMIndices = new Array();
    var MTMUA = new MTMBrowser();
    var MTMClickedItem = false;
    var MTMExpansion = false;
    var MTMNumber = 1;
    var MTMTrackedItem = false;
    var MTMTrack = false;
    var MTMFrameNames;
    var MTMFirstRun = true;
    var MTMCurrentTime = 0; // for checking timeout.
    var MTMUpdating = false;
    var MTMWinSize, MTMyval, MTMxval;
    var MTMOutputString = "";
    var MTMCookieString = "";
    var MTMCookieCharNum = 0; // cookieString.charAt()-number
    * Code that picks up frame names of frames in the parent frameset. *
    function MTMgetFrames()
    if(MTMUA.MTMable)
    MTMFrameNames = new Array();
    for(i = 0; i < parent.frames.length; i++)
    MTMFrameNames[i] = parent.frames.name;
    * Functions to draw the menu. *
    function MTMSubAction(SubItem)
    SubItem.expanded = (SubItem.expanded) ? false : true;
    if(SubItem.expanded)
    MTMExpansion = true;
    MTMClickedItem = SubItem.number;
    if(MTMTrackedItem && MTMTrackedItem != SubItem.number)
    MTMTrackedItem = false;
    if(MTMEmulateWE || SubItem.url == "" || !SubItem.expanded)
    setTimeout("MTMDisplayMenu()", 10);
    return false;
              else
    return true;
    function MTMStartMenu()
    MTMLoaded = true;
    if(MTMFirstRun)
    MTMCurrentTime++;
    if(MTMCurrentTime == MTMTimeOut)
                        { // call MTMDisplayMenu
    setTimeout("MTMDisplayMenu()",10);
                        else
    setTimeout("MTMStartMenu()",100);
    function MTMDisplayMenu()
    if(MTMUA.MTMable && !MTMUpdating)
    MTMUpdating = true;
    if(MTMFirstRun)
    MTMgetFrames();
    if(MTMUseCookies)
                                  MTMFetchCookie();
    if(MTMTrack)
                        MTMTrackedItem = MTMTrackExpand(menu);
    if(MTMExpansion && MTMSubsAutoClose)
                        MTMCloseSubs(menu);
    MTMLevel = 0;
    MTMDoc = parent.frames[MTMenuFrame].document
    MTMDoc.open("text/html", "replace");
    MTMOutputString = '<html><head>\n';
    if(MTMLinkedSS)
    MTMOutputString += '<link rel="stylesheet" type="text/css" href="' + MTMUA.preHREF + MTMSSHREF + '">\n';
                        else if(MTMUA.cssEnabled)
    MTMOutputString += '<style type="text/css">\nbody {\n\tcolor:' + MTMTextColor + ';\n}\n';
    MTMOutputString += '#root {\n\tcolor:' + MTMRootColor + ';\n\tbackground:transparent;\n\tfont-family:' + MTMRootFont + ';\n\tfont-size:' + MTMRootCSSize + ';\n}\n';
    MTMOutputString += 'a {\n\tfont-family:' + MTMenuFont + ';\n\tfont-size:' + MTMenuCSSize + ';\n\ttext-decoration:none;\n\tcolor:' + MTMLinkColor + ';\n\tbackground:transparent;\n}\n';
    MTMOutputString += MTMakeA('pseudo', 'hover', MTMAhoverColor);
    MTMOutputString += MTMakeA('class', 'tracked', MTMTrackColor);
    MTMOutputString += MTMakeA('class', 'subexpanded', MTMSubExpandColor);
    MTMOutputString += MTMakeA('class', 'subclosed', MTMSubClosedColor) + MTMExtraCSS + '\n<\/style>\n';
    MTMOutputString += '<\/head>\n<body ';
    if(MTMBackground != "")
    MTMOutputString += 'background="' + MTMUA.preHREF + MTMenuImageDirectory + MTMBackground + '" ';
    MTMOutputString += 'bgcolor="' + MTMBGColor + '" text="' + MTMTextColor + '" link="' + MTMLinkColor + '" vlink="' + MTMLinkColor + '" alink="' + MTMLinkColor + '">\n';
    MTMOutputString += MTMHeader + '\n<table border="0" cellpadding="0" cellspacing="0" width="' + MTMTableWidth + '">\n';
    MTMOutputString += '<tr valign="top"><td nowrap><img src="' + MTMUA.preHREF + MTMenuImageDirectory + MTMRootIcon + '" align="left" border="0" vspace="0" hspace="0">';
    if(MTMUA.cssEnabled)
    MTMOutputString += '<span id="root"> ' + MTMenuText + '<\/span>';
                        else
    MTMOutputString += '<font size="' + MTMRootFontSize + '" face="' + MTMRootFont + '" color="' + MTMRootColor + '">' + MTMenuText + '<\/font>';
    MTMDoc.writeln(MTMOutputString + '</td></tr>');
    MTMListItems(menu);
    MTMDoc.writeln('<\/table>\n' + MTMFooter + '\n<\/body>\n<\/html>');
    MTMDoc.close();
    if(MTMUA.browserType == "NN5")
    parent.frames[MTMenuFrame].scrollTo(0, 0);
    if((MTMClickedItem || MTMTrackedItem) && MTMUA.browserType != "NN3" && !MTMFirstRun)
    MTMItemName = "sub" + (MTMClickedItem ? MTMClickedItem : MTMTrackedItem);
    if(document.layers && parent.frames[MTMenuFrame].scrollbars)
    MTMyval = parent.frames[MTMenuFrame].document.anchors[MTMItemName].y;
    MTMWinSize = parent.frames[MTMenuFrame].innerHeight;
                                  else if(MTMUA.browserType != "O5")
    if(MTMUA.browserType == "NN5")
    parent.frames[MTMenuFrame].document.all = parent.frames[MTMenuFrame].document.getElementsByTagName("*");
    MTMyval = MTMGetYPos(parent.frames[MTMenuFrame].document.all[MTMItemName]);
    MTMWinSize = MTMUA.browserType == "NN5" ? parent.frames[MTMenuFrame].innerHeight : parent.frames[MTMenuFrame].document.body.offsetHeight;
    if(MTMyval > (MTMWinSize - 60))
    parent.frames[MTMenuFrame].scrollBy(0, parseInt(MTMyval - (MTMWinSize * 1/3)));
    if(!MTMFirstRun && MTMUA.cookieEnabled)
    if(MTMCookieString != "")
    setCookie(MTMCookieName, MTMCookieString.substring(0,4000), MTMCookieDays);
                                  else
    setCookie(MTMCookieName, "", -1);
    MTMFirstRun = false;
    MTMClickedItem = false;
    MTMExpansion = false;
    MTMTrack = false;
    MTMCookieString = "";
    MTMUpdating = false;
    function MTMListItems(menu)
    var i, isLast;
    for (i = 0; i < menu.items.length; i++)
    MTMIndices[MTMLevel] = i;
    isLast = (i == menu.items.length -1);
    MTMDisplayItem(menu.items[i], isLast);
    if(menu.items[i].submenu && menu.items[i].expanded)
    MTMBar[MTMLevel] = (isLast) ? false : true;
    MTMLevel++;
    MTMListItems(menu.items[i].submenu);
    MTMLevel--;
                        else
    MTMBar[MTMLevel] = false;
    function MTMDisplayItem(item, last)
    var i, img;
    var MTMfrm = "parent.frames['code']";
    var MTMref = '.menu.items[' + MTMIndices[0] + ']';
    if(MTMLevel > 0)
    for(i = 1; i <= MTMLevel; i++)
    MTMref += ".submenu.items[" + MTMIndices[i] + "]";
    if(MTMUA.cookieEnabled)
    if(MTMFirstRun && MTMCookieString != "")
    item.expanded = (MTMCookieString.charAt(MTMCookieCharNum++) == "1") ? true : false;
                        else
    MTMCookieString += (item.expanded) ? "1" : "0";
    if(item.submenu)
    var usePlusMinus = false;
    if(MTMSubsGetPlus.toLowerCase() == "always" || MTMEmulateWE)
    usePlusMinus = true;
                        else if(MTMSubsGetPlus.toLowerCase() == "submenu")
    for (i = 0; i < item.submenu.items.length; i++)
    if (item.submenu.items[i].submenu)
    usePlusMinus = true; break;
    var MTMClickCmd = "return " + MTMfrm + ".MTMSubAction(" + MTMfrm + MTMref + ");";
    var MTMouseOverCmd = "parent.status='" + (item.expanded ? "Collapse " : "Expand ") + (item.text.indexOf("'") != -1 ? MTMEscapeQuotes(item.text) : item.text) + "';return true;";
    var MTMouseOutCmd = "parent.status=parent.defaultStatus;return true;";
    MTMOutputString = '<tr valign="top"><td nowrap>';
    if(MTMLevel > 0)
    for (i = 0; i < MTMLevel; i++)
    MTMOutputString += (MTMBar[i]) ? MTMakeImage("menu_bar.gif") : MTMakeImage("menu_pixel.gif");
    if(item.submenu && usePlusMinus)
    if(item.url == "")
    MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
                        else
    if(MTMEmulateWE)
    MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
                                  else
    if(!item.expanded)
    MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
                                  else
    MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
    if(item.expanded)
    img = (last) ? "menu_corner_minus.gif" : "menu_tee_minus.gif";
              else
    img = (last) ? "menu_corner_plus.gif" : "menu_tee_plus.gif";
              else
    img = (last) ? "menu_corner.gif" : "menu_tee.gif";
    MTMOutputString += MTMakeImage(img);
    if(item.submenu)
    if(MTMEmulateWE && item.url != "")
    MTMOutputString += '</a>' + MTMakeLink(item, false, false, true);
                        else if(!usePlusMinus)
    if(item.url == "")
    MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
                                  else if(!item.expanded)
    MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd);
                                  else
    MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
    img = (item.expanded) ? item.expandIcon : item.collapseIcon;
              else
    MTMOutputString += MTMakeLink(item, false, true, true);
    img = (item.icon != "") ? item.icon : MTMFetchIcon(item.url);
    MTMOutputString += MTMakeImage(img);
    if(item.submenu && item.url != "" && item.expanded && !MTMEmulateWE)
    MTMOutputString += '</a>' + MTMakeLink(item, false, false, true);
    if(MTMUA.browserType == "NN3" && !MTMLinkedSS)
    var stringColor;
    if(item.submenu && (item.url == "") && (item.number == MTMClickedItem))
    stringColor = (item.expanded) ? MTMSubExpandColor : MTMSubClosedColor;
                        else if(MTMTrackedItem && MTMTrackedItem == item.number)
    stringColor = MTMTrackColor;
                        else
    stringColor = MTMLinkColor;
    MTMOutputString += '<font color="' + stringColor + '" size="' + MTMenuFontSize + '" face="' + MTMenuFont + '">';
    MTMOutputString += ' ' + item.text + ((MTMUA.browserType == "NN3" && !MTMLinkedSS) ? '</font>' : '') + '</a>' ;
    MTMDoc.writeln(MTMOutputString + '</td></tr>');
    function MTMEscapeQuotes(myString)
    var newString = "";
    var cur_pos = myString.indexOf("'");
    var prev_pos = 0;
    while (cur_pos != -1)
    if(cur_pos == 0)
    newString += "\\";
                        else if(myString.charAt(cur_pos-1) != "\\")
    newString += myString.substring(prev_pos, cur_pos) + "\\";
                        else if(myString.charAt(cur_pos-1) == "\\")
    newString += myString.substring(prev_pos, cur_pos);
    prev_pos = cur_pos++;
    cur_pos = myString.indexOf("'", cur_pos);
    return(newString + myString.substring(prev_pos, myString.length));
    function MTMTrackExpand(thisMenu)
    var i, targetPath, targetLocation;
    var foundNumber = false;
    for(i = 0; i < thisMenu.items.length; i++)
    if(thisMenu.items[i].url != "" && MTMTrackTarget(thisMenu.items[i].target))
    targetLocation = parent.frames[thisMenu.items[i].target].location;
    targetPath = targetLocation.pathname + targetLocation.search;
    if(MTMUA.browserType == "IE4" && targetLocation.protocol == "file:")
    var regExp = /\\/g;
    targetPath = targetPath.replace(regExp, "\/");
    if(targetPath.lastIndexOf(thisMenu.items[i].url) != -1 && (targetPath.lastIndexOf(thisMenu.items[i].url) + thisMenu.items[i].url.length) == targetPath.length)
    return(thisMenu.items[i].number);
    if(thisMenu.items[i].submenu)
    foundNumber = MTMTrackExpand(thisMenu.items[i].submenu);
    if(foundNumber)
    if(!thisMenu.items[i].expanded)
    thisMenu.items[i].expanded = true;
    if(!MTMClickedItem)
                                                      MTMClickedItem = thisMenu.items[i].number;
    MTMExpansion = true;
    return(foundNumber);
    return(foundNumber);
    function MTMCloseSubs(thisMenu)
    var i, j;
    var foundMatch = false;
    for(i = 0; i < thisMenu.items.length; i++)
    if(thisMenu.items[i].submenu && thisMenu.items[i].expanded)
    if(thisMenu.items[i].number == MTMClickedItem)
    foundMatch = true;
    for(j = 0; j < thisMenu.items[i].submenu.items.length; j++)
    if(thisMenu.items[i].submenu.items[j].expanded)
    thisMenu.items[i].submenu.items[j].expanded = false;
                                  else
    if(foundMatch)
    thisMenu.items[i].expanded = false;
                                            else
    foundMatch = MTMCloseSubs(thisMenu.items[i].submenu);
    if(!foundMatch)
    thisMenu.items[i].expanded = false;
    return(foundMatch);
    function MTMFetchIcon(testString)
    var i;
    for(i = 0; i < MTMIconList.items.length; i++)
    if((MTMIconList.items[i].type == 'any') && (testString.indexOf(MTMIconList.items[i].match) != -1))
    return(MTMIconList.items[i].file);
                        else if((MTMIconList.items[i].type == 'pre') && (testString.indexOf(MTMIconList.items[i].match) == 0))
    return(MTMIconList.items[i].file);
                        else if((MTMIconList.items[i].type == 'post') && (testString.indexOf(MTMIconList.items[i].match) != -1))
    if((testString.lastIndexOf(MTMIconList.items[i].match) + MTMIconList.items[i].match.length) == testString.length)
    return(MTMIconList.items[i].file);
    return("menu_link_default.gif");
    function MTMGetYPos(myObj)
    return(myObj.offsetTop + ((myObj.offsetParent) ? MTMGetYPos(myObj.offsetParent) : 0));
    function MTMCheckURL(myURL)
    var tempString = "";
    if((myURL.indexOf("http://") == 0) || (myURL.indexOf("https://") == 0) || (myURL.indexOf("mailto:") == 0) || (myURL.indexOf("ftp://") == 0) || (myURL.indexOf("telnet:") == 0) || (myURL.indexOf("news:") == 0) || (myURL.indexOf("gopher:") == 0) || (myURL.indexOf("nntp:") == 0) || (myURL.indexOf("javascript:") == 0))
    tempString += myURL;
              else
    tempString += MTMUA.preHREF + myURL;
    return(tempString);
    function MTMakeLink(thisItem, voidURL, addName, addTitle, clickEvent, mouseOverEvent, mouseOutEvent)
    var tempString = '<a href="' + (voidURL ? 'javascript:;' : MTMCheckURL(thisItem.url)) + ' ';
    if(MTMUseToolTips && addTitle && thisItem.tooltip)
    tempString += 'title="' + thisItem.tooltip + '" ';
    if(addName)
    tempString += 'name="sub' + thisItem.number + '" ';
    if(clickEvent)
    tempString += 'onclick="' + clickEvent + '" ';
    if(mouseOverEvent && mouseOverEvent != "")
    tempString += 'onmouseover="' + mouseOverEvent + '" ';
    if(mouseOutEvent && mouseOutEvent != "")
    tempString += 'onmouseout="' + mouseOutEvent + '" ';
    if(thisItem.submenu && MTMClickedItem && thisItem.number == MTMClickedItem)
    tempString += 'class="' + (thisItem.expanded ? "subexpanded" : "subclosed") + '" ';
              else if(MTMTrackedItem && thisItem.number == MTMTrackedItem)
    tempString += 'class="tracked"';
    if(thisItem.target != "")
    tempString += 'target="' + thisItem.target + '" ';
    return(tempString + '>');
    function MTMakeImage(thisImage)
    return('<img src="' + MTMUA.preHREF + MTMenuImageDirectory + thisImage + '" align="left" border="0" vspace="0" hspace="0" width="18" height="18">');
    function MTMakeBackImage(thisImage)
    var tempString = 'transparent url("' + ((MTMUA.preHREF == "") ? "" : MTMUA.preHREF);
    tempString += MTMenuImageDirectory + thisImage + '")'
    return(tempString);
    function MTMakeA(thisType, thisText, thisColor)
    var tempString = "";
    tempString += 'a' + ((thisType == "pseudo") ? ':' : '.');
    return(tempString + thisText + ' {\n\tcolor:' + thisColor + ';\n\tbackground:transparent;\n}\n');
    function MTMTrackTarget(thisTarget)
    if(thisTarget.charAt(0) == "_")
    return false;
              else
    for(i = 0; i < MTMFrameNames.length; i++)
    if(thisTarget == MTMFrameNames[i])
    return true;
    return false;
    function MTMFetchCookie()
    var cookieString = getCookie(MTMCookieName);
    if(cookieString == null)
              { // cookie wasn't found
    setCookie(MTMCookieName, "Say-No-If-You-Use-Confirm-Cookies");
    cookieString = getCookie(MTMCookieName);
    MTMUA.cookieEnabled = (cookieString == null) ? false : true;
    return;
    MTMCookieString = cookieString;
    MTMUA.cookieEnabled = true;
    // These are from Netscape's Client-Side JavaScript Guide.
    // setCookie() is altered to make it easier to set expiry.
    function getCookie(Name)
    var search = Name + "="
    if (document.cookie.length > 0)
              { // if there are any cookies
    offset = document.cookie.indexOf(search)
    if (offset != -1)
                        {   // if cookie exists
    offset += search.length
    // set index of beginning of value
    end = document.cookie.indexOf(";", offset)
    // set index of end of cookie value
    if (end == -1)
    end = document.cookie.length
    return unescape(document.cookie.substring(offset, end))
    function setCookie(name, value, daysExpire)
    if(daysExpire)
    var expires = new Date();
    expires.setTime(expires.getTime() + 1000*60*60*24*daysExpire);
    document.cookie = name + "=" + escape(value) + (daysExpire == null ? "" : (";expires=" + expires.toGMTString())) + ";path=/";

  • Re: HELP! URGENT! lost email messages!

    had to shut down due to time constrictions, sorry for pushing the need for help, but I was desperate to recover vital lost messages. I tried everything suggested in the Mail help records and past discussion posts. At this point (next morning) my mail is still lost.
    any suggestions will be appreciated.
    ORIGINAL POST:
    HELP! URGENT! lost email messages!
    Posted: Jan 21, 2007 6:29 PM
    I started, two days ago, receiving four of each message coming to me. I just looked at my accounts and saw two of my primary account (POP.ipa.net is the Incoming mail server), I'd never seen the second one before, so I deleted it.
    Went to my (Mac Mail ver. 2.1) mail browser and all my inbox and sent and junk messages now show the same message: "The message from [email protected] concerning “Receipt for Your Payment to (account name)” has not been downloaded from the server. You need to take this account online in order to download it."
    WHAT!!!!!!??????
    I went to Apple discussions and found a problem similar from today and followed the advice there by David Gimeno:
    "In the Finder, go to the ~/Library/Mail/POP-username@mailserver/ account folder, and look at the contents of INBOX.mbox and Sent Messages.mbox."
    did this and found nothing under either .mbox folder ...
    HELP!!! IMPORTANT MESSAGES ARE IN THE BALANCE!

    If you deleted a POP account, then all your mail stored in that account’s mailboxes has been wiped out, not just moved somewhere, and you were warned that this would happen by the following alert:
    Remove Account
    Are you sure you want to remove the <AccountType> account "<AccountName>"?
    This will permanently delete the account setup information, mailboxes, and messages from your computer. Messages stored on the mail server will not be affected.
    To prevent that from happening, you should have moved your mail to custom “On My Mac” mailboxes instead of leaving it in the account’s mailboxes.
    If the messages are not on the server, and you don’t have a backup, your only option in the case of Mail 2.x is to try to salvage as many deleted *.emlx files as possible with a data recovery tool such as Data Rescue II, TechTool Pro, or FileSalvage (the files to be recovered would be different in the case of Mail 1.x). Of these, the only one I know for sure that can currently recover deleted *.emlx files is FileSalvage. Stop using your computer right now if you want to try that, as anything you do with the computer may cause the deleted files to be overwritten. Actually, your anxiety may very well have already caused some of those messages to be irretrievably lost.
    As to why you appear to have lost messages from the account that remains in Mail as well, note that for each account, Mail creates a folder within ~/Library/Mail/ whose name starts with the account type (POP, IMAP, Mac), followed by the account username and the incoming mail server. Deleting a mail account causes the corresponding account folder to be deleted as well.
    You should never, ever, set up two accounts in Mail with the same Account Type, User Name, and Incoming Mail Server. Two such accounts would share the same account folder in the filesystem, and deleting one of them would cause the (shared) account folder to be deleted as well...

  • Routine--- help its urgent.

    hai gurus,
    Here is the scenario.
    I am extracting the data from r/3.There is one field called "ITM_DESCRIPTION" in this i am gettting an # char only for single record and due to this delta loads are getting failed.
    we had already wriiten the code for eliminating # for that field but dont know its not working. So i am planning out to skip that particular record for a particular Purchase order number.
    Is there any such code to eliminate the particular record.
    Many thanks in advance.
    any one has the code plz send the code.
    Help its urgent.
    full points assured
    regards
    KP

    hai Oscar,
    I had already done this one.
    still geting the same problem.
    can u send me any code that i can add in SR of TR.
    regards
    Kp

  • I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent

    I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent.

    There isn't one.
    amrzaky wrote:
    I can't contact with previous owner s i need another solutoin
    The Apple ID and Password that was Originally used to Activate the iDevice is required.
    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • HT201210 i have an error of no 11. kindly help, needed urgently

    i have an error of no 11. kindly help, needed urgently
    when i try to upgrage my
    iphone 3gs wit 4.1 to new latest 5.1
    it gives the erorr of 11. what that mean? Reply as soon as you can !
    thnx

    Error -1 may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

Maybe you are looking for