Jquery file for Creating HTML Reports in PowerShell book

Welcome Forums General PowerShell Q&A Jquery file for Creating HTML Reports in PowerShell book

This topic contains 10 replies, has 4 voices, and was last updated by

 
Participant
3 years, 1 month ago.

  • Author
    Posts
  • #12587

    Participant
    Points: 0
    Rank: Member

    Hi, Don,

    Thanks for speaking at AZPOSH last night! Question: The book refers to a file that I don't see in the zip anywhere: 'C:\html\jquerydatatable.js'. Is there a way to get that one?

    Regards,

    Scott

  • #12588

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    If you don't tell it otherwise that comes from a Microsoft CDN. Look at the source code and you'll see the URL.

  • #12589

    Participant
    Points: 0
    Rank: Member

    Yes, I did, but it shows it as a local file in the code: 'jQueryDataTableUri'='C:\html\jquerydatatable.js'.
    I just found it on the Web: http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.js

  • #12590

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Huh. Used to be a parameter – will check and fix!

  • #12591

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Yeah so it's parametrized in the actual function. Just don't provide that parameter and it grabs from the CDN. You're looking at the demo script which is set to run from my computer.

  • #12592

    Participant
    Points: 0
    Rank: Member

    Cool, thanks. I'm getting this error importing the module too:

    The 'C:\Users\ssaari\Documents\WindowsPowerShell\Modules\EnhancedHTML2\EnhancedHTML2.psd1'
    module cannot be imported because its manifest contains one or more members that are not
    valid. The valid manifest members are ('ModuleToProcess', 'NestedModules', 'GUID', 'Author
    ', 'CompanyName', 'Copyright', 'ModuleVersion', 'Description', 'PowerShellVersion', 'Power
    ShellHostName', 'PowerShellHostVersion', 'CLRVersion', 'DotNetFrameworkVersion', 'Processo
    rArchitecture', 'RequiredModules', 'TypesToProcess', 'FormatsToProcess', 'ScriptsToProcess
    ', 'PrivateData', 'RequiredAssemblies', 'ModuleList', 'FileList', 'FunctionsToExport', 'Va
    riablesToExport', 'AliasesToExport', 'CmdletsToExport'). Remove the members that are not v
    alid ('RootModule'), then try to import the module again.
    At D:\ng_backend\scripts\Get-RefreshReport.ps1:15 char:18
    + Import-Module <<<< EnhancedHTML2 -force + CategoryInfo : InvalidData: (C:\Users\ssaari...ancedHTML2.psd1:String) [Imp ort-Module], InvalidOperationException + FullyQualifiedErrorId : Modules_InvalidManifestMember,Microsoft.PowerShell.Commands. ImportModuleCommand

  • #12593

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    You're using v2?

  • #12594

    Participant
    Points: 0
    Rank: Member

    It's a client's server, powershell 2.

  • #12595

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Yeah. Don't do that. It was written for v3.

  • #33315
    AK

    Participant
    Points: 0
    Rank: Member

    I do have the same question. Example references
    'jQueryDataTableUri'='C:\html\jquerydatatable.js';
    'jQueryUri'='C:\html\jquery.js'
    and there is another commented out section that uses CDN. Should these JS files be included with the module download?
    Also, for some reason pagination does not work for me.

  • #33317

    Participant
    Points: 61
    Rank: Member

    Jquery datatables is a free JS script. Just Google it and download it if you need.

The topic ‘Jquery file for Creating HTML Reports in PowerShell book’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort