Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-02-26 13:57:19
Point:500 Replies:9 POST_ID:828443USER_ID:11059
Topic:
Hypertext Markup Language (HTML);;JavaScript
After I login my bank account for doing stock buy sell order ,and if I don't input anything in the
working web page within 900 seconds, my account will be terminated by bank and I need to re-login my account
in order to finish my other order. I feel that 900 seconds will be too trouble or too short for me if I am doing a lot
trading in one day
I would like to change timer setting of 900 seconds to 3600 seconds(one hour) but I don't know how! How
to pass URL variable of timer setting into html page code.
After viewing source code of the bank login page, login.htm , I found there is some html code for Timer of 900 seconds
like this as follows
<body onload="startSessionTimer('900', true); validateCookies(); setCursor();" style="background: #FFFFFF;">
in login.htm. how can I pass URL variable into the login.html page ? Please advise.
you can web the following bank link page and view the source code of login.htm at https://ibank.standardchartered.com.hk/nfs/login.htm?lang=en_US,
and you will understand what I am asking . it seems it is possible to change startSessionTimer('900', true);
to startSessionTimer('3600', true) by change URL variable some thing like
https://ibank.standardchartered.com.hk/nfs/startSessionTimer.jsp?%7C36000, but it fail and it is hard by
try by error
Please advise
Duncan
working web page within 900 seconds, my account will be terminated by bank and I need to re-login my account
in order to finish my other order. I feel that 900 seconds will be too trouble or too short for me if I am doing a lot
trading in one day
I would like to change timer setting of 900 seconds to 3600 seconds(one hour) but I don't know how! How
to pass URL variable of timer setting into html page code.
After viewing source code of the bank login page, login.htm , I found there is some html code for Timer of 900 seconds
like this as follows
<body onload="startSessionTimer('900', true); validateCookies(); setCursor();" style="background: #FFFFFF;">
in login.htm. how can I pass URL variable into the login.html page ? Please advise.
you can web the following bank link page and view the source code of login.htm at https://ibank.standardchartered.com.hk/nfs/login.htm?lang=en_US,
and you will understand what I am asking . it seems it is possible to change startSessionTimer('900', true);
to startSessionTimer('3600', true) by change URL variable some thing like
https://ibank.standardchartered.com.hk/nfs/startSessionTimer.jsp?%7C36000, but it fail and it is hard by
try by error
Please advise
Duncan
login.htm from bank========================<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/WEB/INF/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"/> <meta http-equiv="CACHE-CONTROL" content="NO-STORE"/> <meta http-equiv="PRAGMA" content="NO-CACHE"/> <meta http-equiv="EXPIRES" content="-1"/> <title> Standard Chartered Online Banking </title> <link rel="stylesheet" type="text/css" href="/nfs/ibank/theme/default/css/style.css" media="all"/> <script type="text/javascript" src="/nfs/js/common.js?1102200020"> </script> <script type="text/javascript"> var userLang = "en_US"; function submitLoginForm() { var form = document.loginForm; try { var submitBtn = document.getElementsByName('Login')[0]; if (submitBtn != null) submitBtn.disabled = true; } catch (e) { } form.submit(); } function setCursor() { document.forms[0].j_username.focus(); } </script> </head> <body onload="startSessionTimer('900', true); validateCookies(); setCursor();" style="background: #FFFFFF;"> <form id="command" name="loginForm" action="ibank_security_check.htm" method="post" onsubmit="return checkSubmit();"> <table cellpadding="0" cellspacing="0"> <tr> <td align="left"> <table class="tbl_layout" cellpadding="0" cellspacing="0"> <colgroup> <col width="2%"/> <col width="96%"/> <col width="2%"/> </colgroup> <tr> <td rowspan="3"> </td> <td> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="20%" class="scb_colorbar1"/> <col width="10%" class="scb_colorbar2"/> <col width="15%" class="scb_colorbar3"/> <col width="5%" class="scb_colorbar4"/> <col width="50%" class="scb_colorbar5"/> </colgroup> <tr> <td class="scb_colorbar1"> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <br/> <table class="tbl_heading" cellpadding="0" cellspacing="0"> <colgroup> <col width="17%"/> <col width="83%"/> </colgroup> <tr> <td rowspan="2"> <img src="/nfs/ibank/theme/default/images/logo.gif"> </td> <td class="txt_mainheading"> </td> </tr> <tr> <td class="txt_subheading"> Hong Kong </td> </tr> </table> <div class="spacer"> </div> <hr class="hr_heading"/> </td> <td rowspan="3"> </td> </tr> <tr> <td> <br/> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="109px"/> <col width="557px"/> <col width="81px"/> </colgroup> <tr> <td rowspan="3"> </td> <td class="tbl_sprt_bottom"> <span class="txt_title"> Online Banking </span> </td> <td rowspan="3"> </td> </tr> <tr> <td> <br /> </td> </tr> <tr> <td> <span class="txt_error2"> This session has timed out for security reasons. Please start again. (Msg Code : 3320) </span> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="75%"/> <col width="3%"/> <col width="22%"/> </colgroup> <tr> <td class="tbl_content_top"> <table cellpadding="0" cellspacing="0"> <colgroup> <col width="45%"/> <col width="4%"/> <col width="51%"/> </colgroup> <tr> <td class="tbl_content_top"> <table class="tbl_form" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_listing_row_even"/> <col width="30%" class="tbl_listing_row_even"/> <col width="2%" class="tbl_listing_row_even"/> <col width="66%" class="tbl_listing_row_even"/> <col width="1%" class="tbl_listing_row_even"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_grey"> </div> </th> <th class="tbl_content_left" colspan="3"> Secure Login <img src="/nfs/ibank/theme/default/images/ico_secure_sml.gif"> </th> <th class="tbl_header_right"> <div class="border_right_grey"> </div> </th> </tr> <tr> <td> </td> <td class="txt_highlight tbl_content_right tbl_content_top"> <br/> Language </td> <td> </td> <td> <br/> <select name="lang" onchange="window.location = 'login.htm?lang=' + this.value;"> <option value="en_US"> English </option> <option value="zh_CN"> ¿¿ </option> <option value="zh_HK"> ¿¿ </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td class="txt_highlight tbl_content_top tbl_content_right"> Username </td> <td> </td> <td> <input type="text" name="j_username" maxlength="16" size="18" autocomplete="off" /> <br/> <span class="txt_note_disclamer"> (8-16 letters and/or numbers) </span> </td> <td> </td> </tr> <tr> <td> </td> <td class="txt_highlight tbl_content_top tbl_content_right"> Password </td> <td> </td> <td> <input type="password" name="j_password" maxlength="16" size="18" autocomplete="off"/> <br/> <span class="txt_note_disclamer"> (8-16 letters and/or numbers, case sensitive) </span> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> <a href="/nfs/ral_tnc.htm?t=14-1-142910B97331EE50B32A10319300F9A7&a=doInitForgotUsrNamePasswd"> Forgot username / password </a> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <span class="button"> <input type="submit" name="Login" value="Login" onclick="submitLoginForm();"/> </span> </td> <td> </td> </tr> <tr class="tbl_listing_end"> <td colspan="5"> </td> </tr> </table> </td> <td class="tbl_content_middle"> <img src="/nfs/ibank/theme/default/images/ico_or.gif"> </td> <td class="tbl_content_top"> <table class="tbl_login_grey" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_notice_left"/> <col width="4%" class="tbl_notice"/> <col width="94%" class="tbl_notice"/> <col width="1%" class="tbl_notice_right"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_grey"> </div> </th> <th colspan="2" class="tbl_content_left"> New to Online Banking? </th> <th class="tbl_header_right"> <div class="border_right_grey"> </div> </th> </tr> <tr> <td class="tbl_notice_left"> </td> <td class="tbl_content_top"> <br/> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> </td> <td> <br/> <a href="/nfs/ral_tnc.htm?t=14-2-142910B97331EE50B32A10319300F9A7" class="txt_highlight"> Instant Registration </a> </td> <td class="tbl_notice_right"> </td> </tr> <tr> <td class="tbl_notice_left"> </td> <td> </td> <td> If you are new to our Online Banking, you can register instantly in 5 easy steps by <a href="/nfs/ral_tnc.htm?t=14-2-142910B97331EE50B32A10319300F9A7">clicking here</a>. <br/> <br/> </td> <td class="tbl_notice_right"> </td> </tr> <tr> <td colspan="4"> </td> </tr> <tr height="94px"> <td colspan="4"> </td> </tr> <tr class="tbl_notice_end"> <td colspan="4"> </td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td class="tbl_content_top txt_note_disclamer"> <br/> Our Bank will never ask you for your sensitive account information, e.g. username, password and other confidential account or credit card information by email. </td> </tr> <tr> <td class="tbl_content_top txt_note_disclamer"> <br/> It is essential that you do not take into consideration or respond to any information on this site or send any information or materials to us before you read this <a href="http://www.standardchartered.com.hk/home/legal.html" target="new_window" style="font-size: 10px">Important Legal Notice</a> and our <a href="http://www.standardchartered.com.hk/home/legal_data_main.html" target="new_window" style="font-size: 10px">Data Protection and Privacy Policy</a>. </td> </tr> </table> </td> <td> </td> <td class="tbl_content_top"> <table class="tbl_info_green" cellpadding="0" cellspacing="0"> <colgroup> <col width="1%" class="tbl_notice_left"/> <col width="98%" class="tbl_notice"/> <col width="1%" class="tbl_notice_right"/> </colgroup> <tr> <th class="tbl_header_left"> <div class="border_left_green"> </div> </th> <th class="tbl_content_left"> Need Help? </th> <th class="tbl_header_right"> <div class="border_right_green"> </div> </th> </tr> <tr> <td> </td> <td> <ul class="grnList"> <li> <div class="rightBoxHdrTitle"><b>24/7 Phone Assistance</b></div><b>Please call</b><br/>(852) 2886 8868<br/><div class="rightBoxHdrTitle2"><b>For language selection press</b></div>1 6 0 for Cantonese<br/>2 6 0 for English<br/>3 6 0 for Mandarin </li> <li> <a href="http://www.standardchartered.com.hk/internet-banking/faq/en/" target="new_window">Frequently Asked Questions</a> </li> <li> <a href="http://www.standardchartered.com.hk/cb/ibkg/sysmaint.html" target="new_window">Website Maintenance Schedule</a> </li> </ul> </td> <td> </td> </tr> <tr class="tbl_info_green_bottom"> <td class="tbl_footer_left"> <div class="border_left_green"> </div> </td> <td class="tbl_info_green_bottom"> </td> <td class="tbl_footer_right"> <div class="border_right_green"> </div> </td> </tr> </table> <br/> <table> <tr> <td class="tbl_content_top"> <img src="/nfs/ibank/theme/default/images/login_right.jpg" usemap="#login_img_map"/> <map name="login_img_map"> <area shape="rect" coords="0,0,174,60" target="new_window" href="http://www.standardchartered.com.hk/internet-banking/demo/en/" alt="Click to View Demo" /> <area shape="rect" coords="0,80,174,140" target="new_window" href="http://www.standardchartered.com.hk/cb/ibkg/secure.html" alt="Security Tips" /> <area shape="rect" coords="40,160,174,220" target="new_window" href="http://secure.omniroot.com/en/find/sealct.cfm?cn=ibank.standardchartered.com.hk" alt="" /> </map> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/WEB/INF/xhtml1-strict.dtd"> <br/> <br/> <br/> <hr class="hr_heading"/> <div class="footer_spacer"> </div> <table style="width: auto;"> <tr> <td> <span class="txt_note_grey"> Copyright © 2010 Standard Chartered Bank </span> <span class="txt_seperator">|</span> </td> <td> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> </td> <td> <a href="https://online-banking.standardchartered.com.hk/cb/html/legal_ibk_e.html" target="new_window">Terms & Conditions</a> </td> <td> <span class="txt_seperator">|</span> <img src="/nfs/ibank/theme/default/images/arrow_blue_single_tab.gif"/> </td> <td> <a href="http://www.standardchartered.com.hk/home/legal_data_main.html" target="new_window">Data Protection and Privacy Policy</a> </td> <td> </td> </tr> </table> <br/> <br/> </td> </tr> </table> </td> </tr> </table> <input type="hidden" name="t" value="14-0-142910B97331EE50B32A10319300F9A7"></form> </body> </html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:32:33:
Author: duncanb7 replied at 2024-02-27 04:21:57
THanks for all
I made other vba program
to control the refresh
and detech the bank window
title of IE by API findwindown()
and postmessage() a 'enter' key
to URL bar for every 14 minutes
Done
Assisted Solution
Expert: leakim971 replied at 2024-02-26 15:43:25
125 points GOOD
You can use GM to run your script : http://www.gm4ie.com/
Author: duncanb7 replied at 2024-02-26 14:19:44
I done VBA code for auto refresh for 14 mins by sub of loggingfresh() as follows but it is not allowed me to
do other code running like buy sell subroutine at the same time since the loggingrefresh() will occupy the whole code running complie
Sub Loggingrefresh()
With myIE
If Range("B1") = "Logging" Then
Debug.Print myIE.LocationURL
.navigate .LocationURL
Call Application.OnTime(DateAdd("s", 10, Now()), "'Loggingrefresh'")
End If
End With
End Sub
do other code running like buy sell subroutine at the same time since the loggingrefresh() will occupy the whole code running complie
Sub Loggingrefresh()
With myIE
If Range("B1") = "Logging" Then
Debug.Print myIE.LocationURL
.navigate .LocationURL
Call Application.OnTime(DateAdd("s", 10, Now()), "'Loggingrefresh'")
End If
End With
End Sub
Author: duncanb7 replied at 2024-02-26 14:13:08
I am using IE7 in window Vista.
Author: duncanb7 replied at 2024-02-26 14:11:49
Yes, it is session security issue, but it is trouble me if I am doing a lot stock trading VBA programming for automation buy sell.
Expert: leakim971 replied at 2024-02-26 14:10:39
What is your favorite browser ?
Assisted Solution
Expert: rg20 replied at 2024-02-26 14:09:15
125 points GOOD
The timer is typically controlled by IIS or some other function of a component. Therefore even if you pass the new value, IIS won't recognize it.
sshah254 is right, you need some type of program script, ruby watir has one, that will attach to your open session, then click a button. What you need though is a timer job on your computer to launch the script.
sshah254 is right, you need some type of program script, ruby watir has one, that will attach to your open session, then click a button. What you need though is a timer job on your computer to launch the script.
Assisted Solution
Expert: Jerry Miller replied at 2024-02-26 14:06:22
125 points GOOD
If they have proper session security, it is not possible. If you can alter your variables that easily, you should find another bank because your account is not safe.
Accepted Solution
Expert: sshah254 replied at 2024-02-26 14:05:08
125 points GOOD
I wouldn't worry about changing this ... 'cause I don't want to get into trouble.
Just write a small script that will click somewhere on that webpage every 14 minutes.
Ss
Just write a small script that will click somewhere on that webpage every 14 minutes.
Ss