Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aditya.A 77 posts 96 karma points
    Jun 02, 2011 @ 13:47
    Aditya.A
    0

    how to make styles and apply to page

    HI friends i have already posted the same question once but no one gave the the correct solution.

    I have developed small site in umbraco and webmatrix.the problem is if i call a page like 

    http://localhost:9999/country/state.aspx the java script i wrote for tabbed pannel is not woriking instead it is shown in a plane page.

    but if i call the same page though its id

     like http://localhost:9999/1415 (page id of the state.aspx)

    ,the tabbed pannels are working ,can anybody give me a suggestion.

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Jun 02, 2011 @ 14:20
    Tom Fulton
    0

    Just a wild guess, but perhaps your javascript or CSS file references aren''t preceded with a '/', so on the first link it's actually looking for country/scripts/yourfile.js or country/css/yourfile.css rather than /css/yourfile.css?  That would explain why it works on 1415.aspx since it's on the root.

    Try preceding your file references with a /, like

    <script type="text/javascript" src="/scripts/yourfile.js"></script>

    Use Firebug or Fiddler to make sure your javascript is getting loaded.  Other than that we will need a bit more detail to help with your problem.

    -Tom

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 19, 2011 @ 20:48
    Kim Andersen
    0

    Hi Aditya

    Actually I'd suggest the same as Tom for a start. If this doesn't give you a result, could you try showing us the source code for the two pages.

    Are you using inline javascript in your tempaltes/macros or are you using an external script-file?

    /Kim A

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies