Paul
Paul

Reputation: 1004

Looking for JQuery OpenViewer for PDF Files

Im trying to find the location of a JavaScript Function that is being used for another site, and Im having trouble locating this function via FireBug. I can see this in the DOM, but it doesnt provide me with the function.

Here is the site: www.williamsprofessionalpainting.com

Here is the function: OpenViewer

This is simply an onClick Method of an Anchor Tag, which opens up PDF documents.

If someone could help me locate this function, I would greatly appreciate it.

Or, if there is a better JQuery solution, I would actually prefer that option. I've searched but can't seem to find an alternative.

Upvotes: 0

Views: 96

Answers (2)

Dan
Dan

Reputation: 3604

function OpenViewer(path)
{
    if(path != "")
    window.open(path,"SurveyViewer","toolbar=0,menubar=0,location=0,width=800,height=640,resizable=1");
    else
    alert("NO PATH!");
}

using the Chrome Javascript Console.

Upvotes: 0

tvanfosson
tvanfosson

Reputation: 532615

It's in the global.js file. It just wraps window.open() using the path from the anchor as the url.

function OpenViewer(path)
{
    if(path != "")
    window.open(path,"SurveyViewer","toolbar=0,menubar=0,location=0,width=800,height=640,resizable=1");
    else
    alert("NO PATH!");
}

Upvotes: 1

Related Questions