Advanced Search

Results 1 to 1 of 1

Thread: How can i change entries_url to load from local file

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How can i change entries_url to load from local file

    Hello to all ...
    I am very basic on this of javascript, so someone could help me how to resolve this issue.

    I have a javascript (HTML internal), which fetches and executes a file in another web address...
    but I do not want it to do that, i want this script to execute is function directly from my local disk (file location).

    Here is the script;
    Code:
    <html>
      <head></head>
      <body>
          <div style="WIDTH: 984px; HEIGHT: 443px" >
    <script type="text/javascript">
        var previewConfigs = [{
          type: 'flash',
          preview_url: "http://myflashtest.com/files/9083/preview.swf",
          base: "http://myflashtest/files/9083/"
        }];
                    </script>
    <span id="large_item_preview">
                      <object style="visibility: visible; Z-INDEX: 0; WIDTH: 590px; HEIGHT: 300px; TOP: -51px; LEFT: -27px; " id="large_item_preview_container" data="srcs-ff/preview.swf"></object> </span>
              <script type="text/javascript" src="srcs-ff/jquery.js">
              </script>
              <script type="text/javascript" src="srcs-ff/preview.js">
              </script>
              <script type="text/javascript">
        if (typeof(previewConfigs) !== 'undefined') {
          for (var i = 0; i < previewConfigs.length; i += 1) {
            var preview = new ItemPreview(previewConfigs[i]);
            preview.display();
          };
        };
              </script>
              <script type="text/javascript">
        $(document).ready(function() {
          $("tr[data-accessor=source]").click();
        });
              </script>
        </div>
      </body>
    </html>
    What I want is to change this part;
    preview_url: "http://myflashtest.com/files/9083/preview.swf",
    base: "http://myflashtest.com/files/9083/"
    Last edited by CyberPath; 07-27-2011 at 04:41 PM.

Bookmarks

Posting Permissions

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