Issue with js file

Apex: 3.1.0
IE: 6
Firefox: 3.6
I have an application where the javascript was in the header of the page. Everyting was working fine, but it became too large, so I placed it in a js file, and loaded it as a static file. When I first go into my application in IE, everything works fine. I can click on the various buttons, and the javascript is called. If I reload the page, my javascript no longer works. I get the following error in IE:
Line: 1
Char: 1
Error: Object expected
Code: 0
URL: http:// <the URL>
The only way I can get it to work again is to delete my temporary files, and reload the page. Then it will work until I reload the page again. The really odd thing is, it works fine in Firefox. I can reload the page, or do whatever I want, and it works fine.
This is the line I have in my header to include the js file:
<script type="text/javascript" src ="#WORKSPACE_IMAGES#ptm.js"></script>Here is a sample of the code I have in my js file. I did read in one of the posts that there are somethings you can't include in a js file verses imbedded javascript in an Apex application, so I thought maybe that might be my problem. This is not the entire function, but it shows some of the functions I'm using.
function deleteEducation() {
  var checked = false;
  var notEmpty = false;
  for (i=1;i<=$x('P1_EDU_COUNT').value;i++) {
    if ($x('f05_000' + i).checked) {
      checked = true;
      if ($x('f07_000' + i).value != '' || $x('f08_000' + i).value != '') {
        notEmpty = true;
  }Any suggestions on what might be the issue?
Rick

try this
<script type="text/javascript" src ="&WORKSPACE_IMAGES.ptm.js"></script>Mark Wooldridge
www.sds-cg.com

Similar Messages

  • A serious issue with excel file read in ODI

    hi gurus,
    Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
    what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
    So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    FullName = objArgs(I)
    FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
    Set objExcel = CreateObject("Excel.application")
    set objExcelBook = objExcel.Workbooks.Open(FullName)
    objExcel.application.visible=false
    objExcel.application.displayalerts=false
    objExcelBook.SaveAs FileName & "csv",23
    objExcel.Application.Quit
    objExcel.Quit
    Set objExcel = Nothing
    set objExcelBook = Nothing
    Next
    Now this script convert the xls file to csv with comma seprated values
    e.g in excel sheet if data is ABC XYZ PQR
    csv will come with ABC,XYZ,PQR
    here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
    but if i change 23 with 124 its not working i getting the error cannot save as...
    can anyone tell me that what should be the correct code for pipe
    so that the output is ABC|XYZ|PQR
    AS WE CAN USE THE SCRIPTS IN TOOLS
    Edited by: 789141 on Sep 14, 2010 11:33 PM

    I dont have the answer for your question but i have different approach in handling multiple Excel File.
    Step 1. Copy a sample source Excel File and Call it Final.xls .
    Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
    Step 3. Do the Reversing and Map and test the Interface . Once its done.
    Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
    Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
    Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
    Step 7. Increment the Loop and copy your next File for Final and run the interface
    Step 8 . Finally you will be able to read all the Excel File .
    Step 9 . Delete the source file [ Optional ]
    Hope this helps.

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • Issue with corrupted file when dragging to timeline

    Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline.  I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
    I had not problem with camtasia Mp4s previously and today I have had so many issues with premier pro

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • Issues with RAW files from my 7D

    I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
    Any words of advice, other than just buy Aperture 3??

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Sharpening issues with RAW files

    Hi,
    I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
    Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
    I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
    I'd be greatful if anyone has any input on this!
    Thanks in advance

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Issue with Deduplicated files and Mac OSX 10.9.2

    Running a Windows 2012 R2 DFS with Deduplication enabled on the storage drives.  Both Macs and PCs regularly interact with the system with no issues.
    However with Apple's rollout of 10.9.2 SMB2 'fix' users are no longer able to correctly interact with any files on the file server with the "SparseFile" attribute, which appears to be from the deduplication of the file.
    When the Macs attempted to download a "sparsed" file they get an error along the lines of "you do not have permissions to copy this file".  This is annoying enough, but the biggest head ache is when a user tries to
    copy a folder that has sparced files in it, the folder and its files are seemingly copied but the Mac does not copy the sparced files... and give no indication to the user that it ran into an error... Finder just closes like
    the operation was completely successful.
    Even more annoyingly the user can open the file directly from the server, and work on the file with seemingly no issues, but when they save the file the changes are often not saved, and the user gets NO feedback from the application or OS.
    It seems the Macs are seeing the file as having a NULL file size and they skip the file when they download it.  This was not the case in 10.9.1 or any other version of any other OS we have tested.  We have entered this as a bug to Apple
    and hope they will fix it... mostly just posting this for the next admin who is pulling his hair out trying to figure this out.
    For a work around you can force the Apple 10.9.2 system to use SMB1 by using the CIFS protocol to connect to the server instead of normal SMB... which is not ideal but will work for now.

    Hi,
    Please try to change "everyone" user permissions on a share folder to modify to see if the issue still exists.
    For more detailed information, please refer to the thread below:
    Problems with permissions when copying a files and folder on Windows remote share
    https://discussions.apple.com/thread/4902764?tstart=0
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Transparency Issues with PSD files in FCP 7

    I'm having some weird file layer transparency issues with FCP 7. I'm working on a project that's made up entirely of graphics drawn in Photoshop CS5. They Photoshop settings were done to match an HDTV 1080i (16:9) sequence in FCP. In FCP, the pixels were set to square, field dominance to none, frame rate to 29.97 and compressor is Apple ProRes 422.
    I exported my PSD files out of Photoshop, with each layer being exported to its own file. In general, things were fine, but there were a few files where you could see the outline of the character against the background, but mind you that this is only visible once the video is rendered out in the FCP timeline. Nothing is visible in Photoshop, nor is it visible while viewing from the Browser in FCP. I told this to the artist and he went back and made corrections, making sure everything was on a transparent background, but the result was still the same - once I rendered the graphics out in FCP, these edge lines were visible.
    I then went back into Photoshop, opened all the files that were giving me trouble, clicked on the "foreground color" and changed it to a color other than white, then back to white and hit ok. That seemed to work - even when rendered out, I was getting no artifacts, until I tried enlarging the graphics over 100%.
    Also, with some of the same graphics, I was trying to layer them so that a guy was in the foreground with other people and a van behind him in the background. Once again, no problem in Photoshop, but once brought into FCP, the background people were actually being displayed over the main foreground character.
    I'm pretty baffled - what to do? I'll attach a photo of the weird lines around the characters. It might be hard to see at this size, but if you download and enlarge it to 300% or so, you'll see what I mean.

    Just saw that Adam's original post was an older one.  Will keep this here anyway to maybe help the most recent poster.
    Sharon
    Adam, did you try what David said about pointing to the root folder?  Did that work?
    When I copy the SD card, I name a new folder on my hard drive something specific, like Smith Wedding.  Then I copy everything inside the SD card to that new folder.  The first level inside my new folder now has folders for
    AVF_INFO
    PRIVATE
    and on down from there.  When you open Log and Transfer, point it to the Smith Wedding folder (of course whatever you have named yours).
    ClipWrap2 also works great to convert the files beforehand if you want.
    What camera are you using?  I have the Sony NX30 and it was giving me fits because the .mts files don't ingest if the clips are longer than 11 min. My problem is that I'm still on FCP 6.0.6.  I think 7.0.3 fixed that.  But I did find enough work-arounds to keep the camera. 
    This is a link to the full discussion if you are interested.
    https://discussions.apple.com/message/19085158#19085158
    Sharon
    Message was edited by: SSteele

  • [Applet]Printing issue with pdf files on Xerox 4595

    Greetings !!
    I'm trying to print to a Xerox 4595 printer from a Windows XP station (limited account) using a Java Web Applet.
    This applet generates pdf files which have to be printed.
    The Xerox 4595 uses a printing queue that is detected by the Applet.
    The problem is the following: usually when printing a simple local file from this computer there is a box that asks you your login to let you create a job and then print.
    When using the Java Applet, there is no way to have this print box displayed. We have the Java Print Dialog but once clicked on "Print" there is no box displayed to pass the login to the printer and let us print.
    Is anyone already worked with Xerox 4595 and experienced such issue ?
    How can I, using the Java language and modify the Applet, ask the printer to send me the dialog box asking for the login ? Without this login no jobs are accepted and we can't print the generated pdf files.
    I looked on the printer queue settings and it seems that the Xerox uses the IPP to communicate with the local computers in the office.
    The server from which the Applet is used is a openSuSE Linux Web server (apache2)
    How come using Linux workstations any pdf files are printed (on shared printers such HP laserjet) and under windows there is jammed characters and sheet feed instead ?

    A lot can depend upon which app your are using on your tablet device, the same applies to computer programs but apps are much worse.
    Which app are you using?
    I would try the free Adobe Mobile Reader. This product seems to support more features than other apps.
    There could even be issues with the type of tablet you are using. The Apple line may work better then Android devices since there is QA check and approval by Apple.
    Another factor is the how the PDF was created.
    How well are the maps displayed on your laptop or desktop? Try different values of zoom.

  • Download issue with 1 file in 11.5.10+ virtual Documentation Library

    I am unable to download the following document from the 11.5.10+ virtual Documentation Library.
    Title:          Using Oracle Workflow in Oracle Order Management
    Part Number:     A96689-02
    URL:          http://download-uk.oracle.com/docs/cd/B16981_03/current/acrobat/115omwf.pdf
    It seems that whether I try to open it or save the document to disk, it makes no difference. Please can you check whether there is a problem with the file as I am able to download all the other documents on this web site. Please can you correct this issue.
    I would also like to suggest that a single zip file (containing all the documents revised or released since the creation of the original 11.5.10 documentation library CD) be made available so that customers can download all new documents with a single click, without having to download the entire CD.
    Regards
    Mark

    Try replacing download-uk.oracle.com with one of the below:
    download-east.oracle.com
    download-west.oracle.com
    Cheers, OTN

  • Having issues with Illustrator files in CS5

    I recently uninstalled CS4, needing the memory space. Now I am having issues with Illustrator CS5. When I go to open the program, i am receiving this error message: "Adobe Illustrator has detected a problem with the windows registry which needs to be corrected for Illustrator to work properly. Would you like Illustrator to correct the problem now?"    so i click "yes" and the program opens, but then when i go to open a file, the AI icon doesnt show up on any of the files, it takes forecer to open, if it even opens the file - sometime i get the message "cannot recognize file type".

    Your install never finished properly. Run the Creative Suite Cleaner Tool, reinstall all your Adobe software from scratch with proper admin privileges and security tools turned off to prevent interference.
    Mylenium

  • SFTP adapter issue with dupliacate files

    Hello Guys,
    I am working on file to proxy scenario on PI 7.31 Java only system.
    I am facing issue with SFTP sender adapter, i wanted to reprocess the same file again. Although i unchecked the duplicate file checkbox.
    File is not getting processed and adapter gives below error.
    Error while sending message: Message ID 1406196843/-1496048728/1376310205/103581509 already exists in database: com.sap.sql.exception.OpenSQLIntegrityConstraintViolationException: ORA-00001: unique constraint (UNKNOWN.obj#=24157) violated
    OpenSQLExceptionCategories: [NON_TRANSIENT, INTEGRITY_CONSTRAINT_VIOLATION]
    Note- SFTP component is 1.0 and patch level is 01.
    Please let me know if anyone have came accros such error and resolution for the same.
    Thanks,
    Sandip

    Hi Sandip,
    What is your PI SP level?, check if this note affects your system
    1635853 - Concurrency issue during load test
    1979353 - Recurring TxRollbackException with MODE_STORE_ON_ERROR stage configuration
    Check also this thread File Sender Adapter - Duplicate Message ID Issue - PI 7.31
    Regards.

  • Lightroom 3.6 Camera Raw 6.6 - Issues with NEF files

    Hello all,
    I'm sure I'm not the only person with this problem, I'm a Nikon user and when I view NEF files in Lightroom 3, before the images loads completely it looks like it did on my camera but when the loading phase is done the picture darkens and it changes, sometimes darkens, sometimes changes tones.. What is happening here and is there any way around this with NEF files?  I love Lightroom but if I can't work with NEF the way they look on my camera then I'm going to have to make the switch over to Capture NX 2 and I really don't want to....  In addition I have no problems with JPEG files so I know the issue is isolated to NEF files.  I'm also on a Mac with 10.6.7 if that makes any difference.. not sure it does though.
    Please help!!

    This is not just a characteristic of NEF files.  Adobe software and other third party software does not read the in camera settings, instead it applies default settings.  The initial image you see is probably the stored image that was processed by the camera, but it is replaced by the image rendered using the defaults from Lightroom.  The default camera profile is Adobe Standard, which does not match what you get from the camera.  Adobe has generated Camera matching profiles for Nikon and Canon cameras and a few others.  Go to Camera Calibration and select the same profile you have selected in the camera - it will have a name like Camera Standard, Camera Neutral, etc.  If you have other parameters set to nominal in the camera, this will be a close match to the JPG from the camera.  You can set a new default for Lightroom that will use the setting you select and it will use this when any new NEF files are first opened.  If you want the NEF file to open identical to the JPG from the camera then Nikon software is the only option.  If you were using a Canon, then Canon software would be the only option. 

Maybe you are looking for