Indesign grep search on page by page using javascript

Hi,
Is it possible to grep search a word page by page instead of searching in whole document..
If it is possible, please suggest how to do this.
Thanks,
Gopal

Hi Gopal,
You can't search directly in page. Instead you can search by pages[n].textFrames[x].texts[0].findGrep().
Regards,
Ramkumar .P

Similar Messages

  • Is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    We're using SharePoint 2013 and I'm trying to modify the search results page for one site collection. By default, it uses the search results page from the parent site which is the search center being used by default for the web application. I need to make
    sure that the site collection will only retrieve search results within the site collection (search everything has to be disabled). I found a way but I had to create another search center site to accomplish this, otherwise, it will affect the search center
    site of all other site collections on the web app.
    Now is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    According to your description, you want to retrieve the search results within the site collection.
    As a workaround, you can create a custom result source for the site collection and you will retrieve the search result within the site collection.
    More information about how to create result source in SharePoint 2013, please refer to :
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Best regards

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • Controlling shockwave content (dcr) from a web page using javascript

    Hi,
    Is it possible to control shockwave content (dcr; object="application/x-director") from a web page using javascript?
    I believe this is possible using 'FSCommand' in Flash...
    I'd like to use HTML to do something like:
    - html_object[1].go(10);
    to send playback to frame 10.
    Thanks.
    Mark

    Sean,
    Thanks - this is exactly what I was looking for.
    'Shockingly' difficult ( pun intended :-)
    Someone really put in some effort on this.
    Very creative solution, putting a flash ( swf ) component in a director project and communicating indirectly through the flash element.
    Apparently, Javascript can communicate with the SWF file & the SWF file can communicate with the DCR file, but it is not possible to have Javascript communicate directly with the DCR. Too bad.
    After looking over this example I think I'll rethink my project.
    Thanks again.
    Mark

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • SharePoint 2013 implement simple logout button which do not redirect to default sign out page using JavaScript client object model

    I am using windows authentication in my web application.
    My requirement is to implement a sign out button which will sign out the user without having him to close the browser and application should not ask him to login again.
    I tried following two options:
     1. Redirecting the user to default signout.aspx page " /_layouts/15/SignOut.aspx "
     2. Using "Sign In as a different user" URL " /_layouts/15/closeConnection.aspx?loginasanotheruser=true "
    In first case, user is redirected to default sign out page but he can press "Go Back to Site" link to revisit the site. Another major issue is that the user has to close the browser to sign out from the application completely, which is not desirable
    in my project requirement.
    In second case, the the current user is signed out of the application but if the user has saved the password in browser, he gets signed in automatically to the application.
    I also came across the solution where we replace the default sign out page with a custom sign out page, but I am not sure whether it can be implemented using JavaScript Client Object Model of SharePoint.

    Hi 
    I'm basically looking for the exact answer for the query.
    Meanwhile you need to go through the link mentioned below in order to understand how to do it.
    Debugging and Logging Capabilities in SharePoint 2010
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • To know the Status code of a HTML page using Javascript

    To know the Status code of a HTML page using Javascript

    Hello,
    I am not sure to understand, which status are you talking about? The HTTP Status?
    If your javscript is executed it is more or less sure that the HTTP Status is 200 since the request is back to the browser.
    or are you talking about this is in the context of a XMLHTTPRequest call ?
    Regards
    Tugdual Grall

  • Modifying a pdf page using Javascript

    Hi all,
    - I am having an html report that consists of many html pages.
    - Each page of these html pages contains a table or more, in addition to some buttons that hides/display specific rows in these tables. And these buttons are programmed using Javascript.
    I would like to convert these html files to a single pdf file.
    My question is: If I converted the report to html, will my buttons work. I mean will my Javascript buttons hide/display table rows in the pdf pages ?
    Thank you,
    Moustafa

    Even though there is some common objects, properties, and methods between Web JS and Acrobat JS, Acrobat uses some very unique objects, properties, and methods so there is no straight forward conversion possible. You would need to rewrite much of the JS and make form fields that could be manipulated. Also Acrobat makes static forms, so no dynamic re flowing of content would be possible.

  • Search Annotation by its Name Using Javascript

    Hi
    my requirement is to find the annotation using its Annotation name using Javascript
    i.e by entering the Annotation name in my user interface  created by javascript it should set focus to that particular annotation

    I don't think it's possible to do that exactly. You can search for the annotation, but you can't select it. However, you can switch the document to the page where the annotation is located.

  • Searching PageService pages using Secure Enterprise Search

    Hi,
    In our application we allow the users to create pages at runtime using PageService as outlines in the oracle manual http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e10148/jpsdg_page_service.htm . I would like to have Secure Enterprise Search crawl these pages and have them show up in the search results. How can I do this? It will help to know where the content for these pages are stored (I can figure out the rest).
    This is roughly the code used to create the pages:
    public void createMyPage {
    try {
    MDSSession mdsSess = (MDSSession)ADFContext.getCurrent().getMDSSessionAsObject();
    PageServiceConfig config = new PageServiceConfig(mdsSess, DEFAULT_SCOPE);
    mPageService = PageServiceFactory.createInstance(config);
    String pageNameFormat ="Page{0}.jspx";
    String pageTitle ="New Page";
    // The template used to create the new page is /mytemplates/MyPageTemplate1.jspx
    // path "/mytemplates" should be defined as a MDS namespace.
    // Also MyPageTemplate1.jspx should have a pageDef called "MyPageTemplate1PageDef.xml and
    // it has the same path as the jspx file.
    PageDef newPage = mPageService.createPage(
    PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
    "MyPageTemplate1.jspx",
    "/mytemplates/",
    null, null, null);
    } catch(Exception e) {
    // Handle exception
    Thank you.

    Hello,
    Can you please confirm what type of application you are running and attempting to index with SES.
    + You have mentioned Oracle WebCenter Sites- there is an example here of creating navigation menus in WebCenter Sites:
    http://docs.oracle.com/cd/E29542_01/doc.1111/e29605/user_sitenavigation.htm#WBCSU519
    + But you have logged this question in the Oracle WebCenter Portal community - there is an example here creating navigation menus in WebCenter Portal:
    http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27739/jpsdg_navigation.htm#JPSDG6723
    Can you please clarify which product you are using (WebCenter Sites or WebCenter Portal) so that we can direct this to the right person to advise you further.
    Thank you,
    Martina
    Oracle WebCenter Portal Support

  • HOW TO KEEP TEXT AT BOTTOM OF PAGE USING JAVASCRIPT-ANSWERED

    UPDATE 5/12/2006: MORE COMPATIBLE CODE:
    Was using OnRequestEnd.cfm to load copyright info at bottom
    of each page but page size varied and copyright info would appear
    at different points on different pages. Didn't look good. Could not
    use tables to align the text for output reasons. Coded a way using
    CSS and JavaScript to keep text at bottom of each page. Be careful
    with CFFORM, us have to set the attribute 'wMode=transparent' in
    CFFORM so text is above form. Tested in IE and Netscape. Put at end
    of individual templates or inside OnRequestEnd.cfm - Enjoy!
    (css goes in your external css file or between local style
    tags)
    .copyright{background-color:#d8d8d8;color:Black;font-size:10px;font-family:Arial;width:10 0%;text-align:center;}
    body {border-bottom-width:0px;}
    (following goes at end of page or in OnRequestEnd.cfm)
    <span id="x" class="copyright">
    my copyright
    </span>
    <!--- *** KEEPS COPYRIGHT LINE AT ABSOLUTE BOTTOM OF EACH
    PAGE --->
    <script>
    if(document.body.scrollHeight <
    document.body.clientHeight){
    var s = 0;
    document.getElementById('x').style.cssText='position:absolute;bottom:'+s+';';
    else {
    var s = document.body.scrollHeight;
    document.getElementById('x').style.cssText='position:absolute;top:'+s+';';
    </script>

    To change it for a given text frame, the frame must be selected when you execute the menu command.
    AlyMcF1 wrote:
    …how can I apply this to the majority (400+) of my text frames at once?
    To change the setting of existing frames throughout your document, use Edit > Find/Change.
    Choose the Object tab.
    Set the Search: field to Document.
    Set the Type: field to Text Frames.
    If there is a formatting attribute common to all the text frames you want to target and change, click the glass/frame icon next to the Find Object Format field to access the Find Object Format Options dialog and set that common attribute.
    Click the glass/frame icon next to the Change Object Format field to access the Change Object Format Options dialog and set the Align: field to Justify under Basic Attributes > Text Frame General Options > Vertical Justification.
    Step through the Find Next/Change sequence to selectively apply the change, or click the Change All button if you're certain you want all the found frames changed.

  • Process Indesign Grep Search

    Hi
    I'm using the following script, to search for fixture times within an InDesign Document.
    Unformatted InDesign text would be…
    Monday 19 March
    Gates 1.23 am First 4:56pm   Last RACE 7.12pm
    Applescript is:
    tell application "Adobe InDesign CS3"
       --Clear the Find/Change fields
       set find text preferences to nothing
       set change text preferences to nothing
       --Set FindWhat/ChangeTo values
       set find what of find grep preferences to "(\\n|\\r)[Gg][\\u\\l ]+(\\d+)[.:](\\d+)[\\u\\l ]+(\\d+)[.:](\\d+)[\\u\\l ]+(\\d+)[.:](\\d+)[\\l\\u]+"
       set change to of change grep preferences to "$1Gates Open $2.$3am First Race $4.$5pm Last Race $6.$7pm"
       --set the find options
       set include footnotes of find change grep options to false
       set include hidden layers of find change grep options to false
       set include locked layers for find of find change grep options to false
       set include locked stories for find of find change grep options to false
       --Do It
       change grep
       set find grep preferences to nothing
       set change grep preferences to nothing
    end tell
    This is working for me as a clean up on the structure and formatting, however I would now like to process the AM and PM based on the times (Rule all First & Last Race times will always be PM, Gates Open can be both)
    What I'm thinking is to get the times grep returns, query them, then set Am or PM to the string depending on the result.
    My problem!
    When I "return find grep preferences"
    I get this...
    {text from character 16 to character 61 of story id 191 of document "Gates Grep.indd" of application "Adobe InDesign CS3", text from character 16 to character 66 of story id 379 of document "Gates Grep.indd" of application "Adobe InDesign CS3"}
    I would like to get the separated numbers and put them in to a list
    eg. {"1","23", "4","56","7,"12"}
    Thanks for any help on this
    LJ

    I know absolutely nothing of AS, but it might be worth pointing out that GREP (and regular findText as well) does not return regular text, but rather an array of pointers to InDesign formatted text. In JavaScript, you have access to the plain ASCII string using text.contents -- AS might be able to do the same.
    .. the separated numbers ..
    Your example list does not contain numbers but strings, which will lead to problems if you try to compare them ("2" being larger than "10"). Don't forget to convert them to numbers before comparing.

  • Inserting a library item on a page using Javascript

    Hello,
    I have a library with 6 different layouts in it.  I need to be able to place these on the page from an external program.  I have all my code in place to send commands to Indesign, but I'm not sure how to reference the Library items.  Can I reference them by name?  As well, I would like my external custom app to be able to list all the library items so that the user can select which one to insert.  I'm at a total loss as to how to do this.
    I need help with these two things:
    1) obtain an array or list of all the items in a particular Library, which is already open.
    2) Once I have the list of library items I need to be able to place one or multiple on the page keeping track them so I can place images and text in the appropriate boxes.
    Any help with this would be greatly appreciated.  I'm using Indesign CS3 and my external app is coded in Objective-C on a Mac.  I prefer Javascript as I'm very familiar with it as opposed to Applescript.
    Thanks for any help provided.
    Dave Williams

    Assuming you have access to the equivalent of doScript, when that is used to run a JavaScript, the final value of the script is returned (coerced to a string? I'm not sure).
    Of course, you can always pass information from one place to another by using keyed labels. In my work (I spend most of my time writing scripts for Typefi Publish wherein the same script might get executed at the end of every page as the Typefi Engine composes the document), I often will add a keyed label to the document that passes information from one run of the script to the next. Here's an example (that includes reading the script itself to extract version information from the second line) -- while slightly inefficient, it has the benefit of putting the version info in a defined, easy to find place:
        function registerFirstCall(aDoc, interactive) {
            var scriptFile = getScriptPath();
            var scriptName = scriptFile.name;
            if (aDoc.extractLabel(scriptName) == "" || interactive) {
                scriptFile.open("r");
                var firstLine = scriptFile.readln();
                var secondLine = scriptFile.readln();
                scriptFile.close();
                if (secondLine.indexOf("//VERSION: ") == 0) {
                    var msg = secondLine.split("//VERSION: ")[1].split("\n")[0];
                } else {
                    var msg = "unknown";
                aDoc.insertLabel(scriptName, "Registered");
                TPSlog(scriptName + " version: " + msg, interactive);
        }// end registerFirstCall
    Ah, I see it uses the getScriptPath function, so for completeness, here it is:
        function getScriptPath() {
            // This function returns the path to the active script, even when running ESTK
            try {
                return app.activeScript;
            } catch(e) {
                return File(e.fileName);
            } // end try
        } // end getScriptPath
    The TPSlog function either pops up an alert (when working interactively -- usually means during debugging) or adds a log message for the session (that also is managed with a document keyed label). The keyed label in this case is performing the trivial task of recording that the script has previously been run against this document, in which case, it doesn't need to log a message identifying its version info.
    Hope this helps.
    Dave

  • Can I make an Imageboard in a HTML page (using JavaScript)?

    Hello all.
    Just like to say that this is my first post on the Adobe forums!
    Anyways, I've started a website project in Dreamweaver CS6 (full version) and will probably be using Photoshop (CS6) for some parts of the site too. It's gonna be pretty basic but I want to make an imageboard (with JavaScript? I'm not sure...) where users who have logged in can post an image on the feed with a comment/caption to go with it.
    How can I do this? Can anyone point me to a good tutorial on how to make this? Do I do it with JavaScript on the HTML page? (P.S. I am mildly experienced with HTML).
    Thanks in advance!

    Unfortunately, there isn't anything in DW that can do this type of thing for you, although if you were to learn php and mySQL you definitely could use DW to create a site with those types of features.
    There's actually quite a bit that goes into that kind of thing, more than just basic code, you need to think about security especially if you plan to allow someone to upload files, potentially infected with viruses, to your server.
    If you're talking about creating a basic forum (being able to start topics, post pics and comments), there are a lot of free and paid solutions available online. Certain hosting companies even give you basic forums you can add to your site by following the instructions on their pages.
    Unless you have a lot of time on your hands to learn all the ins and outs of PHP and the security necessary to keep your site and server safe, I'd suggest going that route.

  • Reload Page using Javascript

    I developed a Captivate 8.01 project and I'm using Moodle as LMS.
    I need to "Reload" the main web browser page when I Exit the project, so I tried using this JavaScript code: "location.reload(true);" but is not working.
    Should I use the Captivate Common JS interface to run this code, and if true, how do I do that (how do I implement it)? Thank you.

    I tried both but it didn't work. Wondering if changes to the Captivate html file are correct.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <!-- Copyright [2012] Adobe Systems Incorporated.  All rights reserved -->
    <html lang="en">
      <head>
           <link rel="stylesheet" type="text/css" href="captivate.css" />
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           <title>FRA 218 - Engineering</title>
           <!-- Include external JS files -->
           <script language="JavaScript1.2" src="standard.js" ></script>
           <script language="JavaScript1.2" src="scormdriver.js" ></script>
           <script language="JavaScript1.2" src="SCORM_utilities.js" ></script>
           <script language="JavaScript1.2" src="Utilities.js" ></script>
           <script language="JavaScript1.2">
           //Register event handlers
           window.onkeypress   = CheckForDebugCommand;
           window.onload = OnloadActivities;
           window.onbeforeunload = DoFinish;
           window.onunload = DoFinish;
           blnDebug = false ;
      </script>
    </head>
      <body bgcolor="#f5f4f1" onUnload="window.opener.location.reload();">
           OR
    <body bgcolor="#f5f4f1" onUnload="window.opener.location.href = window.opener.location.href;">
              <div id = "CaptivateContent">
                <noscript>
                     This course requires JavaScript to be enabled in your browser.
                     Please enable JavaScript, then relaunch the course.
                </noscript>
           </div>
      </body>
    </html>

Maybe you are looking for