CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Posts
    16

    Javascript src redirect

    Hello i have this src on my html:
    <script language="javascript" src="infodetails.js" type="text/javascript"></script>
    But the thing is now i need to call that src to a dir on c:\ maybe like this:

    <script language="javascript" src="c:\anydir\infodetails.js" type="text/javascript"></script>

    or

    <script language="javascript" src="file:///C:/anydir/infodetails.js" type="text/javascript"></script>

    But don&#180;t work any of both.
    Someone know how can i resolve this issue?
    Thank you
    Last edited by field3d; August 23rd, 2009 at 11:19 AM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Javascript src redirect

    I don't have any problem doing that.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Aug 2009
    Posts
    16

    Re: Javascript src redirect

    Here My script when call show me a white page on IE

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Javascript src redirect

    The proper way would be to do the following. I did a test script with a simple alert...and it worked for me.

    Code:
    <script type="text/javascript" src="file:///C:/anydir/infodetails.js"></script>
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured