Behaviors Problem

I have sub-tabs or behaviors I have made to a menu tab and
for some reason I have to keep returning to the main tab in order
to view each sub-tab. If you try to go from one sub-tab to another
is says "Page not found." What is happening is that when you go
from one sub-tab to another sub-tab it dups part of the link
therefore the link is incorrect and can't find the page. I've made
an absolute path/link to my sub-links and it still doesn't work. Do
I need to completely redo my behaviors? Not sure what else to try.
Thanks!
AM

Sadly, you have used -
function mmLoadMenus() {
if (window.mm_menu_0314172126_0) return;
the dreaded DW/FW pop-up menus. You should read this
carefully -
http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
It's written by the person who adapted that code for
Macromedia to use in
this "feature".
The worst part is that you have used it on a template
controlled page. If
you ever want to add a button or edit anything on the menu on
the template,
you cannot since these menus are incompatible with templates.
You would
have to RECREATE the menu, insert it on a new page, save the
new page as a
template, and go from there. Ugh. Sorry - it's a really nasty
(and
embarrassing) trick that Macromedia has played on you.
Your problem is illustrated here -
mm_menu_0523161854_0.addMenuItem
("Top Line Growth","location='Consulting_Services_Sub_Menus/TopLine
Growth.html'");
Because you have used a DOCUMENT relative link for this (and
all other)
link, and because you have placed your pages in
subdirectories, what you
have CANNOT EVER work.You can fix it short term by editing
that javascript
embedded
in the head of the page (luckily, it's not voluminous) to
change each of
your links to ROOT
relative ones, e.g.,
change this -
mm_menu_0523161854_0.addMenuItem
("Top Line Growth","location='Consulting_Services_Sub_Menus/Top
Line Growth.html'")
to this -
mm_menu_0523161854_0.addMenuItem
("Top Line Growth","location='/Consulting_Services_Sub_Menus/Top
Line Growth.html'")
** note the addition of the leading slash to the link **
Also - you *must* get rid of the spaces in your file names.
This will
surely come back to bite you if you don't.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Blackluca" <[email protected]> wrote in
message
news:[email protected]...
> Here is our site...
> www.chapterhouse.com
> If you go to the Consulting Services tab it works fine,
then you click on
> one
> of the sub-tabs - Corporate Strategy, works fine. But
then you try to
> click
> and go to another sub-tab - Top Line Growth, and you get
"Can't find
> page." If
> you look at the address when you get the message "Can't
find page" you
> will see
> that it duplicated part of the link
(Consulting_Services_Sub_Menus reads
> twice), which causes it not to find the page. If you
delete one of the
> Consulting_Services_Sub_Menus you go straight to the
page. I made an
> absolute
> links in my Behaviors menu and still doesn't work.
Wondering if I just
> need to
> completely redo the Behaviors?
>

Similar Messages

  • "write on" behavior problem

    I’ve drawn shapes many times with the “write on” behavior. All of a sudden, it’s not working. Here’s the problem. “Write On” completes drawing and then reverses a little bit on the last frame. I included frame shots. If anyone can help, I would appreciate it.
    Side note: I know I can do the same thing with key frames. However, I’d rather solve the “write on” behavior problem.

    Ah, nevermind! I think I may have solved the issue myself. It seems if you click on the Group tab to the left of the main timeline as opposed to the clip within the timeline, it allows you to change the group and scale it while also keeping different elements together. Could be helpful for anyone with a similar question.

  • Sequel Search Server Behaviors Problem

    This code was made with php-msql server behaviors - recordset
    pull down's....
    I have a form to search for firstname or lastname or both but
    I'm not getting the right results
    SELECT * FROM phonebook WHERE firstname LIKE %s and lastname
    LIKE %s
    problem 1 - if I have NOTHING in the form then *all* records
    get returned
    I guess the problem is with blank form fields?
    Q: How can I fix this?
    full query below...

    still curious about this - thanks in advance

  • Custom mouselook  behavior problems

    I am trying to write a custom behavior for mouselook (I know there is one but I want the challenge and the custom levels). I can't seem to get it to move...
    Interaction1 class (JFrame):
    import javax.swing.JFrame;
    import java.awt.event.*;
    import javax.swing.Timer;
    import java.awt.GraphicsConfiguration;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import java.awt.Container;
    import java.awt.FlowLayout;
    import javax.vecmath.*;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    import java.awt.Polygon;
    import com.sun.j3d.utils.geometry.GeometryInfo;
    import com.sun.j3d.utils.geometry.Triangulator;
    import com.sun.j3d.utils.geometry.Stripifier;
    import com.sun.j3d.utils.universe.ViewingPlatform;
    import com.sun.j3d.utils.universe.Viewer;
    public class Interaction1 extends JFrame implements ActionListener, KeyListener
        public static final long serialVersionUID=1;
        private Timer t;
        private Canvas3D canvas;
        public Interaction1()
            super("Interaction1");
            setSize(700,530);
            setVisible(true);
            Container c = getContentPane();
            c.setLayout(new FlowLayout());
            GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
            canvas = new Canvas3D(config);
            canvas.setSize(640,480);
            canvas.setVisible(true);
            c.add(canvas);
            ViewingPlatform vp = new ViewingPlatform();
            vp.setNominalViewingTransform();
            vp.getViewPlatformTransform().setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
            vp.setViewPlatformBehavior( new MouseLookBehavior(vp.getViewPlatformTransform(),this,5f) );
            vp.getViewPlatformBehavior().setSchedulingBounds(new BoundingSphere());
            SimpleUniverse univ = new SimpleUniverse(vp, new Viewer(canvas));
            BranchGroup scene = createSceneGraph();
            scene.compile();
            univ.addBranchGraph(scene);
            addKeyListener(this);
            t=new Timer(10,this);
        private BranchGroup createSceneGraph()
            BranchGroup i = new BranchGroup();
            Background bg = new Background();
            bg.setColor(.75f,1f,1f);
            bg.setApplicationBounds(new BoundingSphere(new Point3d(),500.0));
            Shape3D side1 = new Shape3D();
            QuadArray abgeom = new QuadArray(4,QuadArray.COORDINATES|QuadArray.TEXTURE_COORDINATE_2);
            //order TL,BL,BR,TR
            abgeom.setCoordinate(0,new Point3f(-3f,4f,0f));//Front
            abgeom.setCoordinate(1,new Point3f(-3f,0f,0f));
            abgeom.setCoordinate(2,new Point3f(3f,0f,0f));
            abgeom.setCoordinate(3,new Point3f(3f,4f,0f));
            abgeom.setTextureCoordinate(0,0,new TexCoord2f(0f,0f));//Front
            abgeom.setTextureCoordinate(0,1,new TexCoord2f(0f,1f));
            abgeom.setTextureCoordinate(0,2,new TexCoord2f(1f,1f));
            abgeom.setTextureCoordinate(0,3,new TexCoord2f(1f,0f));
            side1.setGeometry(abgeom);
            Appearance abapp = new Appearance();
            Texture2D abtex = new Texture2D(Texture.BASE_LEVEL,Texture.RGB,64,64);
            abtex.setImage(0,new ImageComponent2D(ImageComponent.FORMAT_RGB,toBufferedImage((new ImageIcon("buildingside.jpg")).getImage())));
            abapp.setTexture(abtex);
            side1.setAppearance(abapp);
            i.addChild(bg);
            i.addChild(side1);
            return i;
        public void keyPressed(KeyEvent e)
            if(e.getKeyCode()==KeyEvent.VK_ESCAPE)
              System.exit(0);
        public void keyReleased(KeyEvent e)
        public void keyTyped(KeyEvent e)
        private BufferedImage toBufferedImage(Image a)
            BufferedImage b = new BufferedImage(64,64,BufferedImage.TYPE_INT_RGB);
            Graphics g = b.getGraphics();
            g.drawImage(a,0,0,null);
            return b;
        public void actionPerformed(ActionEvent e)
            repaint();
        public void paint(Graphics g)
            canvas.repaint();
        public static void main(String args[])
            JFrame a = new Interaction1();
    }MouseLookBehavior class (ViewPlatformBehavior):
    import java.util.Enumeration;
    import javax.media.j3d.*;
    import java.awt.event.MouseEvent;
    import java.awt.Robot;
    import java.awt.Window;
    import java.awt.Point;
    import java.awt.Dimension;
    import com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior;
    public class MouseLookBehavior extends ViewPlatformBehavior
        private TransformGroup target;
        private Transform3D yaw;
        private double yawTheta=0.0;
        private Robot robot;
        private Window window;
        private float sensitivity;
        public MouseLookBehavior(TransformGroup ooc, Window a, float senstvty)
            target=ooc;
            window = a;
            try{robot = new Robot();}catch(Exception e){}
            sensitivity=senstvty;
            yaw = new Transform3D();
        public MouseLookBehavior(TransformGroup ooc, Window a)
            target=ooc;
            window = a;
            try{robot = new Robot();}catch(Exception e){}
            sensitivity=2f;
            yaw = new Transform3D();
        public void initialize()
            wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
        public void processStimulus(Enumeration e)
            MouseEvent a = (MouseEvent)(((WakeupOnAWTEvent)e.nextElement()).getAWTEvent()[0]);
            Point winloc = window.getLocation(null);
            Dimension windim = window.getSize(null);
            winloc.translate((int)windim.getWidth()/2,(int)windim.getHeight()/2);
            int difx=a.getX()-(int)(windim.getWidth()/2),dify=a.getY()-(int)(windim.getWidth()/2);
            difx*=sensitivity;
            dify*=sensitivity;
            yawTheta+=difx;
            yaw.rotY(yawTheta);
            wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
            robot.mouseMove((int)windim.getWidth()/2,(int)windim.getHeight()/2);
    PLEASE NOTE: I have been trying to get an exit command in there but it hasn't worked, so if you decide to run this, you will have to ctrl-alt-dlt it and alt-e it to end the task which brings up an AWT question... why wont it exit?
    ALSO NOTE: I am aware of some extra useless variables in the processStimulus method. This is for future versions once I get this one to work. Ignore it.

    Perfect! Thanks. I've got a new problem now. whenever I try to use the mouselook, the object disappears. And so I tryed turning to find it and it still isn't there...
    Main class
    import javax.swing.JFrame;
    import java.awt.event.*;
    import javax.swing.Timer;
    import java.awt.GraphicsConfiguration;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import java.awt.Container;
    import java.awt.FlowLayout;
    import javax.vecmath.*;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    import java.awt.Polygon;
    import com.sun.j3d.utils.geometry.GeometryInfo;
    import com.sun.j3d.utils.geometry.Triangulator;
    import com.sun.j3d.utils.geometry.Stripifier;
    import com.sun.j3d.utils.universe.ViewingPlatform;
    import com.sun.j3d.utils.universe.Viewer;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    public class Interaction1 extends JFrame implements KeyListener
        public static final long serialVersionUID=1;
        private Canvas3D canvas;
        public Interaction1()
            super("Interaction1");
            setSize(700,530);
            setVisible(true);
            Container c = getContentPane();
            c.setLayout(new FlowLayout());
            GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
            canvas = new Canvas3D(config);
            canvas.setSize(640,480);
            canvas.setVisible(true);
            c.add(canvas);
            ViewingPlatform vp = new ViewingPlatform();
            vp.setNominalViewingTransform();
            vp.getViewPlatformTransform().setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
            vp.setViewPlatformBehavior( new MouseLookBehavior(vp.getViewPlatformTransform(),this,10f));
            vp.getViewPlatformBehavior().setSchedulingBounds(new BoundingSphere());
            SimpleUniverse univ = new SimpleUniverse(vp, new Viewer(canvas));
            BranchGroup scene = createSceneGraph();
            scene.compile();
            univ.addBranchGraph(scene);
            addKeyListener(this);
        private BranchGroup createSceneGraph()
            BranchGroup i = new BranchGroup();
            Background bg = new Background();
            bg.setColor(.75f,1f,1f);
            bg.setApplicationBounds(new BoundingSphere(new Point3d(),500.0));
            Shape3D side1 = new Shape3D();
            QuadArray abgeom = new QuadArray(4,QuadArray.COORDINATES|QuadArray.TEXTURE_COORDINATE_2);
            //order TL,BL,BR,TR
            abgeom.setCoordinate(0,new Point3f(-3f,4f,0f));//Front
            abgeom.setCoordinate(1,new Point3f(-3f,0f,0f));
            abgeom.setCoordinate(2,new Point3f(3f,0f,0f));
            abgeom.setCoordinate(3,new Point3f(3f,4f,0f));
            abgeom.setTextureCoordinate(0,0,new TexCoord2f(0f,0f));//Front
            abgeom.setTextureCoordinate(0,1,new TexCoord2f(0f,1f));
            abgeom.setTextureCoordinate(0,2,new TexCoord2f(1f,1f));
            abgeom.setTextureCoordinate(0,3,new TexCoord2f(1f,0f));
            side1.setGeometry(abgeom);
            Appearance abapp = new Appearance();
            Texture2D abtex = new Texture2D(Texture.BASE_LEVEL,Texture.RGB,64,64);
            abtex.setImage(0,new ImageComponent2D(ImageComponent.FORMAT_RGB,toBufferedImage((new ImageIcon("buildingside.jpg")).getImage())));
            abapp.setTexture(abtex);
            side1.setAppearance(abapp);
            i.addChild(bg);
            i.addChild(side1);
            return i;
        public void keyPressed(KeyEvent e)
            if(e.getKeyCode()==KeyEvent.VK_ESCAPE)
              System.exit(0);
        public void keyReleased(KeyEvent e)
        public void keyTyped(KeyEvent e)
        private BufferedImage toBufferedImage(Image a)
            BufferedImage b = new BufferedImage(64,64,BufferedImage.TYPE_INT_RGB);
            Graphics g = b.getGraphics();
            g.drawImage(a,0,0,null);
            return b;
        public static void main(String args[])
            JFrame a = new Interaction1();
    }MouseLookBehavior:
    import java.util.Enumeration;
    import javax.media.j3d.*;
    import java.awt.event.MouseEvent;
    import java.awt.Robot;
    import java.awt.Window;
    import java.awt.Point;
    import java.awt.Dimension;
    import com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior;
    public class MouseLookBehavior extends ViewPlatformBehavior
        private TransformGroup target;
        private Transform3D yaw;
        private double yawTheta=0.0;
        private Robot robot;
        private Window window;
        private float sensitivity;
        public MouseLookBehavior(TransformGroup ooc, Window a, float senstvty)
            target=ooc;
            window = a;
            try{robot = new Robot();}catch(Exception e){}
            sensitivity=senstvty;
            yaw = new Transform3D();
        public MouseLookBehavior(TransformGroup ooc, Window a)
            target=ooc;
            window = a;
            try{robot = new Robot();}catch(Exception e){}
            sensitivity=2f;
            yaw = new Transform3D();
        public void initialize()
            wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
        public void processStimulus(Enumeration e)
            MouseEvent a = (MouseEvent)(((WakeupOnAWTEvent)e.nextElement()).getAWTEvent()[0]);
            Point winloc = window.getLocation(null);
            Dimension windim = window.getSize(null);
            winloc.translate((int)windim.getWidth()/2,(int)windim.getHeight()/2);
            int difx=a.getX()-(int)(windim.getWidth()/2),dify=a.getY()-(int)(windim.getWidth()/2);
            difx*=sensitivity;
            dify*=sensitivity;
            yawTheta+=difx;
            yaw.rotY(yawTheta/180*Math.PI);
            target.setTransform(yaw);
            robot.mouseMove((int)windim.getWidth()/2,(int)windim.getHeight()/2);
            wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
    }

  • "Show Pop-Up Menu" behavior problems

    Greetings—
    The "Show Pop-Up Menu" under Add Behaviors is grayed-out and
    won't allow additional links to be added to the templates. I'm
    currently on DW MX 2004.
    Thank you

    > Does anyone have any suggestions what to do so this
    selection is not
    > grayed
    > out?
    The functionality has been REMOVED as a primary function in
    CS3. It will
    allow you to edit a LEGACY MENU, but not create a new menu
    from scratch.
    This is a good thing. The DW menus were indescribably
    horrible.
    In their place, use the Spry menus, or -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Moni057" <[email protected]> wrote in
    message
    news:f3na5s$9lv$[email protected]..
    >I just got CS3 (and un-installed DW8) and I have learned
    that the "Show
    >Pop-Up
    > Menu" behavior is depreciated. The problem I'm having is
    it is Grayed out
    > (And
    > yes, I made sure I had a 'link' selected when I tried to
    choose this
    > behavior)
    Is there a setting in the Preferences that I missed or is CS3
    just teasing
    > me w/a remembrance of this easy to use pop up menu
    maker? Any help is
    > appreciated :)
    >
    > Thanks,
    > Monica
    >
    > [email protected]
    >
    > ps: I do know about the "Spry assets" but I want to see
    if the above
    > option is
    > possible first. thanx :)
    >

  • Drag Layer behavior problem in IE 6

    I have created a simple page with a draggable layer. Works
    fine in FF but if you
    scroll to the bottom of the page in IE the layer is not
    draggable any more. I first noticed this behavior when I created
    layers with DW MX2004, so just to make sure, I dowloaded DW 8,
    installed on a clean Win XP virtual PC, and the problem remains.
    Please look at this example and tell me what I'm missing:
    Example of draggable
    layer

    I have found the culprit, it is this code that DW
    inserts at the top of the page:
    quote:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "http
    ://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Now, in the first place, I am wondering why dozens of other
    users did not get the same problem, and secondly, what is the
    correct code to place at the top of the page???

  • URGENT: Custom Behavior Problem

    I'm writing an application which must plot a 3D curve. It has 3 panels, each of which has a 2D projection of the curve (xy, xz, yz). Moving the points on the panels will change the properties of the underlying 3D curve.
    When I start the application, The 3D curve is shown correctly, but when I move the points, the 3D curve disappears.
    The problem is not the canvas3d not being redrawn, because resizing the window doesn't bring the curve back. Any idea why the curve isn't redrawn?
    The code for the curve is as follows:
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.lang.Math.*;
    public class CubicCurve3D extends Shape3D{
         public CubicCurve3D(Point3d p1, Point3d p2, Point3d p3, Point3d p4){
              this.setGeometry(createGeometry(p1,p2,p3,p4));
         public Geometry createGeometry(Point3d p1, Point3d p2, Point3d p3, Point3d p4){
              // setup the LineArray to represent the curve
              LineArray curveLine = new LineArray(148, GeometryArray.COORDINATES);
              // Add vertices to the array
              setupLineArray(p1,p2,p3,p4,curveLine);
              return curveLine;
         // This method adds the vertices into the array
         public void setupLineArray(Point3d p1, Point3d p2, Point3d p3, Point3d p4, LineArray curve){
              final Point3d p = new Point3d();;
              double nx = 0;
              double ny = 0;
              double nz = 0;
              double u = 0.0;
              int lIndex = 0;
              for(int i=0;i<75;i++){
                   u = ((double)i/100)/0.75;
                   // Equations to work out point
                   nx = ((p1.x)*Math.pow((1-u),3.0)) + ((p2.x)*(3*u)*Math.pow((1-u),2.0)) + ((p3.x)*(3*u*u)*(1-u)) + ((p4.x)*Math.pow(u,3.0));
                   ny = ((p1.y)*Math.pow((1-u),3.0)) + ((p2.y)*(3*u)*Math.pow((1-u),2.0)) + ((p3.y)*(3*u*u)*(1-u)) + ((p4.y)*Math.pow(u,3.0));
                   nz = ((p1.z)*Math.pow((1-u),3.0)) + ((p2.z)*(3*u)*Math.pow((1-u),2.0)) + ((p3.z)*(3*u*u)*(1-u)) + ((p4.z)*Math.pow(u,3.0));
                   p.set(nx,ny,nz);
                   // Put point into LineArray
                   curve.setCoordinate(lIndex,p);
                   if((i > 0) && (i < 74)){
                        lIndex++;
                        curve.setCoordinate(lIndex,p);
                   lIndex++;
         public void updateGeometry(Point3d p1, Point3d p2, Point3d p3, Point3d p4){
              this.setGeometry(createGeometry(p1,p2,p3,p4));
    }The behavior, called UpdateBehavior, is:
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.util.Enumeration;
    public class UpdateBehavior extends Behavior
         // The set of points to be updated
         private Point3d[] points;
         private CubicCurve3D cc;
         public UpdateBehavior(CubicCurve3D c)
              cc = c;
              postId(1);
         public void initialize()
              this.wakeupOn(new WakeupOnBehaviorPost(this, 1));
         public void processStimulus(Enumeration e)
              cc.updateGeometry(points[0],points[1],points[2],points[3]);
              this.wakeupOn(new WakeupOnBehaviorPost(this, 1));
         public void setNewPoints(Point3d[] p)
              points = p;
              this.postId(1);
    }And the createSceneGraph() method from the Graph3D class is:
         public BranchGroup createSceneGraph() {
              // Create the root of the branch group
              BranchGroup objRoot = new BranchGroup();
              // rotate object has composite transformation matrix
              Transform3D rotate = new Transform3D();
              Transform3D tempRotate = new Transform3D();
              rotate.rotX(Math.PI/20.0d);
              tempRotate.rotY(Math.PI/6.0d);
              rotate.mul(tempRotate);
              TransformGroup objRotate = new TransformGroup(rotate);
              cc = new CubicCurve3D(points[0],points[1],points[2],points[3]);
              cc.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
              cc.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
              Line3D ax1 = new Line3D(new Point3d(0,0,0), new Point3d(0.75,0,0));
              Line3D ax2 = new Line3D(new Point3d(0,0,0), new Point3d(0,0.75,0));
              Line3D ax3 = new Line3D(new Point3d(0,0,0), new Point3d(0,0,0.75));
              objRotate.addChild(ax1);
              objRotate.addChild(ax2);
              objRotate.addChild(ax3);
              objRotate.addChild(cc);
              uBehavior = new UpdateBehavior(cc);
              uBehavior.setSchedulingBounds(new BoundingSphere());
              objRoot.addChild(objRotate);
              objRoot.addChild(uBehavior);
              return objRoot;
         }Graph3D also has a method updatePoints():
         public void updatePoints(Point3d[] p)
              points = p;
              uBehavior.setNewPoints(points);
              System.out.println(cc.getP1() + "," + cc.getP2() + "," + cc.getP3() + "," + cc.getP4());

    Have you checked if the processStimulus method will ever be executed (e.g. print something or use a debugger and set a breakpoint). If it is not executed maybe the radius of the BoundingSphere of the Behavior is to small ?
    I don't know what the initial values of the points and the values of the points you are supplying after change are. So check the coordinates of the new created points ad the calculated curve points.
    Is the curve moving out of the viewing frustrum (behind the front or back clipping planes) ?
    Add some Appearance object with a color other than the default.

  • Sun8.1 app server's behavior problem

    Sun8.1 app server's behavior is not good. I tried with the following scenario's.
    1. Undelpoy one project: When I'm trying to undeploy one project, it is able to undeploy but, it is not able
    to remove folder from <<C:\Sun81>>\AppServer\domains\domain1\applications\j2ee-apps\
    If we don't remove this folder, when we try to deploy same project again, it is giving problem.
    Solution: we need to shutdown our app server, go to above folder and remove undeployed project.
    2. Undeploy multiple projects: When we are trying to undeploy multiple projects, server is undeploying one or two projects(not consistent)
    and it is not undeploying remaining projects.
    And some times it is not able to clean domain.xml (Path: <<C:\Sun81>>\AppServer\domains\domain1\config\domain.xml) properly. This means for each project there will be two entries(j2ee-application&application-ref) in domain.xml, server is removing one entry and not removing another entry.
    3. Disable/Enable problem: When we are deploying first time, project is working. If we disable our project and enable it again, project is not working.
    If we restart app server, project is working fine.

    We all have this problem.... while I was not around. ;-)

  • Help - JEditorPane drag selected text behavior/problem

    Hi All,
    I'm working at adding new functionality to the JEditorPane. Everything was going ok, but I noticed this interesting behavior that hopefully there is a solution to.
    When you select some text in the JEditorPane with the mouse and then drag the selected text to another location, the text moves just fine. However, depeding on when you drag the text, something interesting happens.
    Here is the senerio. While the text is already selected you noticed the cursor blinking.
    (1) If you drag the selected text while the blinking cursor IS visible, the cursor will continue to blink after you drag the text to its destination.
    (2) If you drag the selected text while the blinking cursor IS NOT visible, the cursor will be invisible after you drag the text to its destination.
    So (2) is really the problem. The only way I've been able to get the cursor to start blinking again is to issue a cut, copy or paste method from the JEditorPane object.
    Has anyone else found this problem and maybe a solution to it. I've disabled all the extra stuff I extended on the JEditorPane class, but it didn't seem to make a difference.
    Thanks.
    Justin Circelli

    There are several approaches. You can add FocusListener to the drop target or drag source and put your code in focusGained() or focusLost() accordingly.
    Another way is to return focus to the drag source if DnD failed as you tried. First check whether mouseReleased(0 is invoked. If it's invoked try to put your code into SwingUtilities.invokeLater()
    regards
    Stas

  • Ie7 open browser window behavior problem

    I'm stuck! I'm using the open browser window behavior to have
    a click through to a small photo on my site. I have defined the
    dimensions and it works fine in firefox but in ie7 the browser
    window is too wide - wider than the size I defined...
    Can anyone help?
    You can see the problem is you visit
    http://www.dizigniz.pwp.blueyonder.co.uk/anastasia/anastasia.htm#
    and click on the 'view' button under 'Swatches'

    If you are opening an image directly in the browser, you will
    never succeed
    in doing this. Is that what you are doing? If so, then
    investigate the use
    of
    http://www.valleywebdesigns.com
    ---> JustSo Picture Window. I couldn't
    do without it!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dizigniz" <[email protected]> wrote in
    message
    news:f0ki13$mcu$[email protected]..
    > I'm stuck! I'm using the open browser window behavior to
    have a click
    > through
    > to a small photo on my site. I have defined the
    dimensions and it works
    > fine in
    > firefox but in ie7 the browser window is too wide -
    wider than the size I
    > defined...
    > Can anyone help?
    > You can see the problem is you visit
    >
    http://www.dizigniz.pwp.blueyonder.co.uk/anastasia/anastasia.htm#
    and
    > click on
    > the 'view' button under 'Swatches'
    >

  • Master-Detail Navigation Behavior Problem

    Hello,
    I am having problem in navigating from Master to Detail.
    Scenaio:
    Master1 ---> Master2 ---> Detail
    Problem and Requirement
    I navigate to Master2 from Master1 properly.
    When I click list item of Master2 and navigate to Detail, my master page automatically navigates to Master1.
    There is no error or such. Detail page gets loaded perfectly but navigation from Master2 ---> Master1 is not required which is happening automatically.
    I am using this.oRouter.navTo() method.
    Any idea how to deal with this?
    Kind regards,
    Rauf

    Hi Sakthivel,
    We solved it . And you guessed right, using scaffolding and it was related to routes only.
    Modified routes as follows:
    masterPageRoutes:{
            "master":{
            pattern:"",
            view:"master",
                subroutes: [
        pattern: "master/{contextPath}/detail",
        name: "detail3",
        view: "detail"
            "master2" : {
            pattern : "master2/{contextPath}",
            view : "master2",
            subroutes: [
      pattern: "master2/{contextPath}/detail",
      name: "detail2",
      view: "detail"
    Referred DEMO APP and following URL:
    SAPUI5 SDK - Demo Kit
    Thanks for your kind attention to my problem. Keep it up
    Regards,
    Rauf

  • Refactoring Behavior Problem?

    I have created 2 applications which are deployed as ADF Jar Libraries. Inside these apps are fragment taskflows which I am using in a master application.
    When I run the master app, ADF complains that there are 2 references to "view/DataBindings.cpx" so I changed the package name of one application using REFACTOR-RENAME. When I did this, the name changed in the project but it was still giving me the same error.
    When I looked at the project structure, the new package directory and files are there but the old package directory and files were STILL there. Is this normal behavior for the refactor function ?
    Thanks,
    Mark

    Hi,
    refactoring changes the structure of the sources, but not the compiled content. If you choose Build --> Clean All from the JDeveloper menu and then refactor the sources, does it then reproduce as well ?
    Frank

  • Delete Record server behavior problem

    Hi all!
    I'm such a painful situation, that I can't figure out, why my
    Delete
    Record form don't work as supposed.
    It seems all things work (also gives message "You have
    successfully
    deleted the article."), but the problem is
    that in the MySQL (5) database real deletion doesn't
    occure...
    I was walking along with very nice tutorial
    (www.adobe.com/devnet/dreamweaver/articles/php_blog2_11.html)
    if someone has time to think about...
    I have all the steps (from the tutorial) done multiple times
    and
    result... no real deletion, despite "successfully deleted"
    text :(
    with regards,
    andreta

    Yeah! As always - if one is doing too much over and over,
    then it's too
    much of trouble.
    I used sample delete_art.php(premade by Marius) file instead
    of mine and
    it worked!
    If I was wondering what is different, then there was large
    amount of
    additional code in my file:
    In pre-made sample is 200 lines versus 242 in mine :(
    Differences(looked with Winmerge):
    MINE(not working): Working:
    (why my DW8 inserts session handling in this way?)
    1)
    $_SESSION['MM_Username'] = NULL;
    session_unregister('MM_Username');
    $_SESSION['MM_UserGroup'] = NULL;
    session_unregister('MM_UserGroup');
    $_SESSION['PrevUrl'] = NULL;
    unset($_SESSION['MM_Username']);
    unset($_SESSION['MM_UserGroup']);
    unset($_SESSION['PrevUrl']);
    2)
    if (!isset($_SESSION)) { session_start();
    session_start();
    3)
    in NONworking: (in WORKING - nothing )
    (NB! this was a double-code - i think because of the redoings
    (?recordset deleting & recreating?) )
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    4)
    NONworking:
    <!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"><!--
    InstanceBegin
    template="/Templates/admintemplate.dwt.php"
    codeOutsideHTMLIsLocked="false" -->
    Working:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    5)
    NonW:
    <?php do { ?>
    <tr class="topheader">
    <td><?php echo $row_rsDeletedArticle['title_art'];
    ?></td>
    Working:
    <tr class="topheader">
    <td><?php echo $row_rsDeletedArticle['title_art'];
    ?></td>
    6)
    NONW:
    <td colspan="3"><?php echo
    $row_rsDeletedArticle['text_art']; ?></td>
    </tr>
    <tr>
    <td colspan="3"> </td>
    </tr>
    <?php } while ($row_rsDeletedArticle =
    mysql_fetch_assoc($rsDeletedArticle)); ?>
    </table>
    <table width="30%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><form id="delete" name="delete" method="post"
    action="delete_art.php">
    <input name="yes" type="submit" id="yes" value="yes"
    />
    <input name="id_art" type="hidden" id="id_art"
    value="<?php echo $row_rsDeletedArticle['id_art']; ?>"
    />
    </form>
    </td>
    <td><form id="cancel" name="cancel" method="post"
    action="list_art.php">
    <input name="no" type="submit" id="no" value="No" />
    </form>
    </td>
    </tr>
    </table>
    <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_rsDeletedArticle == 0) { // Show if
    recordset empty ?>
    <p>You have successfully deleted the
    article.</p>
    <form id="back" name="back" method="post"
    action="list_art.php">
    <input name="back" type="submit" id="back" value="Back"
    />
    </form>
    <?php } // Show if recordset empty
    ?><p>  </p>
    <!-- InstanceEndEditable --></td>
    Working:
    <td colspan="2"><p><?php echo
    $row_rsDeletedArticle['text_art']; ?></p></td>
    </tr>
    <tr>
    <td colspan="2"><table width="15%" border="0"
    cellspacing="0" cellpadding="0">
    <tr>
    <td><form action="delete_art.php" method="post"
    name="delete" id="delete">
    <input name="yes" type="submit" id="yes" value="Yes">
    <input name="id_art" type="hidden" id="id_art"
    value="<?php echo $row_rsDeletedArticle['id_art'];
    ?>">
    </form></td>
    <td><form action="list_art.php" method="post"
    name="cancel" id="cancel">
    <input name="no" type="submit" id="no" value="No">
    </form></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_rsDeletedArticle == 0) { // Show if
    recordset
    empty ?>
    <p>You have successfully deleted the
    article.</p>
    <form action="list_art.php" method="post" name="back"
    id="back">
    <input name="back" type="submit" id="back"
    value="Back">
    </form>
    <?php } // Show if recordset empty ?>
    <p>  </p>
    <p> </p> <p> 
    </p></td>
    </tr>
    Boo-oo-hh!
    It's enough for now
    Please can someone give me advices about what is wrong with
    the nonworking
    (I deleted the section 3 from nonworking but it anyway
    doesn't work)
    AndreTa wrote:
    > Oh, sorry!
    >
    > additional information - working with DW8.0.2, PHP
    5.1.6, and with the
    > "blog" database with MySQL 4.1.14
    > (have also MySQL 5.0 - havn't tried with this... I'll do
    it after sweet
    > dreams and hard workday i.e. tomorrow)
    > In local PC WinXP, Apache 2.2.3
    >
    > andreta
    >
    >

  • Drag AP Element Behavior Problem

    I have a draggable ap element (calendardiv) on my page. To my knowledge it is set up correctly. I have created one of these before. For some reason now, when I preview the page in a browser...the ap div location shifts to the right side of the browser when I try to drag the element. As you can see I have a projector screen-type setup where all I want it to do is pull straight down centered in the page. What am I missing so that it stays in the middle rather shifting to the right side when I try to drag it? Code below (areas in bold)...
    <!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" />
    <title>Advanced Computers</title>
    <style type="text/css">
    <!--
    body {
        background-color: #333;
        background-image: url(Images/chalkboardbg.png);
        background-repeat: no-repeat;
        background-position: center top;
        font-family: Calibri;
    #bannerdiv {
        position:absolute;
        left:50%;
        top:0px;
        width:400px;
        height:200px;
        z-index:1;
        background-image: url(Images/banner.png);
        margin-left: -500px;
    #introimgdiv {
        position:absolute;
        left:50%;
        top:0px;
        width:600px;
        height:100px;
        z-index:1;
        background-image: url(Images/introimg.png);
        margin-left: -100px;
    #paperdiv {
        position:absolute;
        left:50%;
        top:100px;
        width:300px;
        height:400px;
        z-index:1;
        background-image: url(Images/paper.png);
        margin-left: 200px;
    #plannerdiv {
        position:absolute;
        left:50%;
        top:130px;
        width:245px;
        height:330px;
        z-index:3;
        margin-left: 225px;
    #tape1div {
        position:absolute;
        left:50%;
        top:80px;
        width:150px;
        height:100px;
        z-index:2;
        background-image: url(Images/tape1.png);
        margin-left: 150px;
    #tape2div {
        position:absolute;
        left:50%;
        top:80px;
        width:150px;
        height:100px;
        z-index:2;
        background-image: url(Images/tape2.png);
        margin-left: 400px;
    #calendardiv {
        position:absolute;
        left:50%;
        top:-600px;
        width:800px;
        z-index:4;
        margin-left: -400px;
        height: 1050px;
        text-align: center;
    #calbtn {
        height: 50px;
        width: 100px;
        visibility: hidden;
        margin-left: 350px;
        margin-right: 350px;
    #googlecaldiv {
        height: 598px;
        width: 796px;
        border-radius: 0px 0px 10px 10px;
        -moz-border-radius: 0px 0px 10px 10px;
        -webkit-border-radius: 0px 0px 10px 10px;
        -khtml-border-radius: 0px 0px 10px 10px;
        background-color: #FFF;
        border-right-width: 2px;
        border-bottom-width: 2px;
        border-left-width: 2px;
        border-right-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-right-color: #000;
        border-bottom-color: #000;
        border-left-color: #000;
    -->
    </style>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
        Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_scanStyles(obj, prop) { //v9.0
      var inlineStyle = null; var ccProp = prop; var dash = ccProp.indexOf("-");
      while (dash != -1){ccProp = ccProp.substring(0, dash) + ccProp.substring(dash+1,dash+2).toUpperCase() + ccProp.substring(dash+2); dash = ccProp.indexOf("-");}
      inlineStyle = eval("obj.style." + ccProp);
      if(inlineStyle) return inlineStyle;
      var ss = document.styleSheets;
      for (var x = 0; x < ss.length; x++) { var rules = ss[x].cssRules;
        for (var y = 0; y < rules.length; y++) { var z = rules[y].style;
          if(z[prop] && (rules[y].selectorText == '*[ID"' + obj.id + '"]' || rules[y].selectorText == '#' + obj.id)) {
            return z[prop];
      }  }  }  return "";
    function MM_getProp(obj, prop) { //v8.0
      if (!obj) return ("");
      if (prop == "L") return obj.offsetLeft;
      else if (prop == "T") return obj.offsetTop;
      else if (prop == "W") return obj.offsetWidth;
      else if (prop == "H") return obj.offsetHeight;
      else {
        if (typeof(window.getComputedStyle) == "undefined") {
            if (typeof(obj.currentStyle) == "undefined"){
                if (prop == "P") return MM_scanStyles(obj,"position");
            else if (prop == "Z") return MM_scanStyles(obj,"z-index");
            else if (prop == "V") return MM_scanStyles(obj,"visibility");
            } else {
              if (prop == "P") return obj.currentStyle.position;
            else if (prop == "Z") return obj.currentStyle.zIndex;
            else if (prop == "V") return obj.currentStyle.visibility;
        } else {
            if (prop == "P") return window.getComputedStyle(obj,null).getPropertyValue("position");
          else if (prop == "Z") return window.getComputedStyle(obj,null).getPropertyValue("z-index");
          else if (prop == "V") return window.getComputedStyle(obj,null).getPropertyValue("visibility");
    function MM_dragLayer(objId,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,d ragJS) { //v9.01
      //Copyright 2005-2006 Adobe Macromedia Software LLC and its licensors. All rights reserved.
      var i,j,aLayer,retVal,curDrag=null,curLeft,curTop,IE=document.all;
      var NS=(!IE&&document.getElementById); if (!IE && !NS) return false;
      retVal = true; if(IE && event) event.returnValue = true;
      if (MM_dragLayer.arguments.length > 1) {
        curDrag = document.getElementById(objId); if (!curDrag) return false;
        if (!document.allLayers) { document.allLayers = new Array();
          with (document){ if (NS) { var spns = getElementsByTagName("span"); var all = getElementsByTagName("div");
            for (i=0;i<spns.length;i++) if (MM_getProp(spns[i],'P')) allLayers[allLayers.length]=spns[i];}
            for (i=0;i<all.length;i++) {
                if (MM_getProp(all[i],'P')) allLayers[allLayers.length]=all[i];
        curDrag.MM_dragOk=true; curDrag.MM_targL=targL; curDrag.MM_targT=targT;
        curDrag.MM_tol=Math.pow(tol,2); curDrag.MM_hLeft=hL; curDrag.MM_hTop=hT;
        curDrag.MM_hWidth=hW; curDrag.MM_hHeight=hH; curDrag.MM_toFront=toFront;
        curDrag.MM_dropBack=dropBack; curDrag.MM_dropJS=dropJS;
        curDrag.MM_everyTime=et; curDrag.MM_dragJS=dragJS;
        curDrag.MM_oldZ = MM_getProp(curDrag,'Z');
        curLeft = MM_getProp(curDrag,'L');
        if (String(curLeft)=="NaN") curLeft=0; curDrag.MM_startL = curLeft;
        curTop = MM_getProp(curDrag,'T');
        if (String(curTop)=="NaN") curTop=0; curDrag.MM_startT = curTop;
        curDrag.MM_bL=(cL<0)?null:curLeft-cL; curDrag.MM_bT=(cU<0)?null:curTop-cU;
        curDrag.MM_bR=(cR<0)?null:curLeft+cR; curDrag.MM_bB=(cD<0)?null:curTop+cD;
        curDrag.MM_LEFTRIGHT=0; curDrag.MM_UPDOWN=0; curDrag.MM_SNAPPED=false; //use in your JS!
        document.onmousedown = MM_dragLayer; document.onmouseup = MM_dragLayer;
        if (NS) document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
        } else {
        var theEvent = ((NS)?objId.type:event.type);
        if (theEvent == 'mousedown') {
          var mouseX = (NS)?objId.pageX : event.clientX + document.body.scrollLeft;
          var mouseY = (NS)?objId.pageY : event.clientY + document.body.scrollTop;
          var maxDragZ=null; document.MM_maxZ = 0;
          for (i=0; i<document.allLayers.length; i++) { aLayer = document.allLayers[i];
            var aLayerZ = MM_getProp(aLayer,'Z');
            if (aLayerZ > document.MM_maxZ) document.MM_maxZ = aLayerZ;
            var isVisible = (MM_getProp(aLayer,'V')).indexOf('hid') == -1;
            if (aLayer.MM_dragOk != null && isVisible) with (aLayer) {
              var parentL=0; var parentT=0;
              if (NS) { parentLayer = aLayer.parentNode;
                while (parentLayer != null && parentLayer != document && MM_getProp(parentLayer,'P')) {
                  parentL += parseInt(MM_getProp(parentLayer,'L')); parentT += parseInt(MM_getProp(parentLayer,'T'));
                  parentLayer = parentLayer.parentNode;
                  if (parentLayer==document) parentLayer = null;
              } } else if (IE) { parentLayer = aLayer.parentElement;      
                while (parentLayer != null && MM_getProp(parentLayer,'P')) {
                  parentL += MM_getProp(parentLayer,'L'); parentT += MM_getProp(parentLayer,'T');
                  parentLayer = parentLayer.parentElement; } }
              var tmpX=mouseX-((MM_getProp(aLayer,'L'))+parentL+MM_hLeft);
              var tmpY=mouseY-((MM_getProp(aLayer,'T'))+parentT+MM_hTop);
              if (String(tmpX)=="NaN") tmpX=0; if (String(tmpY)=="NaN") tmpY=0;
              var tmpW = MM_hWidth;  if (tmpW <= 0) tmpW += MM_getProp(aLayer,'W');
              var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += MM_getProp(aLayer,'H');
              if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null
                  || maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } }
          if (curDrag) {
            document.onmousemove = MM_dragLayer;
            curLeft = MM_getProp(curDrag,'L');
            curTop = MM_getProp(curDrag,'T');
            if (String(curLeft)=="NaN") curLeft=0; if (String(curTop)=="NaN") curTop=0;
            MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop;
            document.MM_curDrag = curDrag;  curDrag.MM_SNAPPED=false;
            if(curDrag.MM_toFront) {
              var newZ = parseInt(document.MM_maxZ)+1;
              eval('curDrag.'+('style.')+'zIndex=newZ');
              if (!curDrag.MM_dropBack) document.MM_maxZ++; }
            retVal = false; if(!NS) event.returnValue = false;
        } } else if (theEvent == 'mousemove') {
          if (document.MM_curDrag) with (document.MM_curDrag) {
            var mouseX = (NS)?objId.pageX : event.clientX + document.body.scrollLeft;
            var mouseY = (NS)?objId.pageY : event.clientY + document.body.scrollTop;
            var newLeft = mouseX-MM_oldX; var newTop  = mouseY-MM_oldY;
            if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL);
            if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR);
            if (MM_bT!=null) newTop  = Math.max(newTop ,MM_bT);
            if (MM_bB!=null) newTop  = Math.min(newTop ,MM_bB);
            MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT;
            if (NS){style.left = newLeft + "px"; style.top = newTop + "px";}
            else {style.pixelLeft = newLeft; style.pixelTop = newTop;}
            if (MM_dragJS) eval(MM_dragJS);
            retVal = false; if(!NS) event.returnValue = false;
        } } else if (theEvent == 'mouseup') {
          document.onmousemove = null;
          if (NS) document.releaseEvents(Event.MOUSEMOVE);
          if (NS) document.captureEvents(Event.MOUSEDOWN); //for mac NS
          if (document.MM_curDrag) with (document.MM_curDrag) {
            if (typeof MM_targL =='number' && typeof MM_targT == 'number' &&
                (Math.pow(MM_targL-(MM_getProp(document.MM_curDrag,'L')),2)+
                 Math.pow(MM_targT-(MM_getProp(document.MM_curDrag,'T')),2))<=MM_tol) {
              if (NS) {style.left = MM_targL + "px"; style.top = MM_targT + "px";}
              else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;}
              MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; }
            if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS);
            if(MM_dropBack) {style.zIndex = MM_oldZ;}
            retVal = false; if(!NS) event.returnValue = false; }
          document.MM_curDrag = null;
        if (NS) document.routeEvent(objId);
      } return retVal;
    //-->
    </script>
    </head>
    <body onload="MM_dragLayer('calendardiv','',375,600,50,400,false,false,0,600,0,0,false,false,0, '',true,'')">
    <div id="bannerdiv"></div>
    <div id="introimgdiv"></div>
    <div id="paperdiv"></div>
    <div id="plannerdiv">
    Weekly Planner<br />
      <div id="TabbedPanels1" class="TabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0">Monday</li>
          <li class="TabbedPanelsTab" tabindex="0">Tuesday</li>
          <li class="TabbedPanelsTab" tabindex="0">Wednesday</li>
          <li class="TabbedPanelsTab" tabindex="0">Thursday</li>
          <li class="TabbedPanelsTab" tabindex="0">Friday</li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">Monday's Content</div>
          <div class="TabbedPanelsContent">Tuesday's Content</div>
          <div class="TabbedPanelsContent">Wednesday's Content</div>
          <div class="TabbedPanelsContent">Thursday's Content</div>
          <div class="TabbedPanelsContent">Friday's Content</div>
        </div>
      </div>
    </div>
    <div id="tape1div"></div>
    <div id="tape2div"></div>
    <div id="calendardiv">
      <div class="googlecaldiv" id="googlecaldiv"></div>
    <img src="Assets/screencord.png" width="50" height="400" onmouseout="MM_effectAppearFade('calbtn', 1000, 100, 0, false)" onmouseover="MM_effectAppearFade('calbtn', 1000, 0, 100, false)" /><br />
      <div class="calbtn" id="calbtn"><img src="Images/calendarbtn.png" width="100" height="50" alt="Calendar" /></div>
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    //-->
    </script>
    </body>
    </html>

    hollowayolemiss wrote:
    I have a draggable ap element (calendardiv) on my page. To my knowledge it is set up correctly. I have created one of these before. For some reason now, when I preview the page in a browser...the ap div location shifts to the right side of the browser when I try to drag the element. As you can see I have a projector screen-type setup where all I want it to do is pull straight down centered in the page. What am I missing so that it stays in the middle rather shifting to the right side when I try to drag it? Code below (areas in bold)...
    The page is doing exactly what it is supposed to be doing.  Dragged absolute positioned divs is not a good way to start out with web design and will only lead you to further problems.  The divs are staying on the page, but they are positioned relative to the page edges. So as resolution changes so does the position of the div, especially since you even have some relative positions based on a percentage width.  If you want something centered on the page, you should first center a relative positioned div with a defined width and a margin attribute set to "margin: 0 auto;".  Then position your content in that and it will always be centered on a page.  This is not possible with absolute positioning.

  • Mouse behavior problem!

    When i create two small cube within a big cube, now i want to pick any one of the two small cube, then translate, scal, rotate the small cube.
    I already read the book Java 3D Programming, and there had a example mouseNavigateTest. for that example just operate one small cube within a big cube, but when you create another one and then you using mouse behavior, the result was the two cube will be operare together.
    i know the above example mouseNavigateTest, it using mouse behavior to operare the transformGroup object. can i operare others to control different cube in the big one?
    thaks for any help!

    Bear with me while I tell you the symptoms I had, and then see below for the latest update.
    I have a mac mini running Leopard with all the latest automatic updates. I have iWork '09. I use a Logitech wireless mouse with a USB transceiver.
    Until the last 7 - 10 days, to select a complete row or column, all I needed to do was left-click on the number or letter.
    To do the same thing now, I have to RIGHT-click the row number (this shows the drop down menu) left-click (to remove the drop-down menu) and then left-click again to select the complete row. After the first right-click, it does not seem to matter where in the spreadsheet I left-click, the row selected will be that of the original right-click.
    Until I have accessed Numbers, the mouse behaves normally, but once I have loaded Numbers, the hover function does not work anywhere on the screen. Even the dock no longer enlarges icons as I pass over them.
    UPDATE: This morning the system downloaded updates, and as usual I clicked Install and Restart. After restarting, ALL the hover functions ceased to work.
    I discovered that if I unplug the USB transceiver and then reconnect it, full mouse utility returns, including the hover function.
    It seems that somewhere in the startup routines, the mouse bluetooth logic is getting overwritten or corrupted, but can be restored by reinitializing the bluetooth device.
    Interesting....

Maybe you are looking for

  • How to fix a problem with the order of strings in a JSON response for a CFHTTP request?

    Good morning, guys! (It's 10:50 a.m. in Brazil) First of all, I'm still new at CF and my questions may seem too much silly and my English's not the best, so, please be patient with me. hehe Well, I'm accessing a link via CFHTTP that gives me a JSON r

  • Is Manual loading to Standard DSO possible?

    Dear Mates, Is  there any program or functin module for writing data in Standard DSO. For cube we are having program. Please help to solve this issue. Thanks, Ranganath.

  • Problems with jasper report pdf exporting

    Hello, I coded a simple servlet to view a jasper report (created with iReport) after clicking on the right button in the jsp. Here is the problem: net.sf.jasperreports.engine.JRRuntimeException: Error evaluating expression :      Source text : (java.

  • MP3 files fail to play in MuV0 N

    Dear Friends, Three days passed from the time I have purchased this type of player Unfortunately the file with the extention of MP3 does not play, but I can use the radio and WMA files, what's the matter?please help me.

  • Select statement - Where Condition not possible

    Hi, I am trying to extract data from sap standard table CFX_COL.I want extract based on a field which is of type string.I can see that in the table but when I code below I am getting error.Any other alterantives? REPORT x. TABLES:proj. DATA: it_proj