?
Solved

c# HTTPWebRequest or HTTPRequest javascript problem

Posted on 2008-10-30
1
Medium Priority
?
1,031 Views
Last Modified: 2013-12-17
I am looking for a method in C# that allows me to read client side java script variables<b>or</b>
I cannot seam to get the values for client side javascript variables within a HTTPWebRequest
Suggestions that don't include using a client side browser such as WatiN or incisif.net
Thanks :)

Javascript notes:
When i look at the source code for different types of output on the same secure page.
The source code is identical. I cannot just parse the source code to determine what the javascript is trying to display. Clearly the web server is sending variables to the client some how. Is there a way to show all variables sent to the client via HTTPWebRequest?


Current situation:
The method also must be able to run in the background or scheduled.
C#/WatiN freezes or hangs when a Dialogue pops up for login/password while being run from a scheduled task.
Pumping client side javascript through a browser is not an option apparently.


0
Comment
Question by:darkxer878
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
darkxer878 earned 0 total points
ID: 22842425
I have noticed that the javascript code has the following code.

var status = { url:"/status/data.html", req:0, t:0, cb:getData};

I'm guessing this is where the value for the variable is located, but when visiting that link i get the following error.




The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The following tags were not closed: table, table. Error processing resource
0

Featured Post

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question