How to correct SpryAssets/SpryMenuBar paths in template for sub-directories?

I recently converted my real estate web site to CSS using Dreamweaver CS4. I use a primary template for most of my pages, which have both a horizontal and a vertical spry menu bar. When I create a page with the template and save it in a sub-directory (not at root level), after a page view,  I get errors on the server such as:
File does not exist: /home/I_DELETED_THIS/public_html/homes_for_sale/SpryAssets, referer: http://locatehome.com/homes_for_sale/10-2264.htm
(I replaced part of the URL with "I_DELETED_THIS" since this is posted publicly)
The SpryAssets directory is at the root level of my site. The template includes the code further below at the bottom of the source code in a non-editable area of the template, which I think is the source of the problem, especially since I get two error messages for each page view and the SpryAssets directory is referenced twice in the following code after the last div. Part of the code is commented out:
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
Can I delete this code from the template or will my menu bars not function if they have sub-menus?
The template changes the file path for other CSS scripts in the head of the template and links, etc. in the body, but not for this section of code. Is there a way to modify my template so that the path files will be correct when a create new pages in sub-directories?
I saw one suggestion in the Forum to another user with a related problem that he should manually change the code in this section of the template to have a file path relative to the root, but it seems that the program should automatically be taking care of things like that.
Many thanks,
Dave K.

<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var
MenuBar2 = new Spry.Widget.MenuBar("MenuBar2",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
No you cannot delete the menu constructors, they are the ones that call the menus. The comment tags are purely for browsers that do not have JavaScript enabled.
As far as template behaviours are concerned, I am afraid that this is not a very helpful forum. You will need to go to the Dreamweaver Forum for that http://forums.adobe.com/community/dreamweaver/dreamweaver_general
I hope this helps.
Ben

Similar Messages

  • MS Office Report Express VI - How to programatically use multiple Path to Template

    Good Afternoon,
    I'm testing MS Office Report Express VI and i need to know if it's possible (and how) to programaticaly change "Path to Template" field? I need that in order to change it through front panel.
    Best Regards.

    Hello aj2011,
    Thank you for your post on the National Instruments forum.
    a solution for what you want to do is:
    when you placed your express VI on the diagram, perform a right click on the express VI. From the dialog box choose "open front panel". Choose "convert". then when the front panel of the express VI is open, modify the connector of the VI and put the template path as an input.
    This way you can use the express VI  input path template programmatically.
    Is the solution you were looking for?
    Sincerely
    Romain D.
    Romain DUVAL || Application Engineer Specialist ||Certified LabVIEW Architect (CLA) || Certified TestStand Architect (CTA)
    National Instruments France

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • How to use custom aspx page as template for custom content type

    Hi,
    I have created custom content type and custom aspx page. I want to use aspx page as template for custom content type.
    Can anybody please let me know how to accomplish this?
    Any help would be appreciated.
    Thank you,
    AA.

    Check if you are looking for the below
    http://www.sharepointpals.com/post/How-to-Create-a-Page-Layout-(PageLayout)-with-ContentType-in-SharePoint-2013
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How do you input/uplo​ad the templates for Heart Rates, EKG, etc. onto an already existing form of LabView?

    I have LabView 9.0 and I remember last year when I got it I had to go through several steps in order to upload the templates for Heart Rate, EKG, and Blood Pressure.  However, since then, several of my computers have been worked on within the district and the templates are no longer on the main page anymore and I have forgotten the steps to completete to get them back.  Can anyone help me??!!

    What main page are you referring to? Are you referring to the Getting Started window that has the "VI from Template..." link that pulls up a dialog to select the type of file to create? That has a tree node that you can navigate and there's a VI -> From Template -> User node. If you place the template in the <labview>/templates folder then they will show up in this node.

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • Templates in sub-directories

    My business web site has a usual Templates directory in the root of the master site.  Then, each client is in a sub-directory with their own templates for their own unique site.  When I am working on a particular client, I define their site as a separate site and running link checker at the client / subdirectory level works fine - DW does not know or care in this case that it is part of a larger site.
    However, when I run link check on the main site, all the client sub-directory templates and library items show as bad linkes.  Wouldn't be such a problem except it generates about 800 or so "errors" that I have to scan through for real issues.
    I assume this is because the client template path is relative to root with a /template in each page?  Is there any way to avoid this?

    No. If those files are in the master site, they will be evaluated as part of that site.

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • VL02N , How to correct the deliverd quantity in vl02n for the batch items .

    Hi,
    How to save the order if the correct picking value if the item is batch managed.
    When we are in Delivery -> Item->batch split screen, we have an option Adj Del Qty. When  this is clicked, than delivery qty is updated correctly. When this is not done, delivery is saved with mismatch between cumulative batch quantity and delivery quantity.
    Could any one has an idea how to save the order with the correct delivery quantity when the  batch split -> Adj Del Qty is not clicked.

    I am thinking you want to show the rejected quantity on the Parent Item in the Inventory Tab.
    Use the following SQL for showing the Net Available Qty after subtracting the rejection.
    <b>SELECT T0.OnHand - T0.IsCommited - (SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R')
    FROM OITW T0
    WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]</b>
    Use the following SQL to get just the rejected quantity
    <b>SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R'</b>
    Suda

  • How to correctly configure send and receive connectors for SBS2011 exchange to connect to EOP

    Hello SBS fans,
    we have a customer with SBS2011 and exchange.  The server email is setup for Exchange Online Protection.
    It passes the Remote Connectivity Analyzer for inbound and outbound email.  It shows a warning for the spf, saying it cannot find the spf record, BUT MXtool box passes everything associated with their domain name, including the spf record.
    They are now getting some bounced email from yahoo servers, referencing this ip
    65.55.169.249, which is a valid Microsoft ip.
    I checked the bounce back email header carefully, and found a reference to an internal ip, 192.168.11.14, which just happens to be the ip of the user's desk PC!! - NOT the local addr of the sbs2011 server (which should not be there anyway)
    I will guess that there is an incorrect setting in one or both of the hub transports?  There is a correct smart host connector.
    I am no longer sure about the other connectors!
    Any ideas on this?
    ewholz
    Network and Server Installs

    Hi,
    à
    It shows a warning for the spf, saying it cannot find the spf record
    Would you please let me know the complete warning message that you can get? Meanwhile, would you please let
    me know how long ago you add the SPF record? Be
    more than 72 hours?
    Please also refer to following article and check if can help you.
    Configuring
    Exchange 2007 Hub Transport role to receive Internet mail
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • How to write HTML code in Web Template for selection screen

    Hello All,
    Is it possible to write a html code in the web template html tag so that the output of the html is displayed in the selection screen, i.e before the execution of query.
    I know that we can write html, which will be displayed once the query has been executed, but can it be done for selection screen.
    if so, how.
    My exact requirement is : to display a 2-3 lines of text in the selection criteria screen - sort of, various options available to user for entering values in the selection screen.  I was thinking of putting this text using HTML code in the selection screen.
    Regards,
    Nagendra.

    Hi Erick,
    No, unfortunately nobody replied to this thread. So i assumed it is not possible to modify the selection screen thru html code.
    Btw, as my requirement was to provide user with multiple answers on the selection screen. I did the validations on customer exit and popped an errror dialog when applicable.
    Regards,
    Nagendra.

  • How to find and modify underlying XML Template for a OA Framework page

    Env: R12
    There is a standard OA Framework page in Purchasing that can be reached by
    Purchasing Manager > Buyer Work Center > Orders > Search for a specific PO > Open the PO Page
    Then Open the PO Details page for what you searched
    Now in the PO Details Page, On the right hand top corner is a drop down list for Actions > View PDF
    This generates a PDF output of the PO, PO Details and the terms and conditions.
    I want to modify this pdf. ( Change the template and add/remove a few columns)
    I believe that this is an XML Pub report running in the background but how to find out what report is running and how to modify its template ??
    Thanks
    Gabbar

    Hi Gabbar,
    Click on 'About this Page' and figure out the page, controller, AM and VOs. You can download these xml and class files from JAVA_TOP. Page can be downloaded from mds directory under PRODUCT_TOP.
    Regards

  • How to add custom texts in Office Templates   for  the COBRA form set up

    Hi,
    How to insert custom texts in the copied BDS form from COBRA set up. I could not edit the text. I can edit the contact numbers in the standard text and displaying after saving the document.
    I do not know how to proceed for this.
    Please share your valuable experience in this regard.
    Thank you,
    Ravi.

    Structure Ptk03 ,Ptk33 needs to be enhanced

  • How to give the root path in flash for linux os?

    hi all,
        This is santhosh, I have a problem with xml path in flash. Iam trying to load some swf files into another swf file, it's woking fine in windows os but when I check this file in linux it is not taking the path which I gave for loading external swf files.So, any help on the same will be grate for me.
    thanks in advance.....
    Thanks and regards
    Santhosh Kumar.M

    duplicate {thread:id=2418158} ?
    I guess the path you are using is wrong. It works on your mashiene as the src path is available. When you run the app on a server (jspx file) there is no src path as long as you don't include it in your WAR wich you should not do anyway.
    If you need to access such data you can create a folder in your webroot folder and the the resources from there as /xml_folder_name or if the xml files shouldn't be visible from the outside put the folder under hte web-inf folder.
    Timo
    Edited by: Timo Hahn on 23.07.2012 16:20

  • How to access stored script path in variable for Powershell.exe in Process.Start in VB Winform

    Hello Team,
    If starting Powershell within an application (Say VB Winform) - can I pass the path of the Powershell script to Powershell as a variable.
    For example:
    Dim vPS_Path as String = Request.Querystring("ScriptPath")Process.Start("Powershell.exe", "-File vPS_Path"
    Please note I do not want to spell out the path rather have it contained in vPS_Path.
    Any pointers appreciated.
    Many thanks,

    My vbscript is rusty, but I'd think you'd want to do it like:
    Process.Start("Powershell.exe","-File " & vPS_Path)
    I hope this post has helped!

Maybe you are looking for

  • Any way to get video out from your Treo 800???

    I have video files on my treo 800.  I can view them on my treo 800.  Is there any way to "pipe" the video output through the usb port and wirelessly to something else so I can take my treo 800 to a customer presentation and play a video for them on a

  • I-tunes wont download podcast or purchased music

    After upgrading i-tunes and getting the crazy spinning i-con i managed to sort that problem but ever since i cant download any podcasts or purchase music i get a message reading your are not connected to the internet or the url is incorrect etc etc.

  • Adding multiple columns in List Validation

    HI, I have a custom list, which has 2 date fields. In the date column, I have added a validation as below for each of the columns: //on column one - Test Log date=[Test Log date]>=TODAY() //on column two - Test Start date=[Test Start date]>=TODAY() a

  • How do you go about quickly deleting photos on SD card before importing?

    II'm looking for quick efficient way to look over photos and discard obvious unwanted pics before import.

  • Indesign 2014 - manipulating Arabic text

    Hi All, We are trying desperately to get Indesign CC 2014 to work with arabic copy, but have cone across some rather fruity issues. Using the plain text ( copied from text edit ), are inserting arabic text ( arial font ) into a document. As you will