Making Spyr Dynamic

Have searched for but could not find so I am asking:
Can someone clue me into how I can use a Collapsible Panel or
Accordion Panel in a PHP page using a mySQL recordset and display
the data from the recordset in the widget and have the widget work
in a repeat region?
I am currently using a PHP page with a mySQL recordset and
the data appears to be properly passed, I am just haven't been able
to dynamically id (name) the Panel elements; and that, I think, is
the problem.
The problem I am encountering is that only the first
Collapsible Panel works properly. The remainder are displaying the
data, but will not open and close when their tabs are clicked. It
appears that all are being repeated as id="CollapsiblePanel1" (I am
trying to use the Collapsible if possible rather than the
Accordion, but either would work)
Does anyone have a way either javascript or php or other
technique to increment the Tab & Content ID's?
I am attaching (I hope) a portion of the code i am testing
with. Sorry, it's on a local server on my machine.
An example of something I think I want to do can be seen at
Adobe example page :
http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample2.html
Any direction would be appreciated.
Thanks,
nitefisher1
Attach Code
<title>collapsible</title>
<script src="SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<?php do { ?>
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><?php
echo $row_rsPanel['gTitle']; ?> <?php echo
$row_rsPanel['gAges']; ?></div>
<div class="CollapsiblePanelContent">
<div id=".ssCollapseLeft">
<p><?php echo $row_rsPanel['gTeachers1']; ?>
<?php echo $row_rsPanel['gTeachers2']; ?> </p>
</div>
<div id=".ssCollapseRight">
<p><?php echo $row_rsPanel['gLocation'];
?></p>
<p><?php echo $row_rsPanel['gDate'];
?></p>
<p><?php echo $row_rsPanel['gAttend'];
?></p>
<p><?php echo $row_rsPanel['gContact'];
?></p>
</div>
<div id=".ssCollapseClear">
<p><!--<!--clear div -->
</p>
</div>
</div>
</div>
<?php } while ($row_rsPanel =
mysql_fetch_assoc($rsPanel)); ?><script
type="text/javascript">
<!--
var CollapsiblePanel1 = new
Spry.Widget.CollapsiblePanel("CollapsiblePanel1",
{contentIsOpen:false});
//-->
</script>
</body>
</html>
<?php
mysql_free_result($rsPanel);
?>

nitefisher wrote:
> Does anyone have a way either javascript or php or other
technique to
> increment the Tab & Content ID's?
All you need to do is to create a counter and output the
counter in place of the "1" in CollapsiblePanel1.
What I would do to make this quick and easy would be to move
the constructor code (the script tag and its contents) into your
repeat region. This will allow you to not have to have multiple
repeat regions (as well as a recordset "reset"). Then change your
code to something like the following:
<title>collapsible</title>
<script src="SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet"
type="text/css" />
</head>
<body>
<?php
$counter = 1;
?>
<?php do { ?>
<div id="CollapsiblePanel1"
class="CollapsiblePane<?php echo $counter; ?>">
<div class="CollapsiblePanelTab" tabindex="0"><?php
echo
$row_rsPanel['gTitle']; ?> <?php echo
$row_rsPanel['gAges']; ?></div>
<div class="CollapsiblePanelContent">
<div id=".ssCollapseLeft">
<p><?php echo $row_rsPanel['gTeachers1']; ?>
<?php echo
$row_rsPanel['gTeachers2']; ?> </p>
</div>
<div id=".ssCollapseRight">
<p><?php echo $row_rsPanel['gLocation'];
?></p>
<p><?php echo $row_rsPanel['gDate'];
?></p>
<p><?php echo $row_rsPanel['gAttend'];
?></p>
<p><?php echo $row_rsPanel['gContact'];
?></p>
</div>
<div id=".ssCollapseClear">
<p><!--<!--clear div -->
</p>
</div>
</div>
</div>
<script
type="text/javascript">
<!--
var CollapsiblePanel<?php echo $counter; ?> = new
Spry.Widget.CollapsiblePanel("CollapsiblePanel<?php echo
$counter; ?>",
{contentIsOpen:false});
//-->
</script>
<?php
$counter++;
?>
<?php } while ($row_rsPanel =
mysql_fetch_assoc($rsPanel)); ?>
</body>
</html>
<?php
mysql_free_result($rsPanel);
?>
Or instead of using the script block, you could try a
Collapsible Panel group. Basically, you'd wrap around all of your
panels (which you'd still need the counter for that) a div:
<div id="CollapsiblePanelGroup1"
class="CollapsiblePanelGroup">
all your panel creation code here
</div>
Then in a script block at the bottom of the page:
<script language="JavaScript" type="text/javascript">
var cpg1 = new
Spry.Widget.CollapsiblePanelGroup("CollapsiblePanelGroup1");
</script>
Check out the Spry sample page for more info on the panel
group (this isn't an option in the Insert bar, but it is available
in the Spry framework itself):
http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/CollapsiblePanelGroupSamp le.html
Not sure where you searched or have asked your question, but
dynamic type questions are generally better handled in the App Dev
forum:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=12&catid=263&entercat= y
And perhaps ask questions that are specific to Spry in the
Spry forums:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
HTH
Danilo Celic
|
http://blog.extensioneering.com/
| Adobe Community Expert

Similar Messages

  • Making a dynamic stamp in Acrobat 10

    I tried to follow the instructions for making a dynamic stamp in Acrobat 9 for use in Acrobat 10, but my stamp is static, not dynamic. The date and time stayed the same as when I made it. What is the trick to make this happen. It's very frustrating that it is so hard to make a dynamic stamp. Thank for any assistance anyone can provide.

    I've not done that, but here are some links which may help you:
    http://forum.planetpdf.com/wb/default.asp?action=9&read=64312&fid=134

  • Making a dynamically generated field as Read Only

    Hi All,
    I am extending a standard CO and in that I wanted to make an entire table as read only. I checked by personalizing the page from front end, but as the items are dynamically generated fields , they are not visible in personalize page.
    So is there any way to cach these fields and make them read only programmatically.
    Thanks,
    Srikanth

    Hi Pratap,
    I have looked into the view source and took the name of a input type ( There is no ID for the field) and used it in findIndexedChild, but it returns a null. I guess this is happening is the current CO is a mere region level CO and it is not being given the access.
    The code in the class file is as follows :
    public static void processTable(OAPageContext oapagecontext, OAWebBean oawebbean)
    oapagecontext.startTimedProcedure("CrossTableCO", "processTable");
    String s = null;
    String s1 = null;
    int i = oawebbean.getIndexedChildCount();
    String as[[][]] = new String[7];
    int j = 0;
    String as1[[][]] = new String[i][6];
    for(int k = 0; k < oawebbean.getIndexedChildCount(); k++)
    UINode uinode = oawebbean.getIndexedChild(k);
    if(!(uinode instanceof OAMessageStyledTextBean))
    continue;
    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)uinode;
    if(oamessagestyledtextbean.isRendered())
    oamessagestyledtextbean.setRendered(false);
    oamessagestyledtextbean.setAttributeValue("benCustomBeanRender", "Y");
    if("TotalPlanLabel".equals(oamessagestyledtextbean.getUINodeName()))
    s1 = oamessagestyledtextbean.getLabel();
    continue;
    if(s == null)
    s = oamessagestyledtextbean.getViewUsageName();
    as[j][0] = oamessagestyledtextbean.getViewAttributeName();
    as[j][1] = oamessagestyledtextbean.getSortByAttributeName();
    as[j][2] = oamessagestyledtextbean.getLabel();
    as[j][3] = oamessagestyledtextbean.getExportByViewAttrName();
    as[j][4] = oamessagestyledtextbean.getDestination();
    as[j][5] = oamessagestyledtextbean.getUINodeName();
    as[j][6] = oamessagestyledtextbean.getDataType();
    if(as[j][4] != null && as[j][5] != null)
    as1[j][0] = as[j][5];
    as1[j][1] = as[j][0];
    as1[j][2] = s;
    as1[j][3] = as[j][4];
    as1[j][4] = as[j][6];
    as1[j][5] = as[j][3];
    j++;
    continue;
    if("TotalPlanLabel".equals(oamessagestyledtextbean.getUINodeName()))
    s1 = "XXHideXXTotalXX";
    oawebbean.setAttributeValue("CrossTableUpdateInfo", as1);
    oawebbean.setAttributeValue("CrossTableRenderCount", Convert.getString(j));
    if(s == null)
    return;
    OAViewObject oaviewobject = (OAViewObject)oapagecontext.getApplicationModule(oawebbean).findViewObject(s);
    if(oaviewobject == null || !oaviewobject.isPreparedForExecution() || oaviewobject.first() == null)
    return;
    } else
    oawebbean.addIndexedChild(createTable(oawebbean, oaviewobject, as, j, s1));
    oawebbean.setAttributeValue("CrossTableRowCount", Convert.getString(oaviewobject.getRowCountInRange()));
    oapagecontext.endTimedProcedure("CrossTableCO", "processTable");
    return;
    private static UINode createTable(OAWebBean oawebbean, OAViewObject oaviewobject, String as[][], int i, String s)
    int j = oaviewobject.getRowCountInRange();
    DataTextNode datatextnode = new DataTextNode(new DataBoundValue("text"));
    String as1[] = new String[j + 1];
    CrossTableData acrosstabledata[] = new CrossTableData[i];
    int k = -1;
    for(int l = 0; l < i; l++)
    acrosstabledata[l] = new CrossTableData(new CrossTableCellData[j + 1]);
    for(int i1 = 0; i1 <= j; i1++)
    if(i1 > 0)
    try
    if(s != null && j > 1 && CT_NUM_MINUS_ONE.equals(oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("GroupOiplId")))
    as1[i1] = s;
    else
    as1[i1] = (String)oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("Name");
    catch(Exception exception)
    datatextnode = null;
    as1[i1] = "";
    if(k < 0 && j > 1 && "XXHideXXTotalXX".equals(s) && CT_NUM_MINUS_ONE.equals(oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("GroupOiplId")))
    k = i1;
    for(int j1 = 0; j1 < i; j1++)
    if(i1 == 0)
    acrosstabledata[j1].getData()[i1] = new CrossTableCellData(as[j1][2]);
    else
    acrosstabledata[j1].getData()[i1] = new CrossTableCellData(null, as[j1][2], oaviewobject, i1 - 1, as[j1][0], as[j1][1], as[j1][3], as[j1][4], as[j1][5], as[j1][6]);
    TableBean tablebean = new TableBean("CrossTable", new ArrayDataSet(acrosstabledata), null, null, datatextnode, new ArrayDataSet(as1, "text"));
    tablebean.setWidth("100%");
    tablebean.setSummary(" ");
    tablebean.setNameTransformed(false);
    tablebean.setTableFormat(new DictionaryData("tableBanding", "rowBanding"));
    tablebean.setID((new StringBuilder()).append("CrossTable").append(oawebbean.getID()).toString());
    oawebbean.setAttributeValue("CrossTableId", tablebean.getID());
    DictionaryData adictionarydata[] = new DictionaryData[j + 1];
    Object obj = null;
    Object obj1 = null;
    for(int k1 = 0; k1 <= j; k1++)
    OAWebBean oawebbean1 = createColumn(k1);
    if(k1 == k)
    oawebbean1.setRendered(false);
    tablebean.addIndexedChild(oawebbean1);
    if(k1 == 0)
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "textFormat");
    continue;
    try
    String s1 = (String)oaviewobject.getRowAtRangeIndex(k1 - 1).getAttribute("TextFormat");
    if("Y".equalsIgnoreCase(s1))
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "textFormat");
    else
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "numberFormat");
    catch(Exception exception1)
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "numberFormat");
    tablebean.setColumnFormats(new ArrayDataSet(adictionarydata));
    return tablebean;
    private static OAWebBean createColumn(int i)
    OAFlowLayoutBean oaflowlayoutbean = new OAFlowLayoutBean();
    OAMessageTextInputBean oamessagetextinputbean = new OAMessageTextInputBean();
    OAMessageStyledTextBean oamessagestyledtextbean = new OAMessageStyledTextBean();
    OAMessageDateFieldBean oamessagedatefieldbean = new OAMessageDateFieldBean();
    OASwitcherBean oaswitcherbean = new OASwitcherBean();
    Hashtable hashtable = new Hashtable();
    hashtable.put("CtPPRTrgCol", new DataBoundValue(new CrossTableColumnData(i, "Name")));
    oaswitcherbean.setNamedChild("input", oamessagetextinputbean);
    oaswitcherbean.setNamedChild("date", oamessagedatefieldbean);
    oaswitcherbean.setChildNameBinding(new CrossTableColumnData(i, "Render"));
    oaflowlayoutbean.addIndexedChild(oaswitcherbean);
    oaflowlayoutbean.addIndexedChild(oamessagestyledtextbean);
    oamessagetextinputbean.setNameBinding(new CrossTableColumnData(i, "Name"));
    oamessagetextinputbean.setTextBinding(new CrossTableColumnData(i, "Text1"));
    oamessagetextinputbean.setAttributeValue(DESCRIPTION, new DataBoundValue(new CrossTableColumnData(i, "Label")));
    oamessagetextinputbean.setAttributeValue(COLUMNS_ATTR, "12");
    oamessagetextinputbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, OAWebBeanUtils.getFirePartialActionForSubmit(oamessagetextinputbean, null, "update", hashtable, null));
    oamessagetextinputbean.setDataType("NUMBER");
    oamessagetextinputbean.setAttributeValue(READ_ONLY_ATTR, new DataBoundValue(new CrossTableColumnData(i, "ReadOnly")));
    oamessagetextinputbean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, new DataBoundValue(new CrossTableColumnData(i, "SubmitValidator")));
    oamessagedatefieldbean.setNameBinding(new CrossTableColumnData(i, "Name"));
    oamessagedatefieldbean.setTextBinding(new CrossTableColumnData(i, "Text1"));
    oamessagedatefieldbean.setValueBinding(new CrossTableColumnData(i, "Text1"));
    oamessagedatefieldbean.setAttributeValue(DESCRIPTION, new DataBoundValue(new CrossTableColumnData(i, "Label")));
    oamessagedatefieldbean.setAttributeValue(COLUMNS_ATTR, "12");
    oamessagedatefieldbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, OAWebBeanUtils.getFirePartialActionForSubmit(oamessagedatefieldbean, null, "update", hashtable, null));
    oamessagedatefieldbean.setDataType("DATE");
    oamessagedatefieldbean.setAttributeValue(READ_ONLY_ATTR, new DataBoundValue(new CrossTableColumnData(i, "ReadOnly")));
    oamessagestyledtextbean.setTextBinding(new CrossTableColumnData(i, "Text2"));
    return oaflowlayoutbean;
    Pls let me know for any clarifications.
    Thanks,
    Srikanth

  • Financial Reporting making of Dynamic Reports v 11.1.1.2

    Hi,
    I have recently going through designing of a dynamic report in Financial Reporting which consists of financial representation as follows:
    There are some data which is there in the Schedules of accounts.
    Now the user wants to a make a drill down of all the account codes there in the schedule like
    schedule 13 other income.
    All the account codes in Schedule should bw drill down which I am able to make.
    Now for each account codes they want a sorting in descending order to find out which entity is contributing to how much revenue for the oraganistion or
    similarly for the cost which are in other schedules like 14,15,16 tc.
    After that they want a insertion of cell text function for each cell having a combination of account codes and entity which is having a adverse variance and analsis
    for the same.
    If someone can throw a light on this about how to do this.

    I think you have already posted this problem on another post, I said it is possible it could be a ports issue.
    Have a look at the following http://www.oracle.com/technetwork/middleware/bi-foundation/epm-component-communications-11121-354680.xls
    Select FR studio as the client and it should give indication to the ports that need to be opened.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Making a Dynamic Listview

    hi,
    i want to to make a listview in which if the selected item is clicked upon,the text showed there should change.
    for eg.
    if selected item is currently "on",when clicked upon,the text displayed should be "off "..
    can this be done?

    Well, my answer was half joke (on the way the question was asked) and half a way to gain time to make a simple example code... :-)
    But perhaps I wrote too fast, as I don't see a simple way to tell the list view that one of its displayed elements has changed and it should recompute its displayed part... At least in good old simple 1.2 way.
    class ListViewItem
        var selected: Boolean = false;
        var value: String;
        // To get the item to display
        override function toString(): String { "{if (selected) "#" else "-"} {value}"; }
    var listStuff: ListView = ListView
        layoutX: 50, layoutY: 50
        layoutInfo: LayoutInfo { height: 300, width: 200 }
        items: for (i in [ 1 .. 200 ]) ListViewItem { value: "Item {%03d i}" };
    var selectedItemWatcher: Object = bind listStuff.selectedItem on replace
        def siw = selectedItemWatcher as ListViewItem;
        siw.selected = not siw.selected;
    var scene: Scene;
    Stage
        title: "Forum Test"
        scene: scene = Scene
            width: 500
            height: 500
            fill: Color.ORANGE
            content:
                listStuff
    }Ah, actually the code above works in 1.2.1! (except that, as expected by experience, layout info of width and height are ignored because the list view isn't in a layout).
    In 1.3, the display isn't updated in real time, but if you scroll up then down to hide then reshow the item, it is updated (as the cells are dynamically re-created when displayed). And layout info is respected.
    So, you have a solution if you still work in 1.2. :-)
    I will continue and make a cell factory, as I started to do (before trying to old 1.2 way...), I see it has an onUpdate method which is promising.

  • Making a Dynamic Page into a portlet

    I made a dynamic page with bind variables using the Oracle Portal tools under the build Applications link. I was able to expose that page as a portlet. To set the bind variables, I would have to hit customize and enter the variables on a different screen. Do you know of a way to make that customize screen into a portlet?

    You can create an HTML portlet with all the fields in that portlet. On the submit on this portlet, you can call your dynamic page (by passing the values entered in the HTML portlet).
    Hope this helps.
    Regards,
    Jatinder

  • Making a Dynamic, Query-able  .swf

    Hello,
    I'll direct your attention to ID software's homepage,
    http://idsoftware.com. You can
    see by looking at the source that each blog entry headline is a
    reference to an .swf file with a query. For example:
    http://www.idsoftware.com/ie-header.swf?prefix=A&date=Jun.+23%2C+2006+-+&title=Jun.+23%2C+ 2006+-+QuakeCon+2006+Announcement
    I can change that query to anything that suits. For example:
    http://www.idsoftware.com/ie-header.swf?prefix=A&date=Jun.+23%2C+2006+-+&title=Jun.+23%2C+ 2006+-+My+Custom+headline
    My question is, how can I create such an .swf file using
    Flash Professional?
    Regards,
    Peter Geoghegan

    You use GetURL variables on the url string - short tutorial
    found here:
    http://www.polar-lights.com/fla/url.html

  • Making a dynamic report by jasperDesign

    hi all
    i success to bulid a report in jasperDesign , but my problem is that i give the textfield x and y position in a band, every thing is fine but my band is limited by height and it can't hold all of the textfield.
    so if i give the band more height it exceeded the page limit and i get the error:
    (The detail section, the page and column headers and footers and the margins do not fit the page height.)
    so what i can do , please help me...

    You use GetURL variables on the url string - short tutorial
    found here:
    http://www.polar-lights.com/fla/url.html

  • Making Flash Dynamic Playlist in Dreamweaver

    Hi, got overly ambitious late last night and tried to make a
    video playlist based on Lisa Larson Kelley's tutorial
    http://www.adobe.com/devnet/flash/articles/video_playlist.html.
    I managed to get the tile list set up and functioning, but, the
    video player doesn't seem to "see" the video files, just the
    thumbnails in the tile list. The URL for the test page is at
    http://www.vegascanine.com/VideoPlaylist.html.
    I've been comparing my files to her tutorial files and I wonder if
    there's something absurdly simple that I'm missing due to lack of
    sleep! I would appreciate any feedback. Thanks so much!

    HTML cannot add a link to a Flash object. You would need to
    do that in the
    Flash Actionscript.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "tves" <[email protected]> wrote in message
    news:fno0eq$p6j$[email protected]..
    > How do I do this?
    >
    > I basically want an end user to be able to click on the
    flash I made and
    > take them to a new URL/page.

  • Dynamic Scrolling of MovieClip

    Hi everyone,
    I have an application in which i am making a dynamic photo
    gallery. I have made a scroller movieClip "thumbs_mc". Now i want
    to make it scroll. for that i created 2 movieClips ,left and right.
    and wrote some code. but its not working.
    1st depth is the main picture's movieClip's depth, 2nd depth
    is thumbs_mc, 3rd is mask movieClip. 4th and 5th are for left and
    right. Also, I am creating movieClips within Thumbs_mc for holding
    thumbnails.
    and two buttons leftScroll and rightScroll.
    can anyone tell me, why is it not working?, how should i
    modify it..
    waiting for someone to throw some good light on this peice..
    Thanks

    here are my files, Please have a look at them..I want to make
    the thumbnail movieclip scrolling...
    [deleted]
    I want to make the thumbnail movieclip scrolling...
    Thanks alot

  • Dynamic Image Gallery Issue

    Hello All!
    I am creating a dynamic image gallery, but when my external
    images load in the empty movie clip, all the images are loading in
    the same size/dimension. Does anyone know how I can command the MC
    to load the images in different sizes, another words - to load them
    according to its own size?
    here's the AS
    onClipEvent (load)
    function imageMove()
    var _loc1 = this;
    for (i = 1; i <= num_of_image; i++)
    mc = _loc1["image" + i];
    if (i < hit)
    tempx = small * (i - 1) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else if (i > hit)
    tempx = big + small * (i - 2) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else
    tempx = small * (i - 1) + 150; //distance of how far out the
    displayed image jumps.
    temps = big - 5; //distance between the displayed image and
    thumbnails.
    mc.swapDepths(1000);
    display = txt
    mc.useHandCursor = false;
    } // end else if
    mc._x = mc._x + (tempx - mc._x) / 3; //number of pixals on
    x-axis the displayed image moves over to right side before growing
    big.
    mc._width = mc._width + (temps - mc._width) / 3; //number of
    pixals on x-axis the displayed image moves over to left side before
    growing big.
    mc._height = mc._width * 4 / 3;
    if (Math.abs(mc._width - temps) <= 1)
    title._x = hit < 5 ? (_loc1["image" + hit]._x + big / 2) :
    (_loc1["image" + hit]._x - big / 2 - 100);
    title._y = 100;
    } // end if
    } // end of for
    } // End of the function
    function loopHye()
    if (hit != num_of_image)
    ++_global.hit;
    else
    _global.hit = 1;
    } // end else if
    } // End of the function
    getURL("FSCommand:allowscale", false);
    big = 300;
    //Large image width (400 works best for my portfolio site)
    small = 60;//Small image width (40 works well for my
    portfolio site)
    num_of_image = 8;//Total number of images
    timeGap = none;//Speed (speed of gaptime when each image is
    displayed automatically. "2000" is default of this original file.
    larger the number the slower the image changes. (type in "none"
    will stop automatic images from changing.
    _global.hit = 0;//First displyed image number (type "0" to
    stop images from growing out)
    txt = [" ", "image1", "image2", "image3", "image4", "image5",
    "image6", "image7", "image8"];//insert text of each images between
    for (i = 1; i <= num_of_image; i++)
    attachMovie("image", "image" + i, i);
    loadMovie("image/" + i + ".jpg", this["image" +
    i].tar);//image folder path
    mc = this["image" + i];
    mc._x = small * (i - 1) + 30;
    mc._y = 200; //where on the axis should the displays be.
    mc._width = small - 5;
    mc._height = mc._width * 4 / 3;
    this["image" + i].onRelease = function ()
    clearInterval(interval);
    _global.hit = this._name.substr(5);
    interval = setInterval(loopHye, timeGap);
    } // end of for
    interval = setInterval(loopHye, timeGap);
    onClipEvent (enterFrame)
    imageMove();
    check out the file
    http://www.wendiland.com/Gallery122b.fla
    this is what the current gallery looks like
    http://www.wendiland.com/print2.html
    I'd appreciated if someone replies with any sort of
    suggestions! thanks in advance!!!
    - W£NDI

    if you google with "dynamic image gallery", you'll find a lot
    of
    tutorials & examples including pre-programmed solutions
    if you prefer to do it yourself, you need to deal with
    dynamic sites. DW
    help chapters Preparing to Build Dynamic Sites, Making Pages
    Dynamic &
    Developing Applications Rapidly can also help to understand
    in fact you don't need a database, the images can be read
    from the
    folder they're stored. that way to update a gallery you only
    need to
    remove/replace/add images. one folder for each gallery
    and the application development forum is best suited for your
    question
    BTW, some nice photos in your page
    hth,
    jdoe
    uvi wrote:
    > I'm trying to create a dynamic image gallery that is
    updated from a database, i
    > managed to create a simple mysql database
    > using phpmy admin, so I could update my image gallery
    more often, I saw
    > something that I like but I have no idea how to create
    it here is the example:
    >
    http://flight001.com/store/trip.htm?itemid=307&sid=201&page=2
    > I didnt manage to create this with dynamic table from
    within dreamweaver 8,
    > maybe I just don't know how,
    > this is the link to a gallery on my website:
    >
    http://www.yuvallavy.com/work/scenic/scenic.htm.
    I need all the help I can get
    > I'm using dreamweaver 8 on a Mac and using PHP/MySql
    server model.
    >

  • Dynamic Text Editor

    I am making a dynamic text editor.
    Some of the fonts do not embed well? I have imported the
    fonts, put a linkage name, assigned data to the label.
    Some of the fonts change, but not on the server?
    I am using the setTextFormat?
    Does anyone have any ideas? It would be greatly appreciated,
    Emma

    Hello I am wondering if you can help me. I am sorry I have no
    answer for your problem.
    I am looking to also create a custom text editor in flash but
    I have no idea on how to do that. Would you happen to have a
    tutorial or can direct me to one on the web that I can learn how to
    create such a thing?
    I am looking for tutorials on this subject for both AS2 AND
    AS3 based text editor creation.
    Thank you.

  • Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?

    I just got a pair of new 3TB disks that I wanted to put on my Windows 2003 server enterprise x64 system, SP2, all updates installed.
    When I first tried to convert to dynamic, I got the error "The operation did not complete" as described in this KB article
    http://support.microsoft.com/kb/826823
    It says there is a patch, but there is not one for x64, just x86 and ia64
    I found another technet discussion here:  https://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/cb62238c-b3d0-4989-b45a-ae6de6701a7b?stoAI=10
    However its best suggestion is to use a product from AOMIE, but I tried that and it didn't even recognize the disk.  It also suggests that one needs a better version of diskpart.exe and to try to the 32 bit version.  Anyone have any experience
    with that?
    I also tried creating moving the disk to Windows 7 x64, making it dynamic there, but when I move the disk back to 2K3 it does not recognize it, and goes back to a 2TB partition.  I also saw something about needing a 512 block size for 2K3, but W7 does
    not allow anything smaller than 1K.

    Hi,
    During my research, if found the following artcle which also mentioned a 3TB disk should be supported in Windows 2003 SP1:
    Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?
    http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/a720ae72-0c04-44dd-94c0-2e6aecce530e
    So I contact the author about this issue. He said it could be caused if your hard disk is a 512e drive as the 3TB drives on the market today are normally 512e drives.
    However manufacturers stopping identifying this, and if the controller is old, FSUtil will not able to identify a 512 drive but recognized it as a normal 512n drive.
    Thus please provide the drive model so we could search on manufacturer's website for exact information.
    Also please paste the screenshot in your reply which Satish mentioned if available.
    In addition, here is an article Robert provided:
    http://www.windowsitpro.com/article/what-would-microsoft-support-do/support-advanced-format-hard-drives-141584

  • Dynamic Webservices Client

    Hey ,
    I have an application which requires to talk to 2 different published webservices
    from 2 different systems. Now instead od designing static webservice clients for
    each of these systems(which would involve having separate proxy jars etc),
    I am planning to design a dynamic webservice locator and invoker....
    I know that we can have webservice clients which are dynamic to the extent that
    we can create proxy objects at runtime once we know the endpoint WSDL..
    eg:
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName =new QName targetNamespace,"net.xmethods.services.stockquote.StockQuoteService");
    QName portName = new QName(targetNamespace,"net.xmethods.services.stockquote.StockQuotePort");
    QName operationName = new QName("urn:xmethods-delayed-quotes","getQuote");
    URL wsdlLocation = new URL("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call Call call = service.createCall(portName, operationName);
    My question on this...if I have a dynamic approach like the above what are the
    pros and cons..I guess it would surely have more overhead compared to a static
    client...?
    Secondly ,is it even feasible to design a dynamic client in such a way that the
    endpoint WSDL could also be an unknown and my generic client would also locate
    the end-point dynamically and then invoke dynamic calls as above...
    If anybody can share their insights on a dynamic webservice client , I would really
    appreciate it...
    Thanx,
    Krish
    KRISH.VENKATARAMAN
    Senior Technology Analyst
    Bank of America Corp.
    Email:[email protected]

    Hi Krish,
    In WSDL, the data types passed between applications are described in schema
    and
    this is key for interop. I dont know of any standard/natural mapping for
    values types,
    object reference, etc in a binary protocol (like JRMP, IIOP) to schema. For
    eg:
    say there is serializable object Foo, which is the argument to a remote
    method in RMI.
    Object Foo can have data + behavior. It may be possible (not always, i
    think) to
    describe the data in Foo as schema, but how can one describe the behavior?
    So, if WSDL is the only contract between the server and client (key
    requirement
    for interop), then IMHO RMI can not be described by WSDL.
    Also, WSDL was designed for future extensions and does not map well to a
    programming API. WSIF trys to expose all the gory WSDL details and its apis
    are very clumsy.
    These were the two main reason to vote it down at JAX-RPC EC.
    I am attaching an example that shows, how to introspect WSDL and invoke
    a method using JAX-RPC (with little extension to the std api). Also, it
    shows
    how to handle complex type without data binding. Will this solve your
    problem?
    I am very interested to get your feedback on this.
    BTW, This example will only work with WLS 8.1.
    regards,
    -manoj
    "Krish Venkataraman" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Mike...thanx for the inputs...
    As per ur suggestion...I have taken this offline and mailed u [email protected]
    also....lemme know if thatz cool...
    there are my observations..lemme know what am i missing..
    1) The main difference I see between JAX-RPC and WSIF, is that with WSIFclient
    it is easier to port to services talking
    via other ports like RMI,IIOP etc...where as JAX-RPC is understandsonly SOAP(atleast
    for now).
    2) Lets assume for the time-being that I would be interested only to talkto services
    talking SOAP.
    Then why do I need WSIF ?
    3) I can have a JX-RPC client , I can have a similar generic(reflection)code
    for built-in/primitive datatypes and for
    complex datatypes I anywayz would be doing the same thing(requiringthe java
    representation of the datatype unless I use
    something like JROM or something which I do not want to) in JAX-RPC orWSIF.
    >
    4) As far as syncronous or asyncronous invocation is concerned , myunderstanding
    is that my client call is going to remain the
    same ..the service provider is going to either use message-oriented orRPC
    on his side...
    Again assuming that I am interested only with services talking SOAP, thiscould
    be my generic client invocation design
    Background is that my client is going to run from within a WLS70sp1
    Actors:
    a) webSevice1ClientSessionBean : This will be a stateless session beanwhich might
    have knowledge about webSevice1's end-point ,
    complex dataTypes if any.
    (There would be other session beans like this which would haveknowledge about
    other specific webservice)
    b) GenericWebServiceInvoker : This will have knowledge about everythingwithin
    the webservice-standards/protocols.
    eg:
    //set weblogic ServiceFactory
    System.setProperty( "javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl" );
    //create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    //define qnames
    String targetNamespace = "http://soapinterop.org/";
    QName serviceName = new QName( targetNamespace, "SimpleTest" );
    QName portName = new QName( targetNamespace, "SimpleTestSoap" );
    QName operationName = new QName( "http://soapinterop.org/",
    "echoStruct" );
    //create service
    Service service = factory.createService( serviceName );
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(
    SOAPConstants.URI_NS_SOAP_ENCODING );
    mapping.register( SOAPElement.class,
    new QName( "http://soapinterop.org/xsd", "SOAPStruct" ),
    new SOAPElementCodec(),
    new SOAPElementCodec() );
    //create call
    Call call = service.createCall();
    //set port and operation name
    call.setPortTypeName( portName );
    call.setOperationName( operationName );
    call.addParameter( "inputStruct",
    new QName( "http://soapinterop.org/xsd", "SOAPStruct" ),
    ParameterMode.IN);
    All parameter values specific to a particular webservice likeQName,targetNameSpace
    etc will be sent to this invoker by
    webSevice1ClientSessionBean. The GenericWebServiceInvoker will invokethe
    service
    (using reflection for primitive/builtin types) and alwayz accept anobject
    from the service operation and just return
    that "object" back the webSevice1ClientSessionBean.ThewebSevice1ClientSessionBean
    will know how to interpret the
    complexdataType or builtInDatatype whichever is returned.TheGenericWebServiceInvoker
    will not have any application
    specific knowledge...it will just have knowledge about how todiscover, invoke
    any SOAP webservice...
    Somewhere in the beginning of GenericWebServiceInvoker I will use JAXRto
    discover services from UDDI if needed.
    This way I will have a generic webservice client invocation frameworkwhich
    can invoke any service which talks SOAP.
    Now lemme know how the above picture looks and what is missing...
    I have some questions :
    1) Incase of complex dataTypes, I will have itz XML representation inthe
    publisher's WSDL and the publisher will give
    me the java representation of the complex dataType.But how does myclient
    JAX-RPC know how to map the XML
    to the java representation unless I specify the mapping somewhere?Does
    the TypeMapping/TypeMappingRegistry do this ?
    Thanx,
    Krish
    "Michael Wooten" <[email protected]> wrote:
    You know, it's really cool to hear guys thinking things through, before
    they "jump
    on a bandwagon" :-)
    Anyway, I suspect that the performance overhead of doing reflection,
    and heavy
    server-side code intrusion, is what has made a lot of developers balk
    at using
    WSIF. I would check out the IBM newsgroups, to see what the general
    developer
    sentiment is on WSIF.
    To achieve any sort of decent performance with JAX-RPC based webservices,
    you
    need to do a fair amount of optimization/tuning on both the client and
    server
    side. I recommend setting up your own "lab environment" for doing these,
    so you
    can see exactly what's making things improve/degrade. If you are really
    interested
    in this topic, we should talk about it "off-line".
    In general, the more "dynamic" things are on the client side, the slower
    things
    will be, the more you really need to question if you really need them
    to be dynamic
    :-) Does making it "dynamic" really offer something that you can't get
    from a
    "static" version? If not, who's really benefiting here. I mean, com'n.
    All you
    really want to do is invoke an operation, right? By the time you get
    all the information
    it takes to do a dynamic invocation (i.e. port, target namespace, data
    type for
    input argument, serializer/deserializer for each non-built-in data type,
    etc.),
    your client looks like you are trying to boot a PDP-11! LOL! For those
    of you
    who don't know what a PDP-11 is, it's an early computer (from the'60-'70),
    that
    you actually had to use switches to create the "binary instructions"
    to boot it
    up!
    From a PM's (product manager's) perpective, I wouldn't even let thedevelopers
    modify "working" EJBs to expose them as a web service. Alarm bells should
    go off
    in your head, if you have to modify existing server-side code to expose
    a company
    asset as a web service.
    Response to OT comment: WebLogic Server 7.0 uses its own implementation
    of JAX-RPC
    1.0. This implementation, I've been told by one of the BEA engineering
    that worked
    on it, has been certified to be JAX-RPC compliant by Sun. Don't know
    about Apache
    Axis, in this regard. I use both Apache Axis and the JWSDP with WLS 6.1,
    but I
    haven't really spent a lot of time looking for differences between our
    (BEA's)
    implementation, and theirs.
    Regards,
    Mike Wooten
    "Krish Venkataraman" <[email protected]> wrote:
    Hey Mike ...
    I hear ya..and I see the significance of WSIF...but that IBM started
    it a year
    back and itz not yet stabilized is what is holding me back...
    U mite have a better hold of what WSIF can do...whatever I could grasp
    from yesterday
    is this...
    a)It reads meta data from the wsdl and using a reflection mechanismcalls
    the
    service operations...
    I see examples with primitive datatypes..but what happens when
    complex/custom
    datatypes come into play...
    Would the client code differ between synchronous invocation toasynchronous
    invocation...
    And aleast in the samples for the WSIF distribution for connectors like
    EJB/JMS
    etc, the code does not look generic anymore..there are specific calls
    to operations
    and parameters...
    Also Mike , what is the trade-off on performance between having adynamic
    client(lets
    say based on WSIF)or having a static client...the extent of reflection
    a dynamic
    client will have to do and create SAAJ objects at runtime will beenormous..
    Also I know that there is a relevant API...but can u give an examleshowing
    me
    how I could discover services from UDDI ..?
    Out of this current topic...does BEA use itz own implementation of SOAP
    in itz
    webservice implementation...and how does it compare with AXIS ?
    Thanx,
    Krish
    "Michael Wooten" <[email protected]> wrote:
    Hi Krish,
    Well, I guess that's how things are when "needed functionality exceeds
    the current
    state of a technology" :-)
    I (not necessarily BEA) look at it like way:
    1. IBM co-authored the "Big 3" XML grammars for the current web
    services
    stack.
    2. IBM always appears to be "there, somewhere" in the new crop ofproposed
    additional
    XML grammars for "partially agreed upon extension layers", for theweb
    services
    stack.
    3. IBM donated it's original SOAP implementation to the open-sourcecommunity.
    4. IBM came up with WSIF over a year ago.
    5. IBM's WSTK uses the Apache Axis stuff.
    6. A lot of the JAX-RPC/JAXM API is based on the Apache SOAP and Apache
    Axis implementations.
    7. It looks like IBM may have donated WSIF to Axis.
    8. You appear to need something like WSIF :-)
    So, there's probably at least a 60/40 chance that some WSIF-like thing
    will make
    it into the JWSDP, right? If you want "higher odds", you should talk
    to the folks
    working on the JWSDP, as they are somewhat "in charge" here :-)
    Regards,
    Mike Wooten
    "Krish Venkataraman" <[email protected]> wrote:
    Yes...I am surely lookin at something similar...but that framework
    not
    being standardized
    scares me as I have seen many good ideas not seeing the light of the
    day...and
    I do not want to design something using a framework which might remain
    un-standardized..
    what are ur thots..
    Thanx,
    Krish
    "Michael Wooten" <[email protected]> wrote:
    Hi Krish,
    It sounds like you want WSIF :-)
    "WSIF allows stubless or completely dynamic invocation of a Web
    service,
    >>>>>>
    based upon examination of the meta-data about the service at runtime.
    It
    also allows updated implementations of a binding to be plugged intoWSIF
    at
    runtime, and it allows the calling service to defer choosing a
    binding
    until
    runtime."
    Correct?
    This is a relatively new "unofficial" addition to the Web ServicesStack,
    so it
    is not in WLS 7.0 (or Sun's JWSDP) yet. See the following link formore
    details:
    http://xml.apache.org/axis/wsif
    Regards,
    Mike Wooten
    "Krish Venkataraman" <[email protected]> wrote:
    Hey ,
    I have an application which requires to talk to 2 different
    published
    webservices
    from 2 different systems. Now instead od designing static webservice
    clients for
    each of these systems(which would involve having separate proxyjars
    etc),
    I am planning to design a dynamic webservice locator and invoker....
    I know that we can have webservice clients which are dynamic tothe
    extent
    that
    we can create proxy objects at runtime once we know the endpoint
    WSDL..
    eg:
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName =new QName
    targetNamespace,"net.xmethods.services.stockquote.StockQuoteService");
    >>>>>>>
    QName portName = newQName(targetNamespace,"net.xmethods.services.stockquote.StockQuotePort");
    >>>>>>>
    QName operationName = newQName("urn:xmethods-delayed-quotes","getQuote");
    >>>>>>>
    URL wsdlLocation = newURL("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
    >>>>>>>
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call Call call = service.createCall(portName,
    operationName);
    >>>>>>>
    >>>>>>>
    My question on this...if I have a dynamic approach like the abovewhat
    are the
    pros and cons..I guess it would surely have more overhead comparedto
    a static
    client...?
    Secondly ,is it even feasible to design a dynamic client in such
    a
    way
    that the
    endpoint WSDL could also be an unknown and my generic client wouldalso
    locate
    the end-point dynamically and then invoke dynamic calls as above...
    If anybody can share their insights on a dynamic webservice client
    I would really
    appreciate it...
    Thanx,
    Krish
    KRISH.VENKATARAMAN
    Senior Technology Analyst
    Bank of America Corp.
    Email:[email protected]
    [BrowserClient.java]
    [DynamicClient.java]

  • Dynamic  -  JSF

    Hi
    I'm trying to make a JSF dynamic page with a DataTable
    I'm trying to simplify data access activities to dynamic pages implementing this type of architecture :
    http://www.jsfcentral.com/articles/dynamic_jsf-2.html
    I have found a great tutorial with this architecture approach in Oracle site :
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html
    But I can't make it work, I don't know how to integrate this with a Managed Bean for UI actions
    I mean
    imagine a inputbox where I enter some text, and a button that will populate dynamically a DataTable making a query to my Model architecture
    Can someone help me, or give me some tutorial ?
    Thank you very much for any help

    Well...finally...I was able to make it work
    following the tutorial I said in the above post :
    http://www.oracle.com/technology/oramag/oracle/06-jan/o16jsf.html
    I was able to generate a static datatable, but I can't do the "Part 2: Creating a Data Table, Using the JSF API"
    I'm interested in making a dynamic query, the problem is with commandButton_action method - Code Listing 6
    I get a lot of errors :
    Type or variable 'column1' not found
    Type or variable 'column2' not found
    Type or variable 'column3' not found
    Type or variable 'column4' not found
    Type or variable 'column5' not found
    Type or variable 'column6' not found
    I included this declaration lines :
    UIColumn column1 = new UIColumn();
    UIColumn column2 = new UIColumn();
    UIColumn column3 = new UIColumn();
    UIColumn column4 = new UIColumn();
    UIColumn column5 = new UIColumn();
    UIColumn column6 = new UIColumn();
    And made a new import statement
    import javax.faces.component.UIColumn;
    but I can't populate my dataTable...the result is just like a very small "icon" empty datatable, I tried to change the dataTable width but without success
    What's wrong ?

Maybe you are looking for