Jump to content

Dynamic HTML? Web services?


kyra06
 Share

Recommended Posts

Hi guys,

I would like to know if it's possible to retrieve the result of a Javascript function with AutoIt.

Actually, I have a web application which shows the users 1 to 19 on 925 and 2 buttons to show next users' page or last users' page :

CODE
<span id="summary"><table border=0 cellpadding=0 cellspacing=0 width=100%>

<tr> <td colspan=2><img src="/server_intranet/ui/x.gif" width=38 height=18></td>

<td align="center" width=100% class="white11">

1 - 19 of 925

</td> <td> <table cellpadding=0 cellspacing=0 onclick="callOwnerSummary('1')" style="cursor:pointer;width:19px;height:19px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader

(src=/server_intranet/ui/pager_n.png)"

onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/server_intranet/ui/pager_n_on.png)'"

onmouseout="this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/server_intranet/ui/pager_n.png)'"

>

<tr><td></td></tr></table>

</td>

<td> <table cellpadding=0 cellspacing=0 onclick="callOwnerSummary('48')" style="cursor:pointer;width:19px;height:19px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader

(src=/server_intranet/ui/pager_l.png)"

onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/server_intranet/ui/pager_l_on.png)'"

onmouseout="this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/server_intranet/ui/pager_l.png)'"

>

<tr><td></td></tr></table>

</td>

The problem is if I click on 'Next page' button, the HTML doesn't change and I still see users 1 to 19 since the shown page in IE contains users 20 to 38.

These functions are declared before the previous code and I guess they retrieve the new HTML page:

CODE
function callOwnerSummary(page){

var params = new Array()

params.summary_page = page

callService("/server_intranet/bricks/owners.web", "summary-page", params, DoOwnerSummary)

}

function DoOwnerSummary(req, params){

getById("summary").innerHTML = req.responseText

closeAll();

}

but I don't know if I can retrieve their result to test it or how I can test the real displayed data.

Do you have any idea?

Thanks

Link to comment
Share on other sites

Your description does not make sense to me. Please explain your issue assuming that we have not see the page in question.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...