Is there a work-around that uplaod Image allows submitted forms AJAX?

I use ajax to submit an entry form web app.  A file upload does not work with ajax in British Colombia.  Is there a work around?

You can submit a form of web application with a file using ajax. As a note, the answer is the confirmation of web app page. I have posted a question recently that I needed help with the answer.

Here is the code I use to send the form with the file:

{$(function()}

$('.upload').click (function () {}

If more than one form on the page, specify an id for the form vs.

formData var = new FormData ($('form') [0]);

$.ajax({)

This code is in the page itself. If in an external script, you must code in the module_oid hard and module_otype.

URL: "/ CustomContentProcess.aspx?" CCID = 35265 & OID = {module_oid} & OTYPE = {module_otype}',

type: 'POST',

XHR: function() {}

myXhr = $. ajaxSettings.xhr ();

{if (myXhr.upload)}

myXhr.upload.addEventListener ('progress', progressHandlingFunction, false);

}

Return myXhr;

},

success: {function (results)}

Console.log (Results);

},

data: formData,.

cache: false,

contentType: false,

processData: false

});

});

The function below manages a progress bar for the download. IE:

function progressHandlingFunction (e) {}

{if (e.lengthComputable)}

progressBar var = document.getElementById ('progress');

progressBar.max = e.total;

progressBar.value = e.loaded;

}

}

});

As a note, I'm not sure that you can submit a regular form with a file using AJAX, but work web applications.

Tags: Business Catalyst

Similar Questions

  • Is there a work around to show the Site identity button when the integration with facebook like/send etc. It disappears when it comes to the page, it's because of the iframe can be done if anything.

    Is there a work around to show the Site identity button when the integration with facebook like/send etc. It disappears when it comes to the page, it's because of the iframe

    What can be done if anything.

    Pages that use "mixed content" (parts of the use of the HTTP page and some use HTTPS) are not secure against tampering, they will not display the site identity button. To resolve this problem, make sure that external resources you are incorporation are available over HTTPS and you use HTTPS to nest them.

    For example, to iframe widgets like the Facebook 'Like' buttons, make sure that your iframe use src = "https://192.168.1.20 /...". »

    See also discussion here: http://stackoverflow.com/questions/3587021/facebook-like-button-breaks-https-ssl

  • Is there a work-around to install anything which is not in the "Microsoft App Center"?

    * Original title: App DOWNLOAD heartmath

    I try to install Heartmath on a tablet of Surface running 8.1 RT

    I get the message cannot install the application on this computer go to App Center

    Is there a work-around as it seems difficult to install anything which is not in the ' Microsoft App Center

    Thank you

    Brian

    Hi Brian,.

    I understand that you want to install the app on the Surface RT Heartmath. However, you may not install all the apps on Surface RT by design and you have to go Windows Store and install apps available.

    For more information or information on Surface RT, see the link.

    http://www.Microsoft.com/surface/en-us/support/apps-and-Windows-store/all-about-apps#getmore

    Hope this information helps. If you have any other questions about Windows, please let us know.

  • forgotten password for security and privacy.  Is there a work around?

    I remember not the password to make changes in security and confidentiality.  I tried all the password I can think of it must be with no luck.  Is there a work-around, or do I have to reinstall OS x.

    Thank you

    Frank

    The administrator password is blank?

    If you have not already tried it, try it.

    https://support.Apple.com/en-us/HT203127

  • Firefox for android mobile phone said app can access the following on your phone... take pictures and videos? Is there a work around? If not have to uninstall.

    I have Firefox for my laptop and wanted to use it on my phone Android mobile phone. When I saw under permissions that the application can access photos and videos and can take photos and videos that seemed very odd. Does anyone know of a work around to keep the app to take photos and videos without my permission? I do not want to uninstall but can allow the intrusion of privacy.

    We have a help article about why this permission is here: how Firefox for Android uses the requested permissions?

    Specifically, some sites may give you the option to attach or embed an image directly from the camera instead of going through a folder of pictures already taken. In order to support this feature, Firefox requires permissions to access the camera. However, according to this article, Firefox will ask your permission before leaving the site to use the camera. I don't think I have ever seen this in action.

  • I bought Adobe Acrobat Pro for MAC (version 9) earlier and since then got a new computer. Version 9 no longer works with my operating system. Is there a work around to having to buy a full version of this product once again? Doesn't seem right, if it's th

    My analysis is contained in my question.

    Basically, I bought Adobe Acrobat 9 and now am unable to operate on my new computer.

    Do I have to buy a new version of Adobe Acrobat Pro? It seems that there should be an upgrade, rather than having to buy the product again?

    Thank you

    ~ j

    Hi jklebenov,

    As I mentioned before that Acrobat 9 is not compatible with your operating system Adobe Acrobat required configuration.

    Please use the application in a consistent environment to make it work.

    Kind regards
    Nicos

  • Player BluRay/Streamer BDP-BX520 won't play MP4. Is there a work around or should I return it?

    It's really frustrating.  I connected an external hard drive to the BDP-BX520.  There top of videos in format MP4, and the unit will not play them.  There are some that are in Bluray format which it will play from the same HARD drive without a problem.  Customer service told me it was just programmed to recognize the MP4.  I bought a Sony Smart TV about 3 months ago and it reads and plays the MP4 from the same HARD drive without any problem.  I had to change the format of the initial videos because they were in .avi and the Smart TV would not recognize them.  I thought I was OK with the MP4 format for the new Blu - Ray player because it worked with the TV.  I mean, how difficult is it for Sony allow the Blu - Ray player to recognize MP4?  Would it be just an update of the firmware?  Hoping I can get answers on it before you pull the plug and turn it over.  I also want to say that Sony customer service is completely dysfunctional and they do not seem to care.  Tried the live chat twice and it is never connected with anyone.  Telephone support was basically worthless.   Thanks in advance for the advice.

    Hello tedgwathmey,

    Thank you for your message.  Please check the formats of reading this article on page 40 of the instructions for use, according to the information available, it will support it as long it has the correct audio codecs which are AAFC for formats MP4, if its via a server or a NAS installation it will not support based on the operating instructions of your Blu - ray player.

    We recommend that you follow the steps in the link below:

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/33080/p/47329%2C47564%2C91682/c/65%2C66/kW/cannot%...

    If my post answered your question, please mark it as "Accept as a Solution."

  • is there a work around for the connection with https. the ssl/tls security patch prevents us to connect to a known trusted site

    I made the mistake of updating to Firefox yesterday and with the ssl security fix find I can most connect to a web site in a data center which is protected by a fortigate appliance.

    I know the correct answer is to get the updated device updated or replaced, but in the meantime, I'm desperately need a workaround solution. It would be nice if there was an archive of old versions of Firefox.

    I changed the configuration settings to allow the renegotiation, but I think that the problem is more fundamental than that it does not appear that older versions of ssl are more provided.

    The error message "the connection was reset" can be caused by a bug for the attack of the BEAST fix (browser exploit against SSL/TLS) that the server does not support.

    See comment 60 in this bug report for workaround, but be aware that this makes you vulnerable to the attack of the BEAST.

    • bug 702111 - intolerant servers to record split of 1: n-1. "The connection was reset".
  • 'Import' under 'File' is greyed out/no selectable and I try to import IE Favorites. Is there a work around?

    My hard drive has been replaced and my Firefox bookmarks appear to have been imported in IE, but not Firefox. I want to import them into Firefox, but the import function does not work (it cannot be selected).

    Make sure that you are not Firefox running in permanent private browsing mode.

    • https://support.Mozilla.com/kb/private+browsing
    • You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
    • To view the history settings and cookies, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "Permanent private browsing Mode.
  • Crop Photo Alters Pixel color value data - is there a work around?

    Hi all

    So basically, I'm batch cropping of the thousands of images at once. Here are the multispectral images - so that they have 5 channels. I crop in chimneys-5 layers by highlighting the layers and cropping the same dimensions for thousands of these (automated as a batch) multi-layer images.

    The problem I have is that when I crop a picture, it alters the colors very slightly compared to the battery under cover; Each layer in the stack is modified slightly in color. I need to keep the same values of color for pixels after cropping.

    Does anyone know a way I can crop an image while maintaining the same values of color/DN for the pixels, as the original game? I use Photoshop CS6.

    Thank you!

    How are these images saved - file format? PS open them in the same color space as the original files and saving them in the same color space?

  • Studio EN - is there a work around for the problem of referencing data from a grid with a different connection of DB and # different dimensions?

    Hello

    I'm making reference to a column in a different grid with a different database connection. I did some searching in the forums, and it seems that it is a known problem with EN Studio. The problem is that if 2 different database connections have different number of dimensions, then the reference will throw an error.

    For example, what I try to do, is below:

    In grid2.column [A], I have the following formula:

    Grid1. Column [A]

    The result is an error.

    The ultimate goal is to have a base of variance formula in the grid between grid1 and grid2, who have connections to different database with a different number of dimensions. Is there a solution to this bug? The example of the basic formula is less to:

    Grid1. Column [A] - grid2.column [A]

    Any help is very appreciated!

    Thank you

    Tiffany

    Have you tried to change the database connection in a row instead of create a new grid?

  • Is there a virus circulating that does not allow you to access your files in drive C?

    Windows xp

    There has been several over the years.

  • session state variable, concept and work around

    I use the variable session state and tried under the code element. But so far, I've had it is that when a variable assigned a value in plsql block, its scope has ended so only.

    And in the next step using the simple sql variable within the same session, we had manifest error.

    Is there a work around using too simple sql variable.

    SQL> CREATE OR REPLACE PACKAGE MYPACKAGE
      2  as
      3  mysess_var number;
      4  end;
      5  /
    
    
    Package created.
    
    
    SQL> create table tmp_sess as select 1 sess_id from dual;
    
    
    Table created.
    
    
    SQL>
    SQL> declare
      2  begin
      3  MYPACKAGE.mysess_var := 1;--Assiging value
      4  insert into tmp_sess values (MYPACKAGE.mysess_var);
      5  commit;
      6  end;
      7  /
    
    
    PL/SQL procedure successfully completed.
    
    
    SQL> --I also want this to be achive for plain sql syntax,  is it possible
    SQL> insert into tmp_sess values (MYPACKAGE.mysess_var);
    insert into tmp_sess values (MYPACKAGE.mysess_var)
                                 *
    ERROR at line 1:
    ORA-06553: PLS-221: 'MYSESS_VAR' is not a procedure or is undefined
    

    You cannot access variable defined in a package of SQL. Good way would be to define the getter and setter methods.

    SQL> create or replace package mypackage
      2  as
      3    mysess_var number;
      4    procedure set_value (pvalue in number);
      5    function get_value return number;
      6  end;
      7  /
    
    Package created.
    
    SQL> create or replace package body mypackage
      2  as
      3    procedure set_value (pvalue in number)
      4    is
      5    begin
      6      mysess_var := pvalue;
      7    end;
      8
      9    function get_value return number
     10    is
     11    begin
     12      return mysess_var;
     13    end;
     14  end;
     15  /
    
    Package body created.
    
    SQL> exec mypackage.set_value(1)
    
    PL/SQL procedure successfully completed.
    
    SQL> select mypackage.get_value
      2    from dual;
    
     GET_VALUE
    ----------
             1
    
  • Work around for unsupported operating system?

    I am rcving a message that InDesign does not support the operating system that I use, so I can't download or use. Is there a work around for this problem?

    Hi Rachel,

    Unfortunately there is no work around for the product that is not supported for an operating system.

    Check the system requirements here: http://helpx.adobe.com/x-productkb/policy-pricing/system-requirements-indesign.html

    Thank you!

    Ankit

  • Script to work around bugs in Illustrator

    Newbee here, we work in Illustrator CS5.  I've gathered a few scripts and Actions for automating many parts of our work.

    I'll start with what we have now.  What we have now works on Mac and PC, and if there is a way around these BUGS, it should work on Mac & PC.

    (1) we have a .ai (our default format) file that we can open and inside the text fills in automatically when you start a script. (see Custom below script) Some text boxes fills in the date based on the current date on our computer, some areas of text fills a name based on the name of the electronic .ai file.

    Screen shot 2012-10-10 at 4.33.22 PM.jpg

    See the red boxes.

    Screen shot 2012-10-10 at 4.33.40 PM.jpg

    One of the difficulties that I have worked on is, sometimes in one of the fields in the file, it must have a name composed of only 4 sections (or 3 dashes). In the example: ILSLIM = 1, = 2, TEST 3 = EXAMPLE & AA01 = 4.

    Screen shot 2012-10-10 at 4.34.21 PM.jpg

    Thus, when it then produces the last indent in this area of text on our format (not all of the other text boxes) will need the 3rd indent removed (now it's only 3 sections because TESTAA01 has become a).

    Screen shot 2012-10-10 at 4.43.05 PM.jpg

    So I created an 'Action' Illustrator who will be after the 'ChangeFileNameDate' script is executed, 'The Action' will select the text area and then run 'Search and replace' to remove the 3rd indent as seen above.

    NOW THE PROBLEMS!  (Illustrator bugs)

    (1) in Illustrator 'Actions' when you save an 'Action' & the 'Insert Menu Item... ". "lets put a Script, it will work.  BUT when you exit out of Illustrator & then start the custom Script again will disappear. I looked in this & it's a known bug for years in Illustrator which is still not fixed.

    http://js4ai.blogspot.com/2012/03/how-to-permanently-tie-script-to-action.html

    Screen shot 2012-10-10 at 5.00.50 PM.jpg

    Screen shot 2012-10-10 at 5.01.19 PM.jpg

    Screen shot 2012-10-10 at 5.01.33 PM.jpg

    Work up to what you quit and restart.

    BEFORE LEAVING.

    Screen shot 2012-10-10 at 5.01.41 PM.jpg

    AFTER RELAUNCH.

    Screen shot 2012-10-10 at 5.05.03 PM.jpg

    SO the only work-around, I can get to work for now is to «Insert Menu Item»... ««Other script...» "& it will remain same after restarts, BUT whenever we run 'Action' we must manually select the script. (SHIT)

    Screen shot 2012-10-10 at 5.13.54 PM.jpg

    Screen shot 2012-10-10 at 5.14.08 PM.jpg

    Yet here, after relaunch.

    Screen shot 2012-10-10 at 5.14.25 PM.jpg

    MORE A BUG with the 'Find and replace' registration.  In case you don't know, when you save 'Actions' in Illustrator, you can; save one of the actions that require a dialog box; ((1) to-for either have the dialog go up then you can get everything you need in it or 2) you might NOT get dialog box up to & action will do whatever she had in her when she you recorded.  This feature is turned on or off by clicking on the box next to the check box on or off (see photo).

    Screen shot 2012-10-11 at 9.17.08 AM.jpg

    The BUG is so, for my 'Actions' that use the "Find and replace" to remove the dashboard to work for some reason that I have to have the first "find and replace" stages of dialogue botton ON so that the "Find and replace" dialog box opens.

    Let me explain, when you register to use the "Find and replace" it works perfectly even with the dialog box option clicked but if you quit Illustrator and then restart it and try to launch "Actions" which have the "Find and replace" in them then Illustrator crash.  So the only work around that I found for this BUG DIPSHIT is simply having 1 'find and replace' in the 'Action' registered with the dialog box set to (to open when the Action is performed) and then must manually close it.  We owe nothing within this type.  He must simply open & close and then have it.  Then for some reason any the rest of 'Actions' recorded will run out with boxes of open dialogue with the removal of the 3rd dashboard as when I registered 1.

    So basically, if I want to 'Actions' to work at this point I must do this.  whenever I raise the Illustrator I would need to manually load the script custom 'Actions' and I would need to open and close the box "find and replace".  It's the whole issue of the 'Actions' CRAP & Scripts are so I can do everything MANUALLY, no..  We should be able to make it work for us!

    OR maybe that would be the best solution!


    If in the "ChangeFileNameDate" custom script, it could just open and then close the box "Find and replace" (which would solve the bat with "Find and replace" in 'actions') then the custom script could cause 'The Action' to play instead of 'The Action' causing the custom script to play.  All we would have to do is slip down to the custom script of 'File' & who.  No don't crash, no babysitting.

    DOES ANYONE KNOW HOW OR IF THIS IS POSSIBLE?  To add to the attached script:

    (1) initially to open and close the box "find and replace".

    (2) at the end to cause 'action' saved to run.

    WE WOULD BE SO VERY, VERY, VERY GRATEFUL!

    //////////////////////////////////////////////////////////// english //
    // ----------------------
    // -=> WR-DateAndTime <=-
    // ----------------------
    //
    // A Javascript for Adobe Illustrator
    // by Wolfgang Reszel ([email protected])
    //
    // Version 0.9 from 22.9.2011
    //
    // This script inserts the actual date or the actual time to a
    // predefined position in the document.
    //
    // To define the position, you'll have to create an textobject and
    // execute this script while the object is selected. The whole object
    // has to be selected and not words or letters. You can mark more
    // objects, if you select each object separate and execute
    // the script on it.
    //
    // With the placeholders {DATE} and {TIME} you are able to define a
    // particular point, where the date or the time should be replaced.
    // If there is no placeholder in the textobject
    // "{FILENAME}{FILEEXT} ({DATE}, {TIME})" will be used as standard placeholders.
    //
    // To update the date and time execute this script without any object
    // selected.
    //
    // There are some additional placeholders:
    //   {FILE}     - complete document-filename with path
    //   {FILEPATH} - only the documents filepath
    //   {FILENAME} - the filename of the document
    //   {FILEEXT}  - the file extension of the document inclusive dot
    //
    // On my system this script can't see the path of the document, when
    // it was opened directly from windows Explorer (double click).
    //
    // In Illustrator CS it is now possible to edit a DateAndTime-Object.
    //
    // To enable the english messages and date-format change the "de"
    // into "en" in line 90.
    //
    // Sorry for my bad english. For any corrections send an email to:
    // [email protected]
    //
    //////////////////////////////////////////////////////////// Deutsch //
    // ----------------------
    // -=> WR-DateAndTime <=-
    // ----------------------
    //
    // Ein Javascript fuer Adobe Illustrator
    // von Wolfgang Reszel ([email protected])
    //
    // Version 0.9 vom 30.9.2011
    //
    // Dieses Skript fuegt das aktuelle Datum und die aktuelle Uhrzeit an
    // eine vorher bestimmte Stelle im Dokument ein.
    //
    // Um eine Stelle zu bestimmen, muss man ein Textobjekt erzeugen, es
    // markieren und dann dieses Skript aufrufen. Es muss das gesamte Objekt
    // ausgewaehlt sein, nicht etwa Buchstaben oder Woerter. Es lassen sich
    // nacheinander auch mehrere Objekte als Datum/Uhrzeit markieren.
    //
    // Mit den Platzhaltern {DATE} und {TIME} (in geschweiften Klammern)
    // kann man bestimmen, wo genau im Text das Datum und die Uhrzeit
    // erscheinen soll. Sind die Platzhalter nicht vorhanden, wird
    // automatisch "{FILENAME}{FILEEXT} ({DATE} - {TIME})" verwendet.
    //
    // Zum Aktualisieren des Datums/Uhrzeit muss man dieses Skript aufrufen
    // wenn kein Objekt ausgewaehlt ist.
    //
    // Es gibt noch einige zusaetzliche Platzhalter:
    //   {FILE}     - kompletter Dateiname mit Pfad
    //   {FILEPATH} - nur der Verzeichnispfad des Dokuments
    //   {FILENAME} - der Dateiname des Dokuments
    //   {FILEEXT}  - die Dateiendung des Dokuments inklusive Punkt
    //
    // Auf meinem System kann der Pfad nicht ermittelt werden, wenn das
    // Dokument vom Windows Explorer geoeffnet wird (Doppel-Klick).
    //
    // InÿIllustrator CSÿkann man nun ein Datum/Uhrzeit-Objekt bearbeiten.
    //
    // Um dieses Skript mit deutschen Meldungen und Datumsformat zu
    // versehen, muss in Zeile 90 das "en" durch ein "de" ersetzt werden.
    //
    // Verbesserungsvorschlaege an: [email protected]
    //
    
    //$.bp();
    
    // -------------------------------------------------------------------
    
    var language="en";   // "de" fuer Deutsch
    
    // -------------------------------------------------------------------
    
    var WR="WR-DateAndTime v0.9\n\n";
    
    var AIversion=version.slice(0,2);
    
    if (language == "de") {
    
      var format_preset = "{FILENAME}{FILEEXT} ({DATE} - {TIME})";
    
      var MSG_unsetmark = WR+"Dieses Objekt ist als aktuelles Datum/Uhrzeit markiert, soll die Markierung aufgehoben werden?";
      var MSG_setmark = WR+"Soll dieses Textobjekt als aktuelles Datum/Uhrzeit markiert werden?";
      var MSG_askformat = WR+"Soll das Textobjekt als Datum/Uhrzeit formatiert werden? Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
      var MSG_editformat = WR+"Datums-/Uhrzeitformat bearbeiten (Leer = entfernen). Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
      var MSG_notexto = WR+"Kein Textobjekt!";
      var MSG_selectedmany = "Zum Markieren als aktuelles Datum/Uhrzeit darf nur ein Textobjekt ausgew\xE4hlt sein und falls Sie die Daten aktualisieren wollen, darf kein Objekt ausgew\xE4hlt sein.";
      var MSG_nodocs = WR+"Kein Dokument ge\xF6ffnet."
      var Timeformat = 24;
      var TimeSep = ":";
      var AM = " am";
      var PM = " pm";
      var Dateformat = "dd.mm.yyyy";
    
    } else {
    
      var format_preset = "{FILENAME} ({DATE}, {TIME})";
    
      var MSG_unsetmark = WR+"This object is marked as actual date'n'time, do you want to remove the mark?";
      var MSG_setmark = WR+"Do you want to mark the selected textobject as actual date'n'time?";
      var MSG_askformat = WR+"Do you want to mark the textobject as actual date'n'time? Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
      var MSG_editformat = WR+"Edit date'n'time (empty = remove). Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
      var MSG_notexto = WR+"No textobject!";
      var MSG_selectedmany = "To mark as actual date'n'time, you have to select only one textobject. If you want to update the date'n'time-objects, there must be no object selected.";
      var MSG_nodocs = WR+"You have no open document."
      var Timeformat = 12;
      var TimeSep = ":";
      var AM = " am";
      var PM = " pm";
      var Dateformat = "yyyymmdd";
    
    }
    
    var error=0;
    
    if (documents.length<1) {
      error++;
      alert(MSG_nodocs)
    }
    
    if (error < 1) {
      date_n_time();
    }
    
    function TodayDate()
    {
      var Today = new Date();
      var Day = Today.getDate();
      var Month = Today.getMonth() + 1;
      var Year = Today.getYear();
      var PreMon = ((Month < 10) ? "0" : "");
      var PreDay = ((Day < 10) ? "0" : "");
      if(Year < 999) Year += 1900;
    
     var theDate = Dateformat.replace(/dd/,PreDay+Day);
     theDate = theDate.replace(/mm/,PreMon+Month);
     theDate = theDate.replace(/d/,Day);
     theDate = theDate.replace(/m/,Month);
     theDate = theDate.replace(/yyyy/,Year);
     theDate = theDate.replace(/yy/,Year.toString().substr(2,2));
    
     return theDate;
    }
    
    function TodayTime()
    {
      var Today = new Date();
      var Hours = Today.getHours();
      var Minutes = Today.getMinutes();
      var Suffix = "";
      if (Timeformat == 12) {
        if (Hours >= 12 ) {
     Suffix = PM;
     } else {
     Suffix = AM;
     }
     if (Hours >= 13) {
     Hours = Hours - 12;
     }
     if (Hours < 1) {
     Hours = Hours + 12;
     }
     }
      var PreHour = ((Hours < 10) ? "0" : "");
      var PreMin = ((Minutes < 10) ? "0" : "");
      return PreHour+Hours+TimeSep+PreMin+Minutes+Suffix;
    }
    
    function DateUpdate(Name) {
      var docpath = activeDocument.path.fsName;
      var docname = activeDocument.name.replace(/(.*?)(?:\.([^.]+))?$/,'$1');
      var extension = activeDocument.name.replace(/(.*?)(?:(\.[^.]+))?$/,'$2');
      if (docpath.slice(2,3) == "\\") {
        docsep = "\\";
      } else {
        docsep = ":";
      }
      var content = Name.slice(11);
      var content = content.replace(/\{FILE\}/,docpath+docsep+docname);
      var content = content.replace(/\{FILEPATH\}/,docpath);
      var content = content.replace(/\{FILENAME\}/,docname);
      var content = content.replace(/\{FILEEXT\}/,extension);
      var content = content.replace(/\{DATE\}/,TodayDate());
      var content = content.replace(/\{TIME\}/,TodayTime());
      return content;
    }
    
    function date_n_time()
    {
      if (selection.length == 1) {
        if (selection[0].typename == "TextArtItem" || selection[0].typename == "TextFrame") {
          if (selection[0].name.slice(0,11) == "actualDate:") {
            dateformat = selection[0].name.slice(11);
            Check = false;
            if (AIversion == "10") {
              Check = confirm( MSG_unsetmark );
            } else {
              dateformat = prompt(MSG_editformat, dateformat);
            }
            if(dateformat != "" && Check) {
              selection[0].contents = selection[0].name.slice(11);
              selection[0].name="";
              selection[0].selected = false;
            }
            if(dateformat == "" && !Check) {
              selection[0].name="";
              selection[0].selected = false;
            }
            if(dateformat && dateformat !="" && !Check) {
              selection[0].name="actualDate:"+dateformat;
              selection[0].contents = DateUpdate(selection[0].name);
            }
          } else {
            dateformat = selection[0].contents;
            if(dateformat.search(/\{DATE\}/) == -1 && dateformat.search(/\{TIME\}/) == -1 && dateformat.search(/\{FILE[A-Z]*\}/) == -1) dateformat = format_preset;
            Check = false;
            if (AIversion == "10") {
              Check = confirm( MSG_setmark );
            } else {
              dateformat = prompt(MSG_askformat, dateformat);
            }
            if (dateformat || Check) {
              selection[0].name="actualDate:"+dateformat;
              selection[0].contents = DateUpdate(selection[0].name);
              selection[0].selected = false;
            }
          }
        } else {
          alert ( MSG_notexto );
        }
      } else if (selection.length > 1) {
        alert ( MSG_selectedmany );
      } else {
        if (AIversion == "10") {
          var textArtItems = activeDocument.textArtItems;
          for (var i = 0 ; i < textArtItems.length; i++)
          {
            if (textArtItems[i].name.slice(0,11) == "actualDate:") {
              textArtItems[i].selected = true;
              textArtItems[i].contents = DateUpdate(textArtItems[i].name);
            }
          }
        } else {
          var textFrames = activeDocument.textFrames;
          for (var i = 0 ; i < textFrames.length; i++)
          {
            if (textFrames[i].name.slice(0,11) == "actualDate:") {
              textFrames[i].selected = true;
              textFrames[i].contents = DateUpdate(textFrames[i].name);
            }
          }
        }
      }
    }
    
    

    I THANK GOD ALMIGHTY!  A friend who knows AppleScript helped me to understand!

    executives of related texts var = activeDocument.textFrames;

    for (var i = 0; i)< textframes.length;="">

    If (.note executives of related texts [i] == 'NAME of the SUPERIOR FORDDOC') {}

    var frameName = .silence frames linked text [i];

    newFrame = frameName.replace (/(.*-.*-.*)-(. *) /, "$1$ 2");

    related texts [i] = newFrame .silence frameworks

    }

Maybe you are looking for