Recommended Posts

guinness 1,458

guinness 1,458

TypeScript is a free and open source programming language developed by Microsoft. It is a strict superset of JavaScript, and adds optional static typing and class-based object-oriented programming to the language. Anders Hejlsberg, lead architect of C# and creator of Delphi and Turbo Pascal, has worked on development of TypeScript.

Share this post

Link to post

Share on other sites

Kip 5

Kip 5

I like it. I have programmed Typescript using Visual Studio before. The VS plugin is very good, however I'm on Ubuntu now. All the Sublime Text plugins for Typescript are buggy as hell and keep crashing. With no alternatives, my only option is to not use Typescript.

Share this post

Link to post

Share on other sites

James 374

James 374

I like it. I have programmed Typescript using Visual Studio before. The VS plugin is very good, however I'm on Ubuntu now. All the Sublime Text plugins for Typescript are buggy as hell and keep crashing. With no alternatives, my only option is to not use Typescript.

Share this post

Link to post

Share on other sites

monoceres 183

monoceres 183

I really like static typing, but the somewhat heavy verbosity of javascript still makes me a little bit turned off. Now, introduce type inference (like f# for example) into coffeescript, that would be really nice!

Still, I like this new trend with languages compiling into javascript. With increasing performance and light weight applications it becomes much more practical than previous examples (google web toolkit comes to mind). The fact that you can interact directly with the libraries from the blossoming javascript community makes it even more interesting.

Share this post

Link to post

Share on other sites

guinness 1,458

guinness 1,458

Wrote my first piece of TypeScript (albeit simple enough) today. It's good to know that by adding that layer of type safety, means I am less likely to fail with silly issues such as assigning a string to variable that should hold only a number.

Code:

I did think this would be something useful to have for AutoIt, especially for those of us who code with one variable containing a single datatype only and the use of Hungarian notation e.g. $i, $s, $b etc...

Hi there.
Im having some kind of a coder block here,
<td class="treeview ctl00_CenterContent_objTreeView_2" style="white-space:nowrap;">
<input type="checkbox" name="ctl00_CenterContent_objTreeViewn1CheckBox" id="ctl00_CenterContent_objTreeViewn1CheckBox">
<span class="ctl00_CenterContent_objTreeView_0 treeview ctl00_CenterContent_objTreeView_1" id="ctl00_CenterContent_objTreeViewt1" style="border-style:none;font-size:1em;">
<i class="fa fa-file-code-o fa-fw">
</i> <span data-placement="bottom" data-toggle="tooltip" title="" data-original-title="Tool tip for said part">REFUNDS</span></span></td>
this is a code directly from the website im working with. I was thinking of inserting a javascript that would get the "REFUNDS" part. Any ideas on how to do so?
Any thoughts will be highly appreciated.

Dear Colleagues,
I have no idea how to refer to style.display in my loop. There is a button like:
<input name="ctl00$bodyPlaceholder$btnFecharProcessamento" class="button" id="bodyPlaceholder_btnFecharProcessamento" style="display: none;" onclick="FecharJanelaProcessamento();return false;" type="submit" value="Fechar">
I want it to be clicked as soon as button's style change from style="display: none;" to style= ="display: inline-block;"
This is what I got, but it's not working...
Func GetButtons()
$oButtons = _IEGetObjByName($oForm,"ctl00$bodyPlaceholder$btnFecharProcessamento",-1)
$i = 0
While $i <> 1
For $oBtn In $oButtons
If _IEFormElementGetValue($oBtn) = "Fechar" And $oBtn.document.style.display = "display: inline-block;" Then
$i = 1
_IEAction($oBtn, "focus")
_IEAction($oBtn, "click")
ExitLoop
EndIf
Next
WEnd
EndFunc
I will really appreciate if you could help me with these loop!