5 Replies Latest reply on Jul 6, 2015 6:02 PM by Rob_ge

    How do I run .jsx?

    Rob_ge

      In Indesign I have a scripts folder, is there something similar in Dreamweaver. Thanks, Robert

        • 1. Re: How do I run .jsx?
          Rob_ge Level 1

          Forgot to mention I'm using CS4.

          • 2. Re: How do I run .jsx?
            Nancy OShea Adobe Community Professional & MVP

            In DW, you define which folders you need for your site.   If a Scripts folder will help you to better organize your site files, you may create one and use it.

             

            In the Files Panel (F8), right click on Local Site folder (or an existing sub-folder) and select New Folder from the menu.  Give it a name.  Hit Enter.

             

             

            Nancy O.

            • 3. Re: How do I run .jsx?
              Rob_ge Level 1

              Thanks for the response Nancy. I've used scripts in Indesign before and not had any issues but I can't get a script to run in Dreamweaver.

               

              I can do the following and it works in Indesign.:

              #target indesign

                alert ("Script Worked");

               

              When I change the target to Dreamweaver, I get the message "You are about to run a script in Adobe Dreamweaver....... Do you want to run the script?" I click yes and nothing happens. Am I doing something wrong?

              #target dreamweaver

                alert ("Script Worked");

              • 4. Re: How do I run .jsx?
                Nancy OShea Adobe Community Professional & MVP

                ID is a print program.  DW is a web authoring program.

                I would need to better understand what you're trying to do.

                Can you show us the entire HTML code?

                 

                 

                Nancy O.

                • 5. Re: How do I run .jsx?
                  Rob_ge Level 1

                  I'm exporting an svg schematic drawing (8000 lines of code) from Illustrator and placing that code into HTML. Illustrator allows me to create hyperlinks but it will not allow me to add javascript so what I want to do is place the onclick function in the href like this.

                   

                  <a xlink:href="#onclick="myFunction('myPart')"" >

                   

                  Then I will place the svg in HTML and write a .jsx that looks for <g id=" and grabs it and everything that follows until >. Then I will take that code, extract the onclick="myFunction('myPart')" and put it where it belongs to end up with a final link of <a xlink:href="#" onclick="myFunction('myPart')" >.

                  If  that's even possible....