Ask a Question related to Macromedia Fireworks, Design and Development.

  1. #1

    Default Re: Javascript?

    I'm not sure what kind of JavaScript you are referring to or exactly what it is you are trying to do. I have a tutorial for curved navigation with a link to a DW tutorial as well. You can see if this helps. If not please be more specific about what it is you are trying to accomplish.

    [url]http://www.joycejevans.com/tutorials/Fireworks/FWMX/curvednav/curvednav.htm[/url]

    Joyce J. Evans
    [url]http://www.JoyceJEvans.com[/url]

    Author of:
    Macromedia Studio MX Bible
    Dreamweaver MX Complete Course
    Fireworks MX: Zero to Hero
    Web Design Complete Course (August)

    Team Macromedia Volunteer



    Joyce J. Evans webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Include javascript in a javascript file
      Hello, Is there a way to include a javascript file from WITHIN a javascript file? Something similar as in the "#include" directive in C++? ...
    2. cfm to htm & javascript
      We just upgraded from 5 to MX 7. We have a page that we flatten from cfm to htm. There are popup window links on the page in the form of...
    3. output text in control location; calling control javascript from page javascript
      Hi; If you don't know, I'm just learning javascript and aspnet, but I have a pretty good grounding in windows programming. I'm trying to build a...
    4. JavaScript - How do you add an action to the JavaScript action menu
      Greetings, I'd like to add custom script(s) to the drop down list of actions in Acrobat. We are creating an app where many authors will be...
    5. need javascript staff (anyone who knows javascript peroid) (READ)
      hey its me ultimategamerx and im back in some clothes lol i need some people who know java script i need help please reply if ya know some
  3. #2

    Default Re: Javascript?

    I guess what I really meant, in a nutshell, is that is there any way to import javascript into Fireworks? I have already created a curved nav bar and want to place a "weather update" javascript on the left hand side...to make it show up on top of the left hand side of the nav bar.



    Econ Dev webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Javascript?

    Then no, that's a job best done in Dreamweaver. Other than using an editor (such as Dreamweaver) you'd need to hand code it into the exported HTML file. Fireworks is an image editor. Yes it does export as HTML and includes a few built in behaviors but that's it.



    Joyce J. Evans
    [url]http://www.JoyceJEvans.com[/url]

    Author of:
    Macromedia Studio MX Bible
    Dreamweaver MX Complete Course
    Fireworks MX: Zero to Hero
    Web Design Complete Course (August)

    Team Macromedia Volunteer





    Joyce J. Evans webforumsuser@macromedia.com Guest

  5. #4

    Default JavaScript?

    I have a question, and I hope this one hasn't been asked too frequently; if
    so, I apologize in advance.

    I've heard over time that it isn't a good idea to intermingle JavaScript
    with PHP code. Maybe that's a fallacy, and maybe not, but if so, would
    someone care to enlighten me as to why this might be the case?

    Thanks in advance for any responses.

    --
    Randy Jackson
    [url]http://fourcolorexplosion.com[/url]
    Randy Jackson Guest

  6. #5

    Default Re: JavaScript?

    On Sat, 10 Jul 2004 16:32:43 GMT, Randy Jackson
    <randyjackson@ignorethispartfourcolorexplosion.com > wrote:
    >I have a question, and I hope this one hasn't been asked too frequently; if
    >so, I apologize in advance.
    >
    >I've heard over time that it isn't a good idea to intermingle JavaScript
    >with PHP code. Maybe that's a fallacy, and maybe not, but if so, would
    >someone care to enlighten me as to why this might be the case?
    Well, you can't intermingle the two, since they won't run on the same machine
    anyway.

    What you can do is output Javascript source code from PHP for execution by the
    browser.

    What you shouldn't do is _rely_ on that Javascript to do anything, such as
    validation or filling in fields, since you don't have any control over the
    remote environment.

    --
    Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
    [url]http://www.andyh.co.uk[/url] / [url]http://www.andyhsoftware.co.uk/space[/url]
    Andy Hassall Guest

  7. #6

    Default Re: JavaScript?


    "Randy Jackson" <randyjackson@ignorethispartfourcolorexplosion.com > wrote in
    message news:Xns952275F6E703Frandyjacksonfourcolo@206.141. 193.32...
    > I have a question, and I hope this one hasn't been asked too frequently;
    if
    > so, I apologize in advance.
    >
    > I've heard over time that it isn't a good idea to intermingle JavaScript
    > with PHP code. Maybe that's a fallacy, and maybe not, but if so, would
    > someone care to enlighten me as to why this might be the case?
    >
    > Thanks in advance for any responses.
    >
    > --
    > Randy Jackson
    > [url]http://fourcolorexplosion.com[/url]
    It just gets really confusing, that's all. Slashes can get totally out of
    control when you have Javascript code sitting inside a PHP string. Here's an
    extreme case:

    echo "var re = new RegExp('\\\\\\\\', 'g');";

    All the thing does is look for one backslash.


    Chung Leong Guest

  8. #7

    Default Re: JavaScript?

    A viable solution in a case like this is to use single-quotes instead
    of double-quotes:

    echo 'var re = new RegExp('\\', 'g');';

    Single-quotes do not parse things like variables or special characters
    (i.e. \n, \r, \\, etc).

    On Sun, 11 Jul 2004 01:57:22 -0400, "Chung Leong"
    <chernyshevsky@hotmail.com> wrote:
    >
    >It just gets really confusing, that's all. Slashes can get totally out of
    >control when you have Javascript code sitting inside a PHP string. Here's an
    >extreme case:
    >
    >echo "var re = new RegExp('\\\\\\\\', 'g');";
    >
    >All the thing does is look for one backslash.
    >
    eclipsboi Guest

  9. #8

    Default Re: JavaScript?

    eclipsboi wrote:
    > A viable solution in a case like this is to use single-quotes instead
    > of double-quotes:
    >
    > echo 'var re = new RegExp('\\', 'g');';
    wouldn't this be more correct?:

    <?php
    $bleh = 'var re = new RegExp(\'\\', \'g\');';
    echo $bleh
    ?>

    HTH,
    Best regards,
    Sebastian

    >
    > Single-quotes do not parse things like variables or special characters
    > (i.e. \n, \r, \\, etc).
    >
    > On Sun, 11 Jul 2004 01:57:22 -0400, "Chung Leong"
    > <chernyshevsky@hotmail.com> wrote:
    >
    >>It just gets really confusing, that's all. Slashes can get totally out of
    >>control when you have Javascript code sitting inside a PHP string. Here's an
    >>extreme case:
    >>
    >>echo "var re = new RegExp('\\\\\\\\', 'g');";
    >>
    >>All the thing does is look for one backslash.
    >>
    >
    >

    --
    The most likely way for the world to be destroyed,
    most experts agree, is by accident.
    That's where we come in; we're computer professionals.
    We cause accidents.
    --Nathaniel Borenstein
    Sebastian Lauwers Guest

  10. #9

    Default Re: JavaScript?

    My apologies, I actually meant to use double-quotes inside of the
    single quotes. My shift key doesn't always work, and I don't always
    notice. :-)

    On Sun, 11 Jul 2004 14:44:16 +0200, Sebastian Lauwers
    <dacrashanddie@9online.fr> wrote:
    >eclipsboi wrote:
    >> A viable solution in a case like this is to use single-quotes instead
    >> of double-quotes:
    >>
    >> echo 'var re = new RegExp('\\', 'g');';
    >
    >wouldn't this be more correct?:
    >
    ><?php
    >$bleh = 'var re = new RegExp(\'\\', \'g\');';
    >echo $bleh
    >?>
    >
    >HTH,
    >Best regards,
    >Sebastian
    >
    eclipsboi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139