E-form content blocked by browser - browser

I have been given a task to fix a problem on a website. The website was created using ColdFusion and there's also eform included in some of the pages. The problem is whenever I'm trying to view the page with an eform in it, it will be blocked by the browser (only the eform is blocked, others can be view normally). Only IE version 7 or 8 will be able to view it.
If being viewed in latest IE (Chrome and Firefox also cannot view the eform). It will display this message :-
Content was blocked because it was not signed by a valid security certificate.
For more information, see “About Certificate Errors” in Internet Explorer Help.
I thought the problem is with the Untrusted Site Certificate or Self-Sign Certificate,so I google and try some of the solutions but failed. The odd thing is other content can be view except the eform.
Here is one of page code with an eform if some of you are wondering about the code;-
<cfinclude template="#request.siteContext.appSettings.header#">
<cfinclude template="_LANGnext_form2.cfm" />
<cfheader name="P3P" value='CP="CAO PSA OUR"'>
<cfoutput>
<link rel="stylesheet" href="#REQUEST.siteContext.appSettings.root#/search/css/common.css">
</cfoutput>
<!---<cfparam name="url.idappli" default="0" />--->
<cfparam name="form.select" default="0" />
<cfparam name="url.userid" default="0" />
<cfparam name="form.idappli" default="0" />
<cfscript>
CreateObject("component","ipo.util.title").header("#HdrProfile#,#HdrProfile2#,#HdrProfile3#, #HdrProfile4#");
</cfscript>
<cfquery name="qRead" datasource="#REQUEST.siteContext.appSettings.dsn2#" >
SELECT EXTIDAPPLI, IDAPPLI, IDAGENT, IDPERSON, DTAPPLI, LGSTAPPLI, DTPUBAPPLI,TYAPPLIC
FROM SOPRANO.PTAPPLI
WHERE EXTIDAPPLI like <cfqueryparam cfsqltype="cf_sql_varchar" value="%#FORM.idappli#" />
</cfquery>
<cfif #form.idappli# NEQ '0'>
<cfif isdefined('qRead.recordcount') NEQ 0 AND #qRead.recordcount# NEQ '0'>
<cfif IsDate(qRead.DTAPPLI)>
<cfset dtapplication = CreateODBCDate(qRead.DTAPPLI) />
<cfelse>
<cfset dtapplication = "" />
</cfif>
<cfset dtNow = CreateODBCDate(NOW()) />
<cfquery name="qSts" datasource="#REQUEST.siteContext.appSettings.dsn2#" >
SELECT DESCSTATUS
FROM SOPRANO.STATUS
WHERE IDSTATUS = <cfqueryparam cfsqltype="cf_sql_varchar" value="#qRead.LGSTAPPLI#" />
</cfquery>
<cfset LOCAL.currentStatus = qRead.LGSTAPPLI />
<cfset LOCAL.currentStatusdesc = qSts.DESCSTATUS />
<cfquery name="qLgsts" datasource="#REQUEST.siteContext.appSettings.dsn#" >
SELECT CD_FRM
FROM CLEGALSTS
WHERE CD_ID = <cfqueryparam cfsqltype="cf_sql_varchar" value="#LOCAL.currentStatus#" />
AND CD_TYPE = 'TM'
</cfquery>
<!--- <CFSET idappli = '#qRead.EXTIDAPPLI#'> --->
<CFOUTPUT>
<cfform name="myForm" method="post" action="new_pt.cfm">
<fieldset style="border:2px solid maroon">
<legend style="font-weight:bold"><cfoutput>#SubTitle#</cfoutput></legend>
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr>
<td>
<cfif form.select eq '01'>
<!--- <cfset url1 = 'http://172.16.0.56:8080/lfserver/Form1?userid=#userid#'> --->
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form1?userid='& SESSION.ipouser.username) />
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<!--- <iframe id="efrm" src="<cfoutput>#URLDecode(url1)#</cfoutput>" width="100%" frameborder="0" height="800"></iframe> --->
<cfelseif form.select eq '14'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form14?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '2A'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form2A?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '5C'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5C?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"5C",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 5C.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '5F'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5F?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"5F",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 5F.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '5H'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5H?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '5I'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5I?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '11'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form11?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"11",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 11.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '12'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form12?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"12",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 12.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '17'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form17?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<!---fitri--->
<cfelseif form.select eq '22'>
<!--- <!---<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form17?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>--->
<iframe id="efrm" src="../fitri/form22.cfm" width="100%" frameborder="0" height="800"></iframe>
<!---end fitri---> --->
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form22?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq 'renew'>
<cflocation url="renew.cfm?jenis=renew&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'surcharge'>
<cflocation url="renew.cfm?jenis=renew&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<!---<cflocation url="surcharge_payment.cfm?jenis=surcharge&extidappli=#qRead.EXTIDAPPLI#" addtoken="no">--->
<cfelseif form.select eq 'PM36(b)'>
<cflocation url="attachment.cfm?jenis=PM36(b)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM36(a)'>
<cflocation url="attachment.cfm?jenis=PM36(a)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(a)'>
<cflocation url="attachment.cfm?jenis=PM59(a)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(b)'>
<cflocation url="attachment.cfm?jenis=PM59(b)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(c)'>
<cflocation url="attachment.cfm?jenis=PM59(c)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
</cfif>
</td>
</tr>
<tr align="center">
<td class="parfont"><br>
<cfinput type="button" name="return" value="#BtnBack#" onClick="javascript:window.location.href='new_pt.cfm'" class="button2" style="width:80px">
</td>
</tr>
</table>
</fieldset>
</cfform>
</CFOUTPUT>
<cfelseif isdefined('qRead.recordcount') NEQ 0 AND #qRead.recordcount# EQ 0>
<cfform name="myForm">
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr align="center">
<td>Application Number Not Found.<br /></td>
</tr>
<tr align="center">
<td><cfinput type="button" name="return" value="#BtnBack#" onClick="javascript:self.history.back()" class="button2" style="width:80px"></td>
</tr>
</table>
</cfform>
</cfif>
<cfelse>
<cfform name="myForm" method="post" action="new_pt.cfm">
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr>
<td>
<cfif form.select eq '01'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form1?userid='& SESSION.ipouser.username) />
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '2A'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form2A?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '14'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form14?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe> </cfif>
</td>
</tr>
</table>
</cfform>
</cfif>
<cfinclude template="#request.siteContext.appSettings.footer#">

Related

Access time to WebElement.text increase

I need to take data from a JavaScript site in real-time and I use:
while (True):
WebElement.get_attribute('innerHTML')
My code:
from selenium import webdriver
from selenium.webdriver.common.by
import By options = webdriver.ChromeOptions()
options.add_argument('--headless')
browser = webdriver.Chrome(options=options)
browser.get('s3-eu-west-1.amazonaws.com/lmax-widget3/…)
time.sleep(10)
find_bid_price=browser.find_element(By.XPATH,"/html/body/div[3]/div[2]/div[3]/div[2]/div[1]/div[6]/div[2]")
while (True):
price=find_bid_price.get_attribute('innerHTML')
You were pretty close. You need to induce WebDriverWait for the visibility of an element on the page and you can use the following solution:
Code Block:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_argument('disable-infobars')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe')
driver.get("https://s3-eu-west-1.amazonaws.com/lmax-widget3/website-widget-quote-vwap-flex.html")
WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH, "//div[#class='lw_body']/div[#class='lw_book_title' and contains(., 'ORDER BOOK')]")))
print(driver.page_source.encode("utf-8"))
Console Output:
b'<!DOCTYPE html><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 ie6 ie">\n<![endif]--><!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7 ie">\n<![endif]--><!--[if IE 8]> <html class="no-js lt-ie9 ie8 ie"> <![endif]--><!--[if IE 9]> <html class="no-js ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--><html xmlns="http://www.w3.org/1999/xhtml" class="no-js lang-en" lang="en"><!--<![endif]--><head>\n <title>LMAX quotes widget</title>\n\t<meta http-equiv="refresh" content="1200" />\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<style>\n\t\t#loader {\n\t\t background: #FFFFFF;\n\t\t display: block;\n\t\t\twidth: 290px;\n\t\t\theight: 225px;\n\t\t\tpadding: 2px 7px;\n\t\t left: 0;\n\t\t margin: 6px;\n\t\t position: absolute;\n\t\t top: 0;\n\t\t z-index: 101;\n\t\t}\n\t</style>\n\t<link media="screen" type="text/css" href="media/widget/css/widget-flexible.min.css" rel="stylesheet" />\n <!--[if lt IE 9]>\n <script type="text/javascript" src="media/widget/js/html5.js"></script>\n <![endif]-->\n <!--[if lt IE 8]>\n\t \xc2\xa0<script type="text/javascript" src="media/widget/js/json2.min.js"></script>\n\t<![endif]-->\n\t<script async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" src="media/widget/js/faye-client.js" style="color: rgb(85, 85, 85);"></script>\n\t<script type="text/javascript" src="media/widget/js/lmax-widget-quotes-v2-extras.js"></script>\n\t<script type="text/javascript" src="media/widget/js/lmax-widget-quotes-v2.min.js"></script>\n<script type="text/javascript" src="https://data-fix.smt-data.com/lmax?message=%5B%7B%22channel%22%3A%22%2Fmeta%2Fhandshake%22%2C%22version%22%3A%221.0%22%2C%22supportedConnectionTypes%22%3A%5B%22websocket%22%2C%22eventsource%22%2C%22long-polling%22%2C%22cross-origin-long-polling%22%2C%22callback-polling%22%5D%2C%22id%22%3A%221%22%7D%5D&jsonp=__jsonp1__"></script></head>\n<body class="lw_hide_charts lw_show_vwap" style="line-height: 150px; font-size: 150px;">\n<div id="loader" style="height: 100%; width: 100%;">\n\t<div></div>\n\t<img src="media/widget/images_multi/prof/logo.svg" alt="LMAX Professional" />\n\t<!--[if IE]>\n\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/logo.swf" id="logo" name="logo">\n\t\t<param name="movie" value="media/widget/images_multi/prof/logo.swf" />\n\t\t<param name="quality" value="high" />\n\t\t<param name="allowFullScreen" value="false" />\n\t\t<param name="wmode" value="transparent" />\n\t\t<param name="allowscriptaccess" value="always" />\n\t</object>\n\t<![endif]-->\n</div>\n<div id="lw_alert" style="display: none;">\n\t<div class="lw_alert_error_title" id="lw_alert_error_title">LIVE PRICES</div>\n\t<div class="lw_alert_close_title" id="lw_alert_close_title">Markets closed</div>\n\t<div class="lw_alert_error_msg1" id="lw_alert_error_msg1">temporary connection error</div>\n\t<div class="lw_alert_error_msg2" id="lw_alert_error_msg2">reconnecting again automatically</div>\n\t<div class="lw_alert_close_msg1" id="lw_alert_close_msg1">view last week\xe2\x80\x99s spreads<br />\n\t\tview recent latency figures<br />\n\t\tview latest news</div>\n\t<div class="lw_alert_error_icon">\t\n\t\t<img id="lw_alert_error_icon" src="media/widget/images_multi/prof/error.svg" alt="" />\n\t\t<!--[if IE]>\n\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/error.swf" id="error-swf" name="error-swf">\n\t\t\t<param name="movie" value="media/widget/images_multi/prof/error.swf" />\n\t\t\t<param name="quality" value="high" />\n\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t<param name="wmode" value="transparent" />\n\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t</object>\n\t\t<![endif]-->\n\t</div>\n\t<div class="lw_alert_slogan">\n\t\t<img id="lw_alert_slogan" src="media/widget/images_multi/prof/slogan.svg" alt="The Professional FX Exchange" />\n\t\t<!--[if IE]>\n\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/.swf" id="slogan-swf" name="slogan-swf">\n\t\t\t<param name="movie" value="media/widget/images_multi/prof/.swf" />\n\t\t\t<param name="quality" value="high" />\n\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t<param name="wmode" value="transparent" />\n\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t</object>\n\t\t<![endif]-->\n\t</div>\n\t<div class="lw_alert_bg">\n\t\t<img id="lw_alert_bg" src="media/widget/images_multi/prof/alert.svg" alt="" />\n\t\t<!--[if IE]>\n\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/alert.swf" id="alert-swf" name="alert-swf">\n\t\t\t<param name="movie" value="media/widget/images_multi/prof/alert.swf" />\n\t\t\t<param name="quality" value="high" />\n\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t<param name="wmode" value="transparent" />\n\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t</object>\n\t\t<![endif]-->\n\t</div>\n</div>\n<div class="lw_main">\n\t<div id="dummy"></div>\n <div class="lw_inner_container">\n <div class="lw_header">\n\t\t\t<div id="lw_brand"><img id="lw_brand_bg" src="media/widget/images_multi/prof/lmax-digital.svg" alt="" /></div>\n\t\t\t<div class="lw_book_title" id="lw_topbook_title">TOP OF BOOK</div>\n \t<div class="lw_tl_ribbon" id="lw_tlBanner" style="display: none;"></div>\n\t\t\t<div class="lw_instru_logo">\n\t\t\t\t<img id="lw_instru_logo" src="media/widget/images_multi/prof/topleft-logo.svg" alt="" />\n\t\t\t\t<!--[if IE]>\n\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/topleft-logo.swf" id="topleft-logo" name="topleft-logo">\n\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/topleft-logo.swf" />\n\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t</object>\n\t\t\t\t<![endif]-->\n\t\t\t</div>\n <div class="lw_instru_name">EUR/USD</div>\n <div class="lw_instru_symbol" style="display: none;">EURUSD</div>\n <div class="lw_instru_spread_value spread_price gradient">0.00</div>\n <div class="lw_instru_arrow">\n <img id="lw_instru_arrow" src="media/widget/images_multi/prof/arrow_right.svg" alt=">" />\n\t\t\t\t<!--[if IE]>\n\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/arrow_right.swf" id="arrow_right" name="arrow_right">\n\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/arrow_right.swf" />\n\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t</object>\n\t\t\t\t<![endif]-->\n </div>\n <div class="lw_instru">\n <div class="lw_hide_chart_label">\n\t\t\t\t\t<img id="lw_hide_chart_label" src="media/widget/images_multi/prof/close.svg" alt="X" />\n\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/close.swf" id="close" name="close">\n\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/close.swf" />\n\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t</object>\n\t\t\t\t\t<![endif]-->\n </div>\n <div class="lw_instru_dropdown_label">CHOOSE INSTRUMENT</div>\n <div class="lw_instru_list_overlay mCustomScrollbar _mCS_1 mCS_no_scrollbar" style="top: 149px;"><div id="mCSB_1" class="mCustomScrollBox mCS-light mCSB_vertical mCSB_inside" tabindex="0" style="max-height: 771px;"><div id="mCSB_1_container" class="mCSB_container mCS_no_scrollbar_y" style="position:relative; top:0; left:0;" dir="ltr">\n\t\t\t\t\t<ul class="lw_instru_list"></ul>\t\n </div><div id="mCSB_1_scrollbar_vertical" class="mCSB_scrollTools mCSB_1_scrollbar mCS-light mCSB_scrollTools_vertical"><div class="mCSB_draggerContainer"><div id="mCSB_1_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 23.26px; display: none; top: 0px;" oncontextmenu="return false;"><div class="mCSB_dragger_bar"></div></div><div class="mCSB_draggerRail"></div></div></div></div></div>\n </div>\n </div>\n\t\t<div class="lw_vwap block">\t\t\t\n\t\t\t<div class="lw_vwap_top" id="lw_vwap_main_title">VWAP</div>\n\t\t\t<div class="lw_vwap_left">\n\t\t\t\t<div class="lw_vwap_name">\n\t\t\t\t\t<label class="lw_vwap_label" id="lw_vwap_amount_label" for="lw_vwap_amount">AMOUNT</label>\n\t\t\t\t\t<input class="lw_vwap_value" type="text" value="1M" id="lw_vwap_amount" />\n\t\t\t\t</div>\n\t\t\t\t<div class="lw_vwap_name">\n\t\t\t\t\t<div class="lw_vwap_label" id="lw_vwap_bid_label">BID</div>\n\t\t\t\t\t<div class="lw_vwap_value" id="lw_vwap_bid">0.00000</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="lw_vwap_right">\n\t\t\t\t<div class="lw_vwap_name">\n\t\t\t\t\t<div class="lw_vwap_label" id="lw_vwap_ask_label">ASK</div>\n\t\t\t\t\t<div class="lw_vwap_value" id="lw_vwap_ask">0.00000</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="lw_vwap_name">\n\t\t\t\t\t<div class="lw_vwap_label" id="lw_vwap_spread_label">SPREAD</div>\n\t\t\t\t\t<div class="lw_vwap_value" id="lw_vwap_spread">0.00000</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n <div class="lw_body">\n\t\t\t<div class="lw_book_title" id="lw_orderbook_title">ORDER BOOK</div>\n <div class="lw_body_column lw_column_left">\n <div class="lw_body_top">\n <div class="lw_bid_arrow lw_ask_arrow_up">\n \t<img id="lw_ask_arrow_up" src="media/widget/images_multi/prof/up.svg" alt="\xe2\x86\x91" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/up.swf" id="askup" name="askup">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/up.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n <div class="lw_bid_arrow lw_ask_arrow_down">\n \t<img id="lw_ask_arrow_down" src="media/widget/images_multi/prof/down.svg" alt="\xe2\x86\x91" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/down.swf" id="askdown" name="askdown">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/down.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="lw_bid_arrow lw_ask_arrow_right">\n \t<img id="lw_ask_arrow_right" src="media/widget/images_multi/prof/right.svg" alt="\xe2\x86\x92" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/right.swf" id="askright" name="askright">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/right.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n <div class="lw_bid_label" id="lw_bid_label">BID</div>\n <div class="clear"></div>\n <div class="lw_row">\n <div class="lw_amount lw_bid_amount bid_amount_0">0</div>\n <div class="lw_price bid_price_0">0.00000</div>\n <div class="clear"></div>\n <input class="old_price" type="hidden" value="0" />\n </div>\n <hr />\n </div>\n <div class="lw_body_list" id="lw_body_list_bid">\n <div class="lw_row">\n <div class="lw_amount lw_bid_amount bid_amount_1">0</div>\n <div class="lw_price bid_price_1">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row even">\n <div class="lw_amount lw_bid_amount bid_amount_2">0</div>\n <div class="lw_price bid_price_2">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row">\n <div class="lw_amount lw_bid_amount bid_amount_3">0</div>\n <div class="lw_price bid_price_3">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row even">\n <div class="lw_amount lw_bid_amount bid_amount_4">0</div>\n <div class="lw_price bid_price_4">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_5">0</div>\n <div class="lw_price bid_price_5">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_6">0</div>\n <div class="lw_price bid_price_6">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_7">0</div>\n <div class="lw_price bid_price_7">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_8">0</div>\n <div class="lw_price bid_price_8">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_9">0</div>\n <div class="lw_price bid_price_9">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_10">0</div>\n <div class="lw_price bid_price_10">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_11">0</div>\n <div class="lw_price bid_price_11">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_12">0</div>\n <div class="lw_price bid_price_12">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_13">0</div>\n <div class="lw_price bid_price_13">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_14">0</div>\n <div class="lw_price bid_price_14">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_15">0</div>\n <div class="lw_price bid_price_15">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_16">0</div>\n <div class="lw_price bid_price_16">0.00000</div>\n <div class="clear"></div>\n </div>\t\t\t\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_17">0</div>\n <div class="lw_price bid_price_17">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_bid_amount bid_amount_18">0</div>\n <div class="lw_price bid_price_18">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_bid_amount bid_amount_19">0</div>\n <div class="lw_price bid_price_19">0.00000</div>\n <div class="clear"></div>\n </div>\n </div>\n </div>\n <div class="lw_body_column lw_column_right">\n <div class="lw_body_top">\n <div class="lw_bid_arrow lw_bid_arrow_up">\n \t<img id="lw_bid_arrow_up" src="media/widget/images_multi/prof/up.svg" alt="\xe2\x86\x91" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/up.swf" id="bidup" name="bidup">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/up.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n <div class="lw_bid_arrow lw_bid_arrow_down">\n \t<img id="lw_bid_arrow_down" src="media/widget/images_multi/prof/down.svg" alt="\xe2\x86\x93" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/down.swf" id="biddown" name="biddown">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/down.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="lw_bid_arrow lw_bid_arrow_left">\n \t<img id="lw_bid_arrow_left" src="media/widget/images_multi/prof/left.svg" alt="\xe2\x86\x90" />\n\t\t\t\t\t\t<!--[if IE]>\n\t\t\t\t\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/left.swf" id="askleft" name="askleft">\n\t\t\t\t\t\t\t<param name="movie" value="media/widget/images_multi/prof/left.swf" />\n\t\t\t\t\t\t\t<param name="quality" value="high" />\n\t\t\t\t\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t\t\t\t\t<param name="wmode" value="transparent" />\n\t\t\t\t\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t\t\t\t\t</object>\n\t\t\t\t\t\t<![endif]-->\n\t\t\t\t\t</div>\n <div class="lw_ask_label" id="lw_ask_label">ASK</div>\n <div class="clear"></div>\n <div class="lw_row">\n <div class="lw_price ask_price_0">0.00000</div>\n <div class="lw_amount lw_ask_amount ask_amount_0">0</div>\n <div class="clear"></div>\n <input class="old_price" type="hidden" value="0" />\n </div>\n <hr />\n </div>\n <div class="lw_body_list" id="lw_body_list_ask">\n <div class="lw_row">\n <div class="lw_price ask_price_1">0.00000</div>\n <div class="lw_amount lw_ask_amount ask_amount_1">0</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row even">\n <div class="lw_price ask_price_2">0.00000</div>\n <div class="lw_amount lw_ask_amount ask_amount_2">0</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row">\n <div class="lw_price ask_price_3">0.00000</div>\n <div class="lw_amount lw_ask_amount ask_amount_3">0</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row even">\n <div class="lw_price ask_price_4">0.00000</div>\n <div class="lw_amount lw_ask_amount ask_amount_4">0</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_5">0</div>\n <div class="lw_price ask_price_5">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_6">0</div>\n <div class="lw_price ask_price_6">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_7">0</div>\n <div class="lw_price ask_price_7">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_8">0</div>\n <div class="lw_price ask_price_8">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_9">0</div>\n <div class="lw_price ask_price_9">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_10">0</div>\n <div class="lw_price ask_price_10">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_11">0</div>\n <div class="lw_price ask_price_11">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_12">0</div>\n <div class="lw_price ask_price_12">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_13">0</div>\n <div class="lw_price ask_price_13">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_14">0</div>\n <div class="lw_price ask_price_14">0.00000</div>\n <div class="clear"></div>\n </div>\n\t\t\t\t\t<div class="lw_row extra">\n <div class="lw_amount lw_ask_amount ask_amount_15">0</div>\n <div class="lw_price ask_price_15">0.00000</div>\n <div class="clear"></div>\n </div>\n <div class="lw_row extra even">\n <div class="lw_amount lw_ask_amount ask_amount_16">0</div>\n <div id="lw_footer_main" class="lw_footer">\n <span class="lw_footer_main">1 FX contract = 10,000 notional - for CFD contracts click <a target="_blank" href="http://www.lmax.com/instruments/cfd-trading">here</a></span><br />\n\t\t\t<span class="lw_footer_info">(LMAX Professional open Order Book - first 5 levels only displayed)</span>\n </div>\n </div>\n</div>\n<div class="lw_range lw_range_alt">\n\t<div class="lw_range_icon">\n\t\t<img id="lw_range_icon_alt" src="media/widget/images_multi/prof/spreads.svg" alt="SPREADS" />\n\t\t<!--[if IE]>\n\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/spreads.swf" id="spreads" name="spreads">\n\t\t\t<param name="movie" value="media/widget/images_multi/prof/spreads.swf" />\n\t\t\t<param name="quality" value="high" />\n\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t<param name="wmode" value="transparent" />\n\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t</object>\n\t\t<![endif]-->\n\t</div>\n\t<div class="lw_range_arrow">\n\t\t<img id="lw_range_arrow_alt" src="media/widget/images_multi/prof/arrow_right.svg" alt=">" />\n\t\t<!--[if IE]>\n\t\t<object width="100%" height="100%" type="application/x-shockwave-flash" data="media/widget/images_multi/prof/arrow_right.swf" id="arrow_right2" name="arrow_right2">\n\t\t\t<param name="movie" value="media/widget/images_multi/prof/arrow_right.swf" />\n\t\t\t<param name="quality" value="high" />\n\t\t\t<param name="allowFullScreen" value="false" />\n\t\t\t<param name="wmode" value="transparent" />\n\t\t\t<param name="allowscriptaccess" value="always" />\n\t\t</object>\n\t\t<![endif]-->\n\t</div>\n\t<div class="lw_range_name today_symbol" id="lw_chart_today_alt">Today</div>\n\t<div class="lw_range_name week_symbol" id="lw_chart_week_alt">Week</div>\n\t<div class="lw_range_name month_symbol" id="lw_chart_month_alt">Month</div>\n</div>\n<div id="lw_footer_alt" class="lw_footer lw_footer_alt">\n\t<span class="lw_footer_main" id="lw_vwap_footer_main">1 FX contract = <span id="lw_footer_lotsize">10000</span> notional - for CFD contracts click <a target="_blank" href="http://www.lmax.com/instruments/cfd-trading">here</a></span><br />\n\t<span class="lw_footer_info"></span>\n</div>\n\n</body></html>'

My Application.cfc logs me off when I click a link after initial login has any seen this error? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
My website is using IIS and ColdFusion. For some reason when I successfully log into the site, then click a link or button to another cfm page located in the same secure directory it will send me back to the login. If I login again it will not prompt me again for the session.
I have read on other post that this may have something to do with the fact my default page in IIS is index.cfm and when entering the secure directory without defining a page you are sent to the index. It is strange you would think this would be alright.
My default page when entering the admin directory is index. Included below is my application ColdFusion component.
Has anyone had this problem occur?
<cfcomponent>
<cfset This.name = "Admin">
<cfset This.Sessionmanagement="True">
<cfset This.loginstorage="session">
<cffunction name="OnRequestStart">
<cfargument name = "request" required="true"/>
<cfif IsDefined("Form.logout")>
<cflogout>
</cfif>
<cflogin>
<cfif NOT IsDefined("cflogin")>
<cfinclude template="loginform.cfm">
<cfabort>
<cfelse>
<cfif cflogin.name IS "" OR cflogin.password IS "">
<!---Alert no password was passed--->
<script type="text/javascript">
window.setTimeout(function() {
$("#alert_message").fadeTo(500, 0).slideUp(500, function(){
$(this).remove();
});
}, 2000);
</script>
<!--- Alert DIV--->
<div id="alert_message" class="alert alert-danger fade in" role="alert" style="z-index: 100; position: absolute; top: 200px; left: 500px; width:600px">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 align="center">You must enter text in both the User Name and Password fields.</h4>
</div>
</cfoutput>
<!---My login page--->
<cfinclude template="loginform.cfm">
<cfabort>
<cfelse>
<!---Encryption Key--->
<cfset PasswordKey ="My Encryption Key">
<cfset Encrypted = encrypt(cflogin.password, PasswordKey)>
<cfquery name="loginQuery" datasource="database_stuff">
SELECT USER_ID, EMAIL, ROLES
FROM LOGININFO
WHERE EMAIL = '#cflogin.name#'
AND PASSWORD = '#Encrypted#'
</cfquery>
<cfif loginQuery.Roles NEQ "">
<cfloginuser name="#cflogin.name#" Password = "#Encrypted#" roles="#loginQuery.Roles#">
<cfelse>
<cfoutput>
<!---Alert if a bad password was passed--->
<script type="text/javascript">
window.setTimeout(function() {
$("##alert_message").fadeTo(500, 0).slideUp(500, function(){
$(this).remove();
});
}, 2000);
</script>
<!--- Alert DIV--->
<div id="alert_message" class="alert alert-danger fade in" role="alert" style="z-index: 100; position: absolute; top: 200px; left: 500px; width:600px">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 align="center">I'm sorry that was a bad password. Please try again.</h4>
</div>
</cfoutput>
<cfinclude template="loginform.cfm">
<cfabort>
</cfif>
</cfif>
</cfif>
</cflogin>
<!--- If login is good then it adds a logout button to the page--->
<cfif GetAuthUser() NEQ "">
<cfoutput>
<div style="position:fixed;z-index:1031;top:3px;left:55%;">
<form action="index.cfm" method="Post">
<button type="submit" class="btn btn-warning" Name="Logout">Logout</button>
</form>
</div>
</cfif>
</cffunction>
</cfcomponent>

Custom Ext.Net TreeGrid nodes?

I'm gonna create an Ext.Net's TreeGrid with custom nodes.
e.g :
All of TreeGrid's nodes should have a textbox at the front of itself and users should write a number at it.
See the below image :
Also, I have to get each nodes' textbox values in code behind at postback.
Could you please guide me, how I can create it with Ext.net and C# ?
Thanks.
Unfortunately, implementing these features with the current release of <ext:TreeGrid> in Ext.NET (v1.x) is annoyingly difficult. The <ext:TreeGrid> is just not setup for this type of rendering.
There's help coming in the next Ext.NET release (v2), although at this point it has not been released.
Here's a basic sample to help get you started with rendering the <input> fields.
Example
<%# Page Language="C#" %>
<%# Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>TreeGrid - Ext.NET Examples</title>
<link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var formatHours = function (v) {
if (v || v === 0) {
return "Number : <input class=\"x-form-text x-form-field\" type=\"text\" value=\"" + v + "\" />";
}
return "";
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:TreeGrid
ID="TreeGrid1"
runat="server"
Title="Projects"
Width="500"
Height="300"
NoLeafIcon="true"
EnableDD="true">
<Columns>
<ext:TreeGridColumn Header="Task" Width="230" DataIndex="task" />
<ext:TreeGridColumn Header="Score" Width="200" DataIndex="duration" Align="Center" SortType="AsFloat">
<XTemplate runat="server">
<Html>
{duration:this.formatHours}
</Html>
<Functions>
<ext:JFunction Name="formatHours" Fn="formatHours" />
</Functions>
</XTemplate>
</ext:TreeGridColumn>
</Columns>
<Root>
<ext:TreeNode Text="Tasks">
<Nodes>
<ext:TreeNode Icon="Folder" Expanded="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Project: Shopping" Mode="Value" />
</CustomAttributes>
<Nodes>
<ext:TreeNode Icon="Folder" Expanded="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Remodeling" Mode="Value" />
</CustomAttributes>
<Nodes>
<ext:TreeNode Icon="Folder">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Paint bedroom" Mode="Value" />
</CustomAttributes>
<Nodes>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Ceiling" Mode="Value" />
<ext:ConfigItem Name="duration" Value="1.25" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Walls" Mode="Value" />
<ext:ConfigItem Name="duration" Value="1.5" />
</CustomAttributes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Decorate living room" Mode="Value" />
<ext:ConfigItem Name="duration" Value="12" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Fix lights" Mode="Value" />
<ext:ConfigItem Name="duration" Value="0" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Reattach screen door" Mode="Value" />
<ext:ConfigItem Name="duration" Value="142" />
</CustomAttributes>
</ext:TreeNode>
<ext:TreeNode Leaf="true">
<CustomAttributes>
<ext:ConfigItem Name="task" Value="Retile kitchen" Mode="Value" />
<ext:ConfigItem Name="duration" Value="96" />
</CustomAttributes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Root>
</ext:TreeGrid>
</form>
</body>
</html>
I could found the answer :
<ext:TreeGrid ID="KnowledgeFieldsTreeGridWithTextBox1" runat="server" Title="Fileds "
Icon="Plugin" Height="300" AutoHeight="true" AutoExpandColumn="KnowledgeFiled">
<TopBar>
<ext:Toolbar ID="KnowledgeFieldsTreeGridWithTextBoxToolbar1" runat="server">
<Items>
<ext:ToolbarFill ID="KnowledgeFieldsTreeGridWithTextBoxToolbarFill1" runat="server" />
<ext:ToolbarTextItem ID="KnowledgeFieldsTreeGridWithTextBoxTextItem1" runat="server"
Text=" Filter : " />
<ext:TriggerField ID="KnowledgeFieldsTreeGridWithTextBox_TriggerField1" runat="server" EnableKeyEvents="true">
<Triggers>
<ext:FieldTrigger Icon="Clear" />
</Triggers>
<Listeners>
<KeyUp Fn="KnowledgeFieldsTreeGridWithTextBox_KeyUp" Buffer="250" />
<TriggerClick Fn="KnowledgeFieldsTreeGridWithTextBox_ClearFilter" />
</Listeners>
</ext:TriggerField>
</Items>
</ext:Toolbar>
</TopBar>
<Columns>
<ext:TreeGridColumn Header="Filed Name" DataIndex="KnowledgeFiledName" Width="100" Align="Center" />
<ext:TreeGridColumn Header="Score" DataIndex="KnowledgeScore" Width="200" Align="Right">
<XTemplate runat="server">
<Html>
<tpl if="values.leaf">
<input type="text" style="width:30px; text-align:left;" maxlength="5" value="{KnowledgeFiledScore}"></input>
</tpl>
</Html>
</XTemplate>
</ext:TreeGridColumn>
</Columns>
<Root>
</Root>
<Listeners>
<BeforeClick Handler="return !Ext.fly(e.getTarget()).is('input[type=text]');" />
</Listeners>
</ext:TreeGrid>

Doubt in <rich:listshuttle>?

In my application i am using <rich:listshuttle> component and I had provided a blank space for the Label. My doubt is when i keep the mouse pointer in the Copy,Remove,Up and Down button i am getting a tool tip namely copyControl,removeControl,upControl and downControl, when checked the HTML source code these are the ALT name provided in the <IMG>. Is there any possibility to change these ALT data's. I am using RichFaces 3.1.4.
JSP Code
enter code here
<rich:listShuttle id="resultCustomizelist"
sourceValue="#{Bean.selectItem}"
targetValue="#{Bean.selectedItem}" var="custRows"
listsHeight="150" sourceListWidth="180" targetListWidth="180"
sourceCaptionLabel="#{label.selectFields}"
targetCaptionLabel="#{label.selectedFields}"
converter="Listconverter" copyControlLabel=" " removeControlLabel=" "
fastMoveControlsVisible="false" downControlLabel=" "
upControlLabel=" " fastOrderControlsVisible="false">
<rich:column>
<h:outputText value="#{custRows.label}"></h:outputText>
</rich:column>
</rich:listShuttle>
HTML SOURCE CODE
enter code here
<table cellpadding="0" cellspacing="0" class="rich-list-shuttle " id="customizePanelId:resultCustomizelist">
<tbody>
<tr>
<td class="rich-list-shuttle-caption" colspan="2">
<div class="rich-shuttle-source-caption">Available Columns</div>
</td>
<td class="rich-list-shuttle-caption" colspan="2">
<div class="rich-shuttle-target-caption">Displayed Columns</div>
</td>
</tr>
<tr>
<td>
<div class="rich-shuttle-source-items ">
<input id="customizePanelId:resultCustomizelistfocusKeeper" style="width: 1px; position: absolute; left: -32767px;" type="button" />
<table cellpadding="0" cellspacing="0" class="rich-shuttle-body" id="customizePanelId:resultCustomizelisttable"><tbody><tr><td style="border:0px;padding : 0px;"> <div class="rich-shuttle-list" id="customizePanelId:resultCustomizelistheaderBox"><div class="rich-shuttle-list-content" id="customizePanelId:resultCustomizelistcontentBox" style="width:180px;height:150px;"><table cellpadding="0" cellspacing="0" class="rich-shuttle-internal-tab" id="customizePanelId:resultCustomizelistinternal_tab"><tbody id="customizePanelId:resultCustomizelisttbody"></tbody></table></div></div></td></tr></tbody></table></div></td><td style="vertical-align: middle;"><div class="rich-shuttle-controls"><div id="customizePanelId:resultCustomizelistcopy" class=" rich-shuttle-control-copy" style="display:none;"><div class="rich-list-shuttle-button" onmouseover="this.className='rich-list-shuttle-button-light'" onmousedown="this.className='rich-list-shuttle-button-press'" onmouseup="this.className='rich-list-shuttle-button'" onmouseout="this.className='rich-list-shuttle-button'">
<a id="customizePanelId:resultCustomizelistcopylink" href="#" onclick="return false;" class="rich-list-shuttle-button-selection" onblur="Control.onblur(this);" onfocus="Control.onfocus(this);"><div class="rich-list-shuttle-button-content" onclick="">
<img width="15" height="15" border="0" alt="copyControl" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.ListShuttleIconCopy/DATB/eAFjYGD4f-.Y....ARNrBaE_.faces" /> </div></a></div></div><div id="customizePanelId:resultCustomizelistdiscopy" class=" rich-shuttle-control-disabled" style="display:block;"><div class="rich-list-shuttle-button-disabled"><a id="customizePanelId:resultCustomizelistdiscopylink" href="#" onclick="return false;" disabled="disabled" class="rich-list-shuttle-button-a-disabled"><a><div class="rich-list-shuttle-button-content">
<img width="15" height="15" border="0" alt="copyControlDisabled" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.ListShuttleIconCopyDisabled/DATB/eAH7vL33.71j....BwAliQfY.faces" /> </div></a></a></div></div><div id="customizePanelId:resultCustomizelistremove" class=" rich-shuttle-control-remove" style="display:none;"><div class="rich-list-shuttle-button" onmouseover="this.className='rich-list-shuttle-button-light'" onmousedown="this.className='rich-list-shuttle-button-press'" onmouseup="this.className='rich-list-shuttle-button'" onmouseout="this.className='rich-list-shuttle-button'">
<a id="customizePanelId:resultCustomizelistremovelink" href="#" onclick="return false;" class="rich-list-shuttle-button-selection" onblur="Control.onblur(this);" onfocus="Control.onfocus(this);"><div class="rich-list-shuttle-button-content" onclick="">
<img width="15" height="15" border="0" alt="removeControl" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.ListShuttleIconRemove/DATB/eAFjYGD4f-.Y....ARNrBaE_.faces" /> </div></a></div></div><div id="customizePanelId:resultCustomizelistdisremove" class=" rich-shuttle-control-disabled" style="display:block;"><div class="rich-list-shuttle-button-disabled"><a id="customizePanelId:resultCustomizelistdisremovelink" href="#" onclick="return false;" disabled="disabled" class="rich-list-shuttle-button-a-disabled"><a><div class="rich-list-shuttle-button-content">
<img width="15" height="15" border="0" alt="removeControlDisabled" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.ListShuttleIconRemoveDisabled/DATB/eAH7vL33.71j....BwAliQfY.faces" /> </div></a></a></div></div></div></td><td><div class="rich-shuttle-target-items "><input name="customizePanelId:resultCustomizelist" style="display: none;" type="hidden" value=":" />
<input id="customizePanelId:resultCustomizelisttlFocusKeeper" style="width: 1px; position: absolute; left: -32767px;" type="button" /><table cellpadding="0" cellspacing="0" class="rich-shuttle-body" id="customizePanelId:resultCustomizelisttlTable"><tbody><tr><td style="border:0px;padding : 0px;"><div class="rich-shuttle-list" id="customizePanelId:resultCustomizelisttlHeaderBox"><div class="rich-shuttle-list-content" id="customizePanelId:resultCustomizelisttlContentBox" style="width:180px;height:150px;"> <table cellpadding="0" cellspacing="0" class="rich-shuttle-internal-tab" id="customizePanelId:resultCustomizelisttlInternal_tab"><tbody id="customizePanelId:resultCustomizelisttlTbody"></tbody></table></div></div></td></tr></tbody></table></div></td><td style="vertical-align: middle;"><div class="rich-shuttle-controls"><div id="customizePanelId:resultCustomizelistup" class=" rich-shuttle-control-up" style="display:none;"><div class="rich-list-shuttle-button" onmouseover="this.className='rich-list-shuttle-button-light'" onmousedown="this.className='rich-list-shuttle-button-press'" onmouseup="this.className='rich-list-shuttle-button'" onmouseout="this.className='rich-list-shuttle-button'"><a id="customizePanelId:resultCustomizelistuplink" href="#" onclick="return false;" class="rich-list-shuttle-button-selection" onblur="Control.onblur(this);" onfocus="Control.onfocus(this);"><div class="rich-list-shuttle-button-content" onclick="">
<img width="15" height="15" border="0" alt="upControl" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.OrderingListIconUp/DATB/eAFjYGD4f-.Y....ARNrBaE_.faces" /> </div></a></div></div><div id="customizePanelId:resultCustomizelistdisup" class=" rich-shuttle-control-disabled" style="display:block;"><div class="rich-list-shuttle-button-disabled"><a id="customizePanelId:resultCustomizelistdisuplink" href="#" onclick="return false;" disabled="disabled" class="rich-list-shuttle-button-a-disabled"><a><div class="rich-list-shuttle-button-content">
<img width="15" height="15" border="0" alt="upControlDisabled" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.OrderingListIconUpDisabled/DATB/eAH7vL33.71j....BwAliQfY.faces" /> </div></a></a></div></div><div id="customizePanelId:resultCustomizelistdown" class=" rich-shuttle-control-down" style="display:none;"><div class="rich-list-shuttle-button" onmouseover="this.className='rich-list-shuttle-button-light'" onmousedown="this.className='rich-list-shuttle-button-press'" onmouseup="this.className='rich-list-shuttle-button'" onmouseout="this.className='rich-list-shuttle-button'"><a id="customizePanelId:resultCustomizelistdownlink" href="#" onclick="return false;" class="rich-list-shuttle-button-selection" onblur="Control.onblur(this);" onfocus="Control.onfocus(this);"><div class="rich-list-shuttle-button-content" onclick="">
<img width="15" height="15" border="0" alt="downControl" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.OrderingListIconDown/DATB/eAFjYGD4f-.Y....ARNrBaE_.faces" /> </div></a></div></div><div id="customizePanelId:resultCustomizelistdisdown" class=" rich-shuttle-control-disabled" style="display:block;"><div class="rich-list-shuttle-button-disabled"><a id="customizePanelId:resultCustomizelistdisdownlink" href="#" onclick="return false;" disabled="disabled" class="rich-list-shuttle-button-a-disabled"><a><div class="rich-list-shuttle-button-content">
<img width="15" height="15" border="0" alt="downControlDisabled" src="/rvb-web/a4j_3_1_4.GAorg.richfaces.renderkit.html.images.OrderingListIconDownDisabled/DATB/eAH7vL33.71j....BwAliQfY.faces" /> </div></a></a></div></div></div><script type="text/javascript"><!--
var clientId = 'customizePanelId:resultCustomizelist';
Event.onReady(function() {
var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
var sourceLayoutManager = new LayoutManager('customizePanelId:resultCustomizelistinternal_header_tab', 'customizePanelId:resultCustomizelistinternal_tab');
var targetLayoutManager = new LayoutManager('customizePanelId:resultCustomizelisttlInternal_header_tab', 'customizePanelId:resultCustomizelisttlInternal_tab');
var listShuttle = new Richfaces.ListShuttle(new Richfaces.ListShuttle.Target('customizePanelId:resultCustomizelist', 'customizePanelId:resultCustomizelisttlInternal_tab', 'customizePanelId:resultCustomizelisttlInternal_header_tab', 'customizePanelId:resultCustomizelisttlFocusKeeper', cotrolsIdPrefix, 'customizePanelId:resultCustomizelistsortLabel', null, Richfaces.ListShuttle.Target.SelectItem, null, null),
new Richfaces.ListShuttle.Source('customizePanelId:resultCustomizelist', 'customizePanelId:resultCustomizelistinternal_tab', 'customizePanelId:resultCustomizelistinternal_header_tab', 'customizePanelId:resultCustomizelistfocusKeeper', undefined, Richfaces.ListShuttle.Source.SelectItem, null, null),
"customizePanelId:resultCustomizelist", listShuttleCotrolsIdPrefix, "false", sourceLayoutManager, targetLayoutManager, null);
var sourceLayoutManager = new LayoutManager('customizePanelId:resultCustomizelistinternal_header_tab', 'customizePanelId:resultCustomizelistinternal_tab');
var targetLayoutManager = new LayoutManager('customizePanelId:resultCustomizelisttlInternal_header_tab', 'customizePanelId:resultCustomizelisttlInternal_tab');
sourceLayoutManager.widthSynchronization();
targetLayoutManager.widthSynchronization();
});
//setTimeout(init, 0);
//-->
Try using this attribute to rich:listshuttle
copyAllTitle=""
copyTitle=""
removeAllTitle=""
removeTitle=""
downTitle=""
upTitle=""
Found a solution for the lower versions, we can replace the excisting images with over own images and can provide the alt data.
<f:facet name="copyControl">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="copyControlDisabled">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="removeControl">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="removeControlDisabled">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="upControl">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="upControlDisabled">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="downControl">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>
<f:facet name="downControlDisabled">
<t:graphicImage url="" alt="" border="0"></t:graphicImage>
</f:facet>

DocumentDB: Coldfusion Returning 401 Authorization error

I am trying to connect Azure DocumentDB/CosmosDB through the coldfusion but receiving 401 authorization error. I already installed the certificates but still having the same issue. I tried with PHP, Nodejs, both are performing well except ColdFusion. Also tried using coldfusion script but the error remains same. Here is the code what I wrote:
<cfset x_ms_date="#GetHttpTimeString(now())#"/>
<cfset br = "#chr(13)##chr(10)#">
<cfset signStr="GET#br#dbs#br##br##x_ms_date##br##br#" />
<cfset strBase64ValueKey="BASE64_ENCODED_MASTER_KEY" />
<cfset key=ToString(ToBinary(strBase64ValueKey))/>
<cfset x=ToBase64(hmac(LCase(signStr),LCase(key),"HMACSHA256"))>
<cfhttp method="GET" url="https://APP_URL.documents.azure.com/dbs" throwonerror="Yes">
<cfhttpparam name="Authorization" type="header" value="#URLEncodedFormat("type=master&ver=1.0&sig="&x)#">
<cfhttpparam name="x-ms-date" type="header" value="#x_ms_date#">
<cfhttpparam name="x-ms-version" type="header" value="2017-02-22">
</cfhttp>
<cfoutput>
#cfhttp.fileContent#
</cfoutput>
Here is the response from the above code:
{"code":"Unauthorized","message":"The input authorization token can't
serve the request. Please check that the expected payload is built as
per the protocol, and check the key being used. Server used the
following payload to sign: 'get\ndbs\n\nthu, 08 feb 2018 19:52:03
gmt\n\n'\r\nActivityId: aab94428-63a0-4eb7-807b-SOMETHING,
Microsoft.Azure.Documents.Common/1.20.186.1"}
What is the wrong with that code? Thanks in advance
This would work if you change the code to something like this:
<cfset x_ms_date = GetHttpTimeString(now()) />
<cfset strBase64ValueKey = "BASE64_ENCODED_MASTER_KEY" />
<cfset br = chr(10)>
<cfset signStr = "GET#br#dbs#br##br##x_ms_date##br##br#" />
<cfset secret = createObject('java', 'javax.crypto.spec.SecretKeySpec' ).Init(BinaryDecode(strBase64ValueKey, "Base64"), 'HmacSHA256')/>
<cfset mac = createObject('java', "javax.crypto.Mac")/>
<cfset mac = mac.getInstance("HmacSHA256")/>
<cfset mac.init(secret)/>
<cfset x = mac.doFinal(LCase(signStr).GetBytes())>
<cfset sig = BinaryEncode(x, "Base64")>
<cfset token = URLEncodedFormat("type=master&ver=1.0&sig=#sig#")>
<cfhttp method="GET" url="https://APP_URL.documents.azure.com/dbs" throwonerror="Yes">
<cfhttpparam name="Authorization" type="header" value="#token#">
<cfhttpparam name="x-ms-date" type="header" value="#x_ms_date#">
<cfhttpparam name="x-ms-version" type="header" value="2017-02-22">
</cfhttp>
<cfoutput>
#cfhttp.fileContent#
</cfoutput>

Resources