[CS2][JS] Search text & replace with inline Image

I am working with a large layout with many entries. There is a text "placeholder" that I need to search for and replace with an inline image in that exact spot.
I need to apply an Object Style to that image.
There is a loop above this for each find/replace to perfom
I have supplied samples to show what the variables will hold
The following assumes that an Objectstyle named "image" exists
//places the image
app.changePreferences = null;
findName = "OR-00014500-24-0000-1";
fileName = "Ads:OR-00014500-24-0000-1:OR-00014500-24-0000-1.eps"
myFinds = app.search(findName)
for (j = myFinds.length - 1; j >= 0; j--) {
app.select(myFinds[j]);
app.place(fileName, false,{appliedObjectStyle:"image"});
This doesn't apply the style to the placed object and I have tried many different ways to apply this in the properties.
Any help would be appreciated.

I've seem to hit another hurdle....
The code works well for searching and replacing the images. It applies the style to the image, but these images are not inline they are anchored. I ended up with a nice stack of images in the same corner.
Ok... I need to then apply styles based on the images that have been placed already..
This works well for cycling through the pages and with a bit more will change the style...
myDoc = app.activeDocument;
pagecount = myDoc.pages.length;
for ( page=0; page < pagecount; page++){
if (myDoc.pages.item(page).textFrames.length != 0){
app.select(myDoc.pages.item(page).textFrames.item(0));
piccount = app.selection[0].rectangles.length;
if (piccount != 0){
for ( bob=0; bob < piccount; bob++){
app.select(myDoc.pages.item(page).textFrames.item(0));
app.select(app.selection[0].rectangles.item(bob));
// Get geometric bounds
// alert(app.selection[0].geometricBounds);
// Get object Style
// alert(app.selection[0].appliedObjectStyle.name);
// Do more here....
I can't use this though :(
I need to determine how many images have already been placed on the page before placing the image in the search and replace....
myFinds = app.search(replaceName)
for (j = myFinds.length - 1; j >= 0; j--) {
app.select(myFinds[j]);
myStory = myFinds[j].parent;
myIndex = myFinds[j].index;
//This will change using a series of Case Switches
// Here is where I need to find the page and run the previous script or something like it myStyle = app.activeDocument.objectStyles.item("image");
app.place(fileName, false);
myStory.characters[myIndex].pageItems[0].applyObjectStyle(myStyle);
app.select(myStory.characters[myIndex].pageItems[0]);
//alert(app.selection[0].appliedObjectStyle.name);
What I need to do is kind of combine the two....
But I can't seem to get the current page of the selected image....
I could use the page by page script, but it moves the character anchor point of images and pushes them to the next page. This throws off the pretty layout I'm going for.
What am I doing wrong here ?

Similar Messages

  • Search and replace with wildcard?

    I always use search and replace with Homesite but I wonder if
    there is a way of using a wildcard? I often want to replace text at
    the beginning and end of variable text. I mean, if I have this:
    <h3>First text</h3>
    <h3>Second text here</h3>
    What I'd like is, using the * as a wildcard, is to use
    something like this:
    Replace <h3>*</h3> with <h2>*</h2>
    Any ideas? Thanks

    Make a backup first, in case this doesn't work (although it should).
    Use this in the Find field:
    countryText = "([^"]*)";
    And this in the Replace field:
    <countryText>$1</countryText>

  • [CS2][JS] How to scale all inline images to 70%

    To all the script gurus out there. can you help me make a script that scale all inline images to 70%? 'coz we got this client and they supply us with lots of eps files then the instruction would be to reduce the size of all images without touching the original ones. it takes time to process all of them in indesign manually.
    help please.

    Thank you so much guys. I'll try it later. Although I have one more problem. I got this LabelGraphics script from Indesignsecret.com modified for CS2 (originally from CS3), and it works fine for displayed figures but for inline it only labels the figures in first page.
    here's the code:
    //LabelGraphics.jsx
    main();
    //=============================================================\\
    function main(){
    if(app.documents.length != 0){
    if(app.documents.item(0).allGraphics.length != 0){
    myDisplayDialog();
    else{
    alert("Document contains no graphics.");
    else{
    alert("Please open a document and try again.");
    //=============================================================\\
    function myDisplayDialog(){
    var myLabelWidth = 100;
    var myStyleNames = myGetParagraphStyleNames();
    var myDialog = app.dialogs.add({name:"Graphics name"});
    with(myDialog.dialogColumns.add()){
    //Label type
    with(dialogRows.add()){
    with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Label Type", minWidth:myLabelWidth});
    with(dialogColumns.add()){
    var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author","Paste from clipboard"], selectedIndex:0});
    with(dialogRows.add()){
    with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Label Offset", minWidth:myLabelWidth});
    with(dialogColumns.add()){
    var myLabelOffsetField = measurementEditboxes.add({editValue:0});
    //Style to apply
    with(dialogRows.add()){
    with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Label Style", minWidth:myLabelWidth});
    with(dialogColumns.add()){
    var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:4});
    //=============================================================\\
    var myResult = myDialog.show();
    if(myResult == true){
    var myLabelType = myLabelTypeDropdown.selectedIndex;
    var myLabelHeight = 24; // A generic label height that will be adjusted later
    myPasteFailure = false;
    var myLabelOffset = myLabelOffsetField.editValue;
    var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
    myDialog.destroy();
    var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
    var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
    app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    try{
    myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle);
    catch(e){
    alert("Unable to add lables. " + e);
    try{
    resizeOverset() ;
    catch(e){
    alert("Unable to correct overset text. " + e);
    if (myPasteFailure == true){
    alert("Unable to paste from clipboard.");
    app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
    app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
    else{
    myDialog.destroy();
    //=============================================================\\
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName){
    var myDocument = app.documents.item(0);
    myStoriesArray = new Array();
    if (app.selection.length == 0) // If nothing is selected apply caption to all graphics in the document
    var myConfirmation = confirm("Add captions to all images in the document?", false, "LabelGraphics.jsx" );
    if (myConfirmation == true)
    var myGraphics = myDocument.allGraphics;
    else
    { // If graphics are selected, just add captions to the selected items, as long as they are rectangles(image frames)
    var myConfirmation = true;
    var mySelections = app.selection;
    myGraphics = new Array();
    for(i = 0; i < mySelections.length; i++){
    if(mySelections[i] == "[object Rectangle]"){ //Check to make sure selection only includes rectangles
    myGraphics.push(mySelections[i].allGraphics[0]);
    else{
    //alert("Objects other than graphics were selected!");
    //Nothing happens if you don't select at least one graphic
    myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
    if (myConfirmation == true){
    for(var myCounter = 0; myCounter < myGraphics.length; myCounter++){
    try{
    myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myStoriesArray);
    catch(e){};
    //=============================================================\\
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myStoriesArray){
    var myLabel;
    var myLink = myGraphic.itemLink;
    var myPasteFromClipboard = false;
    //Create the label layer if it does not already exist.
    var myLabelLayer = myDocument.layers.item("Grapiks");
    try{
    myLabelLayer.name;
    catch (myError){
    myLabelLayer = myDocument.layers.add({name:"Grapiks"});
    //Label type defines the text that goes in the label.
    switch(myLabelType){
    //File name
    case 0:
    myLabel = myLink.name;
    break;
    //File path
    case 1:
    myLabel = myLink.filePath;
    break;
    //XMP description
    case 2:
    try{
    myLabel = myLink.linkXmp.description;
    catch(myError){
    myLabel = "No description available.";
    break;
    //XMP author
    case 3:
    try{
    myLabel = myLink.linkXmp.author
    catch(myError){
    myLabel = "No author available.";
    break;
    //Paste from the clipboard
    case 4:
    try{
    myPasteFromClipboard = true;
    catch(myError){
    myLabel = "No clipboard data available.";
    break;
    var myFrame = myGraphic.parent;
    myX1 = myFrame.geometricBounds[1];
    myY1 = myFrame.geometricBounds[2] + myLabelOffset;
    myX2 = myFrame.geometricBounds[3];
    myY2 = myY1 + myLabelHeight;
    if (myPasteFromClipboard ==true)
    try{
    var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2]});
    myTextFrame.insertionPoints.item(0).select();
    app.paste();
    catch(e){
    myTextFrame.remove();
    myPasteFailure = true;
    else{
    var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
    myTextFrame.paragraphs.item(0).appliedParagraphStyle = myLabelStyle;
    myFrameParentStory = myTextFrame.parentStory;
    myStoriesArray.push(myFrameParentStory);
    //=============================================================\\
    function myGetParagraphStyleNames(){
    var myStyleNames = app.documents.item(0).paragraphStyles.everyItem().name;
    return myStyleNames;
    function resizeOverset() {
    for (var j = myStoriesArray.length - 1; j >= 0; j--) {
    myLastFrame = myStoriesArray[j].texts[0].parentTextFrames[myStoriesArray[j].texts[0].parentTextFrames.l ength - 1];
    myNewY2 = myLastFrame.geometricBounds[3]; //get the width of the text frame before doing fit()
    myLastFrame.fit(FitOptions.FRAME_TO_CONTENT);
    myNewY1 = myLastFrame.geometricBounds[1];
    myNewX1 = myLastFrame.geometricBounds[2];
    myNewX2 = myLastFrame.geometricBounds[0];

  • Search and Replace with a picture

    Is it possible to search for a specific text (i.e. :-) ) and replace it with a picture (a smiley) throughout the entire document (all text areas)
    Thanks for any help!

    Ahh found it.
    in the dialog you can put in replace with: ^c
    if you copy the picture you just need to replace it and it works. pretty sweet

  • Search and replace with relative paths

    On my 4GB site, each page has a relative link to a single
    image in a top folder. I want to get rid of all the images. How do
    I search for <img src="Access/images/woCmt.gif"> and an img
    with any number of relative links such as <img
    src="../Access/images/woCmt.gif"> or <img
    src="../../Access/images/woCmt.gif"> or more ../s in the src
    path. I want a single find to replace each img tag (to that image)
    with nothing, that is delete each one. I've looked at using regular
    expression with * with no success.

    Have you tried: [\.\/]*
    That will match zero or more . or / characters (which are
    special
    Regular Expression characters, so they need to be escaped).
    HTH,
    Randy
    > On my 4GB site, each page has a relative link to a
    single image in a top
    > folder. I want to get rid of all the images. How do I
    search for <img
    > src="Access/images/woCmt.gif"> and an img with any
    number of relative links
    > such as <img src="../Access/images/woCmt.gif"> or
    <img
    > src="../../Access/images/woCmt.gif"> or more ../s in
    the src path. I want a
    > single find to replace each img tag (to that image) with
    nothing, that is
    > delete each one. I've looked at using regular expression
    with * with no success.

  • How can I make numbers align with the baseline in ordered lists with inline images?

    When I use inline images in an ordered list, the number for every line that has an inline image is offset from the baseline to align with the top of the image. Here is a screen shot from Preview mode (same behavior on real devices):
    List entries 1 and 3 are normal. Entries 2 and 4, which contain inline images, have their numbers offset above the baseline.
    I guess the line-height gets redefined based on the inline image, and then the numbers align based on line-height. Is there a way to change this within Muse so the numbers will consistently sit at the baseline even when the line includes an image? Is it something that needs to be addressed by modifying style sheets?

    Hi,
    You are correct in observing that inline objects affect line height, which in turn affects alignment of the bullet/number with the line.
    To address this, you can use negative wrap offsets on the inline (specifically top offset) using the Wrap panel: adjust the value until the inline no longer adversely affects line height.
    Hope this helps.
    Abhishek

  • Search and replace with comma

    Hello All,
    I want some help. Please help me.
    I have comma delimited Data. When I’m converting Sting to Array, If two commas exists in between then its displaying “Zero” (because its array propriety ). Instead of that I want to display “NaN” .
    Please give me any idea to replace comma to NaN. I tried with Search and Replace but it’s not giving as I expected.
    Munna
    Solved!
    Go to Solution.

    Hello GerdW,
    Thanks you so much for your reply.
    I thought, instead of replacing trailing comma by NaN adding comma before string is more better (because to many string manipulations) But, it’s taking more execution time.
    Munna
    Attachments:
    Search and Replace.vi ‏415 KB

  • Flash on site, after running, replace with clickable image

    Hi, so i dropped a flash movie i made into a website i am
    doing. it runs (still needs work cause the sound is now running at
    a different pace than the movie! and i gotta turn off the looping)
    but when it's done, it goes to blank. I need it to do this:
    onload: run movie once only, then replace flash movie (in
    same place) with clickable image to go to another page on the site.
    can anyone guide me a bit? here is the page
    http://www.kirkmanlabs.com/chrisindex2.htm
    thanks in advance.
    Holly

    On the last frame of your movie place the required still
    image (converted to a movie clip with an instance name) , together
    with a stop(); action to prevent the moving looping. On the same
    timeline frame add the actionscript to respond to a click on the
    image movie clip, something like:
    this.instanceName.onRelease = function(){
    getURL("newPage.html", "_blank");
    }

  • Working with inline images: How to get them to the edge of the page.

    I'm making an epub and unfortunatly that means inline images. The thing is i want the images to go right to the very edge of the pages and nto have like a 2cm gap from all the edges. I have tried moving the margins however thhe image still remains firmly in the center of the page. Can I change this as it is really annoying me? Thanks .

    I tried and found that you have to in Page Setup choose a paper size that is borderless. in view menu click on Show Layout. You will get a grey border on the"paper". That is the part you printer can write on. I thin this could be the problem. If you have a borderless version choose it. I don't do ePub so I can't check if this the solution for you.
    Borderless version                                                                                            Border

  • Search text programatically with axAcroPDF control

    Hello,
    i want to use the axAcroPDF control to display PDF files inside my windows forms application. That's easy just put the control there and call LoadFile method. The control has methods to change page, hide toolbar etc... but not to search text. I want to search text, if possible matching exact phrase or not. I need to do that programatically, do you know how can i do that?

    Post only once.

  • Spry Tabbed Panels - replace text tab with an image, how to?

    Hi all, I'm stumped. I've uploaded 2 files to:
    http://docs.google.com/leaf?id=0B4zgjxAaUD97MmUzZTk3NjMtMDNkYi00NDJjLWExNzctOWNjMzM0MDlmMj g0&hl=en&authkey=CMWGoeEP
    http://docs.google.com/leaf?id=0B4zgjxAaUD97YTQ1MDliNzEtZGVhZS00MmYzLTllZWMtMzJiODQwMjRlMT Bl&hl=en&authkey=CILrxq0G
    I'm working in Dreamweaver CS3, 4 tab "Spry Tabbed Panel" with 3 columns (one column is a form and submit btn). The 1st photo is a mockup of what I'm trying to accomplish. In the 2nd photo, Nokia designed a page for its Nokia Developer Summit 2010 (been pulled down since). This is the desired effect. I'm trying to replace the typical text tabs in the tabbed panel with images, or, at the very least, change the color between states ON and OFF (images the same except for bg color - green verses gray), which is probably the better way to go, given page load time.
    I need the CSS and HTML code. I'd settle for just the image problem, but if someone can give me guidance on the content boxes too, that would be AWESOME!
    REALLY hoping anyone can help (Ben, I'm an Aussie too) - been on this for a month now.
    Very grateful Adobe staffs such a great resource tool as this site with a lot of really good, courteous brainiacs.
    Thanks,
    Louis cat

    G'day Ben,
    Upgraded to Dreamweaver CS5, added Tabbed Panels 2 widget to page.
    Here's a mockup of what I'm trying to do: http://docs.google.com/leaf?id=0B4zgjxAaUD97MmUzZTk3NjMtMDNkYi00NDJjLWExNzctOWNjMzM0MDlmMj g0&hl=en&authkey=CMWGoeEP
    Questions:
    1. Want to change Spry TP tabs to images (see link, above), then make them vertical tabs, with morph effect - How?
    2. How do I change the default TabbedPanels2 instance name? (not easy to rename)
    3. The first section of the code was planted in my index page - shouldn't this be pasted into a CSS file, or just leave it alone?
    ================================================
    FIRST SECTION OF THE CODE: -------------------------------------------------------------------------------
    <style type="text/css">
    /* BeginOAWidget_Instance_2138522: #TabbedPanels2 */
    /* TabbedPanelsTabGroup */
    #TabbedPanels2 .TabbedPanelsTabGroup {
    top: 1px;
    left: 0px;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border-left: solid 0px inherit;
    border-bottom: solid 0px inherit;
    border-top: solid 0px inherit;
    border-right: solid 0px inherit;
    padding: 0px 0px 0px 0px;
    /* TabbedPanelsTab */
    #TabbedPanels2.TabbedPanels .TabbedPanelsTab,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTab {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #DDD;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #999;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    padding: 4px 10px 4px 10px;
    #TabbedPanels2.TabbedPanels .TabbedPanelsTab a,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTab a {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    /* TabbedPanelsTabHover */
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabHover,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabHover {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #EEE;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #999;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    padding: 4px 10px 4px 10px;
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabHover a,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabHover a {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    /* TabbedPanelsTabSelected */
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabSelected,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabSelected {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #EEE;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #EEE;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    padding: 4px 10px 4px 10px;
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabSelected a,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabSelected a {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    /* TabbedPanelsTabFocused */
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabFocused,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabFocused {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #EEE;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #EEE;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    padding: 4px 10px 4px 10px;
    #TabbedPanels2.TabbedPanels .TabbedPanelsTabFocused a,
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabFocused a {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    /* TabbedPanelsContentGroup */
    #TabbedPanels2 .TabbedPanelsContentGroup {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #EEE;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #CCC;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    padding: 0px 0px 0px 0px;
    /* TabbedPanelsContentVisible */
    #TabbedPanels2 .TabbedPanelsContentVisible {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border-left: solid 0px #CCC;
    border-bottom: solid 0px #CCC;
    border-top: solid 0px #999;
    border-right: solid 0px #999;
    padding: 4px 12px 4px 12px;
    #TabbedPanels2.BTabbedPanels .TabbedPanelsTab {
    border-bottom: solid 1px #999;
    border-top: solid 1px #999;
    #TabbedPanels2.BTabbedPanels .TabbedPanelsTabSelected {
    border-top: solid 1px #999;
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabGroup {
    width: 10em;
    height: 20em;
    top: 1px;
    left: 0px;
    #TabbedPanels2.VTabbedPanels .TabbedPanelsTabSelected {
    background-color: #EEE;
    border-bottom: solid 1px #EEE;
    /* EndOAWidget_Instance_2138522 */
    </style>
    ========================================================
    SECOND SECTION OF THE CODE: ----------------------------------------------------------------------------------------
      <div id="TabbedPanels2">
        <h2>Tab 1</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sapien lacus, porttitor vitae pretium eget, sodales sed libero. Maecenas non urna lacus, ac sollicitudin justo. Ut erat mi, hendrerit ac accumsan ac, congue eu dui. Pellentesque consectetur condimentum elit, et eleifend urna porta id.  </p>
        <h2>Tab 2</h2>
        <p>Nulla facilisi. Vestibulum ipsum elit, tincidunt sed tristique sit amet, faucibus in orci. Nunc sit amet elit lorem. Sed eget arcu ipsum, pharetra ullamcorper lectus. Sed ac diam ac tortor mattis mollis. Etiam mattis felis vel augue tempus in rhoncus ligula elementum. Vestibulum ut iaculis risus. Aliquam erat sem, feugiat vel laoreet in, lobortis non mauris. Vestibulum neque nibh, vehicula eleifend tincidunt sed, bibendum id dolor. </p>
        <h2>Tab 3</h2>
        <p>Suspendisse potenti. Proin ut erat sit amet turpis egestas tempor. Integer arcu dolor, aliquam ut egestas nec, pharetra ut mauris. Duis urna mi, aliquam id vulputate et, consequat in dolor. Duis congue sem feugiat nulla malesuada scelerisque. Aenean vitae augue nec diam euismod imperdiet. </p>
      </div>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2138522: #TabbedPanels2
      var TabbedPanels2 = new Spry.Widget.TabbedPanels2("TabbedPanels2", {
       injectionType: "replace",
       widgetID: "TabbedPanels2",
       autoPlay: true,
       defaultTab: 0,
       enableKeyboardNavigation: true,
       hideHeader: true,
       tabsPosition: "top",
       event:"click",
       stopOnUserAction: true,
       displayInterval: 5000,
       minDuration: 300,
       maxDuration: 500,
       stoppedMinDuration: 100,
       stoppedMaxDuration: 200,
       plugIns:[]
    // EndOAWidget_Instance_2138522
      </script>
    ===================================================
    Any help would be much appreciated, Ben. Cheers from another Aussie. Louis Cat!

  • Search text file with 2 string tokens

    I am reading a text file which contains database records. I am able to search with lastname(the user enters it in the textfield using GUI frontend). this search useus stringtokenizers. take the users input and search all the tokens and see which token matches the key and prints that record. Can someone please give me some advice to do a search using both last name and first name at the same time. In this case i will have to do a seach using 2 tokens which i dont know how to do. thanks.

    Here is the snippet of my code. Can someone please take a look at it.
    while ( (dbRecord = dis.readLine()) != null) {
    StringTokenizer st = new StringTokenizer(dbRecord, ":", false);
    Vector row = new Vector();
    String lineTemp;
    while (st.hasMoreTokens()) {
    if (st.nextToken().trim().equalsIgnoreCase(userinput)) {
    //System.out.println(dbRecord);
    StringTokenizer tempst = new StringTokenizer(dbRecord, ":", false);
    while (tempst.hasMoreTokens()){
    row.addElement(tempst.nextToken());
    dataVector.addElement(row);
    }

  • Search and replace, with pattern matching using a table

    I need to inspect a data stream and standardise a set of codes. I need to
    1. Match any patterns with a dash character and remove the dash and any following characters, eg BN-S -> BN, BN-SH -> BN, ARG-22 -> ARG, etc.
    2. Make a few specific word for word replacements, eg, PAEDSH -> PAED
    This is easy to hard code but can it be done using a table of regex substitutions? Can anyone give a pointer or link to some example code? The couple of regex replacement examples I've found use regex to locate but hard code substitutions.
    Thanks

    You could store all your patterns in a Map. Then iterate over the map inserting the patterns into a regex.

  • Issue of importing MS WORD file with inline images in 5.5 that did not exist in 5

    Briefly, all of the files I created from dropping in MS WORD files with images look exactly the same in ID 5 as they do in WORD.
    When I tried importing the same WORD files in ID 5.5, they look screwed up. For example, in WORD and CS5, the images were perfectly sized and aligned to fit the margins  Then, on exporting to various formats (eg., PDF, EPUB), the program hangs around the 85% completion mark, and I have to manually end the program. I have mixed graphic formats on the images, JPG, GIF, and PNG, if that makes any difference.
    Thanks.
    PS: This input box will not accept hard returns - only manual line breaks. Is that normal?

    I forgot to say that all of the same images in 5.5 are shown in various sizes. Resizing the frames manually, and then clicking on "Fit contents to frame," will of course, correct the problem, but it is frustrating to do.

  • Subject Text replaced with Accounting Text in Notification Creation

    Friends,
    We have created some custom notification types with some screens modification. Now when I am creating a notification and add some text in Subject tab and then add some text in accounting tab (custom tab) text then after clicking again in subject text the text of accounting tab is displayed. Why so? but when I save the notification and display the text in both tabs are displayed correct.
    Can some one let me know what is missing??

    Your comment about retrieving a previous version of the file from Time Machine reminded me of something... it may be a clue to what happened. A little history to the document: I created this file and was working on it for a while but forgot to save it. As often happens when you forget to save a file... the program crashes! But when I reopened PS, there was the rescued file... only a few recently made changes were missing. I continued to work on the project to get it back to the point before the crash (can't remember if that involved text editing). I saved it and closed the file for the day. I didn't notice any problems until  the next day when I tried to edit the text. I have a feeling this might be part of the problem.
    I will use your suggestion to see if I can retrieve a copy of the file before the program crashed. Perhaps we've stumbled upon something.

Maybe you are looking for

  • BW3.5-- BI7.0

    Hi gurus- Iam supposed to create a new DTP in BI7.0 without Disturbing the 3.5 extraction from Oracle DB. The datasource is a table/view in the Oracle. For this iam supposed to create a new Data source..in BI 7.0. While creating a Datasource for the

  • Fuba or Report for Change the OBJECT_ID in one order documents

    Hi Guru's we want to reuser the Order-ID in CRM contracts (CRMD_BUS2000121) So I search a FuBa or a report for Changing the OBJECT_Id in the one order document or is there any other possibility. we use SAPCRM 4.0 thanks Reiner

  • Internet Disconnects when I try to downloand iTunes

    I need to update my iTunes version, and when I click on download, the first box pops up asking "Run" or "Save," and before I can even click on anything, I am completely disconnected from the Internet. This seems to happen with random sites -- some I

  • Passing Streaming Content to a JCA FTP adapter in OSB

    Hi, Is there any way to pass streaming content represented by e.g.<con:binary-content ref="cid:1b6ff6d0:1416f7a74ab:-1d8a" xmlns:con="http://www.bea.com/wli/sb/context"/> to JCA FTP(business service) adapter? My binary content already represents base

  • Active Directory Group membership based on OIM Role

    In OIM 11g, is it possible to determine additional AD group membership based on role membership? If it is, could someone point me to documentation or give me a brief description of what to do in order to make this work? Thanks!