locate .js files

Topics: Developer Forum
Feb 14, 2011 at 10:55 AM

Hi,

I would like to scan an aspx site using HtmlAgilityPack and locate all .js scripts. I will then store each path in a variable. I have a Handler class where i would use it. Im new to HtmlAgilityPack so excuse my attempt to show what i would like to accomplish:

public string GetJsFiles(string targetSiteAspx)
{
         HtmlAgilityPack.GetFilesInDocument(site to target: targetSiteAspx, type of file: ".js");
}

I do realize this doesn´t exist, but this is what i would like to accomplish. Is it posiable to achieve this in some way?

Thank you!
Regards
Ray  
Feb 16, 2011 at 2:44 PM
Hi Ray
My pleasure to know you. I heard HtmlAgilityPack can read scripts into. but I am also new to HtmlAgilityPack and Java is not my field, so cannot help you anymore.

2011/2/14 RayMith <notifications@codeplex.com>

From: RayMith

Hi,

I would like to scan an aspx site using HtmlAgilityPack and locate all .js scripts. I will then store each path in a variable. I have a Handler class where i would use it. Im new to HtmlAgilityPack so excuse my attempt to show what i would like to accomplish:

public string GetJsFiles(string targetSiteAspx)
{
HtmlAgilityPack.GetFilesInDocument(site to target: targetSiteAspx, type of file: ".js");
}

I do realize this doesn´t exist, but this is what i would like to accomplish. Is it posiable to achieve this in some way?

Thank you!
Regards
Ray  

Read the full discussion online.

To add a post to this discussion, reply to this email (htmlagilitypack@discussions.codeplex.com)

To start a new discussion for this project, email htmlagilitypack@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com