Functions in script objects not being recognized after certain point

Hi all,
I'm wondering if anyone has figured out why after normally about 300-500 lines of JavaScript in a Script Object, sometimes the functions near the end are no longer recognized by the XFA processor when referenced ("TypeError: Scripts.myFunction is not a function").
When reordered, further up the script object, they work as intended. The line at which it no longer recognizes functions also isn't always the same and I have worked with some script objects that have over 800 lines with all the functions still working.
I've tested in Designer 9 and 10, Reader 8 9 and 10.
Please at least let me know I'm not the only one. I knew of one other developer that had come across the same issue.
Kyle

Thanks radzmar!
JSLint didn't find anything but it set me on the path towards looking for syntax errors. I deleted code in the script object line by line until I narrowed it down.
Turns out it is Regular Expression literals, in particular trying to escape (\) the metacharacters ($.{}[] etc).
For example, var reg = /\}/; should technically match any right-handed curly brace, which in fact it does! The function that it is in works perfectly but every function written below it is not recognized by the XFA processor. Just out of curiousity I tried reg = /\{\}/; which matches {} and all the functions below now are recognized. It seams as though, even though using the escape character is allowed in core JavaScript, the processor sees it as a syntax error because it's not terminated.
Anyways, the easy fix is of course using the RegExp constructor var reg = new RegExp("\\}"); but I'll miss the confidence I had using Regular Expression literals.
Thanks again for the nudge in the right direction.
Kyle

Similar Messages

  • Seagate portable drive not being recognized after OSX10.9.2

    After I installed the 9.2 update, my Seagate portable external drive is not being recognized - doesnt show up in Finder, or Disk Utility, but I know the drive is live, as I can feel it vibrating
    Someone please help, all my time machine backup is on that

    I had the same issue - the Seagate drive is in a format that will recognize both Windows and Mac formats and there seems to be a flaw with Seagate.  After working on this for five hours and finally calling Apple, I found out why.  If you reformat to Mac OS extended journaled then they usually start working properly. 
    When I contacted Seagate they said it was best if you are just using a mac to just use the Mac formatting.
    Hope this helps and good luck.  Hope there wasn't any valuable data on the drive.

  • External LaCie HD not being recognized after 10.5.6 upgrade?

    My LaCie HD used for Super Duper backup is not being recognized by OSX. I also use a WD HD for Time Machine backup.
    Before I upgraded to 10.5.6 i repaired permissions and backedup to the LaCie. Now when I turn on the drive, OSX does not see the drive.
    I now see an icon in Super Duper in both the Source and Target areas called disk image. I have never seen this before. I do not see anything on my imac HD called disk image.
    Any ideas?

    Just to let everybody know that P-RAM reset resolved this problem.

  • IPod Touch 1g not being recognized after installing iTunes.

    Win 7 Ultimate
    itunes 9.0.2 64 bit
    With iTunes or any Apple software uninstalled the iPod is recognized in device manager under portable devices> Apple iPod. I can browse to it within Win Explorer. All looks normal.
    Once I install iTunes and I plug in the iPod a popup informs me that it's imstalling Apple Mobile Device USB driver (and is ready to use). Then iTunes starts up and another popup informs me that device driver was not successfully installed. This time MTP USB Device. It then switches to device unplugged, without touching it. Itunes then reports an error (iTunes could not connect to this iPhone because an unknown error occurred (0xE8000065). Device manger then reports a warning for Portable devices > MTP USB Devices. The device status reports This device cannot start (Code 10) (Apple iPod went away)
    I have tried uninstalling several times. Different iPods. iPod and cable work just fine on another laptop. Updated MB BIOS.
    I need some more clues on what might be wrong. Anybody!!

    Hi, jodie_0182.
    I would recommend the steps in the article below.  See the section labeled Verify that the Apple Mobile Device USB Driver is installed > For Windows Vista, Windows 7, and Windows 8 > Update the Apple Mobile Device Driver.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If the above step does not resolve the issue, try all remaining steps in the article. 
    Cheers,
    Jason H.

  • My instant messages are not being recognized after update

    After I did the latest update, some of my instant message are not coming up with the person's name from my contacts, rather, just the phone number is showing up.

    Try resetting the SMC and pram
    To reset the SMC
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    To reset PRAM/NVRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?

    My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?
    Before I updated to OS X Mavericks I was using another external disk that was getting disconnected ocasionally so I bought a new ADATA HD710 portable 1TB Drive and moved the files to it. This new drive which is supposed to be OS X Mavericks compatible takes minutes to show the files especially when opening second and third level folders which has made mu iMac unusable
    What should I do?

    Your Mac should be able to recognize many different types of drives (including Windows-formatted drives) immediately for Reading, provided they are in good working condition and not damaged. There should be no need to transfer to a different type of drive.
    If there is no recognition of this drive, see if it can be seen in Disk Utility.
    If your aim is to transfer the data on it DO NOT use ERASE or PARTITION as these will completely erase all the information on the Drive.
    If the drive is present while the Mac sleeps, it is likely to drop out and not be seen any longer, especially if it is a USB-powered drive.

  • HT201974 I just installed a wireless cable modem for a desktop PC and my MacBook Pro;  After installing, I changed the password on the wireless connection at the PC but it is not being recognized by Airport as the new password.

    I just installed a wireless cable modem for a desktop PC and my MacBook Pro;  After installing, I changed the password on the wireless connection at the PC but it is not being recognized by Airport as the new password. Can anyone help?

    Hi twinkytomes,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    AirPort Utility 6.x: Password-protect your wireless network
    http://support.apple.com/kb/PH5119
    Cheers,
    - Judy

  • Entourage 2008 not  being recognized as installed after migration to new iMac Mountain Lion.

    Hello Everyone!
    I;ve been browsing for answers to my problems for 2 days now. Office 2008 is not being recognized as installed on my machine. i have 2011 but i prefer Entourage as my defailt email client.
    What happens: when i try to access Entourage i get a getting started window asking me to either register my product or learn more. when i try installing the update 12.3.6 for Office 2008 it tells me it cannot be installed because the software componenet necessary for installation is not found on the disc. from this I gather the actual Office is not being recognized as installed.
    What I tried so far: I did all that was suggested on forums, such as checking to see if the MS office 2008 is in Applications, nothing was changed like the name of software or location of any of its components, tried getting the latest updates for the MS office 2008, tried installing on another user, none of these worked.
    I am still to try reinstalling but the disc i have is an upgrade from 2004 which will prob not work in this case, since anyway I understand that .dmg is not supported anymore.
    What can I do? anything that doesn't require me to use 2011, i do not like the Outlook in 2011. is there a way to activate my install of 2008 and use that? i really like Entourage, Outlook doesn't satisfy me.
    please help

    Reference your first post - I download and use dmg files, so either I'm lucky or they are supported.
    I would try the disk reinstall since at this point there doesn't seem to be many options.
    Do you have a backup? You could restore the Microsoft Office 2008 folder.

  • Video Ipod 80G 5th generation not being recognized by computer or  itunes.

    My ipod is not being recognized by my computer or itunes at all. I bought a new cable and nothing happens as well. however when i connect it in my car it works fine. did any resolve this issue? I am not sure if its the new software that has the issue but i am almost certain it is.

    Many people are reporting problems with connecting there fifth-gen iPods after the update to iTunes 9. I had the same problem, and when I downgraded to iTunes 8, everything worked again.
    I tried cables, resetting, and all the other steps. My solution turned out to be iTunes 9 itself.
    My problem came from using a replacement hard drive-an adapter that allows me to retrofit my iPod with a Compact Flash card instead of a hard drive.
    The problem is NOT the adapter. This system functioned perfectly until iTunes 9, and when I switched back to iTunes 8, it worked again.
    Summary: I have a modded iPod, and it consistently works with iTunes 8, but not iTunes 9.
    Reason: Apple is sooooooooooo afraid a Palm Pre user will be able to use iTunes that they are breaking the sync code on purpose.
    Downgrading iTunes:
    1. find the download of iTunes 8 for your OS. (not posting links, as they may change)
    2. go into your iTunes 9, and export EVERY playlist to a text file. This is the only way to preserve your playlists.
    3. Uninstall iTunes 9 from you computer, install iTunes 8.
    4. Configure iTunes 8 to use your music folder (especially if you moved your music to a different location other than the default)
    5. Add your music to iTunes-this may take awhile.
    6. Import you text files and your playlists will return.
    7. Backup your iTunes 8 library files.
    Happily enjoy your modded iPod. Mac Users: Don't accidentally install iTunes 9 from an Apple Update.

  • IPod touch not being recognized by iTunes on my MacBook, and on 2 other PCs

    Hello,
    After scouring the web and these discussion forums to no avail, I've decided to post my problem. I downloaded iTunes 8.0 yesterday, and updated the firmware on my iPod Touch to 1.1.5. I tried connecting my iPod, and nothing happened. It is not being recognized by my MacBook. So, I tried using another USB iPod connector, and nothing happened. I tried using a firewire connector, and nothing happened. Frustrated, I tried connecting to my one roommate's HP laptop and see if it would get recognized there - no. I then tried on my other roommate's laptop. The device was recognized to be USB, but iTunes wouldn't go ahead and try and reformat it. I'm starting to lose my mind! I've tried resetting the iPod touch itself loads of times to no success. I've tried restarting while having the iPod connected to the computer, and still nothing.
    What should I do now?

    Sorry about not getting to you on the quick-fast, but we aren't Apple employees.
    What ended up being the solution you needed, as you said, you couldn't find any information already posted on this problem, so documenting your fix may help someone in the future.

  • The "Roman" font is not being recognized in Firefox 4.0. As such, I cannot read any previously posted topics or post any new topics on websites using this font.

    The "Roman" font is not being recognized in Firefox 4.0. As such, I cannot read any previously posted topics or post any new topics on websites using this font.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Ipod nano 3rd gen. is not being recognized by my computer or itunes, it comes up as a USB drive, the cable is fine

    My ipod nano is not being recognized in iTunes or in Windows, it only shows up as a USB and when i plug it in it says 'do not disconnect'
    This happened after I put the ipod nano in Philips Ipod speakers.
    I've reset the ipod mulitple times, uninstalled and reinstalled itunes, restarted my computer, and I can't restore the ipod because it doesnt register on my computer and it doesn't show up in itunes, but for some reason it still says dont disconnect.
    What should I do??

    just hold down the “-” button and the power button. when it says “ok to disconnect” hold down the powerbutton and the “-” button again.
    copied from iPod nano 6G diagnostic mode

  • My ipad is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini about a month ago

    My ipad mini is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini

    I found this is another thread - same issue.
    Re: iTunes has stopped working. Why? 
    Sep 11, 2013 6:07 AM (in response to thurdy)
    Resolved!
    After contacting Apple, I received a reply from their engineers:
    Copy QTMovieWin.dll from:  C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    to: C:\Program Files (x86)\iTunes
    And that did the trick.
    Message was edited by: Stryder777

  • HT1369 Ipod touch not being recognized by itunes (but is registering as an external drive by the computer itself) have updated and reinstalled itunes, stopped/started apple mobile device and removed and mobile programs associated with my non apple cellpho

    Ipod touch not being recognized by itunes (but is registering as an external drive by the computer itself) have updated and reinstalled itunes, stopped/started apple mobile device and removed any mobile programs associated with my non apple cellphone. This seems to have started happening after the last Itunes update I did as I was able to put music on my ipod touch a month or so ago. Is there some way to go back to an older version of itunes? I really have no idea what else to do since I followed every step on the trouble shooting page for windows 8.

    I had this problem too and my roommate solved it!
    Go to 'Settings'
    'Music'
    Scroll to the bottom and enter your password to log onto your home sharing
    Then connect to iTunes and sync!

  • My 4th generation ipod touch is not being recognized on my computer ?

    My 4th generation ipod touch is not being recognized on my computer what do i do ?

    iOS: Device not recognized in iTunes for Mac OS X
    or
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or               
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    - Try on another computer to help determine if computer or iPod problem

Maybe you are looking for

  • Battery heating up in Lumia920

    Hi have bought new lumia920 day ago. I have noticed that when ever I play games or charge it using my laptop the phone starts heating up. Is it normal or there is some issue with my phone.

  • Regarding Performance documents

    hai my project is in Integration testing phase . From monday , performance testing is going on.... . So i need some performance testing documents for knowing about performance testing in testing phase . So please send to my mail-id [email protected]

  • Authorization material type in material master

    Hi expert, I want to know how to restrict users to create/change Material Master following the material type in the role. In role authorization Object: M_MATE_MAR Material Master: Material Types. I maintain material type like ROH , HALB , HAWA in aut

  • Photo albums order

    When i first got my iphone i added about 7 folders and they were listed in alphabetical order...i just added another 5 folders but there listed in alphabetical order, behind the first batch of folders...how do you list them all in alphabetical oder..

  • Screen rotated 90 degrees. How do I reverse this? ANSWERED!!

    SORRY - just posted this question and then finally a lightbulb turned on and I went to the GMail HELP page. The secret is to push ALT + DELETE + "Up" arrow. Problem solved!!