Presentation Template javascript w/ adaptive tags, how to tweak this code?

I have a snippet of code in one of my presentation templates, that I need to make a minor change to it, as the document.write javascript code causes my link to be explicitly coded into the page output. I found that on another template where I don't need to use javascript, the link is parsed by the portal, which causes the link to be created using gatewaying. I actually need the portal to create this link using gatewaying, as it won't work otherwise (the image won't display unless the gateway URL is produced). Here's the snippet of code I'm looking at:
<pcs:if expr="ShowPrintButton">
     <script language=JavaScript>
     if (displaybuttons == true)
          document.write("<a href='JavaScript:window.print();' alt='Print Article' title='Print Article'><img src='http://pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif' align='absmiddle' border='0' alt='Print Article' title='Print Article' /></a>");
     </script>
</pcs:if>
In my other presentation template, I don't need to check for a condition as I do in the case above, so no javascript is needed. So in that case I just put the image tag in the PT code on its own, with no javascript tags around it. In that case, the URL of the image output by that code is:
http://www.portal.state.pa.us/portal/server.pt/gateway/PTARGS_0_127743_785_14364_0_43/http%3B/pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif
This image link above works, and the image displays as desired. However, the explicit link without gatewaying, as in the javascript above, it will output the URL as:
http://pubcontent.state.pa.us/publishedcontent/preview/general_ops/sers/images/public/action_print.gif
which does not work since it didn't gateway the link. Is there a way I can tweak the javascript above to still be checking the condition and yet have the URL be gatewayed?
Thanks!

Got it working, although there is still some issue with the edocs not being up to date. Issue was a cross between some security settings and cache.
<!-- Links to my communities are stored in commenu -->
<pt:ptdata.communityactionsdata     pt:id="commmenu" />
<pt:ptdata.mycommunitiesdata        pt:id="commmenu" />
<!-- Links to mandatory communites are stored in menutabs -->
<pt:ptdata.mandtabcommsdata         pt:id="mandmenu2" /> <!-- this display the mandatory tabbed communities -->
<!-- Links to my pages are stored in mypagemenu -->
<pt:ptdata.mypageactionsdata        pt:id="mypagemenu" />
<pt:ptdata.mypagesdata              pt:id="mypagemenu" />
<pt:plugnav.ddmenurowcontainer pt:menuvar="midrowmenu" pt:hideemptymenus="true" >
<pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="mypagemenu" pt:text="$#1840.ptmsgs_portalbrowsingmsgs" />
<pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="commmenu" pt:text="$#1841.ptmsgs_portalbrowsingmsgs" />
<pt:plugnav.ddmenutab pt:containervar="midrowmenu" pt:datavar="directorymenu" pt:text="$#1842.ptmsgs_portalbrowsingmsgs" />
<pt:plugnav.ddmenusimpletabs pt:containervar="midrowmenu" pt:datavar="mandmenu2" />
</pt:plugnav.ddmenurowcontainer>

Similar Messages

  • Anyone knows how to make this code to netbeans??

    anyone knows how to make this code to netbeans?? i just want to convert it into netbeans... im not really advance with this software... anyway..just reply if you have any idea...or steps how to build it... etc.... thanks guys...
       import javax.swing.*;
       import javax.swing.table.*;
       import java.awt.*;
       import java.awt.event.*;
       import java.util.regex.*;
       public class FilterTable {
         public static void main(String args[]) {
           Runnable runner = new Runnable() {
             public void run() {
               JFrame frame = new JFrame("Sorting JTable");
               frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
               Object rows[][] = {
                 {"AMZN", "Amazon", 41.28},
                 {"EBAY", "eBay", 41.57},
                 {"GOOG", "Google", 388.33},
                 {"MSFT", "Microsoft", 26.56},
                 {"NOK", "Nokia Corp", 17.13},
                 {"ORCL", "Oracle Corp.", 12.52},
                 {"SUNW", "Sun Microsystems", 3.86},
                 {"TWX",  "Time Warner", 17.66},
                 {"VOD",  "Vodafone Group", 26.02},
                 {"YHOO", "Yahoo!", 37.69}
               Object columns[] = {"Symbol", "Name", "Price"};
               TableModel model =
                  new DefaultTableModel(rows, columns) {
                 public Class getColumnClass(int column) {
                   Class returnValue;
                   if ((column >= 0) && (column < getColumnCount())) {
                     returnValue = getValueAt(0, column).getClass();
                   } else {
                     returnValue = Object.class;
                   return returnValue;
               JTable table = new JTable(model);
               final TableRowSorter<TableModel> sorter =
                       new TableRowSorter<TableModel>(model);
               table.setRowSorter(sorter);
               JScrollPane pane = new JScrollPane(table);
               frame.add(pane, BorderLayout.CENTER);
               JPanel panel = new JPanel(new BorderLayout());
               JLabel label = new JLabel("Filter");
               panel.add(label, BorderLayout.WEST);
               final JTextField filterText =
                   new JTextField("SUN");
               panel.add(filterText, BorderLayout.CENTER);
               frame.add(panel, BorderLayout.NORTH);
               JButton button = new JButton("Filter");
               button.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent e) {
                   String text = filterText.getText();
                   if (text.length() == 0) {
                     sorter.setRowFilter(null);
                   } else {
                     try {
                       sorter.setRowFilter(
                           RowFilter.regexFilter(text));
                     } catch (PatternSyntaxException pse) {
                       System.err.println("Bad regex pattern");
               frame.add(button, BorderLayout.SOUTH);
               frame.setSize(300, 250);
               frame.setVisible(true);
           EventQueue.invokeLater(runner);
       }

    its okay onmosh.....what we need to
    this...forum....is to have a good......relationship
    of programmers......and to start with .....we need to
    have a good attitude........right.....???.....no
    matter how good you are in programming but if you did
    not posses the right kind of attitude....everything
    is useless.....in the first place....all we
    want....is just to ask...some....help....but
    conflicts......but unluckily......we did not expect
    that there are members in here which......not
    good...to follow.....just as suggestion for those
    people not having the right kind of attidude...why
    can't you do in a very nice message sharing in a very
    nice....way....why we need to put some
    stupid....stuff...words.....can't you live with out
    ******* ****....its not.....lastly especially you
    have your children right now and people around...that
    somehow......idiolize...you even me....is one of
    them......but showing but attitude....is not
    good......tnx....hope you'll take it this....in the
    positive side.....be optimistic...guys....the
    world..is not yours....all of us will just past
    away....always..remember that one.....treasure..our
    stay in this....temporary home.....which...is
    world....Whoa. That post seems to be killing my brain.
    URK
    Join........us..........do not be..........afraid.......

  • Can someone please tell me on how to modify this code so that I dont have to enter the file name at all?

    Hello
    can someone please tell me how to modify this code so that I dont have to enter the file path at all? When i give the same file path constants to both the read and write VIs I'm getting an error message.
    Attachments:
    read and write.vi ‏11 KB

    Yup use the low level File I/O opening the reference once, and closing it once.  
    As for the path selection you have an unwired input which is the path to use.  Programatically set that and you won't be prompted to select a path.  Usually this is done with a path constant to a folder, then using the Build Path, to set the file name in that folder.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to make this code go faster?

    Hi,
    I have this code and its really slow. My question is how to make it faster since its taking about 10 hours.
    Code:
      loop at ti_equi.
        select matnr sernr lief_nr kunde datum uzeit bwart posnr
    appending corresponding fields of table ti_ser01
          from z_objk_ser01
         where sernr eq ti_equi-sernr
           and matnr eq ti_equi-matnr.
      endloop.
      delete ti_ser01 where not ( kunde in s_kunnr and
                                  bwart = '631' ).
      sort ti_ser01 by matnr sernr datum descending uzeit descending.
      delete adjacent duplicates from ti_ser01 comparing matnr sernr.
    What this code does is fetch all these fields and then just keeps the one that's been modified at last.
    I have created an index by sernr and matnr in table objk which makes it just a little bit faster.
    Any helpful answer will be appreciated.
    Regards,
    Roberto
    Edited by: Julius Bussche on Jan 27, 2009 4:29 PM
    Code tags added. Please use more meaningfull subject titles

    Hi roberto
    please avoid select statment inside loop.
    use code
    data: index type sy-tabix.
    data : ti-ser011 type standard table of zobjk-ser01 with header line.
    select matnr sernr lief_nr kunde datum uzeit bwart posnr
          from z_objk_ser01 into table ti_ser01.
    sort ti_ser01 by sernr matnr.
    sort ti_equi by sernr matnr.
    index = 1.
    loop at ti_equi.
        loop at ti_ser01 from index
         if  ti_ser01-sernr = ti_equi-sernr
              and ti_ser01-matnr = ti_equi-matnr.
            move-corresponding ti_ser01 to ti_ser011.
            append ti_ser011.
            index = sy-tabix.
            exit.  
         endif.
        endloop.
    endloop.
    here i have used one more internal table ti_ser011.
    you can delete specific record from ti_ser01 internal table on condition. at that time u don't need to create any other internal table like ti-ser011.
    in place of loop select statement---endloop.
    you can use this code. I think it will help you.
    please find if it is udeful.

  • How to fix this code?

    Hello,
    I am trying to display country, state within each country,
    then person in each state...using cfoutput and group.
    i am getting this error...How can i fix this code?
    The &lt;cfif&gt; tag requires an end tag to nest
    within &lt;cfoutput&gt;, which began on line 21, column
    26.<p>The CFML compiler was
    processing:<ul><li>The body of a cfoutput tag beginning
    on line 26, column 34.<li>The body of a cfoutput tag
    beginning on line 26, column 34.</ul>

    Rather then including <cfif county_q.state neq ''> in
    your CF code eliminate any records with an empty state in your
    query. The sample appears to have a country, state, and name value
    for every record.
    If this is not possible please post a more code including:
    1. Your query
    2. A sample of your data with and without an empty state
    value

  • How to implement this code in labview?

    How do implement this pseudo code in labview? Please keep in mind "a" and "c" in the code below ARE VARIABLES
    for i =0 to i=maxvalue
           if i <= a 
               output = output2
           else if i > a AND i<=c
               output = output2
           else if i < c 
               output = output3
           else i = d
               output = output4
    I understance i can use a case structures and modify the label, but i do not know how to make the label dependent on a variable value. 
    Thanks 

    Try an array of boudaries and use threshold array. See this old example:
    Now just iterate over an array of values using a FOR loop.
    LabVIEW Champion . Do more with less code and in less time .

  • How to optimize this code + is design proper

    Well I have to implement tree programming here , what i mean by tree
    programming is i have data stored in tree format i,e I have parent
    object which will have child objects of same type the level of depth can
    go any long:
    I am able to store objects in tree format and also able to display properly Here
    is code but I am facing problems when i have to filter some child nodes based on some conditions:
    I have two question is this code fine is there anything wrong with desin Plus how to handle removing child node in tree scenation where child can be in any place.Below is code
    package menu;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import com.chartis.gp.support.util.BrokerSupportUtil;
    import com.chartis.gp.support.vo.Links;
    import com.chartis.kernel.user.UserVO;
    import com.chartis.kernel.utils.Utils;
    public class Utility{
         /* IN this class NavModel,CModel,CNode are some dummy classes
          * which help us read contents form some resources which are stored in dummy format
          * as Example of tree format stored data below is the example
          *    tree
          *       child1
          *       child2
          *       child3
          *              child3-1
          *                       child:q
          *                       child:r
          *                               child:a
          *              child3-2
          *       child4
         private static void populateChildLinks(NavModel navModel, Object objectNode, Links parent ){
              try{
                   List<Links> childLinks = new ArrayList<Links>();
                   Iterator it = navModel.getChildren( objectNode );
                   while( it.hasNext() ){
                        NavNode node = (NavNode) it.next();
                        CNode contentNode = node.getContentNode();
                        Links links = new Links();
                        links.setNodeName( contentNode.getNodeName() );
                        childLinks.add( links );
                        if( navModel.hasChildren( node ) ){
                             populateChildLinks( node, links );
                   parent.setChildren( childLinks );
              catch( Exception e ){
         private static Links createCategoryLinks(String categoryLinkName){
              Links categoryLinks = new Links();
              categoryLinks.setNodeName( categoryLinkName );
              return categoryLinks;
         public static Links setupLinks(String categoryLinkName,String name) {
              Links categoryLinks=null;
              CModel contentModel = new CModel();
              NavModel navModel = new NavModel();
              categoryLinks = Utility.createCategoryLinks( categoryLinkName);
              Object objectNode = contentModel.getLocator().findByUniqueName(name);
              if( objectNode != null ){
                   if( navModel.hasChildren( objectNode ) ){
                        populateChildLinks( navModel,objectNode, categoryLinks );
                  // This is where i am facing issue once i get list of links of childs
              // i have to delete how can i find that particular child in the list
              // do i have to iterate through all the links and delete or  which
              // way is better
         private static void filterLinks( Links parentNode,
                   List<Links> childNodeList ){
              List<Links> filteredResourceList = new ArrayList<Links>();
              if(  childNodeList!=null ){
                   Iterator<Links> childNodeIt = childNodeList.iterator();
                   while( childNodeIt.hasNext() ){
                        Links childNode = (Links) childNodeIt.next();
                        if(childNode.getChildren().size() >0 ){
                           filterLinks( childNode, childNode.getChildren() );
                        boolean removeNode = filterContents( childNode);
                        if(! removeNode ){
                             filteredResourceList.add( childNode );
              Iterator<Links> filteredResourceIt = filteredResourceList.iterator();
              while( filteredResourceIt.hasNext() ){
                   Links childNode = (Links) filteredResourceIt.next();
                   parentNode.getChildren().remove( childNode );
         // Let us consider this as some dummy method which returns true or false based on some conditions
         private static boolean filterContents( menu.Links childNode ){
              return false;
      package menu;
    import java.util.List;
    public class Links{
          private String nodeName;
         private List<Links> children;
         public List<Links> getChildren(){
              return children;
         public void setChildren( List<Links> children ){
              this.children = children;
         public String getNodeName(){
              return nodeName;
         public void setNodeName( String nodeName ){
              this.nodeName = nodeName;
    package menu;
    public class TreeDisplay{
         public static void main( String[] args ){
          Links link = Utility.setupLinks( "SomeName", "ResiyrbceBane");
           Utility.filterLinks( link, link.getChildren() );
    }Is the utility class with so many static class is ok?

    Vicky wrote:
    Thanks TPD
    If you could write more on it , it will be great i rarely find ocasations of using interfaces , however i don't think creating a new tree with valid node could be better solution as you have to create a new tree keeping the same hierarchy .The advantage is that all other components do not need to know that they work with a filtered tree.
    Certainly you can do it the other way around bye passing the tree and the filter to eg. the <tt>NotePrinter</tt> Object, but than all components working with the tree meight neet to know that ther are Node filters.
    I just came up with the Idea to give the nodes themselfes knowlege of the Filter via <tt>setFilter(Filter<Links> myFilter)</tt>. You would call this on the root node and in the <tt>getChildren()</tt> method you would check if the child apllies to the filter and pass that filter to the eliable childs before putting them into a new collection which is returned to the caller. Ofcause you should initialise the <tt>this.filter</tt> property in <tt>Links</tt> with a <tt>ALL_NODES</tt> constant.
    Also you should resist the tamptation to make the <tt>this.filter</tt> property in <tt>Links</tt> static. This would save you one line of code in the <tt>getCildren()</tt> method by the cost that you cannot have different trees with different filters in the same JVM.
    This kind of interference between threads is pretty hard to find later in production environments...
    bye
    TPD

  • How to write this code ?

    I need to write 3 classes that each one can get to the other with the same instance of the class , so how do i write this code ?
    thanks a lot

    try out singleton pattern with all the three classes. following link may help...
    http://www.javareference.com/jrexamples/viewexample.jsp?id=25

  • How to combine this code

    Hi,
    I am learning JSP. I made this page which takes up user name and roll and prints it.Can you please show me how to do this in a more better way. Such as instate of 3 page can I combine it into two or any thing that you have in mind...
    Thank you very much,
    M
    Form.html (this gets the user data)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      </head>
      <body>
          <FORM METHOD="POST" ACTION="SaveName.jsp">
              Enter Name:
              <input type="text" name="name" value="" size="30" />
              Enter Roll:
              <input type="text" name="roll" size="30"/>
                  <input type="SUBMIT"/>
          </FORM>
      </body>
    </html>UserData.java
    package newpackage;
    public class UserData {
        String name;
        int roll;
        public void setName(String value){
            name = value;
        public void setRoll(int value){
            roll = value;
        public String getName(){
            return name;
        public int getRoll(){
            return roll;
    }SaveName.jsp
    <jsp:useBean id="newpackage" class="newpackage.UserData" scope="session"/>
    <jsp:setProperty name="newpackage" property="*"/>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>SaveName.jsp</title>
        </head>
        <body>
            <A HREF="NextPage.jsp">Click here</A>
        </body>
    </html>NextPage.jsp
    <jsp:useBean id="newpackage"class="newpackage.UserData" scope="session"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h2>Hello World!</h2>
            Name = <%= newpackage.getName() %>
            <br>
            Roll = <%= newpackage.getRoll() %>
        </body>
    </html>

    Geesh. Throw that tutorial away. Right now.
    Start over at one of those tutorials:
    Sun Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc]
    Coreservlet.com tutorials: [http://courses.coreservlets.com/Course-Materials/]
    I also highly recommend a book of Bates & Sierra: [http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596005407]

  • How to test this code ???

    Hi All,
    One quick question:
    ..>>>>How do you test below InterfaceImpl classes in a simple program to test the code ???
    //below is the sample of the example I am running .
    Thanks
    Jack
    //interface 1
    same package;
    interface someInterfaceName1 {
    public void setLastName();
    public String getLastName();
    //inerface 2
    same package;
    interface someInterfaceName2{
    public void setBillingAddress(somename1 billing){
    public void setShippingAddress(somename1 shipping){
    // implementation class1
    samepackage;
    public class someInterfaceName1Impl implements someInterfaceName1 {
    private String lastName="";
    someInterfaceName1Impl();
    public void setLastName(String lastName){
    this.lastName=lastName;
    public String getLastName(){
    return LastName;
    //implementatio class2 for interface 2
    samepackage;
    class someInterfaceName2Impl implements someInterfaceName2
    public void setBillingAddress(interface1 billto){
    billto.setlastName(someValue); --?????
    public void setShippingAddress(interface1 shipto) {
    shipto.setFirstName(someValue); --- ?????
    //How to test the code ??
    package samepackage;
    class testMyCode {
    public static void main(String args[]){
    // how do you get the interfaces implementation here to test with dummy values ????

    Something along these lines (but departing from your code a bit...) public static void test() {
        Interface1 ifc1 = new Impl1();
        String tmpStr;
        int tmpInt;
        ifc1.setName("joe");
        tmpStr = ifc1.getName();
        if (!("joe".equals(tmpStr))) {
            System.err.println("set/getName failed. Put in joe but got out " + tmpStr);
        ifc1.setBirthdate("May 1 1980");
        tmpInt = ifc1.getAge();
        if (tmpInt != 24) {
            System.err.println("setBirthdate/getAge failed. Put in May 1 1980, expected 24 but got " + tmpInt);
        try {
            tmpStr = "Booger 99, 19seventy-beer";
            ifc1.setBirthdate(tmpStr);
            //shouldn't get here
           System.err.println("setBirthdate accepted invalid date: " + tmpStr);
        catch (InvalidBirthdateException exc) {
            // we want this, since it means our code properly rejected a bad date
    } Or, when you start writing serious code, look into junit
    &#12472;

  • How to transport this code to an applet

    Hi friends..
    the following page has a program to capture images from a web-cam.. can u help me how to transport that code into an applet. So that i can import that applet into an html page, where the live video can be streamed.
    the link is :- http://forum.java.sun.com/thread.jspa?threadID=247253&start=0&tstart=0
    i tried this code. but on html page the code is not being initialized, though the program is getting compiled correctly.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.util.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.applet.*;
    import com.sun.image.codec.jpeg.*;
    public class applet extends JApplet{
       static final int    WIDTH  = 320;
        static final int    HEIGHT = 320;
        //public intoApplet d = null;
        public static void main(String args[]){
             JFrame frame = new JFrame("Code Converter");
             applet a = new applet();
             a.init();
             frame.getContentPane().add(a);
             frame.setSize(WIDTH, HEIGHT);
             frame.setVisible(true);
        public void init() {
          System.out.println("Applet initializing");
          intoApplet d = new intoApplet();
          getContentPane().add(d);
        public void start() {
            System.out.println("Applet starting");
        public void stop() {
            System.out.println("Applet stopping");
        public void destroy() {
            System.out.println("Applet destroyed");
    public class intoApplet extends JPanel //implements ActionListener
      public Player player = null;
      public CaptureDeviceInfo di = null;
      public MediaLocator ml = null;
      public JButton capture = null;
      public Buffer buf = null;
      public Image img = null;
      public VideoFormat vf = null;
      public BufferToImage btoi = null;
      //public ImagePanel imgpanel = null;
      public intoApplet()
           System.out.print("into swing...");
        setLayout(new BorderLayout());
        setSize(320,320);
        String str1 = "vfw:Logitech USB Video Camera:0";
        String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
        di = CaptureDeviceManager.getDevice(str2);
        //ml = di.getLocator();
        ml = new MediaLocator("vfw://0");
        try
          player = Manager.createRealizedPlayer(ml);
          player.start();
          Component comp;
          if ((comp = player.getVisualComponent()) != null)
            add(comp,BorderLayout.NORTH);
          //add(capture,BorderLayout.CENTER);
          //add(imgpanel,BorderLayout.SOUTH);
        catch (Exception e)
          e.printStackTrace();
    public void playerclose()
        player.close();
        player.deallocate();
    }Message was edited by:
    rahulsah

    Maybe this topic helps (JUnit into Applet):
    http://forum.java.sun.com/thread.jspa?threadID=5130219&messageID=9469005#9469005

  • How to insert this code in muse?

    I have a tool but it does not work in adobe muse. Can anyone help me what I'm doing wrong.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" media="all" href="http://www.reisverzekering-vergelijker.nl/source/travel/1.0/css/167469">
        <script type="text/javascript" src="http://www.reisverzekering-vergelijker.nl/themes/default/js/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="http://www.reisverzekering-vergelijker.nl/source/travel/1.0/js/167469"></script>
        <style>
        #ensurance-wrapper {
              margin: 0 auto;
              width: 600px;
        </style>
      </head>
      <body>
        <div id="ensurance-wrapper"></div>
      </body>
    </html>

    Hi
    How exactly you are defining the tags ?
    As Mac_heibu has suggested you can use paragraph styles and assign the tags.
    These videos will help you :
    http://tv.adobe.com/watch/learn-adobe-muse-cc/working-with-text-styles-create-a-paragraph- style/
    http://www.adobepress.com/articles/article.asp?p=1925239&seqNum=3
    http://www.lynda.com/Muse-tutorials/Creating-paragraph-styles/123518/131190-4.html
    Thanks,
    Sanjit

  • (HELP)!!!!How to change this code to draw a rectangle?

    * File: DrawLines.java
    * This program allows users to create lines on the graphics
    * canvas by clicking and dragging with the mouse.
    import acm.graphics.*;
    import acm.program.*;
    import java.awt.event.*;
    /** This class allows users to draw lines on the canvas */
    public class DrawLines extends GraphicsProgram
    implements MouseListener, MouseMotionListener {
    /** Private instance variables */
    private GLine line;
    /** Initializes the program by enabling the mouse listeners */
    public void init() {
    addMouseListeners();
    /** Called on mouse press to create a new line */
    public void mousePressed(MouseEvent e) {
    /** when the left button is pressed, create a zero length line */
    line = new GLine(e.getX(), e.getY(), e.getX(), e.getY());
    add(line);
    /** Called on mouse drag to reset the endpoint */
    public void mouseDragged(MouseEvent e) {
    /** and now drag that line across the canvas
    * the line will stop automatically when we lift our
    * finger from the mouse
    line.setEndPoint(e.getX(), e.getY());
    This is drawline programm, but I want to change it to rectangle, use setbounds.
    Help!

    h1. The Ubiquitous Newbie Tips
    * DON'T SHOUT!!!
    * Homework dumps will be flamed mercilessly.
    * Have a quick scan through the [Forum FAQ's|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ].
    h5. Ask a good question
    * Don't forget to actually ask a question. No, The subject line doesn't count.
    * Ask once
        - Don't Crosspost!
        - Two people answering one question independantly is a waste of there time.
    * Don't even talk to me until you've:
        (a) [googled it|http://www.google.com.au/] and
        (b) looked it up in [Sun's Java Tutorials|http://java.sun.com/docs/books/tutorial/] and
        (c) read the relevant section of the [API Docs|http://java.sun.com/javase/6/docs/api/index-files/index-1.html] and maybe even
        (d) referred to the JLS (for "advanced" questions).
    * [Good questions|http://www.catb.org/~esr/faqs/smart-questions.html#intro] get better Answers. It's a fact. Trust me on this one.
        - Lots of regulars on these forums simply don't read badly written questions. It's just too frustrating.
          - FFS spare us the SMS and L33t speak! Pull your pants up, and get a hair cut!
        - Often you discover your own mistake whilst forming a "Good question".
        - Many of the regulars on these forums will bend over backwards to help with a "Good question",
          especially to a nuggetty problem, because they're interested in the answer.
    * Improve your chances of getting laid tonight by writing an SSCCE
        - For you normal people, That's a: Short Self-Contained Compilable Example.
        - Short is sweet: No-one wants to wade through 5000 lines to find your syntax errors!
        - Often you discover your own mistake whilst writing an SSCCE.
        - Solving your own problem yields a sense of accomplishment ;-)
    h5. Formatting Matters
    * Post your code between a pair of &#123;code} tags
        - That is: &#123;code} ... your code goes here ... &#123;code}
        - This makes your code easier to read by preserving whitespace and highlighting java syntax.
        - Copy&paste your source code directly from your editor. The forum editor basically sucks.
        - The forums tabwidth is 8, as per [the java coding conventions|http://java.sun.com/docs/codeconv/].
          - Indents will go jagged if your tabwidth!=8 and you've mixed tabs and spaces.
          - Lines longer than 80 characters should be wrapped.
          - Proper indentation illustrates program logic.
    * Post your error messages between a pair of &#123;code} tags:
        - That is: &#123;code} ... errors here ... &#123;code}
        - To make it easier for us to find, Mark the erroneous line(s) in your source-code. For example:
            System.out.println("Your momma!); // <<<< ERROR 1
        - Note that error messages are rendered basically useless if the code has been
          modified AT ALL since the error message was produced.
        - Here's [How to read a stacktrace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/].
    * The forum editor has a "Preview" pane. Use it.
        - If you're new around here you'll probably find the "Rich Text" view is easier to use.
        - WARNING: Swapping from "Plain Text" view to "Rich Text" scrambles the markup!
        - To see how a posted "special effect" is done, click reply then click the quote button.
    If you (the newbie) have covered these bases *you deserve, and can therefore expect, GOOD answers!*
    h1. The pledge!
    We the New To Java regulars do hereby pledge to refrain from flaming anybody, no matter how gumbyish the question, if the OP has demonstrably tried to cover these bases. The rest are fair game.

  • How to replace this code!!!!????? please Help!!!!!!!!!!!

    How I can replace following code as getServlet method is deprecated.
    getServletContext().getServlet("trapenv");

    this is Authenticator.java
    package trap.content;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import trap.*;
    import trap.publishing.*;
    import java.io.*;
    import java.util.Properties;
    import java.util.Hashtable;
    @SuppressWarnings("serial")
    public class Authenticator
        extends TRAPServletBase{
        Default constructor
        public Authenticator() {
            super();
        public final void doGet(HttpServletRequest req, HttpServletResponse res)
           throws ServletException, IOException
             doPost(req,res);
        Overrides the default doGet() to perform login function.
        @param req HttpServletRequest that encapsulates the request to the servlet.
        @param res HttpServletResponse that encapsulates the response from the servlet.
        @exception javax.servlet.ServletException
                   If the request could not be handled.
        @exception java.io.IOException
                   If there is an error writing to the output stream.
        @SuppressWarnings({ "unchecked" })
         public final void doPost(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
            try {
                res.setContentType("text/html");   
                PrintWriter out = getServletPrintWriter(res);
                System.out.println("getting properties now");
           //  Properties properties = getTRAPEnvironment().getProperties();
               Properties properties =   (Properties) getServletConfig().getServletContext().getAttribute("TRAPProperties");
                System.out.println("got properties now");
                String loginTemplate = properties.getProperty("TRAP.template.login");
                String expiredTemplate = properties.getProperty("TRAP.template.expired");
                String mainTemplate = properties.getProperty("TRAP.template.mainFrameSet");
                String userid = req.getParameter("userid");
                String passwd = req.getParameter("passwd");
                if(userid == null) {
                    userid = "";
                if(passwd == null) {
                    passwd = "";
                // Overall properties are passed through to HttpTRAPConnection
                // to initialize ORB...
                Properties connectionProperties = getProperties();
                HttpTRAPConnection conn = new HttpTRAPConnection(
                    connectionProperties, req.getSession(true)
                TRAPSession session = conn.login(userid, passwd);
                if(session.isPasswordExpired()) {
                    Hashtable table = new Hashtable();
                    table.put("MESSAGE","Your password has expired.<BR>" + "Please enter a new password now.");
      //              printTemplate(expiredTemplate, out, table);
                } else {
                    Hashtable myData = new Hashtable();
                    myData.put("DEFAULT_SERVLET",session.getMenu().defaultMenuItem.url);
       //             printTemplate(mainTemplate, out,myData);
            } catch(AccessViolation access) {
                HTMLElement element = HTMLElementFactory.getHTMLElement(
                    HTMLElementFactory.ERROR_ELEMENT
                element.printHTML(getServletPrintWriter(res), access);
            } catch(Exception error) {
                printError(getServletPrintWriter(res), getClass().getName(), error);
    }this is TRAPServletBase
    package trap.publishing;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import aif.persist.DbError;
    import trap.*;
    @SuppressWarnings("serial")
    public class TRAPServletBase
        extends HttpServlet {
          @SuppressWarnings("unused")
         private CachedFileTemplateManager templateMgr = null;
        Default constructor, calls default HttpServlet constructor.
        public TRAPServletBase() {
            super();
        Returns the TRAPSession object for this session, or throws
        an AccessViolation if the session has not logged in.
        @param req The HttpServletRequest for this servlet thread.
        @return TRAPSession for the servlet thread.
        @exception trap.AccessViolation
                   If the user has not yet logged in.
        @exception aif.persist.DbError
         if a database error occurs
        public TRAPSession getTRAPSession(HttpServletRequest req)
            throws AccessViolation, DbError {
            HttpTRAPConnection conn = HttpTRAPConnection.getInstance(req);
            if(conn == null) {
                throw new AccessViolation(AccessViolationType.Authentication);
            } else {
                return conn.getTRAPSession();
        Returns the TrapEnvironmentServlet.
        @return The TrapEnvironmentServlet.
        @exception javax.servlet.ServletException
                   If there is an error retrieving the environment.
         public TRAPEnvironmentServlet getTRAPEnvironment()
            throws ServletException {
              System.out.println("getting TRAPEnvironmentServlet");
            return (TRAPEnvironmentServlet)
         //     getServletContext().getServlet("trapenv");
          //       getServletContext().getNamedDispatcher("trapenv");
       //  getServletContext().getAttribute ("trapenv") ;
         getServletContext().getRequestDispatcher("/servlet/trapenv");
        Prints a template as if getTemplateManager().getTemplate().printHTML()
        were called with null data.
        @param templateName The name of the template to retrieve.
        @param out          The output stream to print to.
        @exception javax.servlet.ServletException
                   If there is an error printing the template.
        public void printTemplate(String templateName, PrintWriter out)
            throws ServletException {
            try {
                HTMLElement element = null;
                element = getTRAPEnvironment().getTemplateElement(templateName);
                element.printHTML(out, null);
            } catch(TemplateNotFoundException tnfe) {
                throw new ServletException(tnfe.getMessage());
        Prints a template as if getTemplateManager().getTemplate().printHTML()
        were called.
        @param templateName The name of the template to retrieve.
        @param out          The output stream to print to.
        @param data         The data object for the template.
        @exception javax.servlet.ServletException
                   If there is an error printing the template.
        public void printTemplate(String templateName, PrintWriter out, Object data)
            throws ServletException {
            try {
                HTMLElement element = null;
                element = getTRAPEnvironment().getTemplateElement(templateName);
                element.printHTML(out, data);
            } catch(TemplateNotFoundException tnfe) {
                throw new ServletException(tnfe.getMessage());
        Logs the error message to the servlet logging mechanism and
        prints a standard error page to the output stream specified.
        @param out   The print writer to render the page to.
        @param where The class/location where the error occurred.
        @param error The exception which caused the error.
        public void printError(PrintWriter out, String where, Exception error)
            throws ServletException, IOException {
            log(error, where);
            HTMLElement element = HTMLElementFactory.getHTMLElement(
                HTMLElementTypes.ERROR_ELEMENT
            element.printHTML(out, error);
        Utility method that takes the HttpServletResponse, retrieves the output
        stream, and creates a new PrintWriter to write to it.
        @param res The HttpServletResponse to retrieve the output stream from.
        @return The PrintWriter that writes to the response's output stream.
        @exception java.io.IOException
                   If the output stream cannot be obtained from the
                   HttpServletResponse.
        public PrintWriter getServletPrintWriter(HttpServletResponse res)
            throws IOException {
            return new PrintWriter(new OutputStreamWriter(res.getOutputStream()));
        Returns the value of the specified property from the properties file
        that was loaded on initialization.
        @param propertyName The name of the property to retrieve.
        @return The value of the specified property.
        @exception javax.servlet.ServletException
                   If the TRAPEnvironment cannot be found.
        @exception java.lang.IllegalArgumentException
                   If the property is not found.
        public String getProperty(String propertyName)
            throws ServletException {
            return getTRAPEnvironment().getProperty(propertyName);
        Returns the value of the specified property from the properties file
        that was loaded on initialization.
        @param propertyName The name of the property to retrieve.
        @param required     <code>true</code> if the property must exist.
        @return The value of the specified property.
        @exception javax.servlet.ServletException
                   If the TRAPEnvironment cannot be found.
        @exception java.lang.IllegalArgumentException
                   If the property is not found, and it was required.
        public String getProperty(String propertyName, boolean required)
            throws ServletException {
            return getTRAPEnvironment().getProperty(propertyName, required);
        Returns the properties object loaded at initialization.
        @return The properties object.
        @exception javax.servlet.ServletException
                   If the TRAPEnvironment cannot be found.
        public Properties getProperties()
            throws ServletException {
              TRAPEnvironmentServlet t = new TRAPEnvironmentServlet();
            return t.getProperties();
        public void log(String reason) {
            try {
                super.log(reason);
            } catch(Exception error) {
                System.err.println("Unable to use servlet logging for:");
                System.err.println(reason);
        public void log(Exception why, String reason) {
            try {
                getServletContext().log(reason);
            } catch(Exception error) {
                System.err.println("Unable to use servlet logging for:");
                System.err.println(reason);
                why.printStackTrace();
    and this is TRAPEnvironmentServlet
    package trap.publishing;
    import java.io.*;
    import java.util.Hashtable;
    import java.util.Properties;
    import javax.servlet.*;
    import javax.servlet.http.*;
    @SuppressWarnings("serial")
    public class TRAPEnvironmentServlet
        extends TRAPServletBase
        implements TemplateManager {
        The system configuration information.
        private Properties properties  = null;
        The template manager that loads templates.
        private CachedFileTemplateManager templateMgr = null;
        private boolean initialized = false;
        private final static String TOKEN_NAME        = "MESSAGE";
        private final static String TOKEN_DEFAULT_REPLACEMENT =
            "Enter your user id and password to log into TRAP";
        Construct the servlet.
        public TRAPEnvironmentServlet() {
            super();
        Initialize the servlet.
        @param config The servlet config object, containing the init parameter
                      TRAP.properties=[path].
        @exception javax.servlet.ServletException
                   If there is an error initializing the servlet.
        public void init(ServletConfig config)
            throws ServletException {
           System.out.println("in the init of TRAPEnvironmentServlet");
             if(initialized) {
                System.err.println("attempt made to reinitialize servlet.");
                return;
            super.init(config);
            try {
                if(config == null) {
                    throw new ServletException(
                        "ServletConfig is not available for initialization."
             // String propertiesPath = config.getInitParameter("TRAP.properties");
                InputStream is = getClass().getClassLoader().getResourceAsStream("config/trap.ini");
              //  properties.load(is);
           /*     if(propertiesPath == null || propertiesPath.equals("")) {
                    throw new ServletException(
                        "No initialize parameters specified for TRAPEnvironmentServlet."
                properties = new Properties();
                try {
                     //properties.load(new FileInputStream(propertiesPath));
                      properties.load(is);
                     String templateRoot = properties.getProperty("TRAP.templateRoot");
                    String loadAllStr   = properties.getProperty("TRAP.loadAllTemplates");
                    boolean loadAll     = false;
                    if(loadAllStr != null) {
                        loadAll = new Boolean(loadAllStr).booleanValue();
                    templateMgr = new CachedFileTemplateManager(templateRoot, loadAll);
                    config.getServletContext().setAttribute("TRAPProperties", properties);
                } catch(java.io.IOException ioe) {
                    log(ioe, "Unable to load properties file.");
                } catch(TemplateNotFoundException tnfe) {
                    log(tnfe, "Unable to load one or more templates.");
            } catch(Exception error) {
                log(error, "An error occurred while initializing the servlet.");
        //    config.getServletContext().setAttribute("TRAPProperties", properties);
            initialized=true;
        public void doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
            Hashtable<String, String> table = new Hashtable<String, String>();
            String why = req.getParameter("why");
            if(why == null) {
                table.put(TOKEN_NAME, TOKEN_DEFAULT_REPLACEMENT);
            } else {
                table.put(TOKEN_NAME, why);
            res.setContentType("text/html");
            Properties properties = this.getProperties();
            String loginTemplate = properties.getProperty("TRAP.template.login");   
            this.printTemplate(loginTemplate, getServletPrintWriter(res), table);
        public void doPost(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
            PrintWriter out = new PrintWriter(new OutputStreamWriter(res.getOutputStream()));
            out.println("<HTML>");
            out.println("  <BODY>");
            out.println("    <CENTER>");
            out.println("      <H1>");
            out.println("        This servlet should not be reference by a browser.");
            out.println("      </H1>");
            out.println("    </CENTER>");
            out.println("  </BODY>");
            out.println("</HTML>");
            out.flush();
        Returns the value of the specified property from the properties file
        that was loaded on initialization.
        @param propertyName The name of the property to retrieve.
        @return The value of the specified property.
        @exception java.lang.IllegalArgumentException
                   If the property name is not found.
        public String getProperty(String propertyName) {
            return getProperty(propertyName, true);
        Returns the value of the specified property from the properties file
        that was loaded on initialization.
        @param propertyName The name of the property to retrieve.
        @param required     <code>true</code> if the property must exist.
        @return The value of the specified property.
        @exception java.lang.IllegalArgumentException
                   If the property name is not found, but was required.
        public String getProperty(String propertyName, boolean required) {
            String property = properties.getProperty(propertyName);
            if(required && property == null) {
                throw new IllegalArgumentException(
                    propertyName + " was not found in the properties object."
            return property;
        Returns the properties object loaded at initialization.
        @return The properties object.
        public Properties getProperties() {
             System.out.println("getting properties now");
            return properties;
        Wraps access to the template manager, returning the template root.
        @return The template root.
        public String getTemplateRoot() {
            return templateMgr.getTemplateRoot();
        Wraps access to the template manager, sets the new template root.
        @param root The new template root.
        public void setTemplateRoot(String root) {
            templateMgr.setTemplateRoot(root);
        Wraps access to the template manager, returns the
        template associated with the specified name.
        @param name The name of the template to return.
        @return The HTMLElement representing the loaded template.
        @exception trap.publishing.TemplateNotFoundException
                   If the template cannot be successfully loaded.
        public HTMLElement getTemplateElement(String name)
            throws TemplateNotFoundException {
            return templateMgr.getTemplateElement(name);
    }this is my code
    thanks for help

  • How to restructure this code into separate classes?

    I have C# code that initializes a force feedback joystick and plays an effect file(vibrates the joystick). I have turn the console application into library
    code to make a dll so that I can use it in LabVIEW. 
    Right now all the code is written under one class, so went I put the dll in LabVIEW I can only select that one class. labVIEW guy told me that I need to
    restructure my C# code into separate classes. Each class that I want to access from LabVIEW needs to marked as public. Then I can instantiate that class in LabVIEW using a constructor, and call methods and set properties of that class using invoke nodes and
    property nodes.
    How can I do this correctly? I tried changing some of them into classes but doesn't work. Can you guys take a look at the code to see if it is even possible
    to break the code into separate classes? Also, if it is possible can you guide me, suggest some reading/video, etc.
    Thank you
    using System;
    using System.Drawing;
    using System.Collections;
    using System.Windows.Forms;
    using Microsoft.DirectX.DirectInput;
    namespace JoystickProject
    /// <summary>
    /// Summary description for Form1.
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    private System.Windows.Forms.Label label1;
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.Container components = null;
    private Device device = null;
    private bool running = true;
    private ArrayList effectList = new ArrayList();
    private string joyState = "";
    public bool InitializeInput()
    // Create our joystick device
    foreach(DeviceInstance di in Manager.GetDevices(DeviceClass.GameControl,
    EnumDevicesFlags.AttachedOnly | EnumDevicesFlags.ForceFeeback))
    // Pick the first attached joystick we see
    device = new Device(di.InstanceGuid);
    break;
    if (device == null) // We couldn't find a joystick
    return false;
    device.SetDataFormat(DeviceDataFormat.Joystick);
    device.SetCooperativeLevel(this, CooperativeLevelFlags.Exclusive | CooperativeLevelFlags.Background);
    device.Properties.AxisModeAbsolute = true;
    device.Properties.AutoCenter = false;
    device.Acquire();
    // Enumerate any axes
    foreach(DeviceObjectInstance doi in device.Objects)
    if ((doi.ObjectId & (int)DeviceObjectTypeFlags.Axis) != 0)
    // We found an axis, set the range to a max of 10,000
    device.Properties.SetRange(ParameterHow.ById,
    doi.ObjectId, new InputRange(-5000, 5000));
    // Load our feedback file
    EffectList effects = null;
    effects = device.GetEffects(@"C:\MyEffectFile.ffe",
    FileEffectsFlags.ModifyIfNeeded);
    foreach(FileEffect fe in effects)
    EffectObject myEffect = new EffectObject(fe.EffectGuid, fe.EffectStruct,
    device);
    myEffect.Download();
    effectList.Add(myEffect);
    while(running)
    UpdateInputState();
    Application.DoEvents();
    return true;
    public void PlayEffects()
    // See if our effects are playing.
    foreach(EffectObject myEffect in effectList)
    //if (button0pressed == true)
    //MessageBox.Show("Button Pressed.");
    // myEffect.Start(1, EffectStartFlags.NoDownload);
    if (!myEffect.EffectStatus.Playing)
    // If not, play them
    myEffect.Start(1, EffectStartFlags.NoDownload);
    //button0pressed = true;
    protected override void OnClosed(EventArgs e)
    running = false;
    private void UpdateInputState()
    PlayEffects();
    // Check the joystick state
    JoystickState state = device.CurrentJoystickState;
    device.Poll();
    joyState = "Using JoystickState: \r\n";
    joyState += device.Properties.ProductName;
    joyState += "\n";
    joyState += device.ForceFeedbackState;
    joyState += "\n";
    joyState += state.ToString();
    byte[] buttons = state.GetButtons();
    for(int i = 0; i < buttons.Length; i++)
    joyState += string.Format("Button {0} {1}\r\n", i, buttons[i] != 0 ? "Pressed" : "Not Pressed");
    label1.Text = joyState;
    //if(buttons[0] != 0)
    //button0pressed = true;
    public Form1()
    // Required for Windows Form Designer support
    InitializeComponent();
    // TODO: Add any constructor code after InitializeComponent call
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    protected override void Dispose( bool disposing )
    if( disposing )
    if (components != null)
    components.Dispose();
    base.Dispose( disposing );
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    public void InitializeComponent()
    this.label1 = new System.Windows.Forms.Label();
    this.SuspendLayout();
    // label1
    this.label1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
    this.label1.Location = new System.Drawing.Point(8, 8);
    this.label1.Name = "label1";
    this.label1.Size = new System.Drawing.Size(272, 488);
    this.label1.TabIndex = 0;
    // Form1
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    this.BackColor = System.Drawing.SystemColors.ControlText;
    this.ClientSize = new System.Drawing.Size(288, 502);
    this.Controls.AddRange(new System.Windows.Forms.Control[] {
    this.label1});
    this.Name = "Form1";
    this.Text = "Joystick Stuff";
    this.ResumeLayout(false);
    #endregion
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    using (Form1 frm = new Form1())
    frm.Show();
    if (!frm.InitializeInput())
    MessageBox.Show("Couldn't find a joystick.");

    Imho he means the following.
    Your class has performs two tasks:
    Controlling the joystick.
    Managing the joystick with a form.
    So I would recommend, that you separate the WinForm from the joystick code. E.g.
    namespace JoystickCtlLib
    public class JoystickControl
    private Device device = null;
    private bool running = true;
    private ArrayList effectList = new ArrayList();
    private string joyState = "";
    public string State { get { return this.joyState; } }
    public bool InitializeInput() { return true; }
    public void PlayEffects() { }
    private void UpdateInputState() { }
    So that your joystick class does not reference or uses any winform or button.
    btw, there is a thing which is more important than that: Your polling the device in the main thread of your application. This will block your main application. Imho this should be a job for a thread like background worker.

Maybe you are looking for

  • How do I get a refund for money taken out of my Pa...

    Last year I signed on for a Skype number, Within an hour I found out I didn't need it and tried to cancel it. Of course there is no phone number to call and no email to communicate with these people. Plus, at that time  the site said the numnber coul

  • Applet Event Handler

    Would someone please help me. I am new to applet development and I get a compile error associated with the event handling in my first ever applet code as follows: C:\j2sdk1.4.2_01\bin>javac trajectory_j.java trajectory_j.java:248: illegal start of ex

  • IPod 1st Generation Touch- System Restore from Recovery Mode

    My iPod Touch 1st Generation worked fine one day and the next day all it would do is disply the little white "Apple" and then go black.  It was fully powered.  I opened my Itunes account and connected the iPod. Nothing.  Then I saw on a previous disc

  • Link in e-Mail to GP

    Hello, I have realized a GP approval workflow. Is it possible to send an e-mail to the user who is involved next containing a link which directly directs to the step the user has to perfom? Best regards Alexander

  • Unable to open some psd file -   "could not complete your request ,unable to parse the path data"

    Hi I am unable to open some psd file that i created . I get this message "could not complete your request ,unable to parse the path data"  I am curently using cs6. Any idea how to fix it. I tried opening on other computer with photoshop but no luck y