Using Spry Navigation with php includes in a Dreamweaver dwt file

I am working on a large site and am attempting to set up templates in Dreamweaver, which will include the navigation as an includes file with php.  First of all, wondering if it is possible?  Second, how do I address the problem of my pages being at different levels within the site?  Very new to php coding, but my pages that are not connected to a template are working properly. 
Thanks for your help.
Kim

Yeah!  David!  I don't know what you get paid, but it is not enough.  After replacing the file, it is working.  I did change the links in my index page and took off the /.  But the menu is now showing on all the pages now that were having issues.  I probably corrupted it somehow.  I really appreciate your help with this.  What a way to spend the holiday.  I guess we are making it true to its name.  This has definitely been laborous.  If there is such a word.
Send me your address and i will mail you some of the best chocolate chip cookies.
Kim
P.S.  Can I take my links down up there?

Similar Messages

  • Repeat with php include

    Hi again
    I have a regular repeat table with PHP includes involved.
    If I put
    <tr spry:repeat="dsMenuAboutAng"
    spry:setrow="dsMenuAboutAng">
    <td>{@nomang_nomdepage}</td>
    <td><?php require_once('{@detailang}');
    ?></td>
    </tr>
    {@detailang} getting the name of the file in MySQL db
    I get fatal error parsing the page : <a
    href='function.require'>function.require</a>
    The weird thing is that if I put
    <tr spry:repeat="dsMenuAboutAng"
    spry:setrow="dsMenuAboutAng">
    <td>{@nomang_nomdepage}</td>
    <td><?php require_once('includeGallerycode.php');
    ?></td>
    </tr>
    the php file being one of the include in the db, the page
    parse OK
    Changing Content-Type from text/html to text/xml wont change
    a thing
    Neither adding a <a href to the first column
    Somebody have a clue?

    JavaScript is a client side language, php is serverside, so
    all php commands can only be processed on the server, not when page
    is rendered.

  • How to use crystal report with php

    Hello every body
    can any body know how to use crystal report with php any helping material, code or tutorial for my problem ill be very thankful for helping me
    farooq

    Hello sir
    i am sudeep and i need to deploy crstal reports in php
    i want to integrate it in sugar crm (open source project(
    can u plz tell me how to do it
    i have written this code
    <?php
    //echo phpinfo();exit;
    $ObjectFactory= New COM("CrystalReports11.ObjectFactory.1");
    $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");
    //$crapp = new COM("CrystalRuntime.Application.10");
    $reportToRun="C:\Report4.rpt";
    $creport = $crapp->OpenReport($reportToRun, 1);
    //reportToRun=full path to *.rpt file
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['User ID'] = $user;
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['Password'] = $pass;
    //fomatType = integer 22=xls, 31=pdf etc
    $creport->ExportOptions->FormatType = $formatType;
    //type 1 is to output to a file I think 2 is email
    $creport->ExportOptions->DestinationType = 1;
    //location = full path to report output file
    $creport->ExportOptions->DiskFileName = $location;
    $creport->DiscardSavedData();
    $creport->Export(False);
    ?>
    thanks in advance

  • Using Incontext editing with PHP pages

    Hi,
    Has anyone established whether you can use incontext editing
    with php pages. My site works perfectly except for the pages i have
    created in php. The reason i have used php is that they are secure
    that only certain users can access.
    The error message that comes up is: "No input file specified.
    " But the page is up.
    Thanks in advance for any help anyone can provide.
    Chris

    Hello Chris,
    Yes, it is possible to edit PHP pages with InContext Editing,
    however InContext Editing should not be used to edit dynamic
    content in PHP pages. If you edit dynamic content that is loaded
    into an InContext Editing editable region, it will be overwritten
    as static content.
    In regards to the problem you're experiencing, it appears to
    be an issue with the HEAD http request. InContext Editing is using
    HEAD requests to check the existence of the draft and published
    versions of the current page (in your case, InContext Editing is
    making a request for products_bedroom_draft.php). If those calls do
    not work as expected (the HEAD should return status code 200/304 if
    the checked page exists, 404 otherwise) then you will experience
    this behavior.
    A HEAD http request for products_bedroom_draft.php is
    returning a 502 Bad Gateway status code which is not what InContext
    Editing expects.
    Please contact your web hosting provider for assistance with
    this server issue. This will likely require changes in web server
    configuration.
    http://www.adobe.com/go/kb406749
    Please let me know if you need further assistance.
    Best regards,
    Corey

  • Can't use DW WYSIWYG with php?

    Hi,
    I'm a graphic designer who has used Dreamweaver for years to design HTML and CSS. I am comfortable jumping back and forth between code and design views to manipulate the code as needed.
    I have a new co-collaborator on a project who is extremely knowledgeable about backend/programming stuff (I'm not) and he cut up my original HTML files and turned them into .php files. For efficiency, he is using include files all over the place, which I can totally understand.
    However, as I'm way more comfortable designing visually, with the awesome help of DW CS4's interface and code navigator, I feel like I'm floundering trying to manipulate the design now that I'm working with the includes.
    I successfully installed XAMPP and am able to view the "complete" web page design using //localhost, or  if I'm using "Live View," however, that's the only way to see it all come together. Also, I am now unable to use the code navigator to jump right to the CSS for any given item. Basically, I feel like everything has to be hand coded and previewed in the browser for every single change.
    Am I missing something here? Now that all the files are set up as .php, can I no longer use the WYSIWYG features of DW???
    Someone pleeeeeease tell me I just need to set some sort of preference. I really need to be able to work these pages as if they are just HTML, with full DW interface "hand-holding" so to speak.
    Any advice is appreciated.
    Thanks.
    -Karen

    kar13 wrote:
     Now that all the files are set up as .php, can I no longer use the WYSIWYG features of DW???
    It depends what you mean by the files being PHP. If the include files consist of HTML, you can certainly edit them, but not in the main file. You need to edit the include file. You cannot edit anything that is dynamically generated by PHP code in a WYSIWYG way.
    One way to deal with CSS in include files is to use Design Time Style Sheets (press F1 to look them up in the Help files).

  • Looking to reference files using something other than PHP includes

    Hello -
    Aside from using PHP includes, what would be another technology that I can use that allows me to use HTML file extensions, that if I make a change to a file in one location (assets/dirname/filename), it updates dependant pages?  It's got a be Linux server friendly, and no templates or CMS stuff.
    ~Mike

    No problem Mike,
    Shouldn't matter if the pages are static or dynamic for includes to be useful. Some of the most common uses are headers, footers and menus for sites that have many pages, static, synamic or both.
    For example; if you have a phone number in your footer and have 100 pages, it would be crazy to change 100 pages. Just change one small file and upload and your done.
    Stick with the includes, you'll be glad you did
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Use Spry Validation with jQuery Form to Form Wizard (v1.1)

    I am trying to use spry validation widgets with jQuery Form to Form Wizard script found here http://www.dynamicdrive.com/dynamicindex16/formwizard.htm
    This is a script that makes a long form into a multi part wizard/form with next and back buttons.
    for the most part it works with the spry widgets on blur and onsubmit, but to make it work properly the next buttons of the script should be disabled until the user corrects what has caused spry error messages.  The script creator has made onpagechangestart event handler to allow for this.  Description here http://www.dynamicdrive.com/dynamicindex16/formwizard_suppliment.htm. By returning false from this event handler, you disable the user's ability to go on to the next page until a value of true is returned.
    How can I script for Spry validation to return false if it has errors from this event handler?
    Thanks in advance for any help,

    did you check this example:
    http://labs.adobe.com/technologies/spry/samples/form_submission/Submit_and_Validate_Form.p hp.html

  • Help with PHP Includes on localhost

    Hi,
    I have a very simple index.html file with a header div.  I have put an include into it like this:
        <div class="header">
          <?php include("includes/header.php"); ?>
        </div><!-- end .header -->
    I have follwed David Powers setup_php to link to my localhost, putting the whole developement web in c:\websites\localhost\crown.
    The actual header.php is in a subdirectory of crown called includes.
    When I publish the site to a live server it works perfectly but not on locahost or in liveview.
    I don't get any errors, just an empty header bar on the page..  I do get a warning across the top of the screen that I haven't installed flash(which I have)
    I believe php is working OK on my localhost as running the php file direct in both liveview and F12 works OK.
    BTW, I'm running CS5 on 64bit Win7 home premium.  I've installed Apache 2.2.15 and php 5.2.14.
    Any pointers greatly appreciated as I'm quite new to this.
    Thanks,
    Tim

    Thanks for that.  It made me check.
    My live server has it because the PHP Includes work there.
    There is an identical htaccess file on my localhost.
    So good helpful pointers but doesn't solve my problem of PHP includes not working on my localhost test site.
    Tim

  • Can we use oracle reports with php

    hello
    any body know about that oracle reports can use in php or not if not any reason if can use any example oracle report and php ill very thankful to all for this help bye
    from farooq

    It depends on what you mean by 'use oracle reports within php'. If you generate reports as urls (don't know if oracle reports supports this but I think it does), you can just link to them or catch them in an iframe.
    If you are talking about generating a report from inside a php script, you can use a system() call to execute oracle reports tools such as 'rwrun'. If you do this, make sure your php server has proper oracle environment variables (such as ORACLE_HOME)

  • Need help with php registration form! (Dreamweaver cs5)

    Im creating an advanced php registration form in dreamweaver. I need the following code for:
    ZIP / Postal code, date of birth.
                      or
    if u can help me how to create the entire form with the following fields That will be nice! Im a Newbie:
    First name, lastname, country, zip / postal code, date of birth, username, password, email, verified, and token.
    This is the database i have in mysql:
    User_id, INT, (10), UNSIGNED, NOT NULL, A_INCREMENT
    Firstname, VARCHAR, (50), NOT NULL
    Lastname, VARCHAR, (50), NOT NULL
    Country, VARCHAR, (20), NOT NULL
    Zip, INT, (12), NOT NULL
    Birth_date, DATE, NOT NULL    
    Username, VARCHAR, (15), NOT NULL
    Password, VARCHAR, (40), NOT NULL
    Email, VARCHAR, (100), NOT NULL
    Verified, ENUM, ('n','y'), NOT NULL
    Token, VARCHAR, (40), NOT NULL
    I need to know how to apply the insert recorset server behavior in dreamweaver cs5 so I can get it to run.
    I have been trying diff ways and i just can't get it right.
    Please help! Thanks!!!

    I'm not sure how much you know but first you have to connect your form to the database
    $con = mysql_connect("hostname","admin_name","password");
    Then you have to choose the database you want information be added to.
    mysql_select_db("database name goes here", $con);
    Then you have to write an sql function which will write it in the appropiate columns in your database
    $sql="INSERT INTO what column e.g members (First name, Last name, age, etc)
    VALUES (the names of the textfields on your form), actually double check that part
    ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";
    $result = mysql_query($sql);
    This is the first and most basic part just to give you an idea how it works.
    Within these snippets you will have to write much more which will beef up the security aswell as check if everything has been entered correctly etc

  • How to use Spry validation with link styled submit buttons..??

    I'm working with a theme package that comes with a bunch of button styles that work with basic links.  For example:
    <a href='page.html' class='small-button smallblue'><span>Button Label</span></a>
    I've got a basic form setup with Spry validation, but the submit button needs some styling to make it look nice with the site.  Since there are already styles ready for me to turn links into buttons I figured I'd use the same thing for my submit buttons.
    To accomplish that, I'm using the following javascript...
    <script type="text/javascript">
    function submitForm() {
        document.getElementById("form_name").submit();   
    </script>
    And then I'm updating my submit button to something like this...
    <a href='javascript: submitForm()' class='small-button smallblue'><span>Button Label</span></a>
    When I do this, the form submits as expected, but the Spry validation doesn't work.  Is there a way I can make the Spry stuff work with these types of buttons?  I know I could create separate styles for the submit buttons themselves, or I could use an image type button, but I'd really like to figure out how to get these existing styles to work for me since the theme already has so many of them done for me.
    Any information on this would be greatly appreciated.  Thanks!

    Save yourself a lot of trouble and style the normal submit button as per
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <style>
    .Standout {
        font-family: Geneva, Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        color: #FFFFFF;
        font-size: 16px;
        background-color: #CC0000;
        font-weight: bold;
        border-style: none;
        padding-top: 6px;
        padding-bottom: 5px;
        padding-right: 64px;
        padding-left: 64px;
        letter-spacing: 1px;
    .Standout:hover {
        background-color: #000000;
    </style>
    </head>
    <body>
    <form action="" method="get" name="myform">
      <span id="sprytextfield1">
      <label for="text1"></label>
      <input type="text" name="text1" id="text1">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="input" type="submit" class="Standout">
    </form>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});
    </script>
    </body>
    </html>
    Gramps

  • Using Here navigation with Lumia 1520/W8.1 in my c...

    With bluetooth activated on my phone and in the car (Hyundai i40/2012) the voice navigation do not work as expected.
    Every time navigation instructions are given the car's phonesystem is activated as an incoming call which of course cannot be answered. Anyone experienced this and found a solution?
    De-activating bluetooth on the phone does help and voice guidance works as expected on the phone, however this is not a good solution and I would like to have the bluetooth activated and voice guidance working through the car's speaker system as it did with my previous model (Lumia 920).
    Any help will be appreciated.

    I have been in contact with Nokia Care on the above subject.
    Finally got the voice guidance to work after doing the following:
    1. Deleting the phone from my bluetooth list in my car
    2. Removing following char from my phonebook: /()
    3. Deleting the bluetooth pairing from my phone
    4. Re-started the phone
    5. Paired to my car
    6. Chosed a destination.
    7. Started navigating to that destination.
    8. The voice guidance working on my cars speakers.
    9. Stopped navigating.
    10. Chose another destination
    11. Started navigating to that destination
    12. The voice guidance working on my cars speakers
    13. Stopped navigating.
    14. Chose recent destination or a favorite destination
    15. Started navigating to that destination
    16. The voice guidance DID NOT WORK!!
    17. Stopped navigating.
    18. Went back to choosing as under 6.
    19. Started navigating to that destination
    20. The voice guidance DID NOT WORK!!
    Conclusion:
    It seems that I can get the voice guidance to work as long as I do not select destination from other than "Choose a destination". Selecting a destination from "Recent destinations" or from "Favorites" does not seem to work.
    Funny, however this was not the situation before W8.1. Has anything been done with the bluetooth communication after W8?
    Note:Microsoft Mobile Devices states in a FAQ on this matter that you should use the phone's internal loudspeaker for the time being. However I then have to switch off bluetooth which of course is no solution. For the time being we just have to wait until hopefully this technical problem is solved by Microsoft.
    http://www.microsoft.com/en-ph/mobile/support/faq/​?action=singleTopic&topic=FA142031

  • Using spry datasets with Googlemaps

    I am using googlemaps with XML as the data source. I want to
    have a spry data grid under my map that shows all of the map
    points. I am already parsing the map point's XML into a javascript
    array. Is it possible to use this array to populate a spry
    datagrid? Most of the examples seem to be using xml or json as the
    datasource but figured since google has parsed it for me that I
    could just use their array as the datasource.

    Hi,
    We have a couple ways of putting data into data sets.
    Check out:
    http://labs.adobe.com/technologies/spry/samples/data_region/DataSetSample.html
    I think that might be what you are looking for...
    Hope this helps,
    Don

  • Spry accordion with php mysql as data

    Hello
    I`m trying to create a spry accordion where the Labels are pulled from a mysql database table and the Content of that label is pulled from data in the same database. I tried adding first the spry accordion and then created 1 recordset for the labels and a second recordset for the content , then I added a repeat region for the labels DIV and inside this div I added a repeat region for the content.
    Unfortunatly when viewed in the browsers the accordion doesn`t work.
    Can anyone look at the code and tell me where is the mistake.
    Thanks
    <?php require_once('Connections/log.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_log, $log);
    $query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
    $log_year = mysql_query($query_log_year, $log) or die(mysql_error());
    $row_log_year = mysql_fetch_assoc($log_year);
    $totalRows_log_year = mysql_num_rows($log_year);mysql_select_db($database_log, $log);
    $query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
    $log_year = mysql_query($query_log_year, $log) or die(mysql_error());
    $row_log_year = mysql_fetch_assoc($log_year);
    $totalRows_log_year = mysql_num_rows($log_year);
    $mhour_log_mon = "0";
    if (isset($row_log_year['yy'])) {
      $mhour_log_mon = $row_log_year['yy'];
    mysql_select_db($database_log, $log);
    $query_log_mon = sprintf("SELECT DISTINCT DATE_FORMAT(`23849`.acoff, '%%M') AS mon , DATE_FORMAT(`23849`.acoff, '%%m') AS m , sum(`23849`.ablock) as toth FROM `23849` WHERE YEAR(`23849`.acoff) = %s GROUP BY m ORDER BY m ", GetSQLValueString($mhour_log_mon, "int"));
    $log_mon = mysql_query($query_log_mon, $log) or die(mysql_error());
    $row_log_mon = mysql_fetch_assoc($log_mon);
    $totalRows_log_mon = mysql_num_rows($log_mon);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>testing ajax php mysql</title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <?php do { ?>
          <div class="AccordionPanelTab"><?php echo $row_log_year['yy']; ?></div>
          <?php } while ($row_log_year = mysql_fetch_assoc($log_year)); ?>
    <div class="AccordionPanelContent">
      <table width="100%" border="0" cellspacing="5" cellpadding="5">
        <?php do { ?>
          <tr>
            <td><?php echo $row_log_mon['mon']; ?></td>
            <td><?php echo $row_log_mon['toth']; ?></td>
          </tr>
          <?php } while ($row_log_mon = mysql_fetch_assoc($log_mon)); ?>
      </table>
    </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($log_year);
    mysql_free_result($log_mon);
    ?>

    You only have 1 "AccordianPanel" which contains a list of "AccordianPanelTab" elements, then a list of "AccordianPanelContent" elements.
    You need to have a list of "AccordianPanel" elements, each containing a pair or "AccordianPanelTab" and "AccordianPanelContent" elements.
    HTH,
    Randy

  • Using Live View with PHP

    Hi, I'm working locally on a Wordpress site via Dreamweaver in Live View. I can't save a background image in my CSS. It says no link can be found. I'm using MAMP.

    PHP pages require a server to render pages in browser.  If you want to view PHP pages on your local computer before uploading to remote server, you will need to install a local testing server.
    WAMP on Windows - http://www.wampserver.com/en/
    XAMPP on Windows -  http://www.apachefriends.org/en/xampp-windows.html
    XAMPP on Mac - http://www.apachefriends.org/en/xampp-macosx.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

Maybe you are looking for

  • Building report from PL/SQL cursor

    Hello, is there any way to build APEX report using just PL/SQL cursor? I don't have grant to SELECT from views or tables, but I can use some functions returning row types and cursors. I know I can use them to build table from scratch with htp.p etc.,

  • Oracle SSO error while trying to access a report

    Hi All, I am using Oracle 11g reports and forms.My adf application(using JDeveloper 11.1.1.4) will use oracle reports through url. From adf application we form a url for the reports like https://<server>:<port>/reports/rwservlet?server=devstage11g&de

  • Sorry, this update isn't available for your PC" while upgrading to Windows 8.1from 8

    Hi, I have been encounting this problem from the time i tried to upgrade my laptop or at the time 8.1 was launched . I never reinstalled the operating system it is the way it came preinstalled by HP, windows is also 100% updated at the time of postin

  • Reg : Cosignment Stock

    Hi ,                Good Evening to all. My name is Usha . I am new to SAP MM . I have one doubt .          How to transfer the consignment stock to unrestricted stock automatically if we mention certain period of time. Means after that time , the st

  • How to edit a freeze frame in Photoshop?

    When making a freeze frame, the file that FCE creates is videofile AVI or MOV, the same as the source clip is. If I would like to edit the image in photoshop, it should be converted to still image? Is there any way to do that in FCE?