Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Javascript in Dreamweaver

    I am using the script in DreamWeaver and canot make it work

    It works when i use net objects so i must be doing something wrong

    Would appieciate any help

    STEVE

    <style>
    .my_price {
    color: #000000;
    font-weight: bold;
    }

    .my_data {
    color: green;
    }

    .my_text {
    color: blue;
    }

    .my_head {
    color:red;
    }
    </style>


    <script src="index.php"></script><br>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What's the question?
    What's the problem?
    What script?

    .....Willy

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Script

    what you see is a java script calling to a php script on my server

    all i need to know is how <script src="index.php"></script><br>

    In my page in dream weaver

    I have tried in the html and nothing shows


    STEVE

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Huh? You're not making any sense to me

  • #5
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don' think you will find many of us here using Dreamweaver.
    I have never used it but will suggest that you open your page in Notepad and paste the script call wherever you like in the document and click Save under File on the toolbar.

    .....Willy

  • #6
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    I think I understand what you want... However, this line:

    <script src="index.php"></script>

    Is not a javascript... It is the script tag loading a php page into the browser memory so that parts of it can be used by the contents of the page itself... What you are really looking for is a way to include the contents of the php page into the contents of the html page, is that correct?

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I put the code you see at the first post page using net objects it works

    In dreamweaver nothing

    I am putting both pages to the same server so it is not that

  • #8
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Are you saying you want the content of index.php to show up in Dreamweaver?

    Please explain what you want to do, not what script you are using to accomplish it or what programs you are getting the results in... What results do you want to see and where???

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    OK go to www.cruisepriceline.com/test.html

    That is what it should show on a dreamweaver page

    That page is a different designer program

  • #10
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Ok. Dreamweaver will not translate this element as content for a page... Dreamweaver is not a browser but a page builder... As configured out of the box, it will not show the output of scripts (I have not seen a way to have Dreamweaver translate scripts either)...

    With dreamweaver, you build the page and then test it in the environment(s) that you are desiging the page for...

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000


  •  

    Posting Permissions

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