CS3 Extension that initializes a JS-Object during startup is not working in CS4

Here is a simple Extension that works fine in DW CS3 and doesn't work in DW CS4 (trial version):
The File myObj_Startup.htm was placed in Folder Configuration/Startup. It initializes a quite simple Javascript-Object during Startup of DW.
Content of myObj_Startup.html:
<!-- MENU-LOCATION=NONE -->
<HTML>
<HEAD>
<TITLE>beim &Ouml;ffnen</TITLE>
<SCRIPT LANGUAGE="javascript">
myObj =
     showMsg : function (msg)
         alert(msg);
function onOpen()
   myObj.showMsg("startup");
// SCRIPT ENDE
</SCRIPT>
</HEAD>
<BODY onLoad="onOpen();">
</BODY>
</HTML>
Besides this, an additional menuitem was defined in menus.xml to use the JS-object myObj:
<menu mmstring:name="menus/DWMenu_File" id="DWMenu_File">
        <menuitem name="Test" command="myObj.showMsg('Testing');" enabled="true" domRequired="false" id="DWMenu_File_SIEMENSTEST" />
        <menuitem mmstring:name="menus/DWMenu_File_New" key="Cmd+N" command="dw.newDocument()" enabled="true" domRequired="false" id="DWMenu_File_New" />
With Dreamweaver CS3 everything works out fine: I get a Alert-message: "startup" during Startup and when I'm clicking Menu->File->Test I get a Alert-message: "Testing".
With Dreamweaver CS4  (trial version) I get a message: "startup" as well but when I'm clicking Menu->File->Test I get no message.
Instead I get a Logfile "C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver CS4\en_US\Configuration\Logs\DW JavaScript.log" telling me:
   JS Error:
       myObj is not defined
       filename:
       lineno: 0
       While executing DWMenu_File_TEST command in menus.xml, the following JavaScript error(s) occurred:
       ReferenceError: myObj is not defined
Why is this simple extension working in DW CS3 and not working in DW CS4?
Did they change the treatment of JS-objects initialized during startup?
Is the object out of scope?
Are such extensions not working in trial versions of DW CS4?
I cannot explain this behavior - please help!

Hi,
I have an similar problem and couldnt find an workaround for the problem.
When i add an new menu item to the menus.xml file, the menu item shows up, but my custom command (simple alert) wont trigger.
Can somebody please help?

Similar Messages

  • Track the qeries that accessed a particular object during a time period

    HI,
    I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
    i haven't enabled any auditing yet.
    is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period.
    Can someone guide me please.
    Thanks in advance.
    Philip.

    Too bad you don't have a version number. Oracle functionality changes from version to version and in some versions you can do this and in some you can not.
    Look here for one way to accomplish the task:
    http://www.psoug.org/reference/dbms_fga.html
    Here for another:
    http://www.psoug.org/reference/audit_vault.html
    Here for another:
    http://www.psoug.org/reference/dbms_logmnr.html
    Consider posting more information when asking questions in the future.

  • ZSAPLINK for Object type = CLAS is not working

    Dear Experts,
    ZSAPLINK for Object type = CLAS is not working. On executing by selecting Export Object to Slinkee with Object type = CLAS and class name, It is giving the dump which is shown in below snapshots. Pls guide me how to resolve this error.
    Thanks
    KH

    From the screenshot, It seems that the object  _renderer did not point to any memory location.
    You can verify this by putting a breakpoint in method IF_IXML~CREATE_RENDERER of class CL_IXML
    If the return value RVAL is initial, this mean there something wrong with the kernel module abkm_iXML_CreateRenderer. If it is, you will have to check with your Basis team to apply some kernel patches.
    Hope it helps. Cheers!

  • Hi I was just wondering, if my iPod nano's serial number says that it is eligible, but its screen is not working, am I still eligibile for the iPod nano 1st gen replacement?

    Hi I was just wondering, if my iPod nano's serial number says that it is eligible, but its screen is not working, am I still eligibile for the iPod nano 1st gen replacement?

    Yes. They'll still replace your iPod. Several users have indicated that they have returned damaged iPods and were still given a replacement iPod.
    B-rock

  • HT202157 Why does my apple TV say it needs hdcp compatibility.  It never said that before.  Now my apple tv is not working.

    Why does my apple TV say it needs hdcp compatibility.  It never said that before.  Now my apple tv is not working.

    Hello Rickpoulette,
    The following article provides further information and could very well help get your Apple TV and your television cooperating again.
    If HDCP authentication does not succeed, you may see one of the following symptoms:
    A message may appear on your television stating "This content requires HDCP for playback. HDCP isn't supported by your HDMI connection."
    You may see periodic bands of static, or full screen static, flashing across your TV screen.
    If you are experiencing either of the symptoms above, try playing the same content again for at least another 10 seconds. If the issue persists, try the following steps until the issue is resolved:
    Connect your Apple TV (2nd generation) directly to your HDTV using an HDMI cable.
    Set your Apple TV and HDTV to off or sleep mode
    From the Apple TV interface, select: Settings -> Sleep Now.
    Turn off your TV and wait for about 10 seconds.
    Turn your TV back on.
    Press the Select button on your Apple TV remote to wake your Apple TV.
    Some HDTVs may need a firmware update. Consult your TV manufacturer's user manual or online support pages for additional information about how to update your TV's firmware.
    If available, try using a different HDMI to HDMI cable, such as an Apple HDMI to HDMI cable, directly between your Apple TV (2nd generation) and 720p HDCP-compatible HDTV.
    Apple TV (2nd generation): About Apple TV and HDCP
    http://support.apple.com/kb/HT4428
    Cheers,
    Allen

  • Script that worked in CS does not work in CS4 - multiple open page, print , pdf export and close

    I had a script that worked great for me in Indesign CS. But now does not work in CS4. Anyone knows what needs to be done to make it work again ?
    When I drop folder with indesign files on top of this script:
    1. opens first page
    2. turns specific layer on
    3. prints using preset
    4. exports using preset
    5. close without saving
    6. next page
    Anyone who can give me solution or idea how this should work is greatly appreciated.
    on open sourceFolders
    repeat with sourceFolder in sourceFolders
    tell application "Finder"
    try
    -- If you would like to include subfolders, you say - every file of entire contents of folder…
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias list
    on error -- work around bug if there is only one file
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias as list
    end try
    end tell
    if idFiles is not {} then
    tell application "Adobe InDesign CS4"
    set user interaction level to never interact
    repeat with i from 1 to count of idFiles
    open item i of idFiles
    tell document 1
    try
    set visible of layer "ImagesTag_Layer" to true
    end try
    set myPreset to "letter size" -- name of print style to use
    with timeout of 700 seconds
    print using myPreset without print dialog
    end timeout
    set myPreset1 to "pdf preset name" -- name of pdf export style to use
    set myName to the name -- name includes .indd should remove at some point          
    with timeout of 700 seconds
    export format PDF type to "users:temp:Desktop:pdf:" & myName & ".pdf" using myPreset1 without showing options -- set path here format ComputerName:Folder1:Folder2:......:FileName.pdf
    end timeout
    close without saving
    end tell
    end repeat
    set user interaction level to interact with all
    end tell
    end if
    return 10 -- try again in 10 seconds
    end repeat
    end open

    (Disclaimer: me not an AS guy!)
    First thing I noticed is the interaction level is set off. If you comment out this line
    set user interaction level to never interact
    you might be able to pinpoint the exact error -- ID will display a standard "failed" dialog, hopefully showing the line that it fails on.
    A quick question: the script assumes two presets in your InDesign: one for print ("letter size") and one for PDFs ("pdf preset name"):
    set myPreset to "letter size" -- name of print style to use
    set myPreset1 to "pdf preset name" -- name of pdf export style to use 
    Do these actually exist in your CS4, with the same (non)capitalization and spaces?

  • HT1766 # is not working in my iphone 4s, when i want to see how much credit i have in iphone, i need to put # on that, than it calls and end, it is not working and not showing anything..

    # is not working in my iphone 4s, when i want to see how much credit i have in iphone, i need to put # on that, than it calls and end, it is not working and not showing anything..

    http://support.apple.com/kb/HT1848  Did you transfer your purchased item, take a look at the link

  • I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I bet this is too late but...
    Are you trying to print through the airport express wirelessly or the built in wireless of the lexmark? If you want to use the airport express, there is no need to mess with the wireless printing on the lexmark at all. The airport express will be easy to set up, all the wireless setups through the printers are a pain.

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • "F11 System Recovery" during boot does not work after Cloning hard drive.

    Problem: “F11 System Recovery” during boot does not work after Cloning hard drive.
    HP Envy m6-1125dx UEFI Notebook Computer with GPT hard drive.
    Original Seagate Hard Disk GPT 700GB with Window 8.0_64 upgraded to Windows 8.1_64
    Startup Menu (F11 System Menu works properly) only on original hard drive.
    Following obtained from Disk Management & diskpart in Command Prompt.
                                     GPT Disk <700GB>
    Partition 1 WINRE NTFS Primary 235MB/400MB [Recovery]
    Partition 2 EFI System FAT32 (LBA) Primary 108MB/260MB [System]
    Partition 3 (NONE) Unformatted Primary 128MB/128MB [Reserve]
    Partition 4 Main NTFS Primary 90GB/195GB [Primary “C”]
    Partition 5 (NONE) NTFS Primary 372MB/450MB [Recovery]
    Partition 6 Data NTFS Primary 7GB/475GB [Primary “E”]
    Partition 7 NTFS Primary 26MB/350MB [Recovery]
    Partition 8 Recovery NTFS Primary 24GB/26GB [Recovery “D”]
    I have Cloned the original hard drive to a new HGST 1TB Hard Drive using four different methods (sector by sector):
    Acronis True Image 2015
    Acronis Backup for PC
    AOMEI Backupper Professional
    Macrium Reflect
    Each time the cloning process completes successfully and has the same original partition arrangement. The computer works properly except when trying to use the “F11 System Menu” key during boot. It gives the following error message:
    “Recovery
    Your PC needs to be repaired
    A required device isn’t connected or can’t be accessed.
    Error code: 0xc0000225
    You need to use the recovery tools on your installation media. If you don’t have any installation media (like a disc or USB device), contact your system administrator or PC manufacturer. “
    Any suggestions why the F11 System Recovery does not work during boot and how to fix the problem would be appreciated. I have does various disk checking and file checking on both the original and new hard drive with no errors.
    Thank you in advanced.

    Hi,
    How did you clone the HDD ? One-for-one or different method ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    Yes, if you have been backing up on a regular basis.
    If this is your first time backing up, then no.
    you can check edit - preference - backup - see what is listed

  • {@link Object#clone()} , -link does not work!!

    I have a problem with this!!
    Somehow the -link option does not work very well.
    I have ensured that I did correctly set my command option -link to
    -link http://java.sun.com/j2se/1.4.1/docs/api
    I have already imported java.lang.Object at the top of my source code.
    When I tried to use {@link Object#clone()}, it doesnt work at all.
    I have also tried all sorts of names like fully qualified ones and such.
    The hyperlinks do not appear ( i.e. they just appear as plain text but not hyperlinks!!) I realise the ONLY way I can get it to point to the correct link is
    {@link <a href = "http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone()</a>}
    which is very lame.
    I want to be able to write doc @tags such that I do not have to specify the full complete http address.
    Anyone can help ? Thank you very much!!
    P/S: I know this is a bug in 1.2.2 javadoc but I suppose this bug would have been fixed by now....
    Regards
    David

    I would upgrade to 1.4.2. That should fix the problem.
    -Jamie Ho

  • I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed. The serial # for 13 does not work. Any thoughts on how I can get a number for PSE 12?

    I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed 12.
    The serial # for 13 does not work. Any thoughts on how I can get a serial number for PSE 12?

    Hi
    There is a newer version of Resolution+ Plug-in released for an Qosmio X series
    [Resolution+ Plug-in v 1.1.2004|http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=381&selSeries=231&selProduct=7506&sel ShortMod=null&language=13&selOS=all&selType=400&ye arupload=&monthupload=&dayupload=&useDate=null&mod e=allMachines&search=&action=search&macId=&country =all&selectedLanguage=13&type=400&page=1&ID=82406& OSID=30&driverLanguage=42]
    try it out...
    If it has not been installed properly, try rebooting your computer and reverify.

  • My orignal computer that I sync my iPhone 4 with does not work...can I sync it with a new computer?

    My original computer that I set up my iPhone 4 with
    Does not work.....can I use a new computer to sync
    The phone....how do I do this and is there a risk of
    Of losing any apps, music etc

    Try this:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Highlight Object Under Selection Tool not working?

    Hello,
    After the latest update 10.1.0.70, obejcts under the selection tool are not highlighted. Has anybody else encountered such issue? I reset InDesign to its defaults, but that didn't help. Any suggestions?
    Thanks.

    View > Show Edges?
    Or Object > Unlock All
    You've provided no information. Therefore I'm just guessing.

Maybe you are looking for