Jump to content

JavaScript calendar na Autoit problem :-(


Recommended Posts

Hi

I am Newbie in AutoIt and I think is awesome: very power full and flexible :-)

Recently i started writing script to publish some documents on website. Unfortunately this particular site

use Java Script calendar to fill the date. Problem is that this input where data is put is write only probably to ensure proper date validation. Is there any chance to put date directly by Java Script? Or any other way ??? I want to post fragment of html site and Javascript but I am not sure is it allowed ?? because I see posted only .au3 scripts.???

Cheers

Ps. Sorry for my crappy English.

Link to comment
Share on other sites

Since no one neither confirm nor deny that is allowed post html and js code I decided paste my example here and ziped js script in attachment . Hope thats OK

<html>

<head>

<title>Input date Test</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script language="Javascript" src="kalendarz.js" type="text/javascript"></script>

</head>

<body leftmargin="0" topmargin="0">

<input id="dok_data_rozpatrzenia" style="width: 120px;" readonly="readonly" name="dok_data_rozpatrzenina">&nbsp;<img style="" onmouseup="this.className='b'" class="a" onmousedown="this.className='c'" onmouseover="this.className='b'" onclick="java script: data_picker2('dok_data_rozpatrzenia',1,600,55)" onmouseout="this.className='a'" src="kalendarz.gif" name="cal_button" style1="cursor: hand">

</body>

</html>

kalendarz.zip

Link to comment
Share on other sites

It looks like you could get the object reference to the input with _IEFormElementGetObjByName($oIE, "dok_data_rozpatrzenina"), set the value with _IEFormElementSetValue(), and click on it with _IEAction().

If that doesn't work, what have you tried?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

  • 2 months later...

It works !!!! :-) PsaltyDS you are genius. Thank you very very much for your help. After 3-rd post I lost faith in this forum but you prove me wrong. Ps sorry form such a late response but I really didn't expect someone write me back. U R GREAT thanks m8 :-) sorry for my crappy English

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...