Tooltip not working in CDC

Hello every1
I have tried to attach tooltip with a button and wrote a very simple program for CDC where tooltip is not shown. For confirmation when I compiled that code on J2SE and executed it, it was running fine and showing tooltip. Program is very simple which I am going to copy in this post for reference.
import javax.swing.*;
import java.awt.*;
public class TestTooltip {
JFrame mainFrame;
Container frmCont;
JButton testBut;
public TestTooltip(){
mainFrame = new JFrame("Test Tooltip");
mainFrame.setSize(200,100);
frmCont = mainFrame.getContentPane();
frmCont.setLayout(new FlowLayout());
testBut = new JButton("Tooltip Button");
testBut.setToolTipText("This is Tooltip");
frmCont.add(testBut);
mainFrame.setVisible(true);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public static void main(String[] args) {
new TestTooltip();
}

Hello every1
I have tried to attach tooltip with a button and wrote a very simple program for CDC where tooltip is not shown. For confirmation when I compiled that code on J2SE and executed it, it was running fine and showing tooltip. Program is very simple which I am going to copy in this post for reference.
import javax.swing.*;
import java.awt.*;
public class TestTooltip {
JFrame mainFrame;
Container frmCont;
JButton testBut;
public TestTooltip(){
mainFrame = new JFrame("Test Tooltip");
mainFrame.setSize(200,100);
frmCont = mainFrame.getContentPane();
frmCont.setLayout(new FlowLayout());
testBut = new JButton("Tooltip Button");
testBut.setToolTipText("This is Tooltip");
frmCont.add(testBut);
mainFrame.setVisible(true);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public static void main(String[] args) {
new TestTooltip();
}

Similar Messages

  • IX4-300D - Drive Status "ToolTip" Not Working

    Hello,
    According to the manual, when I hover my mouse over a drive in the image in Drive Management, the ToolTip should display the drive model, size, and status, including if the drive is failing.  However, mine does not display a ToolTip?  Is something wrong?
    Everything else seems to be working...
    Thanks,
    Mike
    Solved!
    Go to Solution.

    Hi maclark7029,
    Did the drives come with the device or did you install your own drives? It may not recognize the drives.
    What is the firmware version of your ix4-300d? It could be something with the firmware version.
    The box might not pop up right away or the first time you hover the mouse over a drive. You might have to hover longer or move the mouse away and hover over the drives again.
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • Tooltips not working inside Embedded Movie Clip but works on main stage

    Hey,
    I  have a movie clip that is a navigation window and I am trying to have some tooltip hover over the buttons inside the navigation window.
    If I create a button on the main stage it hovers and works fine but if I create the same clip inside the embedded navigation window the tooltip does not show up.  I do not have any error messages but it is not there that I can see.
    Any ideas?
    Thanks!

    Even you place your mc within another clip for example NavWindowMC:
    Write the code in the maintimeline as
    import fl.transitions.easing.*;
    import fl.transitions.*;
    NavWindowMC.mc.addEventListener("mouseOver", mouseRollOver);
    NavWindowMC.mc.addEventListener("mouseOut", mouseRollOut);
    NavWindowMC.mc.addEventListener("mouseMove", mouseMove1);
    var tooltip:Tooltip = new Tooltip();
    tooltip.txt.text = "Design";
    tooltip.x = stage.mouseX;
    tooltip.y = stage.mouseY - NavWindowMC.mc.height;
    function mouseRollOver(e:MouseEvent):void {
        addChild(tooltip);
        var myTween:Tween = new Tween(tooltip, "alpha", Regular.easeIn, 0, 1, 0.5, true);
    function mouseRollOut(e:MouseEvent):void {
        removeChild(tooltip);
    function mouseMove1(e:MouseEvent):void {
        tooltip.x = stage.mouseX;
        tooltip.y = stage.mouseY - NavWindowMC.mc.height;

  • Hover over variable tooltip not working in debugger?

    We recently upgraded to Sun Studio 12 and the debugger seems to have a problem. We used to be able to hover over a variable with the mouse (i.e. tooltip) and inspect the variable value. This no longer works reliably. Has anyone seen this? Is there a fix? We have Sun Studio 20070501, SunOS version 5.10 on sparc, Java 1.6.0_03 and netbeans-5.5.1.
    Thanks for your help.

    As far as I remember, there used to be several different problems with tooltips. We can try to identify type of problem you are having or we can skip it and go to the solution available right now - download latest Sun Studio Express and see if it resolves that problem.
    If you need production-quality compilers, you can still use Sun Studio 12 to generate code and Sun Studio Express to debug. It is perfectly all right to have several versions of Sun Studio installed on one machine, just you different base directories.

  • Multiline tooltip not work when tooltip setup dynamically

    When I try to setup tooltip on post query. Only multiline Tooltip come on first record. When I go to other record It show tooltip in only one line. How can I call multiline tooltip by using set_custom_property (what will be the parameter). I am using ToolTip.jar

    Here is the site
    http://fdegrelle.over-blog.com/article-5057042.html
    Here is the Java code:
    package oracle.forms.fd;
    import java.util.StringTokenizer;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VTextField;
    public class JTextFieldTooltip extends VTextField
    private IHandler m_handler;
    private String sTooltip = "" ;
    private String sSep = "|" ;
    public JTextFieldTooltip ()
    super();
    public boolean setProperty(ID property, Object value)
    if(property.toString().equals("POPUPHELP_ID"))
    String s = value.toString() ;
    oracle.forms.ui.FormsToolTip tp = (oracle.forms.ui.FormsToolTip)value ;
    String stool = tp.getToolTipProperty(ID.INDEX_POPUPHELP_STRING).toString() ;
    if(stool != null && ! stool.equals(""))
    String sTooltip = "" ;
    StringTokenizer st = new StringTokenizer(stool,sSep);
    if(! st.hasMoreTokens()) sTooltip = stool;
    else
    while(st.hasMoreTokens())
    sTooltip += st.nextToken() + "n" ;
    tp.setToolTipProperty(ID.INDEX_POPUPHELP_STRING,(Object)(sTooltip));
    else return true ;
    return super.setProperty(property, value);
    }

  • Tooltips not appearing in HTML5 panel

    Hi,
    When I open the extension I working on in Chrome, tooltips appear when I move the curser around. When the extension is loaded in Photoshop / InDesign they do not appear. I'm setting the information as the "title" of an element. Is this not supported or am I doing something wrong ?
    -- Thomas

    Please refer to Tooltips not working in HTML5 extension panel
    Kind regards,
    Lea

  • InfoButton PJC   Demos for Forms (tooltip buttons) - not working

    Hello everybody,
    I am new to using PJC and JavaBeans in forms. I have on my laptop Oracle Developer Suite 10g (10.1.2.0.1) and Forms Demos version 9.0.4.2.0 I downloaded from OTN. I studied InfoButton PJC application (buttons that show tool-tips at mouse-over).
    Now, I want to create in one of my old forms such a button. I followed exactly the steps of the demo, that is:
    1. I created a form with a button TEST_BUTTON for which I set the Implementation Class property to oracle.forms.demos.enhancedItems.InfoButton.
    2. On the form's canvas I also created a text item named INFO with the following properties:
    X Position = 255
    Y Position = 107
    Width = 100
    Height = 100
    3. At form level, I created the trigger WHEN-NEW-FORM-INSTANCE in order to set the button's properties as follows:
    SET_CUSTOM_PROPERTY('CONTROL.TEST_BUTTON',1,'INFOBUTTON_TEXT','This is the tooltip text');
    SET_CUSTOM_PROPERTY('CONTROL.TEST_BUTTON',1,'INFOBUTTON_FIELDPOS','288,128');
    4. I created in my formsweb.cfg file a configuration section for my form.
    [pjc_demos_dana]
    pageTitle=OracleAS Forms Services - InfoButton Demo Dana
    IE=jinitiator
    baseHTMLJInitiator=demobasejini.html
    archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/infobutton.jar
    form=pjclaunch_dana.fmx
    width=675
    height=480
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    background=/formsdemo/images/blue.gif
    When executing the form, the button has round margins as said in the documentation; at mouse over the cursor takes the form of a small hand but there is no tool tip. I receive no errors, only that it doesn't show the tool tip.
    I don't understand why it's not working, what I did wrong ...
    When setting the 'INFOBUTTON_FIELDPOS' property - input parameter X,Y - the documentation says: "This property should be set to a string containing a X,Y comma separated pair providing the location of the target field in pixels relative to the top left hand corner of the window. The X,Y pair simply has to define a point anywhere within the target field, it doesn't have to exactly define the corner".
    What is the target field? The text item I created at step 2)? The documentation is not clear here ...
    Any help will be appreciated.
    Daniela

    Dear Safwan Bhai,
    As salaamo alaikum Rahamatulla hi burakathu!!
    Actually I'm having a multi record block in which all the emp no., days of attendance, etc will be displayed when I click on the search button. My requirement is when point the mouse over the emp no, the emp name must be displayed as a Tool tip text. My fields are non-editable, so Post-Change is not working. I placed the coding in the When-new-item-instance - in this case the emp name is displayed, but only for the first field, when I move the mouse to second and third fields, the empname of that particulart field is displayed as a tool tip but in the first field only.
    Any other suggestions?
    Anyway I would appreciate your help.
    Thank you.
    With Kind Regards,
    Perumal Senthil Alagu.

  • "Close" button in Tooltip Widget not working

    HI, I hope I'm not doing something stupid here...
    It's my understanding that choosing "Stay On Rollout" in the trigger options for a widget and adding a "Close Button" would basically give you tooltip that fades in and stays open until the close button is clicked—fading it back out. If this thinking is correct than the functionality is broken in the Tooltip widget. Running Mac OsX 10.7.3

    Muse support staff answered this almost 8 months ago on their old support wiki.
    http://support.muse.adobe.com/muse/topics/close_button_doesnt_work_on_any_widgets
    Close button does not work, they realize that but just haven't come out with a fix yet.  There is a messy work around - you kindof have to hack your tooltip widget a bit. But here is the explanation below:
    I found a wonky work-around. Instead of closing, I put a next button and made the second tooltip blank. With the type tool, I changed the ">" for next to a "x" and made it the same color as the background so it would disappear into the background after "closing".

  • Tooltip Fade Effect in IE7 Not Working

    I'm hoping someone has a fix for this ...
    When using IE7, the first time you mouse over a
    tooltip—everything works fine.
    But if you mouse over it again, the Fade Effect no longer
    works. Is there a way to fix this clitch??

    Does anyone know when a next version of Spry is going to be
    released. I can't seem to fix this problem and I'm hoping that it's
    fixed in the next version.
    When using IE7, the first time you mouse over a
    tooltip—everything works fine.
    But if you mouse over it again, the Fade Effect no longer
    works. Is there a way to fix this glitch??

  • Setting Tooltip on accordion section Does not work. Possible bug??

    HI All,
    I am using accordion control with following code.
    var oAccordion = new sap.ui.commons.Accordion("accordionA");
    //Building Section 1
    var oSection1 = new sap.ui.commons.AccordionSection( "section1" );
      oSection1.setTitle("Section 1kdfjkdasfjsdafffdfjkakfajfajfksafjdkfjdf");
    oSection1.setTooltip("Section 1");
      oSection1.setMaxHeight("100px");
      for (var i=0 ; i < 5 ; i++){  
    var oCheckBox1 = new sap.ui.commons.CheckBox( "CheckBox1"+i );
      oCheckBox1.setText("CheckBox1 "+i);
      oSection1.addContent( oCheckBox1);
    var oLabel1 = new sap.ui.commons.Label( "Label1"+i );
      oLabel1.setText("Label 1 "+i); 
      oSection1.addContent( oLabel1);
      oAccordion.addSection( oSection1 );
    Though I am setting the Tooltip. While mouse hover I don't see the tooltip.
    My thought is whenever sectionsTitle is truncated it should show the tooltip.
    Please clarify when the tooltip will be visibile.
    thank you for allyour inputs and help in advance.
    regards

    Hi there,
    It is a bug. You may use the title for each section until they get the tooltips to work.
    Regards,
    Alejandro.

  • Ctrl and shift alt shortcuts not working in Illustrator CS4

    Hi
    Can´t seem to get these keys to work properly.
    For instance while drawing with the rectangle tool then pressing shift to get a square does not give me a square, all I get is a tooltip balloon saying "shift" same goes with ctrl and alt and spacebar. This only happens while using my wacom graphire 3 not with the mouse. Trying to use the up and down arrows to shange the number of points in a star also not working. But if I FIRST click the shift key then start creating a square its working, but not if I first start creating the rectangle. Photoshop cs4 does not give me this problem. Using Vista 32 bit swedish language, latest Wacom driver 5.0.8-6, latest keyboard driver and a swedish microsoft natural pro keyboard, latest logitech mouse driver. Any help is appreciated.
    Thanks
    Strangeflow

    Fonts... there are probably the most guilty of that cases. Ask yourself: when you add (drop, be forced) new fonts in your system, by management spoftware (directly into font folder)? Notice when web browser "ask" you about access to your fonts on your HD in last time (so often last days). When you "dig" somthing in a system, at any way, you disturb his  "sacramental peace" (Ohmmmm...) and it flow in other case like sensitive Illustrator or others -  I think all other "movements" eg. reinstaling, deleting, etc just "cover" problem by something others (for a short time) or don't resove it at all.
    So, first try... rebuild you system maintenace privilages (do this every month or often! Try Atomicbird Macaroni or Titanium Onyx or so, than...
    try rebiuld/refresh/clean your font cach ( I use for this, and manage, FontExplorer X Pro) and should be fine.
    ..."should" I'm not guarantee 100%
    PS
    I have no idea what should be done on PC

  • Apex 4.0 tree does not work with more than 2 levels.

    When I have more than 2 levels in my tree, I only see the root node. The query works fine and returns 132 rows when I run it in SQL. It is just the tree that does not work.
    The same tree when built in 3.2 works fine.
    This is my tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from (
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    Level = 2
    Parent = Module
    Node = Functional Areas
    ID = '__FA_' prefixing functional area code
    UNION ALL
    SELECT '__FA_'||funcarea_key id
    , '__MD_'||module_key pid
    , funcarea_name name
    , funcarea_key link_id
    , '__FA__' a1
         , null a2
    FROM c_functional_area
    Level = 3
    Parent = Functional Area
    Node = Fact Group
    ID = '__FG_' prefixing fact group key
    UNION ALL
    SELECT '__FG_'||factgroup_key id
    , '__FA_'||funcarea_key pid
    , factgroup_name name
    , factgroup_key link_id
    , '__FG__' a1
         , null a2
    FROM c_fact_group
    start with "PID" is null
    connect by prior "ID" = "PID"
    order siblings by "NAME"
    If I reduce the query to just use two levels like:
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    It works fine. Can somebody let me know what I am doing wrong? Is there a way to set the number of levels supported in 4.0?

    Hi Vidya,
    Thanks for posting your example. You may want to remove your workspace details from the previous posting, or at least update the password on the workspace. I've taken a look at your example and initially couldn't see anything wrong with your tree query. However, when I ran your query in SQL Workshop, it only returned one row, which would explain why you were only seeing one node in your tree! I've updated your query to use a WITH clause, and the tree is now working correctly. I believe you've hit an underlying database bug where the CONNECT BY query is only returning 1 row, when in fact it should return > 1 row. By re-writing the query to use a WITH clause, you can get around the problem.
    Regards,
    Hilary

  • Fox news slideshows are not working in Vista Home 64 bit.

    All fox news slideshows are not working since firefox 3.6 started. I can't get them to work in Internet explorer either.
    == URL of affected sites ==
    http://

    Error: $.ad is undefined
    Source File: http://www.foxnews.com/static/all/js/slideshows-pack.js
    Line: 850
    // Slideshows - updated: 04/30/2010
    // Dependencies: jQuery, jfoxCarousel plugin
    (function($){
    function SlideShows() {
    this._data = {}; // slideshow data
    this._info = {}; // current slideshow info
    this._relatedMedia = {}; // related media data
    this._trackData = false;
    this.initialized = false;
    this.toolTipId = "carousel-tooltip";
    this.defaultTrackFrequency = 1; // tracker trigger
    this._preloaderSrc = "/static/all/img/slideshow/slideshow-preloader.gif";
    this._timer = { // timers
    main: { fadeIn:800 },
    carousel: { fadeIn:300 },
    overlay: { onLast:10000,fadeIn:300,fadeOut:300 }
    this.currentFocus = 1; // current item in focus
    this.holderObj = {}; // holder for elements
    this.hashObj = {}; // hash location holder
    this.imgPreloadObj = {}; // holder for preloaded images
    // carousel object controllers
    this.carouselControlObj = {};
    this.overlayControlObj = {};
    this.trigger = { // listeners
    main: false,
    carousel: false,
    overlay: false
    this.overlayTimeout = false; // overlay timeout holder
    SlideShows.prototype = {
    init: function(config) {
    for (i in config) { this['_'+i] = config[i]; }
    this.main.root = this.carousel.root = this.overlay.root = this;
    this.hashObj = this.helper.getHash();
    if (typeof $.fn.jfoxCarousel<u>'undefined') {
    showToConsole("[init] Error: carousel plugin not found!");
    if (this._trackData) { // set tracking data
    sTracker.set(this._trackData);
    sTracker.track("pageLoad"); // page load tracker
    this.preload();
    this.setHolders();
    this.initialized = true;
    preload: function() {
    var preloadImg = new Image();
    preloadImg.src = this.preloadSrc;
    setHolders: function() {
    var SH = this;
    var slideshowElm = $("#slideshow");
    this.holderObj = {
    doc: $(document),
    body: $("body"),
    intro: $("#section-intro"),
    main: slideshowElm.find("#main-img"),
    mainHolder: slideshowElm.find(".slideshow-placeholder"),
    mainControl: slideshowElm.find(".slideshow-controller"),
    description: slideshowElm.find(".slideshow-desc"),
    relatedMedia: slideshowElm.find(".slideshow-related"),
    carousel: slideshowElm.find(".slideshow-feature .slideshow")
    this.holderObj.intro.each(function(){
    var intro = $(this);
    intro.find("h1:first").html(SH._info.title);
    intro.find("p:first").html(SH._info.dek);
    if (this.holderObj.main.size()>0) {
    this.main.properties.minHeight = this.holderObj.mainHolder.innerHeight(); // get set height as "min-height"
    this.main.build();
    if (this.holderObj.carousel.size()>0) {
    this.carousel.build();
    $(document).ready(function(){ // wait for page load for the overlay
    SH.holderObj.overlay = $("#slideshow-overlay");
    var set = (SH.holderObj.overlay.size()>0) ? (typeof $.fn.jfoxCarousel!=='undefined') ? SH.overlay.set() : false : false;
    SH.setDocReadyListeners();
    this.setListeners();
    setListeners: function() {
    var SH = this;
    var control = this.holderObj.mainControl;
    // main image controls
    control.find(".prev").click(function(){
    SH.main.prev();
    return false;
    control.find(".next").click(function(){
    SH.main.next();
    return false;
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: SH.holderObj.mainHolder,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    control.find(".next").trigger("click");
    if (directions.indexOf("right")>-1) {
    control.find(".prev").trigger("click");
    touchEventListener.append(listenerConfig);
    setDocReadyListeners: function() {
    var SH = this;
    // browse slideshow overlay
    $(document).ready(function(){
    $("#section-intro .additional-slides a").click(function() {
    SH.overlay.show();
    return false;
    SH.holderObj.overlay.find(".close a").click(function(){
    SH.overlay.hide();
    return false;
    replaySlideshow: function() {
    var SH = this;
    //TODO: build replay
    this.overlay.hide(); // hide overlay
    this.main.build(this.currentFocus = 1); // reset focus
    sTracker.track("replaySlideshow");
    // main image holder
    SlideShows.prototype.main = {
    properties: {},
    build: function(slide,origin) {
    var SH = this;
    var root = this.root;
    if (root.trigger.main) { return false; }
    root.trigger.main = true;
    slide = slide || false;
    origin = origin || "main";
    var control = root.holderObj.mainControl;
    var data = root._data;
    var initData = false;
    var desc = [];
    var helper = root.helper;
    if (slide) {
    if (slide 0) { desc.push('Source: ' + data.items[slide].source + ''); }
    root.holderObj.description.html(desc.join(""));
    // load related media
    if (root._relatedMedia.items) {
    var rmItems = root._relatedMedia.items;
    if (rmItems.length>0) {
    var rel = [];
    rel.push('Related Articles');
    for (var x=0; x 0) {
    root.currentFocus--;
    SH.build(root.currentFocus);
    sTracker.track("clickPrevMain"); // tracker
    if (!SH.isLast() && root.overlayTimeout) { clearTimeout(root.overlayTimeout); } // clear overlay timeout
    isLast: function() {
    var root = this.root;
    return (root.currentFocus+1 > root._data.items.length) ? true : false;
    // carousel
    SlideShows.prototype.carousel = {
    build: function() {
    var SH = this;
    var root = this.root;
    var carousel = root.holderObj.carousel;
    var data = root._data;
    var list = [];
    for (var x=0;x 0) {
    var li = $(".slideshow > ul",carousel).children();
    li.each(function(i){
    var el = $(this);
    var setClass = (i == eventObj.target-1) ? el.addClass("active") : el.removeClass("active");
    controlsCallback: function(control) { // callback to set up controls
    root.carouselControlObj = control;
    carousel.find(".prev").click(function(){ // previous link
    control.stopAutoScroll();
    control.slide('prev');
    sTracker.track("clickPrevCarousel"); // tracker
    return false;
    carousel.find(".next").click(function(){ // next link
    // show overlay on last carousel link
    //var lastLink = (!currentEventObj) ? false : (currentEventObj.batch.current+1 > currentEventObj.batch.max) ? $(document).ready(function(){ root.overlay.show(false,true); }) : false;
    control.stopAutoScroll();
    control.slide('next');
    sTracker.track("clickNextCarousel"); // tracker
    return false;
    carousel.jfoxCarousel(config);
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: carousel,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    carousel.find(".next").click();
    if (directions.indexOf("right")>-1) {
    carousel.find(".prev").click();
    touchEventListener.append(listenerConfig);
    // overlay
    SlideShows.prototype.overlay = {
    set: function() {
    var root = this.root;
    var overlay = root.holderObj.overlay;
    overlay.find(".slideshow-feature").each(function(){
    var carousel = $(this);
    var allItems = carousel.find(".slideshow ul").children().children();
    allItems.each(function(){
    var div = $(this);
    var link = div.find("a:first").attr("href");
    div.hover(function(){
    div.css("cursor","pointer");
    },function(){
    div.css("cursor","");
    }).unbind("click").click(function(){
    window.location.replace(window.location.hostname + link);
    var config = {
    auto: { set:false,speed:3000 }, // auto scroll
    slide: "horizontal", // horizontal or vertical
    scroll: 3, // number of items to scroll per event
    show: 3, // items shown
    speed: "slow", // scroll speed
    rotate: false, // rotate back to star if end
    //focus: { item:0,animate:false }, // focus to target item on load
    eventCallback: function(eventObj) {
    if (eventObj.batch.current</u>1) {
    carousel.find(".prev").addClass("inactive");
    } else {
    carousel.find(".prev").removeClass("inactive");
    if (eventObj.batch.current<u>eventObj.batch.max) {
    carousel.find(".next").addClass("inactive");
    } else {
    carousel.find(".next").removeClass("inactive");
    controlsCallback: function(control) { // callback to set up controls
    root.overlayControlObj = control;
    carousel.find(".prev").click(function(){ // previous link
    control.stopAutoScroll();
    control.slide('prev');
    sTracker.track("clickPrevOverlay"); // tracker
    return false;
    carousel.find(".next").click(function(){ // next link
    control.stopAutoScroll();
    control.slide('next');
    sTracker.track("clickNextOverlay"); // tracker
    return false;
    carousel.jfoxCarousel(config);
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: carousel,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    carousel.find(".next").click();
    if (directions.indexOf("right")>-1) {
    carousel.find(".prev").click();
    touchEventListener.append(listenerConfig);
    show: function(delay,isReplay) {
    isReplay = isReplay || false;
    delay = delay || false;
    var root = this.root;
    if (root.trigger.overlay) { return false; } // if already open
    var SH = this;
    delay = (isNaN(delay)) ? 0 : delay; // delayed show
    root.overlayTimeout = setTimeout(function(){
    SH.setReplay(isReplay);
    if (root.main.isLast()) {
    root.holderObj.overlay.fadeIn(root._timer.overlay.fadeIn,function(){ root.trigger.overlay = true; });
    sTracker.track("showOverlay"); // tracker
    else {
    root.holderObj.overlay.fadeIn(function(){ root.trigger.overlay = true; });
    },delay);
    hide: function(delay) {
    delay = delay || false;
    var root = this.root;
    if (!root.trigger.overlay) { return false; } // if already closed
    delay = (isNaN(delay)) ? 0 : delay; // delayed hide
    setTimeout(function(){
    root.holderObj.overlay.fadeOut(root._timer.overlay.fadeOut,function(){ root.trigger.overlay = false; });
    sTracker.track("hideOverlay"); // tracker
    },delay);
    setReplay: function(isReplay) {
    var root = this.root;
    var overlay = root.holderObj.overlay;
    var firstList = overlay.find(".slideshow-feature .slideshow ul").children().filter(":first");
    var divs = firstList.children();
    var replayDiv = divs.filter(":first");
    var cloneDiv = replayDiv.next();
    function configInfo(elm) {
    var currentSS = root._data.items;
    var info = root._info;
    var count = currentSS.length;
    var first = currentSS[0];
    var slideshowTitle = (info.title.length > 16) ? info.title.substring(0,16) + "..." : info.title;
    var slideshowImg = first.media.tm;
    var slideshowDate = info.title.date;
    function replay() {
    root.replaySlideshow();
    var items = elm.children();
    items.filter("p.photo-count").html(count + " image" + [[count>1) ? "s" : ""]];
    items.filter("p.date").html(slideshowDate);
    items.filter("p.photo").each(function(){
    var item = $(this);
    item.find("a").attr({ href: "#", title: slideshowTitle });
    item.find("img").attr({ alt: slideshowTitle, src: slideshowImg });
    items.filter("h4").each(function(){
    var item = $(this);
    item.find("a").attr("href","#").html(slideshowTitle);
    items.find("a").unbind("click").click(function(){
    replay();
    return false;
    elm.hover(function(){
    elm.css("cursor","pointer");
    },function(){
    elm.css("cursor","");
    }).unbind("click").click(function(){
    replay();
    return false;
    if (replayDiv.children().size()</u>0) {
    replayDiv.html(cloneDiv.html());
    configInfo(replayDiv);
    if (isReplay) {
    replayDiv.addClass("active").show();
    cloneDiv.hide();
    } else {
    replayDiv.hide();
    cloneDiv.show();
    SlideShows.prototype.helper = {
    toNum: function(item) {
    item = (isNaN(item)) ? parseInt(item.replace(/[a-zA-z]/gi,""),10) : item;
    return isNaN(item)?0:item;
    imgLoad: function(obj,fn) {
    var SH = this;
    obj.alt = obj.alt || "";
    if (obj.preload && !$.browser.opera) { // opera =/= img.onload
    if (obj.mainHolder) { obj.mainHolder.css({ background:"url("+obj.preloaderSrc+") no-repeat center" }); }
    var img = new Image();
    obj.holder.css({ display:"inline", opacity:"0" });
    img.onload = function() {
    if (obj.outer) {
    if (img.height > SH.toNum(obj.outer.minHeight)) { obj.outer.holder.css("height","auto"); }
    else { obj.outer.holder.css("height",obj.outer.minHeight); }
    obj.holder.attr("src",obj.src).animate({ opacity:"1"},obj.speed,"linear",function(){
    if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); }
    $(this).attr("alt",obj.alt);
    fn();
    img.src = obj.src;
    } else {
    if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); }
    obj.holder.css({ display:"inline", opacity:"0" });
    obj.holder.attr({
    src: obj.src,
    alt: obj.alt
    }).animate({ opacity:"1"},obj.speed,"linear",function(){ fn(); });
    getHash: function() {
    var hash = (window.location.hash).substr(1);
    if (hash) {
    var pairs = hash.split('&');
    var valuePair = {};
    for (var x=0;x 1 && callback && count%freq<u>0) {
    callback(data);
    var sTracker = new Trackers(); // private
    function showToConsole(str) {
    if (typeof window.console</u>'object') { console.log(str); }
    var slideShowsPack = window.slideShowsPack = new SlideShows();
    })(jQuery);
    // Tracking Data Here
    var trackData = {
    ads: {
    buildSlide: {
    frequency: 1,
    callback: function() {
    $(document).ready(function(){
    if (typeof $.ad.dc.load!=="undefined") {
    $.ad.dc.load();
    omni: {
    buildSlide: {
    frequency: 1,
    callback: function(data) {
    data = data || false;
    if (!data) { return false; }
    if (!data.slideNumber) { return false; }
    if (typeof $.ad.omni.load!=="undefined") {
    $.ad.omni.load({ "slide": data.slideNumber });
    var initializeSlideShow = window.initializeSlideshow = function() {
    if (typeof slideshowData!=="undefined") {
    if (!slideShowsPack.initialized) {
    slideShowsPack.init({
    data: slideshowData,
    info: slideshowInfo,
    relatedMedia: relatedsData,
    trackData: trackData
    } else {
    if (typeof window.console==='object') { console.log("[error] No Data found for: slideshowData"); }
    This the line highlighted:
    if (typeof $.ad.dc.load!=="undefined") {

  • Anchor links to accordion panels not working properly across browsers

    Hi everyone,
    I need some help to figure out why my anchor links  to specific accordion panels on another page are not working properly  across browsers.
    I have a Map page which has tooltips on  mouseover on the site markers. 15 of the tooltips have "Click here for  information" anchor links (although only 14 are currently linked) which,  in theory, would take you to the Nurseries page where the specified  accordion panel would be opened with the nursery entry appearing at the  top of the new browser window.
    Here are the links to the Map page and Nurseries page, respectively:
    www.alegriadesignstudio.com/RFRI/map_v6.html
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html
    I've  tested the anchor links on IE, Firefox, Google Chrome, and Safari, and  have received varying results. In most cases, the anchor links worked  perfectly on two of the browsers, while on the other browsers, the  correct accordion panel is opened but the nursery entry does not appear  at the top of the new browser window. Anchor links using Safari and  Google Chrome fared better (10 out of 14 links worked properly, and  8/14, respectively), whereas when using Firefox and IE, only 3 anchor  links worked properly. The target audience for this website will be  using IE and Firefox, so I  would appreciate any help to figure out how to tweak the code so that  the most, if not all, anchor links work properly on these two browsers  in particular.
    Here's an anchor link which worked perfectly in  IE, GC, and Safari, but in FF, the entry did not appear at the top of  the new browser window.
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem
    http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem [To access the anchor link on the Map page, mouseover the third green  dot from the top of the map (Tooltip--Location: Mangatarem) and then  click on "Click here for information."]
    Here's a sample anchor link in which the entry did not appear at the  top of the new browser window in any of the 4 browsers:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel [To access the anchor link on the Map page, go to "Mindanao" at the  bottom of the map and mouseover the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION:        Brgys. Amabel, Bongolanon, Imamaling, & Manobisa; Magpet;        North Cotabato) and then  click on "Click here for information."]
    Here's a sample anchor  link in which the anchor link worked properly in GC and Safari, but the  entry didn't appear at the top of the browser window in IE and FF:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar [To access the anchor link on the Map page, go to the small island  north and a bit west of "Mindanao" which is called "Bohol" and mouseover  the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION: Bilar; Bohol) and then   click on the first "Click here for information."]
    Many thanks in  advance for your assistance!
    Joy

    Hi everyone,
    I'm still trying to figure out how to resolve the problem of anchor links to accordion panels not working properly across browsers (see original post for details). I would greatly appreciate any suggestions on how to resolve the problem.
    Many thanks in advance.
    Joy

  • ValueChangeListener is not working.for disable property

    valueChangeListener is not working for disable property with following details. Requirement is to enable to date if from to date is entered.
    Field 1:
    <af:inputDate value="#{bindings.PrintFromDate.inputValue}"
    label="#{bindings.PrintFromDate.hints.label}"
    required="#{bindings.PrintFromDate.hints.mandatory}"
    shortDesc="#{bindings.PrintFromDate.hints.tooltip}"
    id="id2" autoSubmit="true"
    *valueChangeListener="#{reprintBean.enableToDate}">*
    <f:validator binding="#{bindings.PrintFromDate.validator}"/>
    <af:convertDateTime pattern="#{bindings.PrintFromDate.format}"/>
    </af:inputDate>
    <af:inputDate value="#{bindings.PrintToDate.inputValue}"
    label="#{bindings.PrintToDate.hints.label}"
    required="#{bindings.PrintToDate.hints.mandatory}"
    shortDesc="#{bindings.PrintToDate.hints.tooltip}"
    id="id1"
    *disabled="#{!requestScope.enableToDate}"*
    *partialTriggers="id2"*>
    <f:validator binding="#{bindings.PrintToDate.validator}"/>
    <af:convertDateTime pattern="#{bindings.PrintToDate.format}"/>
    </af:inputDate>
    public void enableToDate(ValueChangeEvent valueChangeEvent) {
    System.out.println("IN enableToDate");
    if (valueChangeEvent.getNewValue() != null) {
    FacesContext context = FacesContext.getCurrentInstance();
    System.out.println("Enable to Date");
    context.getExternalContext().getRequestMap().put("enableToDate",true);
    Please suggest me what is wrong on this.
    Edited by: SrinivasA on Jan 28, 2011 5:34 PM

    I still not able to achive this. (null the to date value if the FromDate has changed)
    <af:inputDate value="#{bindings.PrintFromDate.inputValue}"
    label="#{bindings.PrintFromDate.hints.label}"
    required="#{bindings.PrintFromDate.hints.mandatory}"
    shortDesc="#{bindings.PrintFromDate.hints.tooltip}"
    id="id2" autoSubmit="true"
    *binding="#{reprintBean.fromDate}"*
    *valueChangeListener="#{reprintBean.enableToDate}"*>
    <f:validator binding="#{bindings.PrintFromDate.validator}"/>
    <af:convertDateTime pattern="#{bindings.PrintFromDate.format}"/>
    </af:inputDate>
    <af:inputDate value="#{bindings.PrintToDate.inputValue}"
    label="#{bindings.PrintToDate.hints.label}"
    required="#{bindings.PrintToDate.hints.mandatory}"
    shortDesc="#{bindings.PrintToDate.hints.tooltip}"
    id="id1"
    disabled="#{bindings.PrintFromDate.inputValue eq null}"
    binding="#{reprintBean.toDate}"
    *partialTriggers="id2">*
    <f:validator binding="#{bindings.PrintToDate.validator}"/>
    <af:convertDateTime pattern="#{bindings.PrintToDate.format}"/>
    </af:inputDate>
    Value change method:
    public void enableToDate(ValueChangeEvent valueChangeEvent) {
    *setToDate(null);*
    This method is not able to reset the to date value to null. Please help to find the issue here.
    Edited by: SrinivasA on Feb 1, 2011 5:12 PM

Maybe you are looking for