Changing the form name in a .js file

hi,
I am trying to use .js files instead of script in the jsp page with the use of
<script src="root/scripts/foo.js"></script>.
This foo.js has got the functions which access the information of the form in which they are included. So if I specify a dummy form name in the script, while a page (say "thisPage.jsp" with a form name "thisForm")is loading I would like all the references in the javascript file which are like this document.someFormName.---- to document.thisForm.--.
How do I do this.
regards,
f

actually, what you asked is completely a Javascript question. There's nothing JSP related about it. Nothing.
Your actual question, the one you actually posted, was answered correctly. If your question was wrong, then that's not our problem.
What does concurrent users have to do with anything anyway? Are they all using the same PC and browser instance at the same time? I doubt it. All the code you are referring to is Javascript code, and that will only run in the browser, not on the server, so concurrent user actions have nothing to do with it.
If you want to change the form name in JSP, then you can do so when writing the page:
<form name="<%= theFormName %>" action="..." method="POST">
Otherwise, 'document.'+name ..., eval(), all that is Javascript, not JSP, has nothing to do with JSP or other users.
So in conclusion, I don't think it's us people that posted answers interpretting things wrong, it's you who doesn't have any idea what he's doing.

Similar Messages

  • Changing the Tape Name of a media file

    I need to change the Tape Name of an hour long media file that I captured a while ago.
    (Gave it the wrong name and didn't notice til today.)
    Is this possible?
    Can I use the new name if sometime down the line I need to recapture the media?
    Or are my only options to recapture or use the old name?
    I haven't done anything with the file, haven't started the edit yet.
    I need to change the Tape Name as well as the File Name and move it into a new FCP project.

    I wish I could share your conviction on this working. I have had many instances of reel number changes not following through the workflow. (afaik reel number info is not embedded into the quicktime file, it remains within the fcp project file. how can you see its there in the quicktime file Michael? ) only too frequently do reel numbers get corrected and then revert to the original bad reel number.
    I know this can be rectified by entering the right reel number in the first place, but human nature being what it is, especially when a big team is involved in ingesting footage, errors will creep in.
    our solution here is to maintain a clear trail to the source tape by prefixing the tape no into the name column.
    FCP's media managing being what it is, this has worked reliably for us.
    regards
    andy
    mac pro 2,66, 4gig ram, quad 2.5ghz g5, 4.5 gig ram,   Mac OS X (10.4.8)   G4 powerbook 1.67gHz, 2gig ram

  • Changing the display name of project file folders for TOC

    I'm interested in changing the display names of the project file folders for my TOC. For example, I want to name the folder "01-intro" so that it is short and lowercase. But I'd like the TOC to say "Introduction to the System." I know I can manually rename the folder in the TOC either through its properties or by right-clicking => Rename, but I auto-create the TOC occasionally and I don't want to have to rename every folder every single time.
    Does anyone know if there is a way to set a persistent property for the folder so that its display name in the TOC is different? I am using RoboHelp 9. I saw an option called "Detail" in the properties of the WebHelp layout in RoboHelp 8 that seems like it may have done that, but I no longer see this property in RoboHelp 9.
    Any assistance would be much appreciated. Thank you.

    I think the lack of response confirms that if you are going to use Auto Create, you have to accept the way it is.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Powershell: How to change the header name in a imported CSV file

    HI All,
    I have a csv file in which I want to change the headers names in powershell.
    oldnames are name,id
    newnames I want to give are: company and transit respectively.
    Following is what I wrote in script:
               $a = import-csv .\finalexam\employees.csv -header name,id'
                       foreach ($a in $as[1-$as.count-1])  // I used 1 here because I want it to ignore the  exiting headers.
                      { $_.name -eq company, $_.id -eq transit}
    I think this not entirely correct way to do this. Can someone show me how to fix this.
    Regards
    SQL 75

    If you're not an experienced PowerShell programmer, I recommend editing the file in a text editor and changing the name that way.
    -- Bill Stewart [Bill_Stewart]

  • Changing the field name at runtime in rpt file

    Hi everybody
    I'm using C# and Crystal Report XI (Deverlop license) to develop windows application in VS.net 2003.
    Please help me to change the field name of the bounded column of Crystal report file at the runtime.
    (In some case client's database had changed the structure as fieldname, fieldtype. Then they request a utility to change the field names in the .rpt file programmatically )
    Thanks
    GiangSon
    My email address: [email protected]

    user11200661 wrote:
    That's fine but still i want to prefix the schema name within the .sql file. My .sql should contain the name of that parameter only as i want to get that parameter replaced by the schema name at runtime. Some other users are using the same .sql file and they have access to that specific schema only. i want to make the .sql file more general so that it can be used by everyone without altering it every time.Sorry, your requirement no longer makes sense.
    If people have to access a specific schema because they need the script for general use, then you will have to hard code the schema name into it.
    If the script is to prompt for the schema name and connect to that schema and then use that schema name inside the called sql script, then people would not be able to use it generically, as it would be reliant upon the schema name being passed in.
    It sounds as if you're trying to write one generic thing that needs to do two different tasks.
    Just have two scripts and make life simple.

  • Why do I receive the exclamation point when I just change the album name? File goes missing?

    I keep all of my itunes media on an attached network hard drive.  Had no problems for months but over the past 45 days I've noticed that material has started to go missing that I know I did not delete.  I have found no malware on my system.
    I read a script to tell me all the files that had an exclamation point.  There were some TV shows (an entire season gone missing) and some CDs.
    I just did a test and imported a CD.  I then clicked "get info" and changed the name of the album.  Immediately I received the exclamation point and when I tried to find the original file it is gone.  I have no idea where the file has gone to.  I've tried searching, looking around to find it, and I can't. 
    Why is itunes having this behavior?  How is the file being deleted?  Any other thoughts or ideas of what I should do to stop this?
    I've also sent a support request to the hard drive mfg (lacie) but I'm not sure I'll get much help there.
    Thanks.

    More info:  I just ran the same test two ways.  One, I had some files on my desktop, run a script to move these files to the "automatically add to itunes" folder, the files move just fine to my external hard drive and to itunes.  The file plays just fine and the "get info" tab shows it is playing the file from the external hard drive where the file was moved to (not copied).  But, as soon as I change the artist name or the album, the file goes missing and I get the exclamation point.
    I ran the same test by putting the files on my desktop, but instead of moving the file to the "automatically add to itunes folder" I just double clicked the file to play it.  I let itunes add a copy and organize my folders.  This time, the file would have been copied (not physically moved) and I see itunes is playing the new copied version.  This time, when I try to change the artist name or album, I have no problems.
    I've never encountered this before.  Any info?  Thanks.

  • How do I change the document name on my iPad after editing it?

    I have forms to fill multiple time for different projects!  On the iPad, I can not tell if they are different because I can't see the changes when saved to iBook or emailed. Do I have to wait until I'm at me PC, if yes the iPad and your app are useless!

    You can change the document name before editing it, using the Duplicate feature.  You can do this in the File Manager by going into ‘Edit’ mode, selecting the file, and choosing Duplicate option.
    Adobe Reader currently does not support saving a copy of a file after changes are made to it (and not yet saved in the original).  This is a feature we would consider for a future update.
    Thanks for your feedback.
    -Gaurav

  • Is it possible to change the font name and size without having to compile?

    Dear All
    We have one requirement that we need to change the font name and font size at run time dynamically without having to compile all the forms in 6i.
    Is there any way or work around to achieve the same.Kindly suggest us.
    something like using uifont.ali or forms60_defaultfont, or set_item_property
    Thanks and Regards
    Thangaraj.

    Dear All,
    Thanks for your updates, Technically what both of you said is correct. but in application server we used something like ClientDPI to match the client server font with the application server, i need to know that is there anyother way something like this...?
    I have read one document(Note:28397.1 in metalink) saying that using uifont.ali file we can change the font at run time, but i have used this only for report
    Thanks and Regards
    Thangaraj.S

  • How to change the library name..?

    Hello guys
    i wanna change the library name.
    can any help me pls..?
    Abdetu..

    open your .pll file in forms builder and use save as to change the name, and regenerate the .plx from the new .pll and attach the .pll to your forms.
    You probably need to reattach to all the forms that uses the old library if you plan to remove it completely.
    Tony

  • How to change the default name of new adjustment layers? (and other Q's)

    How do I change the default name of new adjustment layers?
    How can I make it so that adjustment layers don't come with a mask when I create them (unless I have a selection active)?
    Why isn't the Shadows/Highlights functionality an adjustment layer? It's accessable under "adjustments" but you can't use it non-destructive
    Where can I find documentation on Photoshop's API? (I want o make tools for it - javascript)

    Forgive me for not looking into your Maya-specific links, but one can automate Photoshop using JavaScript indeed (on Windows also VB, on Mac also AppleScript).
    Not everything can be automated naturally, but a lot – and it can really speed up many tasks; and with the »small« repetitive ones like saving copies off of files etc. combining Scripts with Configurator Panels can be especially convenient.
    There is a Scripting Forum over at
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    As for plugins: it's something I would like to learn some day (I guess you would have to go with Flash and AS3 for making actual plugins)
    I think you might also have to learn C++ or C.
    There is Forum the contributors to which might be able to give you pointers if you get to that. 
    http://forums.adobe.com/community/photoshop/photoshop_sdk

  • How to change the SID name in the server

    hi all,
    i installed oracle 10g R1 on windows 2003 server. i gave an sid and created a database. the database is new and there is no data in the db. now i want to change the SID name of the database. pls help me in doing this.
    regards,
    nagarjuna

    Hi,
    Just a notice: SID and DBNAME are two different things. But the usual practice is to have SID = DBNAME, so let me assume you want to change both SID and DBNAME.
    Either you can do it manually by recreating the controlfile as orawiss suggests. You may discover some challenges around the way (for instance, for the command CREATE CONTROLFILE SET "new_dbname" to work, you have do delete or rename the old controlfiles first).
    Or, you can change it easier by using nid utility. The detailed howto and all implications can be found on:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dbnewid.htm
    Basically:
    SQL> create pfile from spfile;
    SQL> shutdown immediate;
    nid TARGET=sys/password@oldname DBNAME=newname
    copy the initoldname.ora to initnewname.ora and edit the DB_NAME parameter to reflect the new name
    sqlplus / as sysdba
    SQL> create spfile from pfile;
    SQL>startup mount;
    SQL> alter database open resetlogs;
    Then don't forget to generate new password file for the new dbname (using orapw) and make changes in tnsnames.ora and listener.ora if needed.
    Just make sure, the database has been properly shut down before changing the db_name either manualy by recreating controlfile or by the newid utility, as the renamed database has to be opened with resetlogs - making any crash recover of improperly shut down database impossible.
    Kind regards,
    Martin

  • I just highlighted and changed the artist name of about a hundred songs in my library.  This was an accident and I want to change them back. I can't "undo" or search for artists' names online. Any way to fix this? They are still highlighted.

    These were all songs I had ripped from old CDs, lot of which, I no longer have. I can't remember that artists' names for all these songs.  They are all "oldies" from the fifties and I just accidentally changed the artist for all them to Fats Domino. I'd had them all highlighted because I had done a batch change of their genre to Oldies. I couldn't tell that they were all still highlighted after that change because I could only see two of the songs at the time that I changed the artist name.  Is there any possible way to undo this?  All the tracks are still highlighted from the naming operation. I can't search for the artists' names online because I didn't purchase them from iTunes.  Any suggestions would be greatly appreciated.  Thanks!

    I found one other way to do it.  I just deleted them all out of my iTunes library. Now I can re-import them from Window's My Music file with the original artists' names intact.
    Thanks for your help, Matt!

  • Changing the table name while drill down at the dashboard query

    I have a DAY fact table that has about 1B rows.
    The purpose of this table is to store on hand quantity for each item per day.
    On the presentation layer I have a dashboard that will display average on hand qty per year and then user can drill down to quarter/month/week and then by day level to see the actual value at evey level.
    Its hard to run aggregation on fly as all my 3 TEMP tablespace 32gb each filled and then I get error can not extent TEMP file.
    So I thought I will do the aggregation at the database level and store the aggregated data in another table. So at first dashborad will read this new aggregated table to display qty at yearly. As soon as user drill down to quarter the dashbord should query the actual DAY fact table by filtering for specific year and quarter.
    IS it possible? Can I change the table name while I drill down to lower level?
    Thanks in advance.

    Hi use,
    Yes. This is possible in OBIEE. You need to use Action Links to have navigation between reports. The main idea is to have 2 analysis. One with your aggregated data by year (using your aggregated table), and another one with the rest of the hierarchy and data (using normal fact table)
    You add an action link on this report, that can navigate to the second report. showing "the details" (in your case would be the rest of the time dimension).
    Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/ for actions links.
    Another way is to create 2 analysis, then go to the 2nd analysis, and filter the column year as "Is based on results of other analysis" and you select there the first analysis. In this case when you click on the year in the first analysis, this value will be passed to the second analysis so you can filter the rest of the hierarchy based on the year you clicked on the first analysis.
    If helpful, assign points.
    J.

  • Changing the Database Name

    Hi Gurus
    I am using oracle 10g on Windows platform. The issue is I need to change my database name. When i gone through the Oracle docs I found there is an utility called 'DBNEWID' . But not getting a clear cut idea. Since my DB is So critical anybody please tell me the exact steps to change the DB-Name.
    Thanks & Cheers
    Antony

    Changing Only the Database Name
    C:\>SQLPLUS/NOLOG
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 22 10:54:38 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> CONN / AS SYSDBA
    Connected.
    SQL> SELECT DBID,NAME FROM V$DATABASE;
    DBID NAME
    1230404613 DB01
    SQL> SHUTDOWN IMMEDIATE;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Must be : Take Whole Database Backup (Oracle Recommended)
    Otherwise u lost ur database.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    --Go Command Prompt
    DBNEWID UTILITY >>>NID ( OS Path : d:\oracle\product\10.1.0\db_1\bin\nid)
    C:\>SET ORACLE_SID=DB01
    C:\>NID TARGET=SYS/ORACLE@DB01 DBNAME=ORADB01 SETNAME=YES
    DBNEWID: Release 10.1.0.2.0 - Production
    Copyright (c) 2001, 2004, Oracle. All rights reserved.
    Connected to database DB01 (DBID=1230404613)
    Connected to server version 10.1.0
    Control Files in database:
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL
    Change database name of database DB01 to ORADB01? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from DB01 to ORADB01
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - modified
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSTEM01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\UNDOTBS01.DBF - wrote new nam
    e
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSAUX01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\USERS01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\TEMP01.DBF - wrote new name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - wrote new
    name
    Instance shut down
    Database name changed to ORADB01.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    Set the DB_NAME initialization parameter in the initialization parameter file (PFILE) to the new database name.
    Note:
    The DBNEWID utility does not change the server parameter file (SPFILE). Therefore, if you use SPFILE to start your Oracle database, you must re-create the initialization parameter file from the server parameter file, remove the server parameter file, change the DB_NAME in the initialization parameter file, and then re-create the server parameter file.
    ---Create New Password File
    cmd>orapwd file=d:\oracle\product\10.1.0\db_1\database\pwddb01.ora password=oracle entries=5
    SQL> STARTUP PFILE=D:\Oracle\product\10.1.0\Db_1\database\initdb01.ora
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    Database opened.
    SQL> select dbid,name from v$database;
    DBID NAME
    1230404613 ORADB01
    Note:
    After Change DB Name Take Whole Database bkp.
    Note: If i am missing some step or write wrong step plz. correct me.
    Before doing this refer documentation.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm
    thanx
    Message was edited by:
    user526020
    null

  • Change the attachment name while sending PO as mail..

    Hi,
    I’m able to send PO Form through mail using NACE, configuration for output type.
    But my Attachment name is always showing as ‘Print Data‘.
    My requirement is to change the attachment name as below.
    Program: SAPFM06P
    Script: Z_SD_PORDER
    Please help on this issue.
    Thanks in advance.
    Regards,
    Kumar

    I didn't find any field with PACKING_LIST in program 'SAPFM06P'.
    If we create the copy of 'SAPFM06P' kindly let me know where I need to change the same..
    in form entry_neu using ent_retco ent_screen.
    the below is the code.
    *   INCLUDE FM06PE02                                                   *
    form entry_neu using ent_retco ent_screen.
       data: l_druvo like t166k-druvo,
             l_nast  like nast,
             l_from_memory,
             l_doc   type meein_purchase_doc_print.
       clear ent_retco.
       if nast-aende eq space.
         l_druvo = '1'.
       else.
         l_druvo = '2'.
       endif.
       call function 'ME_READ_PO_FOR_PRINTING'
            exporting
                 ix_nast        = nast
                 ix_screen      = ent_screen
            importing
                 ex_retco       = ent_retco
                 ex_nast        = l_nast
                 doc            = l_doc
            changing
                 cx_druvo       = l_druvo
                 cx_from_memory = l_from_memory.
       check ent_retco eq 0.
       call function 'ME_PRINT_PO'
            exporting
                 ix_nast        = l_nast
                 ix_druvo       = l_druvo
                 doc            = l_doc
                 ix_screen      = ent_screen
                 ix_from_memory = l_from_memory
                 ix_toa_dara    = toa_dara
                 ix_arc_params  = arc_params
                 ix_fonam       = tnapr-fonam          "HW 214570
            importing
                 ex_retco       = ent_retco.
    endform.
    Kindly give the clear view.

Maybe you are looking for

  • Can I use the CD key more than once?

    I bought Lightroom as a Christmas present for my husband this year, but his laptop was stolen recently. It will be a few months before we can afford getting him a new one, and I want him to still be able to use Lightroom until then, so I was consider

  • Can two users really share a photo library?

    The Apple website suggests that with Aperture and iPhoto two users can share a photo library on one mac. Here is the exact text at http://www.apple.com/uk/aperture/iphoto-to-aperture/ : iPhoto. Aperture. And the all-in-one library. Now iPhoto and Ape

  • How to give grants on runtime objects

    Hi, I have created read only apps user,but i want to have a trigger/procedure which should give grant at runtime when the object i.e synnonym/view created in apps user. I have tried the anil passi read only apps user-trigger but it is throwing errors

  • File Permission and HttpClient

    I'm trying to use HttpClient to upload files with my applet. I'm signing my applet and can read files directly, but when I go to upload using HttpClient I get access denied errors: ERROR: java.security.AccessControlException access denied (java.io.Fi

  • Consolidation Unit in the wrong position in Accounting Techniques tree

    Hi all, I'm facing a problem with a consolidation unit (A) in the Accounting Techniques tree (T1). The issue is resolved when I delete the unit A from the consolidation group tree (T2) but, when I add the unit A to the consolidation group tree (T2) a