CFLAYOUTAREA and javascript and innerHTML

Ok, this is a little complicated and it is not necessary limited to ColdFusion.
(And seeing's how there are so few replies these days here, I'll cross post in various forums!)
Here goes.
I have a cflayout with several cflayoutareas, and nested cflayouts.  In some of them I have a photos tab.
In those photo tabs, I call a custom tag that displays a gallery of photos, dislays the primary one and offers thumbnails.  Click on a thumbnail
and a Javascript function (changeImage) uses htmlid.innerHTML=newpic.
It works as expected.  Perfectly!
EXCEPT WHEN more than one Photo tab has images in it!
The javascript function seems to get confused which cflayout tab it is in?  Or which "instance" it is using?
Also each "tab" has its own javascript function, so ... each redundant js function cancels each other out?
So ... I went and ...
- commented out the JS function in the custom tag. 
- copied it to the shell of my web site so it's ALWAYS there for any photo custom tag to find; but only one of them.
- added what I'll call an instance ... when I call the photo custom tag added a unique parameter I called window with an ID in it.  Changed the <span id="photo"> to <span id="#attributes.window#">
and when calling the javascript added  a href="javascript:changeImage'#var1#', '#var2#', '#var3#', '#attributes.window#">
- then in the shell added window to the () of the call
- I then dump all the values ... in the js function.
- all are ok, it gets the window value, the proper image name and does a window.innerHTML.newpic;  just fine.
only there's no change onscreen.
If you have followed thus far, THANKS! 
How do I get the javascript to "find" the right cflayoutarea or is that even the problem?
Thanks a million!

Newsgroup_User wrote: The innerHTML
property was originally created by Microsoft as a proprietary shortcut,
but proved to be so useful, it was adopted by all other browsers. Although
innerHTML is not currently part of the W3C specification, it has proved
so useful that it now forms part of the draft specification for HTML5:
http://dev.w3.org/html5/html4-differences/Overview.html#htmldocument-extensions
Checking web pages and scripts against validators is a good
habit to get into. However, web technology is still evolving, so it's also
important to understand that the specifications change only at a
glacial pace. Sometimes, it makes sense to adopt practices that don't
follow the specs to the letter.
I just received the following from the good people at jQuery.  I thought that I might share it with you. 
Someone suggested:
> ...what is wrong with just having:-
> var todayEl = document.getElementById("today");
> todayEl.innerHTML = formatDate(new Date);
Another replied:  document.ElementById has a bug in ie6 and ie7 that will return an element with a name attribute of the same value.  Use $('#today') instead.
todayEl.innerHTML = "something" can cause memory leaks if events are added to DOM objects inside of todayEl and then just written over
instead of being removed first.  Use $('#today').html(formatDate(new Date)); instead if this could be a cause for concern.
Perhaps someone would like to comment further.
Roddy

Similar Messages

  • Can I package an app using just html and javascript and not flash ?

    Hi :
    Sorry for the question, but I'm a little confused. 
    I know I can use javascript with adobe air, I made some test and works great, but I'm not sure if my app will work in an iphone after I build the package.
    Thanks in advanced.

    No, that's not supported in this version of PFI.  From the Developer Guide: "You cannot write HTML- and JavaScript-based AIR applications for the mobile device profile."

  • Problem of Java - javascript and javascript - java communicate of same obje

    Hi all,
    I have met a great problem in program an applet! I have tried to communicate between java and javascript and javascript and java in the same page by using jsobject. However, problem occur. It is not a problem to call javascript from java by using jsobject. However, javascript call java by using document.object.function has problem. It cannot find out the object in IE. I have followed the webpage show in java, but the browser still prompt me the object called client not find. Please help!! My html code is shown as follow:
    <HTML>
    <HEAD>
    <TITLE>Alva Final Year Project Demo</TITLE>
    </HEAD>
    <Script language="javaScript">
    function show(html){
    layer.innerHTML = html;
    function getResponse(response){
    alert("response: " + response);
    document.client.getJSCommunicate();
    </Script>
    <BODY>
    <DIV id="layer" style="position:absolute">
    <H2>Secure Server</H2>
    <HR>
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.0 -->
    <OBJECT id="client" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "800" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">
    <PARAM NAME = CODE VALUE = "ClientPart.class" >
    <PARAM NAME="SCRIPTABLE" VALUE="true">
    <PARAM NAME="MAYSCRIPT" VALUE="true">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.1" java_CODE = "ClientPart.class" NAME = "client" WIDTH = "800" HEIGHT = "400" pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "ClientPart.class" WIDTH = "800" HEIGHT = "400" NAME = "clientPart" >
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->
    </DIV>
    </BODY>
    </HTML>
    Thanks your kindly help.
    Alva

    Everthing looks fine to me from here, you should be able to just call the java function direct such as
    document.myAppletObj.doMethod();
    I think your problem could be that your object is called "client". IE can get funny about names, it didn't like me calling a method delete()!!
    Try adding something else to the name such as "my_client", and see if this works any better.
    Chris

  • SP324081: Check that your Internet Explorer security settings will allow JavaScript and cookies. If enabled, please contact support.

    Hi,
    I have VS2013 update 4 and IE11 installed. When I try to sign in through VS I get the following error.
    SP324081: Check that your Internet Explorer security settings will allow JavaScript and cookies. If enabled, please contact support.
    I have checked and JAVASCRIPT and cookies are enabled.
    Any help is appreciated.

    Hi Sath12,
    If possible, I suggest you reset IE settings.
    Please lower the security level. Then I added the site like https://*.visualstudio.com/ to the trusted zones. Test it again.
    I have met this issue before which was related to the IE settings or the account issue.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/290948f6-b4ca-41e3-9888-91fbbc71cdeb/cannot-register-sign-in-from-vs-express-2013?forum=visualstudiogeneral
    A connect report still shared some information about it:
    https://connect.microsoft.com/VisualStudio/feedback/details/811860/vs-express-2013-for-web-browser-is-security-restricted-or-javascript-is-disabled
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How is the length of a string calculated in Java?  and JavaScript?

    Hi all,
    Do any of you know how the length of a string is being calculated in Java and JavaScript? For example, a regular char is just counted as 1 char, but sometimes other chars such as CR, LF, and CR LF are counted as two. I know there are differences in the way Java and JavaScript calculate the length of a string, but I can't find any sort of "rules" on those anywhere online.
    Thanks,
    Yim

    What's Unicode 4 got to do with it? 1 characteris 1
    character is 1 character.
    strings now contain (and Java chars also) is
    UTF-16 code units rather than Unicode characters
    or
    code points. Unicode characters outside the BMPare
    encoded in Java as two or more code units. So it would seem that in some cases, a single
    "character" on the screen, will require two charsto
    represent it.So... you're saying that String.length() doesn't
    account for that? That sux. I don't know. I'm just making infrerences (==WAGs) based on what DrClap said.
    I assume it would return the number of chars in the array, rather than the number of symbols (glyphs?) this translates into. But I might have it bass ackwards.

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
    The logic is as follows
    l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
    l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
    WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
    The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
    Any idea how I can force closure of the window opened by the window.open() ?
    Thanks

    Hi,
    did this occured afer installing service pack 2?
    A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
    <html>
    <body onload="closeit()">
    <script>
    window.close();
    </script>
    </body>
    </html>
    Monica

  • Using Quicken to manage a bank account, I get an error message from the bank that cookies and javascript must be enabled, but I don't get that message when I connect with Internet Explorer.

    Firefox allows me to get the bank home page through Quicken. But when I try to login, the error message appears saying "cookies and javascript" must be enabled. I have Java on my system, but in Firefox under "tools/options/ I don't find any way to "enable" javascript. I have enabled "cookies".
    I have no problem logging in at the bank site using Internet Explorer, but to use it, I have to designate it as the "default browser" before connecting through Quicken. I'd rather keep Firefox as the default.
    A bank tech representative was unable to find any commands in Firefox that would deal with this problem, although she clearly had manuals for both Internet Explorer and Firefox. So she concluded that I would have to use Explorer for this operation, since it allowed control of security level settings. She said that in Explorer, security level should be set to medium.
    Is there some similar control in Firefox?

    Firefox uses the same "security level" setting that is set in IE.
    Tools > Options > '''Content''' <br />
    Is '''Enable Javascript''' check-marked?
    http://kb.mozillazine.org/JavaScript_is_not_Java
    If that doesn't solve your problem, do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • How do I turn javascript and cookies on so I can get into my excite homepage and mail?

    I received the following message from Excite when trying to log-in to my homepage and email:
    "Right now, your browser's settings are configured to disable cookies and/or javascript. In order to access your account, you must change your browser's settings to accept both cookies AND javascript."
    Specifically where do I go and how do I fix this?
    Thanks, Marc

    Open up Firefox's options and head to the "Privacy" section. In the middle of that section there's a dropdown labelled "Firefox will". Make sure this is set to to "Remember history" to enable cookies.
    If this option is already selected, or doing so doesn't solve your problem, let us know and we can dig a little deeper into Firefox's settings.

  • SSO and JavaScript

    Hi all,
    does any one of you know about any restriction or any other issue involving SSO and JavaScript?
    We have a web app in an OC4J instance, which uses JSP and JavaScript.
    When SSO is disabled for the application, everything goes well. But when SSO is active, the page loads a lot slower, and the IE browser always shows the error icon when any component tries to execute Javascript.
    Any ideas about this issue?
    Oracle AS 10g (9.4.1)
    Win 2000 SP4
    IE 6.0 SP1
    Thanks a Lot in advance.
    Have a nice day.
    Jaime

    It is simpler to do from server side as follows. Place below line
    inside Page_Load event of any portal component:
       Write(this.Request.Cookies.Get("MYSAPSSO2").Value);

  • COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!

    COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
    US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
    To forum visitors:
    I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
    If your advice resolves the problem, I'll forward the payment to your postal address (include your
    address with your reply, and also your email address)
    I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
    The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
    (It is a very effective bitmap display and editing utility)
    To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
    I understand the basic syntax for referencing the applet:
    document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
    Please can you recommend the correct Javascript syntax to achieve communication with the applet.
    Thank you for your kind assistance.
    JM Graham
    [email protected]
    The Java source code for the applet: EasyFilter.class
    # Easy Filter - E.B/JavaZOOM 1999 #
    # Contact: [email protected] #
    # http://javazoom.hypermart.net #
    /* Originally compiled from EasyFilter.java */
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.applet.Applet;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.image.MemoryImageSource;
    import java.awt.image.PixelGrabber;
    import java.util.Vector;
    public synchronized class EasyFilter extends Applet implements KeyListener
    private String paramFileName;
    private Color bgColor;
    private Color fgColor;
    private Color parColor;
    private Color sepColor;
    private Color titleColor;
    private Color helpColor;
    private int WinWidth;
    private int WinHeight;
    private String title;
    private String logoFileName;
    private String originalImageFileName;
    private String filteredCaption;
    private String originalCaption;
    private Vector paramsName;
    private Vector paramsValue;
    private Vector paramsComment;
    private Panel panelParameters[];
    private Label labelParameters[];
    private TextField textFieldParameters[];
    private Label labelComments[];
    private int nbParameters;
    private ScrollPane scrollPaneParams;
    private Panel panelParams;
    private Image theLogo;
    private Image theOriginalImage;
    private Image theFilteredImage;
    private int theOriginalPixelArray[];
    private int logoWidth;
    private int logoHeight;
    private int imageWidth;
    private int imageHeight;
    private drawCanvas canvasTitle;
    private Panel panelTitle;
    private Label labelTitle;
    private Panel panelImages;
    private Panel panelOriginalImage;
    private drawCanvas canvasOriginalImage;
    private Label labelOriginalImage;
    private Panel panelFilteredImage;
    private drawCanvas canvasFilteredImage;
    private Label labelFilteredImage;
    private Panel panelHelp;
    private Label labelHelp;
    private int Yspc;
    private FilterImplementation theFilter;
    public void init()
    String string = null;
    string = appletInitialize();
    setBackground(bgColor);
    if (string != null)
    removeAll();
    setBackground(Color.white);
    setForeground(Color.black);
    Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
    Panel panel = new Panel();
    panel.add(label);
    add(panel);
    setLayout(new FlowLayout(1, 5, Yspc));
    public void keyPressed(KeyEvent keyEvent)
    panelHelp.removeAll();
    boolean flag = true;
    if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
    for (int i = 0; i < nbParameters; )
    try
    paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
    i++;
    catch (NumberFormatException e)
    labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
    flag = false;
    break;
    if (flag == 1)
    labelHelp.setText(" .... Running, please wait .... ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    theFilter.updateParameters(paramsValue);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    canvasFilteredImage.repaint();
    panelHelp.removeAll();
    labelHelp.setText("- Done -");
    else
    labelHelp.setText("- Press Enter to run the Filter -");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    public void keyReleased(KeyEvent keyEvent)
    public void keyTyped(KeyEvent keyEvent)
    private String appletInitialize()
    WinWidth = size().width;
    WinHeight = size().height;
    if (getParameter("bgcolor") == null)
    bgColor = new Color(0, 0, 40);
    else
    bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
    if (getParameter("fgcolor") == null)
    fgColor = new Color(255, 255, 255);
    else
    fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
    if (getParameter("sepcolor") == null)
    sepColor = new Color(158, 128, 128);
    else
    sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
    if (getParameter("parcolor") == null)
    parColor = new Color(24, 24, 24);
    else
    parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
    if (getParameter("titlecolor") == null)
    titleColor = new Color(255, 255, 0);
    else
    titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
    if (getParameter("helpcolor") == null)
    helpColor = new Color(0, 255, 255);
    else
    helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
    paramsName = new Vector();
    paramsValue = new Vector();
    paramsComment = new Vector();
    paramFileName = getParameter("paramfile");
    String string = readParams(paramFileName);
    if (string != null)
    return string;
    MediaTracker mediaTracker = new MediaTracker(this);
    theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
    mediaTracker.addImage(theOriginalImage, 0);
    if (logoFileName != null)
    theLogo = getImage(getDocumentBase(), logoFileName);
    mediaTracker.addImage(theLogo, 1);
    try
    mediaTracker.waitForAll();
    catch (InterruptedException e1)
    return "Error while loading image";
    if (mediaTracker.isErrorAny())
    return "Error while loading image";
    if (logoFileName != null)
    logoWidth = theLogo.getWidth(this);
    logoHeight = theLogo.getHeight(this);
    imageWidth = theOriginalImage.getWidth(this);
    imageHeight = theOriginalImage.getHeight(this);
    theOriginalPixelArray = new int[imageWidth * imageHeight];
    PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
    try
    pixelGrabber.grabPixels();
    panelTitle = new Panel();
    canvasTitle = new drawCanvas();
    labelTitle = new Label();
    panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelTitle);
    panelTitle.setBackground(bgColor);
    panelTitle.add(canvasTitle);
    canvasTitle.setImage(theLogo);
    canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
    labelTitle.setText(title);
    catch (InterruptedException e2)
    return "Internal Error, Try RELOAD !";
    if (title != null)
    panelTitle.add(labelTitle);
    labelTitle.setForeground(titleColor);
    labelTitle.setFont(new Font("Dialog", 1, 14));
    panelImages = new Panel();
    panelOriginalImage = new Panel();
    canvasOriginalImage = new drawCanvas();
    labelOriginalImage = new Label();
    panelFilteredImage = new Panel();
    canvasFilteredImage = new drawCanvas();
    labelFilteredImage = new Label();
    panelImages.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelImages);
    panelImages.setBackground(bgColor);
    panelOriginalImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelOriginalImage);
    panelOriginalImage.setBackground(Color.black);
    panelOriginalImage.add("Center", canvasOriginalImage);
    canvasOriginalImage.setImage(theOriginalImage);
    canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
    labelOriginalImage.setText(originalCaption);
    labelOriginalImage.setAlignment(1);
    panelOriginalImage.add("South", labelOriginalImage);
    labelOriginalImage.setBackground(Color.lightGray);
    labelOriginalImage.setForeground(Color.black);
    labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
    panelFilteredImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelFilteredImage);
    panelFilteredImage.setBackground(Color.black);
    panelFilteredImage.add("Center", canvasFilteredImage);
    theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    labelFilteredImage.setText(filteredCaption);
    labelFilteredImage.setAlignment(1);
    panelFilteredImage.add("South", labelFilteredImage);
    labelFilteredImage.setBackground(Color.lightGray);
    labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
    scrollPaneParams = new ScrollPane(0);
    panelParams = new Panel();
    nbParameters = paramsName.size();
    int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
    if (i < Yspc + 2 + 24)
    i = Yspc + 2 + 24;
    scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
    panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
    scrollPaneParams.add(panelParams);
    panelParams.setBackground(sepColor);
    panelParameters = new Panel[nbParameters];
    labelParameters = new Label[nbParameters];
    textFieldParameters = new TextField[nbParameters];
    labelComments = new Label[nbParameters];
    for (int j = 0; j < nbParameters; j++)
    panelParameters[j] = new Panel();
    panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
    panelParams.add(panelParameters[j]);
    panelParameters[j].setBackground(parColor);
    labelParameters[j] = new Label();
    labelParameters[j].setText((String)paramsName.elementAt(j));
    panelParameters[j].add(labelParameters[j]);
    labelParameters[j].setForeground(fgColor);
    labelParameters[j].setFont(new Font("Dialog", 1, 12));
    textFieldParameters[j] = new TextField(8);
    textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
    panelParameters[j].add(textFieldParameters[j]);
    textFieldParameters[j].setBackground(fgColor);
    textFieldParameters[j].addKeyListener(this);
    labelComments[j] = new Label();
    labelComments[j].setText((String)paramsComment.elementAt(j));
    panelParameters[j].add(labelComments[j]);
    labelComments[j].setForeground(fgColor);
    add(scrollPaneParams);
    panelHelp = new Panel();
    labelHelp = new Label();
    panelHelp.setLayout(new FlowLayout(1, 5, 0));
    add(panelHelp);
    panelHelp.setBackground(bgColor);
    labelHelp.setText(" Change colour values and press enter ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    labelHelp.setForeground(helpColor);
    return null;
    private String readParams(String string1)
    Object object1;
    String string2;
    if (string1 == null)
    return "Filename of filter's parameters needed";
    try
    URL uRL = new URL(getDocumentBase(), string1);
    URLConnection uRLConnection = uRL.openConnection();
    uRLConnection.setDoInput(true);
    uRLConnection.setUseCaches(false);
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
    string2 = null;
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    if (bufferedReader != null)
    Object object2;
    try
    for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
    string2 = extractFormat(object2);
    catch ()
    string2 = object2.getMessage();
    finally
    bufferedReader.close();
    if (string2 != null)
    return string2;
    else
    return null;
    private String extractFormat(String string1)
    if (string1.length() == 0)
    return null;
    int i = 0;
    int j = string1.indexOf(" ", i);
    if (j == -1)
    return "Bad format error (space missing)";
    String string2 = string1.substring(i, j);
    if (string2.equals("TITLE"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    title = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    originalCaption = string1.substring(i, j);
    return null;
    if (string2.equals("FILTEREDCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    filteredCaption = string1.substring(i, j);
    return null;
    if (string2.equals("LOGO"))
    i = j + 1;
    j = string1.length();
    logoFileName = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALIMAGE"))
    i = j + 1;
    j = string1.length();
    originalImageFileName = string1.substring(i, j);
    return null;
    if (!string2.equals("PARAM"))
    return null;
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    paramsName.addElement(string1.substring(i, j));
    i = j + 2;
    j = string1.indexOf(32, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    try
    paramsValue.addElement(new Double(string1.substring(i, j)));
    j = string1.indexOf(34, i);
    catch (NumberFormatException e)
    return "Bad format in a PARAM line";
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    paramsComment.addElement(string1.substring(i, j));
    return null;
    public EasyFilter()
    logoHeight = 33;
    Yspc = 5;

    Addition to my above submission
    To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
    JMGRAHAM

  • Communication between javascript and Objective-c in iOS.

    We wanted to have a communication between javascript and objective c code. We have already tried the below approach.
    To load fake URLs in JS and append a string which will be used as parameter to the Objective-C code and parse that URL in this delegate method:
    -(BOOL)webView(UIWebView *)webView shouldStartLoadWithRequest(NSURLRequest *)request navigationType(UIWebViewNavigationType)navigationType
    Then send the return value by calling the native method stringByEvaluatingJavaScriptFromString again with parameter callID.
    But we wanted to access Objective class object in Javascript code so that we can call it's methods from javascript code using this object.Android supports this behaviour using addJavaScriptInterface method in webview. Is it possible to have the similar approach in IOS? If not what is the best approach possible to acheive this? If we could achieve similar behaviour then we don't need to change the Jacascript code and will be reused. Please suggest the best possible solution.
    Regards,
    Karthik M.

    https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptu al/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html

  • Javascript and bex

    Hello All,
    There are four steps in my web application;
    1> Instead of the standard navigation block web item , we would like to use the normal html drop down box for the filter values.
    This step is done, but the html drop down box displays an extra option value apart from the existing filter value, i.e it displays (All) as well apart from the standard filter values.
    How Can I remove (All)the same from the drop down box??
    2> On the same web template , below the drop down boxes there are four buttons which point to different web templates(queries).
    All the reports have a similar selection criteria.Based on the values that the user selects in the drop down box and press oneof the buttons, the query corresponding to that web template should be shown
    Ths step is partially done, I am able to go to the desired web template but am unable to pass the values for the filter selection.
    On the button click I am generating a url at run time and in the url I am adding the filter selection criteria(based on command urls)
    The web template opens but it is not filtered according to the values selected in the drop down box.
    3> when the web template opens the drop down box value that was selected on the previous page should be set by default in the new web template, however the values in the drop down box does not appear to be selected.
    4>if I select a numeric value like a financial year then the value persists in the drop down box without any extra coding or effort.Is it possible for other drop down boxes as well.
    The code for my template is as mentioned below:
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="QUERY" value="ZIB_DEFAULT_FY"/>
             <param name="INFOCUBE" value="ZIB_RPT"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DP_BPP_DEFFYC"/>
             <param name="QUERY" value="ZIB_DEFAULT_FY_CNT"/>
             <param name="INFOCUBE" value="ZIB_RPT"/>
             DATA_PROVIDER:             DP_BPP_DEFFYC
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DB_BPP_DEFF"/>
             <param name="QUERY" value="ZIB_DEFAULT_FY"/>
             <param name="INFOCUBE" value="ZIB_RPT"/>
             DATA_PROVIDER:             DB_BPP_DEFF
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DB_BPP_DEFFYC"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DB_BPP_DEFFYC
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DB_BPP_DEFFY"/>
             <param name="QUERY" value="ZIB_DEFAULT_FY"/>
             <param name="INFOCUBE" value="ZIB_RPT"/>
             DATA_PROVIDER:             DB_BPP_DEFFY
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZIV_ZIB_RPT_ACTDFY_PB34023"/>
             TEMPLATE PROPERTIES
    </object>
    <SCRIPT language="JavaScript">
              var varFilter1="";
              var varFilter2="";
              var varFilter3="";
              var varFilter4="";
              var varFilter5="";
              var varFilter6="";
              var varFilter7="";
              var varFilter8="";
              var staticUrl="http://myserver:myport/sap/bw/BEx?SAP-LANGUAGE=E&CMD=ldoc";
              var filterUrl="";
              var templateUrl="";
              var showUrl="";
              var filterUrl1="";
    function getValues()
              varFilter1=document.frmName.FILTER_VALUE_1.options[document.frmName.FILTER_VALUE_1.selectedIndex].value;       
              varFilter2=document.frmName.FILTER_VALUE_2.options[document.frmName.FILTER_VALUE_2.selectedIndex].value;
              varFilter3=document.frmName.FILTER_VALUE_3.options[document.frmName.FILTER_VALUE_3.selectedIndex].value;
              varFilter4=document.frmName.FILTER_VALUE_4.options[document.frmName.FILTER_VALUE_4.selectedIndex].value; 
              varFilter5=document.frmName.FILTER_VALUE_5.options[document.frmName.FILTER_VALUE_5.selectedIndex].value;       
              varFilter6=document.frmName.FILTER_VALUE_6.options[document.frmName.FILTER_VALUE_6.selectedIndex].value;       
              varFilter7=document.frmName.FILTER_VALUE_7.options[document.frmName.FILTER_VALUE_7.selectedIndex].value;       
              varFilter8=document.frmName.FILTER_VALUE_8.options[document.frmName.FILTER_VALUE_8.selectedIndex].value;  
    function getFilterUrl()
               if (varFilter1=="(All)")
                    filterUrl=filterUrl;
              else
                    filterUrl= filterUrl"&FILTER_IOBJNM_1=0SALES_OFF&FILTER_VALUE_1="varFilter1;
              if (varFilter2=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_2=ZFISCYR&FILTER_VALUE_2="varFilter2;
              if (varFilter3=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_3=ZFISCMON&FILTER_VALUE_3="varFilter3;
              if (varFilter4=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_4=OSALES_GRP&FILTER_VALUE_4="varFilter4;
              if (varFilter5=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_5=ODOC_TYPE&FILTER_VALUE_5="varFilter5;
              if (varFilter6=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_6=ZPRDTY&FILTER_VALUE_6="varFilter6;
              if (varFilter7=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_7=ZLDSRC&FILTER_VALUE_7="varFilter7;
              if (varFilter8=="(All)")
                   filterUrl=filterUrl;
              else
                   filterUrl=filterUrl"&FILTER_IOBJNM_8=OPMNTTRMS&FILTER_VALUE_8="varFilter8;
    function show1()
           getValues();
           templateUrl="&TEMPLATE_ID=ZIV_ZIB_RPT_ACTDFY_PB34023";    
           getFilterUrl();    
           showUrl=staticUrltemplateUrlfilterUrl;
           alert(showUrl);
           SAPBWOpenURL(showUrl);
    function show2()
         getValues();
         templateUrl="&TEMPLATE_ID=ZIV_ZIB_RPT_ATB_DTC_PB34023";
         getFilterUrl();
         showUrl=staticUrltemplateUrlfilterUrl;
         SAPBWOpenURL(showUrl);
    function show3()
         getValues();
         templateUrl="&TEMPLATE_ID=ZIV_ZIB_RPT_PD_RISK_PB34023";
         getFilterUrl();
         showUrl=staticUrltemplateUrlfilterUrl;
         SAPBWOpenURL(showUrl);
    function show4()
         getValues();
         templateUrl="&TEMPLATE_ID=ZIV_ZIB_DA_DEFAULT_ANALYSIS_PB34023";
         getFilterUrl();
         showUrl=staticUrltemplateUrlfilterUrl;
         SAPBWOpenURL(showUrl);
    function show5()
         getValues(); 
         templateUrl="&TEMPLATE_ID=ZIV_ZIB_RPT_ACTDFY_PB34023";      
         getFilterUrl();
         showUrl=staticUrltemplateUrlfilterUrl;
         alert(showUrl);
         SAPBWOpenURL(showUrl);  
    </SCRIPT><HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href= "/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <form name="frmName" method="post" action="http://myserver:myport/sap/bw/BEx?bw/BEx?SAP-LANGUAGE=E&CMD=ldoc&TEMPLATE_ID=ZIV_ZIB_RPT_ACTDFY_PB34023&FILTER_IOBJNM_1=0SALES_OFF&FILTER_VALUE_1=&FILTER_IOBJNM_2=ZFISCYR&FILTER_VALUE_2=&FILTER_IOBJNM_3=ZFISCMON&FILTER_VALUE_3=&FILTER_IOBJNM_4=OSALES_GRP&FILTER_VALUE_4=&FILTER_IOBJNM_5=ODOC_TYPE&FILTER_VALUE_5=&FILTER_IOBJNM_6=ZPRDTY&FILTER_VALUE_6=&FILTER_IOBJNM_7=ZLDSRC&FILTER_VALUE_7=&FILTER_IOBJNM_8=OPMNTTRMS&FILTER_VALUE_8=ZB02">
    <B> Wel COme to BPA Attachment Rate Calculator </B>
    <table border="1">
      <TBODY>
    <tr>
    <td>
    <b>Sales Office</b><select name="FILTER_VALUE_1" size="1" type="MULTIPLE">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="0SALES_OFF"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_1
    </object>
    </select>
    </td>
    <td>
    <b>Fiscal Year</b><select name="FILTER_VALUE_2" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_2"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="ZFISCYR"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_2
    </object>
    </select>
    </td>
    <td>
    <b>Fiscal Month</b><select name="FILTER_VALUE_3" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_3"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="ZFISCMON"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_3
    </object>
    </select>
    </td>
    <td>
    <b>Sales Group</b><select name="FILTER_VALUE_4" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_4"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="0SALES_GRP"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_4
    </object>
    </select>
    </td>
    </tr>
    <tr>
    <td>
    <b>Sales Document Type</b><select name="FILTER_VALUE_5" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_5"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="0DOC_TYPE"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_5
    </object>
    </select>
    </td>
    <td>
    <b>Product Type</b><select name="FILTER_VALUE_6" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_6"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="ZPRDTY"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_6
    </object>
    </select>
    </td>
    <td>
    <b>Lead Sources</b><select name="FILTER_VALUE_7" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_7"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="ZLDSRC"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_7
    </object>
    </select>
    </td>
    <td>
    <b>Payment Terms</b><select name="FILTER_VALUE_8" size="1">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="DROPDOWNBOX_8"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER_DDOWN"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="IOBJNM" value="0PMNTTRMS"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            DROPDOWNBOX_8
    </object>
    </select>
    </td>
    </tr>
    </TBODY></table>
    <input type="submit" value="Go">
    </form>
    <input type="submit" value="Aged Trial Balance" onClick="show1()">
    <input type="submit" value="DTC ATB " onClick="show2()">
    <input type="submit" value="Risk Assessment " onClick="show3()">
    <input type="submit" value="Default Clearing By Month " onClick="show4()">
    <input type="submit" value="Current Fiscal Year" onClick="show5()">
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CHART_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CHART"/>
             <param name="DATA_PROVIDER" value="DB_BPP_DEFFY"/>
             <param name="WIDTH" value="634"/>
             <param name="HEIGHT" value="296"/>
             <param name="TITLE_CATEGORIES" value="Aging"/>
             <param name="TITLE_VALUES" value="Dollars"/>
             <param name="TMP_CHART_DATA_HANDLE" value="IIP_3W6PHPIFD5VK4XZNKS2ZDG00C"/>
             ITEM:            CHART_1
    </object></P>
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TB_BPP_DEFFY"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DB_BPP_DEFF"/>
             ITEM:            TB_BPP_DEFFY
    </object><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TB_BPP_DEFFYC"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DP_BPP_DEFFYC"/>
             ITEM:            TB_BPP_DEFFYC
    </object></P>
    </BODY>
    </HTML>

    Hello Heike,
    Well I have been working on this and wanted some more information regarding one of the possible issues.
    As I have been telling you that I have dropdown boxes and based on the values that the user selects corresponding report should run.(I have eight drop down box and five push buttons)
    Now I have made the selection in the drop down boxes "multiple".
    I am generating the url for all the selected values. Like I have a drop down box whose value is 0SALES_OFF. if the user selects three options for this filter say "A", "B" and "C" and hits one of the push buttons , the query runs fine and filters the value. The only problem lies in the drop down box: it shows "A","B" and "C" as selected values in the drop down box, however this is just a display text and its value is"!unchanged". Now if the user wants to keep the same filter value the value that is being used for the selection is "!unchanged" instead of "A","B" and "C".
    I think this code is generated by SAP.Can you give me some insight as to where should I make certain changes so that values persists?
    Personally, I feel this is a more cumbersome method than using the standard navigation block..but still .I am client site...
    Thanks and Regards
    Pradeep Bhojak

  • Using Google GWT to create (Dashcode) widgets for iBook Author  I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pa

    I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pages (for example, http://softoption.us/content/node/437 scroll to the bottom). In theory, iBookAuthor can bring in most html5, and much javascript. The technique is to wrap the html in a folder, with 2 extra files, a plist and a default png and then change the extension of the folder to ‘.wdgt’. This is the technique for making Dashboard widgets for the Mac, and Apple even have the Dashcode software to do it. So what you really do is to make a Dashboard widget, then iBookAuthor can import it.  So far, so good. And some  folk have been doing this, for example http://www.prweb.com/releases/2012/2/prweb9242432.htm http://www.panophoto.org/forums/viewtopic.php?f=64&t=10417&p=158330#p158423 However, if you start with GWT and create a single page with one button and a Hello World, compile it, and get the WAR file (I use Eclipse here)… the Safari browser and others will run it properly (even on an iPad). Then if you wrap it, a proper Dashboard widget is created, which runs properly on a Mac. Then if you go to iBookAuthor and put a custom widget in the Text, then drag it in. It is accepted by the text and shown as being there. However, if you use Preview to look at it on an iPad, it is gone (or was never there in the first place). Anyone any ideas on this? [And iBook Author seems to give no warnings.] The widget is at https://dl.dropbox.com/u/46713473/Test6.wdgt.zip I have bells and whistles that I’d like to get into an iBook!
    Thanks for any insights.
    Martin

    I do have a little to add, which might help someone. Indeed, opening a blank page and dragging the widget straight in seems good in difficult cases. But, actually, I was also able to insert successfully from the Toolbar especially to blank pages. So, it may have been something to do with the columns and stuff like that. Anyway back then the insertion would show in iBooks Author but not in the Preview on the iPad. I moved on to actual Google Web Toolkit output javascript. Basically I had three at hand to try: a Hello World with a button which went straight it, one of moderate complexity, (for example with a built in Lisp interpreter), which also went straight in, and finally a more complex one that initially was rejected by iBook Author. Author complained that there was an unsupported media file (of course, Author does not tell you which one it is, that would be too easy). [Remember, this was a proper working Dashboard widget which could be installed on a Mac]. Among other things I had read remarks about .gif files. When looking through the GWT war directory at the actual javascript etc files, I noticed there were two gifs there one called ‘clear.cache.gif ‘  and a second one called  ‘0F89659FF3F324AE4116F700257E32BD.cache.gif’. (Now, there is obfuscation so the numbers here may be different from case to case.) The clear.cache.gif did not seem to be anything special. But the other one is an animation. It is three little boxes that twinkle (rather like a waiting spinning cursor).  So, I opened that file and saved it to itself (that picks the top frame of the animation and saves only that, leaving you with an unanimated gif). The resulting widget drags and drops into iBooks Author (and seems to work properly at a quick glance). So, if you are having trouble with ‘unsupported media files’ converting animated gifs into unanimated gifs might help in some cases.

  • How to find out the filename of javascript and pathname of javascript?

    I got the filename of javascript and pathname of javascript(not the active document file name) using the below code in illustrator cs3.
    var path = $.fileName;
    But my problem was if i run the javascript through "extendscript toolkit" i got it correctly. But if i run my script through illustrator cs3 application(File->Scripts->test.jsx) i got some integer value only(did not get the javascript filepath and filename). Kindly advice how to get the javascript file name and file path in windows platform through illustrator cs3 javascript. Please help me.

    I already have that extension, but I'm not sure which idx I need to look at. Also, I suppose that the numbers I'm looking for depend on places.history.expiration.transient_current_max_pages and therefore there is no way to get them relative to the installation of Firefox. My point is, I can see my history only up to 1 year, even though I have Firefox installed for 3 years. Correct me if I'm wrong.

Maybe you are looking for

  • I share my itunes account with my kid but he is growing up and leaving for college soon.  How do we breakup but not loose his music?

    How does one break up with your kid on itunes and not loose all their music?  My teen says if he sets up his own account or a new account with apple he will loose his music.  Im sure lots of parents have this issue with kids as they grow into teenage

  • Got new Time Capsule. Where is the Wifi setting gone?

    I just got a new Time Capsule and restored my old configuration from my previous Time Capsule. After rebooting I saw that there is no option to change the speed of the Wifi networks anymore. Is it really so? How can I access the settings of the Wifi

  • BPM Workspace Login problem

    I'm having a weird issue. I just can't login anymore to bpm workspace with weblogic user, I can login just fine on the console and on the enterprise manager, but can't login on workspace nor on process composer. Any ideas?

  • Defining a new quantity field in SD

    Hi, I added a custom Z....... field to VBAP table . I want this field to be assgined to a user-defined CO-PA quantity field so as to be accumulated for some analysis. However, when I run KE4M (assign SD qty fields-CO-PA Qty fields) transaction, I can

  • When Beans??

    when do i put a class as a bean. when i searched for the difference betwween java calss and bean it had -->beans are classes with default constructor ,reusable.. Can someone explain me when do i put a bean as class with a simple scenario .. for eg:a