HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: JAVASCRIPT LINKS
Author: ManuC
Date: 04/26/2006 11:18
 
Hi again,

You are right. But just to go a little further, you will find a lot of the
so-called __doPostBack function in javascript links, which is in fact a aspx
generated function
AN example :
<http://www.ewineasia.com/showitems.aspx?type=w&catid=Red>

Where the "next" button is linked to this "aspx" / javascript function.

It is in fact a normalized function, and as such could be retrieved by
httrack.

In the page you will always have three elements : the form, the js function
and the a caller: 
   <form name="myForm" method="post" action="test.aspx" id="myForm">
4 	        <input type="hidden" name="__EVENTTARGET" value="" />
5 	        <input type="hidden" name="__EVENTARGUMENT" value="" />
6 	        <input type="hidden" name="__VIEWSTATE"
7 	        value="dDwtMTAwOTA0ODU1NTs7PsllCK1DzvZsK0J6OQ2dxKqmEwVs" />
8 	
9 	<script language="javascript">
10 	<!--
11 	function __doPostBack(eventTarget, eventArgument) {
12 	    var theform = document.myForm;
13 	    theform.__EVENTTARGET.value = eventTarget;
14 	    theform.__EVENTARGUMENT.value = eventArgument;
15 	    theform.submit();
16 	}
17 	// -->
18 	</script>
19 	
20 	<a id="Test" href="javascript:__doPostBack('Test','')">Create Text
file</a>

That's all, the "only" thing to do is to send the form with its parameters.

This is one interesting evolution for httrack.

Best,

Emmanuel Cartier
 
Reply Create subthread


All articles

Subject Author Date
JAVASCRIPT LINKS

04/23/2006 09:12
Re: JAVASCRIPT LINKS

04/23/2006 10:18
Re: JAVASCRIPT LINKS

04/26/2006 11:18
Re: JAVASCRIPT LINKS

05/26/2006 09:55
re: javascript links

12/14/2006 01:05
re: javascript links

12/14/2006 01:45
Re: JAVASCRIPT LINKS

08/01/2007 11:10




1

Created with FORUM 2.0.11