Ordinal Problem - also posted in InDesign Scripting

I am running InDesign CS3 on XP.  I know there are other posts about ordinal problems, but none seem to lead me to a solution.
My many fonts work with ordinal in MS Word when typing numbers like 22nd, 36th, etc.  However, the same fonts in InDesign do NOT display ordinal type.  Only a select few fonts work with ordinal in InDesign.  When I scroll to the "Open Type" submenu for most fonts, ordinal is in brackets [ordinal].  I still select it, but nothing comes of it. Even with basic fonts like Tiimes New Roman.
Any ideas of how to fix this?  Just seems odd when the fonts work in MS Office but not Adobe.
Thanks,
Jarred

It can't be done (safely -- see below) with a single GREP; 1st, 2nd, 3rd need special handling.
In general, you can look for
(?<=\d)th\b
and replace with no text, just Superscript in the Change To formatting. This looks for any text "th" with a number on its left (the parenthesized expression), and a clear word break on its right (the backslash b).
"1st" needs
(?<=1)st\b
"2nd" and "3rd" need
(?<=2)nd\b (?<=3)rd\b
If your text allows it, you can try to do all at once:
(?<=\d)(st|nd|rd|th)\b
-- this way you also automatically pick up wrong ordinals, such as "1nd".

Similar Messages

  • ODAC 11.10.7: Problems running Post-installation SQL Scripts"

    Hello:
    I am running the 32-bit version of 11g Release 1.
    I installed ODAC version 11.10.7. The installation was completed without error but advised to run the SQL scripts found in OracleHome\ASP.net\SQL.
    I logged in using SYS account and tried to execute the SQL file, InstallAllOracleASPNETProviders.SQL which calls other SQL scripts:
    @@InstallOracleASPNETCommon.sql
    @@InstallOracleMembership.sql
    @@InstallOraclePersonalization.sql
    @@InstallOracleProfile.sql
    @@InstallOracleRoles.sql
    @@InstallOracleSiteMap.sql
    @@InstallOracleWebEvents.sql
    -- Install OracleSessionState Provider
    -- For Oracle 10gR1(10.1.0.2) database and higher, run InstallOracleSessionState.sql
    -- For Oracle 9iR2(9.2.x) database, run InstallOracleSessionState92.sql instead
    @@InstallOracleSessionState.sql
    --@@InstallOracleSessionState92.sql
    The first SQL was executed without any error.
    However, I received the following error with the second file:
    "ORA-06550: line 2, column 11: PLS-00201: identifier 'ORA_ASPNET_TABLEEXISTS' must be declared
    ORA-06550: line 2, column 6:
    PL/SQL: Statement ignored"
    The offending line has a reference to a function:
    IF ( ora_aspnet_TableExists('ORA_ASPNET_MEMBERSHIP') = 0) THEN
    Can someone advise on what needs to be done?
    venki
    Edited by: user9023421 on Apr 18, 2011 2:28 PM

    I did not have any Macromedia file in syetem 32 when I last replied to your question. I had uninstalled FP 11.8, but my embedded FP on Windows 8 was (and is) still showing in Control Panel Items but did not and does not appear when checking version on the Adobe Find Version page.
    Before reading your last reply, I did UNinstall 11.8 and then installed flashplayer_11_7_plugin_debug   (FP 11.7.700.232).
    This NOW shows up as Shockwave Flash ver. 11.7.700.232 in mozilla add-ons manager and is listed in system32 as a folder: C:\Windows\system32\Macromed with many files in the folder.
    The Flash Player 11.7.700.232 worked on Mozilla FF 22.0 for several hours before not being able to play some flash content and then crashed. An odd window kept appearing while trying to use it, I did not copy the test of it, but will try and reproduce the problem, and copy and post the text here in a further discussion box on our discussion.  A subsequent check to Adobe Find Version page shows that FP 11.7.700.232 is CURRENTLY installed and functoning. But it still does not play all Flash content that I encounter on the internet.
    I did NOT use the Adobe Full Installer to install Flash Player 11.7.700.232, I simply downloaded the file to desktop and manually installed it off line.
    If I DO need to uninstall FP 11.7.700.232, and reinstall it using the Adobe Full Installer, please tell me in detail how because I thought that the Full Installer had a different version of FP in it.
    What I mean is, if I download and run the Full Installer, is that also simultaneously installing a different version of FP? Or do I run it and THEN install FP 11.7.700.232?
    Thank you for following along and replying, Pat. I am not very literate with PC's and the problem is likely something that I am doing wrong!

  • Vista x32, Zen V and V+ driver problems - also posted in Vista sect

    ?<p class="MsoNormal">Have tried to install software, when registration asks for device to be connected, i connect. Windows detects as 'Creative Zen V', can't find a driver then lists it as an MTP device, and as a failure to install. The registration tool is no help. I have repeatedly gone to device manager and uninstalled the 'MTP device' and repeatedly reinstalled your software and redone every program I can find with creative. I have searched your knowledge base, no help. I have tried to hard search windows for the driver, and pointed the detection to creative folders, don?t help. After EVERY failed installation, windows media and all creative software does not see the player (i have 2 an 8gig and gig, white and black) but instead an MTP device (with a yellow Exclamation pt in device manager).
    <p class="MsoNormal">?
    <p class="MsoNormal">Have tried to install software, when registration asks for device to be connected, i connect. Windows detects as 'Creative Zen V', can't find a driver then lists it as an MTP device, and as a failure to install. The registration tool is no help.
    <p class="MsoNormal">?
    <p class="MsoNormal">I have tried the Microsoft hotfix - won?t install, says not compatible with my system. Have Intel x64 chip, but vistax32, computer came that way. Can't update firmware as player never is correctly recognized.
    <p class="MsoNormal">?
    <p class="MsoNormal">?
    <p class="MsoNormal">Had a Windows XP machine before and eventually I got them to work. Why won't Vista find drivers? Both players work fine and charge, they just won?t synch to my new computer due to no drivers. My old XP machine went belly up (hardware issue) so that is no longer an option.
    <p class="MsoNormal">?
    <p class="MsoNormal">Repeatedly emailed Creative tech - NO HELP. Responses look like they NEVER read my thorough explanation and send me different form letters.
    <p class="MsoNormal">?
    <p class="MsoNormal">Frustrating, uninstalled and reinstalled probably 50 - 00 times.
    <p class="MsoNormal">?
    <p class="MsoNormal">Please help.
    <p class="MsoNormal">?
    Kevin.

    Would somebody help?
    Many previous posts say to update firmware, can't as I no longer have an XP machine, besides I know I bought the 8gig well after VISTA was out, I think December 2007. No excuse for not having correct firmware.

  • Trying to update to iTunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting this problem but can't seem to find any answers

    Trying to update to itunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting a similar problem but can't find any answers.

    Please can anyone help on this

  • How to Run Indesign Script in a file from plugin code in CS4?

    Hi,<br />I have the code to execute the InDesign script stored in external file for InDesign CS3.<br /><br />InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss)); <br />InterfacePtr<IScriptRunner> scriptRunner(scriptManager, UseDefaultIID()); <br />     IDFile scriptFile(scriptFilePath); <br />     if (scriptRunner->CanHandleFile(scriptFile)) <br />     { <br />       ScriptData returnValue; <br />       PMString errorString; <br />       ErrorCode error = scriptRunner->RunFile(scriptFile); <br />         ASSERT(error == kSuccess); <br />     } <br /><br />But the RunFile() method is cs4 expects an additional argument of the type RunScriptParams. <br />Someone please show me with a code snippet on how to excute a script file in CS4??

    Dear Ian
      Here I'm used the below coding in CS3, Its working fine....
    //In CS3 Coding
      PMString jsFullPath("c:\\windows\\sample.jsx"); // a path to my java script file
    do
    const
    IDFile outFile(jsFullPath);InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if(scriptManager){
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, kTrue, kFalse);
    while(kFalse);
    But the same time I used this coding in CS4, Its not woking
    //In CS4 Coding
    PMString jsFullPath("c:\\windows\\MacID\\BIN\\sample.jsx"); // a path to my java script file
    do
    const
    IDFile outFile(jsFullPath);InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if
    (scriptManager){
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    while(kFalse);
    I changed the "RunFile" arguments also
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    But Still I'm facing the problem in InDesign CS4.  That's mean  "Adobe InDesign CS4" shout down for serious error happend.
    Please kindly help me, for solving this problem.
    Thanks & Regards
    T.R.Harihara Sudhan
    Message was edited by: Adobe-InDesign CS4

  • Indesign Scripting Object Model

    Hi,
    Is there some reference documentation that provides detailed information on the Indesign object model as exposed to the scripting interface (javascript)?
    I have done fair amount of scripting in Illustrator so I was looking for the Indesign equivalent of this document
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    I looked at this document but it seems kind of sparse (compared to illustrator)
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/indesign/pdfs/InDes ignCS5_ScriptingGuide_JS.pdf
    Obviously they are different applications but I was kind of hoping there would be more info for Indesign scripting.
    In particular I am looking for some insight on how to effectively walk or traverse the document structure of an indesign document using code.
    Finding specific things by type seems out of the picture becuase after doing object reflection on all the page items in an indesign document nothing seems to have a "type" property.
    In my illustrator scripts I was able to place stuff in illustrator layers, give arbitrary pageitems a name and then later go find and manipulate via script. Not as clear how to do this in an indesign context.
    The one advantage of this was that in illustrator I was able to use textframes to hold variable data and read later via scripts. The document becomes the database. And I could create any number of arbitrary "variables" inside the document outside the white board. WOndering how to do this kind of stuff with indesign so I can do template driven documents that are managed by scriptings and form UI that I create.

    commnet: Glad to hear you're clear on the new keyword. It's something that a lot of people are confused about.
    Also glad to hear you've read Crockford's book on this stuff. Honestly I think for most InDesign usage, it's a mistake to worry about any kind of inheritance...usually it's easier to ignore all that stuff.
    And to answer the question about number of properties, probably talking max 100 or so. Certainly not thousands. I just want to have my own datastructure embedded in the indesign document that I can easily talk to via scripts. And this data needs to persist between instances of the javascript script's lifecycle. So it seems having some XML to parse is the solution. If that makes sense.
    If there was a way to deal with JSON data "hidden" within an indesign document I would gladly work with that. But I still need to change certain common content snippets inside the flow of the indesign document in a consistent way.
    I think if you have max 100 properties, you should probably choose the methods that are clearest code, rather than most efficient. I suppose you might have noticable delay with 100, though, obviously try it and see. I'm confused but I thought you needed to have your data associated with text elements inside your document, such that it is visible to a user in the user interface. Hence the proposal of using XML tagged text inside a Text Frame. Did that requirement go away?
    If you just want to hide JSON in the document, then use document.insertLabel() of a string of JSON and be done with it.
    You can also use the JavaScript interpreter's E4X features, that give you much richer Javascript bindings for manipulating XML objects and files. Unfortunately the Javascript's XML bindings have nothing to do with the InDesign XML object model. So could, e.g., export the InDesign DOM XML into a file, read that into a Javascript XML object, manipulating with E4X functions, write it out to a file, and then re-import it into the DOM. Not really very convenient.
    I honestly don't know much about Javascript for browsers, so if you could be more concrete in your queries it would be easier to answer.
    Looking forward to your example snippet though.
    OK, so, in Jeff (absqua)'s example, you create a constructor for a changeNumber rule, you call the constructor to make a rule, add the rule to the ruleset, and change a value attribute of the rule, and then process the ruleset.
    This strikes me as...extremely goofy. For two reasons, first the ruleset creation function should be parametrized with the value you want to change, and second, that you go change the rule's attributes after you have added it to a ruleset. Also, while this works in this example, I don't think it's appropriate to have the xpath attribute hardcoded in the rule creation function -- it's much plausible that you want a function that constructs a rule that changes some arbitrary tag to some arbitrary value.
    So, anyhow, if you were going to stick with the constructor paradigm, then I would change from:
    var changeNumber = new ChangeDocumentNumber();
    var ruleSet = [changeNumber, changeDescription];
    changeNumber.value = "5678";
    __processRuleSet(doc.xmlElements[0], ruleSet);
    to:
    var changeNumber = new ChangeDocumentNumber();
    changeNumber.value = "5678";
    var ruleSet = [changeNumber, changeDescription];
    __processRuleSet(doc.xmlElements[0], ruleSet);
    But I don't like this, because it's not parametrized reasonably. I would want something like:
    var changeNumber = new ChangeValue("//DocumentNumber", "5678");
    var changeDescription = new ChangeValue("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    But because of my disdain for classical inheritance in JavaScript, I would instead write it as:
    function changeValue(xpath, newValue){
      return {
        name: "ChangeValue",
        xpath: xpath,
        apply: function(Element, processor) {
          if (newValue) {
            element.contents = newValue;
          return true;
    var changeNumber = changeValue("//DocumentNumber", "5678");
    var changeDescription = changeValue("//DocumentDescription", "New descr.");
    Because I think that a lot clearer about what is going on without introducing confusion.
    Edit: removed "this.value" from the above and just used newValue directly.
    But if you're defining a lot of rules with different apply functions, this is a very cumbersome strategy. You have all this boilerplate for each function that is basically the same but the apply function is different. This is leads to a lot of wasted code duplications. Why would your apply function be different? Well, that would usually be if you are writing functions that move around XML elements within the document hierarchy, or other things that are not simply changing the value of an element.
    I would much prefer to write this as:
    var changeRule = makeRule("change",
      function(element, ruleProcessor, newValue) {
        element.contents = newValue;
    var changeNumber = changeRule("//DocumentNumber", "5678");
    var changeDescription = changeRule("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    This kind of syntax makes it much more compact to create arbitrary rules with different apply functions. In retrospect, the makeRule() function is named wrong, because it returns a function that makes a rule. Perhaps it'd be more reasonable if it was called makeRuleMaker().
    Anyhow, the downside is that the makeRule() function is kind of heinous. I wrote this in March in Re: How to shift content with in cell in xml rules table. But:
    //// XML rule functions
    // Adobe's sample for how to define these is HORRIBLE.
    // Let's fix several of these problems.
    // First, a handy object to make clearer the return values
    // of XML rules:
    var XMLmm = { stopProcessing: true, continueProcessing: false};
    // Adobe suggest defining rules constructors like this:
    //   function RuleName() {
    //       this.name = "RuleNameAsString";
    //       this.xpath = "ValidXPathSpecifier";
    //       this.apply = function (element, ruleSet, ruleProcessor){
    //       //Do something here.
    //       //Return true to stop further processing of the XML element
    //       return true;
    //       }; // end of Apply function
    // And then creating a ruleset like this:
    //   var myRuleSet = new Array (new RuleName, new anotherRuleName);
    // That syntax is ugly and, and is especially bad if
    // you need to parametrize the rule parameters, which is the only
    // reasonable approach to writing reasonable rules. Such as:
    //   function addNode(xpath, parent, tag) {
    //       this.name = "addNode";
    //       this.xpath = xpath;
    //       this.apply = function (element, ruleProcessor) {
    //           parent.xmlElements.add(tag);
    //           return XMLmm.stopProcessing;
    // and then creating a ruleset like:
    //   rule = new Array (new addNode("//p", someTag));
    // So instead we introduce a makeRule function, that
    // allows us to leave behind all the crud. So then we can write:
    // addNode = makeRule("addNode",
    // function(element, ruleProcessor, parent, tag) {
    //     parent.xmlElements.add(tag);
    //     return XMLmm.stopProcessing;
    // and use:
    // rule = [ addNode("//p", someTag ];
    function makeRule(name, f) {
        return function(xpath) {
            var
                //xpath=arguments[0],
                   // "arguments" isn't a real array, but we can use
                   // Array.prototype.slice on it instead...
                   args=Array.prototype.slice.apply(arguments, [1]);
            return {
                name: name,
                xpath: xpath,
                apply: function(element, ruleProcessor) {
                        // Slice is necessary to make a copy so we don't
                        // affect future calls.
                    var moreargs = args.slice(0);
                    moreargs.splice(0, 0, element, ruleProcessor);
                    return f.apply(f,moreargs);

  • Document Splitting problem while posting asset acquisition using F-90

    Hi,
    We are using ECC 6.0 with document splitting functionality and are facing problem while posting asset acquisition using F-90.
    The transaction entry details are as below:
    Document Type - KR
    Vendor Line Item PKey - 31
    Amount - 10000
    Asset Line Item with PKey - 70, Transaction Type - 100
    Amount - 10000
    The Document Splitting Rule - 0000000012 is used and the Field Status Group for the Vendor Reconciliation Account and Asset Reconciliation account have Cost Center, Profit Center and Segment as "Optional" field.
    The Balance Sheet Item - Asset Reconciliation Account has been created as
    Secondary Cost Element - 90.
    The Profit Center and Segment field have been made mandatory and zero balancing is also set in the settings for Document Splitting.
    While posting asset acquisition using F-90, we are getting the error message - "Balancing Field "Profit Center" in line item 001 not filled"
    The first line refers to the Vendor Line item.
    Please let me know how to overcome this error.
    Regards,
    Ramanand

    Please follow the below path and do config :-
    IMG>FA>Asset Accounting>Integration with the General Ledger>Additional Account Assignment Objects>Specify Account Assignment Types for Account Assignment Objects
    here you have to put KOSTL (Cost center) for both against APC and Dep run for each Dep area.
    Thanks
    Pyare

  • Problem with posting comments of a specific picture

    So I have been able to post the comment in the page I am creating and that comment is also saved in the comment table in the database with the id of the picture but when i am in the first picture and I comment the comments are posted saved in the database with the id 1 and then i go to the second the comments are also posted and saved in the tabel comment with the id of the picture 2. But my problem is that when i go to the second picture i can also see the comments of the first picture. So in all of my pictures I can see comments of pictures with other id. How can i manage to solve this problem. Please suggest me sth
    I'll describe a little bit my database
    name of database is art
    picture tabel I have named piktur(id_piktur,Titulli,Pershkrimi,Piktur_url) rsGallery is picture recordset
    the comment tabel I have named komente(id_koment,id_piktur,Tekst)rsKomente is comment recordset
    Tekst is the column where the comment is save
    I'm using the session variable so i can get the id of the picture from the picture table and insert it in id picture column of the comment tabel
    this is the piece of code i guess i should make some conditions but i have tried sth myself but I have not managed to solve my problem. The pictures in my page are organised with paging and repeat region only showing 1 picture at a time. the comment are also repeat region showing all the comments at a time.
    <p>
          <?php  while ($row_rsKomente = mysql_fetch_assoc($rsKomente)) { ?>
            <?php
    $id_piktur=$row_rsGallery['Id_piktur']; $_SESSION['id_piktur']=$id_piktur;
              echo $row_rsKomente['Tekst']."<br/>" ;?>
            <?php } ?>
      </p>
    my entire code is shown below if you don't think this code is enough for solving the problem gallery.php Thank you in advance
    gallery.php
    <?php require_once('Connections/art.php'); ?>
    <?php session_start() ?>
    <?php
    if (!function_exists("GetSQLValueString")) {//this is some code i don't shown in here because it has nothing to do with the problem i want to solve}
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1") &&(isset($_SESSION['id_piktur'])) ) {
      $insertSQL = sprintf("INSERT INTO komente (Tekst,id_piktur) VALUES (%s,'".$_SESSION['id_piktur']."')", GetSQLValueString($_POST['tekst'], "text"));
      mysql_select_db($database_art, $art);
      $Result1 = mysql_query($insertSQL, $art) or die(mysql_error());
    $maxRows_rsGallery = 1;
    $pageNum_rsGallery = 0;
    if (isset($_GET['pageNum_rsGallery'])) {
      $pageNum_rsGallery = $_GET['pageNum_rsGallery'];
    $startRow_rsGallery = $pageNum_rsGallery * $maxRows_rsGallery;
    mysql_select_db($database_art, $art);
    $query_rsGallery = "SELECT Pershkrim, Piktur_url, Rankim,id_piktur FROM piktur";
    $query_limit_rsGallery = sprintf("%s LIMIT %d, %d", $query_rsGallery, $startRow_rsGallery, $maxRows_rsGallery);
    $rsGallery = mysql_query($query_limit_rsGallery, $art) or die(mysql_error());
    $row_rsGallery = mysql_fetch_assoc($rsGallery);
    if (isset($_GET['totalRows_rsGallery'])) {
      $totalRows_rsGallery = $_GET['totalRows_rsGallery'];
    } else {
      $all_rsGallery = mysql_query($query_rsGallery);
      $totalRows_rsGallery = mysql_num_rows($all_rsGallery);
    $totalPages_rsGallery = ceil($totalRows_rsGallery/$maxRows_rsGallery)-1;
    $maxRows_rsKomente = 10; $pageNum_rsKomente = 0; if (isset($_GET['pageNum_rsKomente'])) {   $pageNum_rsKomente = $_GET['pageNum_rsKomente']; } $startRow_rsKomente = $pageNum_rsKomente * $maxRows_rsKomente;
    mysql_select_db($database_art, $art); $query_rsKomente = "SELECT Tekst,id_piktur FROM komente"; $query_limit_rsKomente = sprintf("%s LIMIT %d, %d", $query_rsKomente, $startRow_rsKomente, $maxRows_rsKomente); $rsKomente = mysql_query($query_limit_rsKomente, $art) or die(mysql_error()); $row_rsKomente = mysql_fetch_assoc($rsKomente);   if (isset($_GET['totalRows_rsKomente'])) {   $totalRows_rsKomente = $_GET['totalRows_rsKomente']; } else {   $all_rsKomente = mysql_query($query_rsKomente);   $totalRows_rsKomente = mysql_num_rows($all_rsKomente); } $totalPages_rsKomente = ceil($totalRows_rsKomente/$maxRows_rsKomente)-1;
    $queryString_rsGallery = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsGallery") == false &&
            stristr($param, "totalRows_rsGallery") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsGallery = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsGallery = sprintf("&totalRows_rsGallery=%d%s", $totalRows_rsGallery, $queryString_rsGallery);
    $queryString_rsKomente = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsKomente") == false &&
            stristr($param, "totalRows_rsKomente") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsKomente = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsKomente = sprintf("&totalRows_rsKomente=%d%s", $totalRows_rsKomente, $queryString_rsKomente);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Paintings</title>
    <link href="style_gallery.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
      </div>
    <div id="logo_wrapper">
    <!-- For the example logo, we used a font called "Ink Burrow", which is free from the major font sites. -->
    <div id="logo"><img src="_images/logo.png" width="600" height="79" align="right" /></div>
    </div>
    <div id="main_container">
    <div id="menu_container">
    <div id="menu">
    <ul id="base_menu" >
    <li><a href="index.php">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="gallery.php">Gallery</a></li>
    <ul class="sub_menu">
    <li><a href="#" title="Charcoal" >Charcoal </a></li>
            <li><a href="#" title="Oil paintings" >Oil paintings</a></li>
            <li><a href="#" title="Sketches" >Sketches </a></li>
            <li><a href="#" title="Our latest podcast" >Video Podcast</a></li>
    </ul>
    <li><a href="#">Contact </a></li>
    <li><a href="#">Events</a></li>
    <li><a href="login.php">Log in</a></li>
    </ul>
    </div>
    </div>
    <div id="mainArticle">
        <h1>Painting Gallery</h1>
          <p>Welcome !</p>
        <p>
          <?php do{ ?>
       <?php   $id_piktur=$row_rsGallery['id_piktur']; $_SESSION['id_piktur']=$id_piktur;             echo $row_rsKomente['Tekst']."<br/>" ;                      ?>         <?php }  while ($row_rsKomente = mysql_fetch_assoc($rsKomente)); ?>  </p>
          <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
            <p>
              <label for="comment">Comment : </label>
            </p>
            <p>
              <textarea name="tekst" id="tekst" cols="45" rows="5"></textarea>
            </p>
            <input name="comment" type="submit" value="Comment" />
            <input type="hidden" name="MM_insert" value="form1" />
          </form>
          <p> </p>
          <p>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, 0, $queryString_rsGallery); ?>">First</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, max(0, $pageNum_rsGallery - 1), $queryString_rsGallery); ?>">Previous</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, min($totalPages_rsGallery, $pageNum_rsGallery + 1), $queryString_rsGallery); ?>">Next</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, $totalPages_rsGallery, $queryString_rsGallery); ?>">Last</a>
    <p class="galleryText"><img src="_images/<?php echo $row_rsGallery['Piktur_url']; ?>" alt="golden gate bridge" class="galleryImage" />    <?php do { ?>     <?php echo $row_rsGallery['Pershkrim']; ?>     <?php } while ($row_rsGallery = mysql_fetch_assoc($rsGallery)); ?> </p>
      </div>
    <p> </p>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($rsGallery);
    mysql_free_result($rsKomente);
    ?>

    >thnx yeah i fixed the problem this time i understood you.
    Glad you got it working.
    >you confused me the first time with the explanation because you mentioned loops
    Yeah. Normally with a repeating region you would need to use nested loops; an outer loop for the picture and an inner loop for the related comments. During each iteration of the outer loop you would execute the sql to retrieve the inner loop recordset. However, since you are using paging with only one recordset per page, the comment recordset SQL does not have to execute inside the picture loop. Hope that makes sense.

  • It´s possible to call to Adobe Professional 8 with Indesign scripting (.jsx) [JS/CS3] ?

    Hello, I would like to know if it´s possible to communicate with Adobe Professional through a Indesign script (.jsx). I need to convert the pdf file that I export from Indesign to specific standard type that is only available in Adobe Professional.
    I want to save the Indesign generated file with Adobe Professional and obtain the pdf that I particularly need.
    I would like to know if there is a way to do this.
    Thank u,
    Peter

    That's nothing!
    An engineer and I contacted Adobe technical support by phone to ensure the PC I was having custom built was configured to its optimum. They advised XP64 as the best operating environment. After that discussion we had to completely revise procurement, etc to get the bits and compatible XP64 compatible software, putting the build project back a few weeks as well, Imagine how I laughed when I found out on one of these forums that XP64 is the worst choice and totally unsupported by CS4!
    I have written to Shantanu Narayen, Adobe CEO and didn't even get an acknowledgement I raised this last week on the Adobe stand at BVE and was told they'd get someone to contact me asap but guess what, niet...! To be fair there has been one Adobe executive that recognises the problem and the damage poor customer support is causing the company; he has been as helpful as he can. Unfortunately, it seems the overall Adobe culture at the top is "get the money and run". If your problem goes beyond what's already on their web pages, tough luck!
    Regards,
    Graham

  • Problem with add Spotlight Comments script.

    Hello,
    I am trying to add Spotlight Comments to some files using Automator. I have made an very simple script in Automator that add Spotlight Comments to the files that I have selected in Finder. I save this script as an app and it work great. I also save the same script but not as an app but as a service. The problem here is that when I run the service it add the same Spotlight Comment two times. For example, if I add "@Webshots" with the app the Spotlight Comments of the files is "@Webshots" but when I do it with the service the Spotlight Comments of the files is "@Webshots" "@Webshots". Can anybody help me with this? I will appreciate it a lot any help that you could give me. Thanks

    I suspect your workflow includes 'get select finder items' as the first action. get rid of it. it's redundant in a service that accepts files and folder in finder. that's why everything happens twice.

  • Comments Posting w/o scripting - Lost control over my JSP flow

    Hi all,
    Imagine you have a page where users can view comments from other users. And imagine that members can also post comments, but non-member guests can not. You want everyone to get the same page, but you want members to see more things on the page. You want a conditional <jsp:include> and of course you don't want to do it with scripting but do it with JSTL.
    I already have the following:
    1. web.xml
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
        <servlet>
            <servlet-name>JSTL Member Servlet</servlet-name>
            <servlet-class>com.example.MemberServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>JSTL Member Servlet</servlet-name>
            <url-pattern>/Tester.do</url-pattern>
        </servlet-mapping>
    </web-app> 2. MemberServlet.java
    package com.example;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class MemberServlet extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response)
                throws IOException, ServletException {
            String userType = "member";
            request.setAttribute("userType", userType);
            RequestDispatcher view = request.getRequestDispatcher("result.jsp");
            view.forward(request, response);     
    3. result.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
        <body>
            <strong>Member Comments</strong>
            <hr>${commentList}<hr>
            <c:if test="${userType eq 'member'}">
                <jsp:include page="inputComments.jsp"/>
            </c:if>
        </body>
    </html>
    4. inputComments.jsp
    <form method="post" action="commentsProcess.jsp">
        Add your comments: <br>
        <textarea name="input" rows="10" cols="40"/><br>
        <input name="commentSubmit" type="button" value="Add Comment"/>
    </form>Now, how must the JSP file commentsProcess.jsp looks like with JSTL?
    Any suggestions?
    Regards,
    bjoon

    Hi all,
    Imagine you have a page where users can view comments from other users. And imagine that members can also post comments, but non-member guests can not. You want everyone to get the same page, but you want members to see more things on the page. You want a conditional <jsp:include> and of course you don't want to do it with scripting but do it with JSTL.
    I already have the following:
    1. web.xml
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
        <servlet>
            <servlet-name>JSTL Member Servlet</servlet-name>
            <servlet-class>com.example.MemberServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>JSTL Member Servlet</servlet-name>
            <url-pattern>/Tester.do</url-pattern>
        </servlet-mapping>
    </web-app> 2. MemberServlet.java
    package com.example;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class MemberServlet extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response)
                throws IOException, ServletException {
            String userType = "member";
            request.setAttribute("userType", userType);
            RequestDispatcher view = request.getRequestDispatcher("result.jsp");
            view.forward(request, response);     
    3. result.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
        <body>
            <strong>Member Comments</strong>
            <hr>${commentList}<hr>
            <c:if test="${userType eq 'member'}">
                <jsp:include page="inputComments.jsp"/>
            </c:if>
        </body>
    </html>
    4. inputComments.jsp
    <form method="post" action="commentsProcess.jsp">
        Add your comments: <br>
        <textarea name="input" rows="10" cols="40"/><br>
        <input name="commentSubmit" type="button" value="Add Comment"/>
    </form>Now, how must the JSP file commentsProcess.jsp looks like with JSTL?
    Any suggestions?
    Regards,
    bjoon

  • Problem uploading images with php script.

    As a webdebdesigner i developped a cms system to upload images with php to a mysql database. Firefox version 5.0.1 for MAC and earlier have no problems with uploading through the script. But after that version it is impossible to upload images bigger then 250kb. The page where the customer chooses his image for upload stalls and the form is not sent to the actual upload script, which should validate and process the image.
    This problem only occurs in Firefox, all other browsers work just fine!
    On top of that: Giving feedback to firefox not possible for MAC.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web site development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Canvas support in Indesign scripts?

    Hi there,
    short version:
    I was wondering if it is possible in any way to include auto generated raster content (Using canvas api for example) in in-design using JavaScript?
    Long version:
    I noticed that In-design supports a very old version of JavaScript, and since I'm pretty new to InDesign scripting I thought it's better to get informed about its capability / limitations before planing about what to do with it! I wrote a Javascript code (not in in-design script) that generates unique random patterns of motifs, now I'm interested if I can integrate it in in-design scripts so it would put one of this raster images in each page of an in-design document (IE: left and right side of each relatively facing pages);
    also since my first guess after studying a bit In-design's object-model documentation was that it is very much limited to just what is possible through the software UI itself (and not any/some thing new/more), then I was wondering (in that case) how much is it possible to hook an script to an external script, and sending and receiving data/vars between them; like putting both scripts in the same folder, the first one calls the other one giving it some info (document dimensions, etc.), the second script runs (outside of ID), put the images on disk and return to main script when it's done!! :/
    I have some other solution sketches as well in my mind, but wanted to have your input before doing anything ridiculous!! :-)))
    I really appreciate your in-put on this,
    thx, mim,

    And yeah! It looks like I can execute an external file of any type!
    After reading and looking for a while, finally:
    In 52th page of documentation it says:
    execute()
    fileObj.execute ()
    Opens this file using the appropriate application, as if it had been double-clicked in a file browser. You can use this method to run scripts, launch applications, and so on
    Voila! Exactly what I need (If what I think I need is actually what I need! indeed!!)
    I'll try to see if it works later on (impatient actually!), and thx again!
    ,mim

  • Calling all script experts - Wierd problem with a previously perfect script

    Hi,
    As script which used to work fine is now causing me big problems.
    The line that is causing the problem is highlighted in the script editor as:
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    On running the script I get the following message:
    Finder got an error: Can't make every file of entire contents of alias "Atlas Mac-Mini:Users:design:Desktop: TESTpictures - for script:Landscape copy:" into type reference.
    As I said the script used to work fine, A couple of members of this forum have tried to rewrite the script for me (thanks to them) but I'm still gettig the same message. I'm wondering is there something wrong with my system (which otherwise works fine).
    I'd appreciate any help and advice on what may be going wrong.
    Thanks, Ray
    In case it helps, here's the full script (which adds the file's path to the filename):
    set master_Folder to (choose folder with prompt "Choose a folder for filename processing") -- Select folder.
    set path_Depth to ((choose from list {1, 2, 3, 4, 5} with prompt "How many paths in these filenames?") as number) -- Select folder depth.
    tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains all related files.
    repeat with i in file_List
    set {oAStId, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set fileItemsList to text items of (i as string) -- List of individual path items [disk, folder(s), file] of file of file_List.
    set fileItemsCount to count fileItemsList -- Number of individual path items.
    set fileItemsList to text items (fileItemsCount - path_Depth) through fileItemsCount of fileItemsList
    set fullFileName to last item of fileItemsList as string -- Obtain full file name.
    set AppleScript's text item delimiters to "."
    try -- Obtain file name and file extension.
    set file_Name to ((text item 1 of fullFileName as string) & "-") -- Obtain only file name, less any file extension..
    set file_Ext to ("." & (text item 2 of fullFileName as string)) -- Obtain file extension.
    on error -- Sets up a "If you can't do case 1 then try this" .
    set file_Ext to "" -- If no File Extension exists, set 'file_Ext' to "".
    end try
    set AppleScript's text item delimiters to "-"
    -- Change name of file.
    set name of i to (file_Name & ((text items (1) through ((count fileItemsList) - 1) of fileItemsList) as string) & file_Ext)
    set AppleScript's text item delimiters to oAStId
    end repeat
    Various   Mac OS X (10.4.6)  

    Hello RaymondTomin,
    I don't see any reason for Finder to throw such an error in the said line. Perhaps something is wrong in your system.
    Try the following test scripts. If they fail on any folder you choose, I'm afraid something is surely wrong in your system, not in your script code.
    (If they fail, create new user account and try them in it to narrow down the problem cause. Also try repairing disk and/or repairing permissions.
    And it might help as well to clear some caches by using, e.g. Onyx:
    http://www.titanium.free.fr/pgs/english.html
    Or even to re-apply OSX's Combo Updater:
    http://www.apple.com/support/downloads/
    Good luck
    H
    -- TEST 1
    set fda to choose folder
    tell application "Finder"
    items of item fda
    end tell
    -- END OF TEST 1
    -- TEST 2
    set fda to choose folder
    tell application "Finder"
    try
    items of item fda as alias list
    on error
    items of item fda as alias as list
    end try
    end tell
    -- END OF TEST 2
      Mac OS 9.1.x  

  • InDesign Script to find images w/ prefix code, place img on page along with file name.

    Hello,
    I'm looking for an InDesign script that will prompt me for a code/text, this code/text will be the prefix of images in the sever, and then return the images found with this prefix by placing them on the document page and also display their file names in a text box. Is there such a script out there that anyone recommends. Thank you for your help. I'm on a Mac, using InDesign CS6, Javascript or any other would do.

    Hello,
    I'm looking for an InDesign script that will prompt me for a code/text, this code/text will be the prefix of images in the sever, and then return the images found with this prefix by placing them on the document page and also display their file names in a text box. Is there such a script out there that anyone recommends. Thank you for your help. I'm on a Mac, using InDesign CS6, Javascript or any other would do.

Maybe you are looking for

  • How to make tax classification field mandatory in sales order ?

    Hi, while creating sales order, " how to make tax classification field mandatory ". Please tell me the procedure. In tcode OVA2. what are the entries for fields,table. Regards, sapsduser

  • Sap PI - XML signature

    Hi Experts We have to digitally Sign and Encrypt and Decrypt an XML file in PI7.11 system using soap adapter To have an expert advise can I use WSSE or Apache WSS4J or SAML or Apache axis soap adapter My requirement is: XML Documents shall be signed

  • Messages in Schedule status in SXMB_MONI and going into queue in SMQ2.

    Hi Experts, All messages in XI going to schedule status in SXMB_MONI. When i check in SMQ2 to release after some time the messages are going to "SYSFAIL (Time limit exceeded)" status. When i double click on the message in SXMB_MONI, the system is goi

  • Is there a way to make my program parse a bunch of files?  Design advice!

    Hello everyone. Currently my program does parses up a file and spits out a new file (its more complicated than that but in a nut shell thats what it does). The main function looks like this: package corysanchez.rodmload; public class Main      public

  • Replacement for get_fieldtab

    Hi all, Can someone tell me if there is a function to replace get_fieldtab? Mat