Solved

c# HTTPWebRequest or HTTPRequest javascript problem

Posted on 2008-10-30
1
1,012 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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!
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now