Conditional Statement Hacks - IE8 and none IE8 - internet-explorer-8

Is anyone able to assist me before I smash my head on the wall?
I am trying to get this form to work:
<form action="" method="post" name="login_form">
<!--[if !IE]>-->
<input type="text" id="emailcust" name="username" class="custbox" value="Email Address" />
<input type="text" id="passcust" name="password" class="custbox" value="Password" />
<p>NON INTERNET EXPLORER!</p>
<!--<[endif]-->
<!--[if IE 8]>
<input type="text" id="emailcust2" name="username" class="custbox" value="" />
<input type="password" id="passcust2" name="password" class="custbox" value="" />
<p>INTERNET EXPLORER!</p>
<![endif]-->
I OFFICIALLY HATE IE!
Modern browsers appear to be picking up the first IF section and ignoring the latter (as per my want), but IE8 is ignoring both IF sections.
SOLUTION
It seems that the entire form has to be included for each if statement. Therefore within the following works:
<!--[if !IE]>-->
<div id="whatever">
<form action="" method="post" name="login_form">
<input type="text" id="emailcust" name="username" class="custbox" value="Email Address" />
<input type="text" id="passcust" name="password" class="custbox" value="Password" />
<p>NON INTERNET EXPLORER!</p>
<input type="submit" class="cust_submit" value="Login" />
</form>
</div>
<!--<[endif]-->
<!--[if IE 8]>
<div id="whatever">
<form action="" method="post" name="login_form">
<input type="text" id="emailcust2" name="username" class="custbox" value="" />
<input type="password" id="passcust2" name="password" class="custbox" value="" />
<p>INTERNET EXPLORER!</p>
<input type="submit" class="cust_submit" value="Login" />
</form>
</div>
<![endif]-->

Related

Changing Google CSE custom search from http to https

I am using Google Custom Search box with below code
<div class="cse">
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="xxxxxxxxxx" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script></td></p>
</div>
However as now going to shift all pages to https - has to replace the code
<div class="cse">
<form action="https://cse.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="xxxxxxxxxx" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="https://cse.google.com/cse.js?cx=' + cx/brand?form=cse-search-box&lang=en"></script></td></p>
</div>
Can anyone help and assist if the above modified code is correct
That seems like it should work, but you should consider switching to the Custom Search Element --- It's the modern, supported way to use Google Custom Search

C# Launching Yodlee FastLink

I'm doing a project to launch yodlee fastlink. I was able to get the token and userSession and trying the below codes. I'm only getting "Cannot POST resource". I'm trying to find a more detailed/simpler documentation. Any help would be appreciated.
<form action="https://node.developer.yodlee.com/authenticate/restserver" method="post" name="rsessionPost" id="rsessionPost" target="yodleeIframe">
<input style="visibility: hidden" type="text" name="rsession" placeholder="rsession" value="08312016_0:149676f79ace306255a2c7827f9db590ccabd7350ad5d952f31fc503675bba9ec522728c213a9e5c3e98bd8ceff795c88f9a6f80040a68ce325ae54759f6e504" id="rsession" /><br />
<input style="visibility: hidden" type="text" name="app" placeholder="FinappId" value="10003600" id="finappId" /><br />
<input style="visibility: hidden" type="text" name="redirectReq" placeholder="true/false" value="true" /><br />
<input style="visibility: hidden" type="text" name="token" placeholder="token" value="e59f51a169f52925cd715a945630686e59667d2d1fae511fd50b4e292a8e7342" id="token" /><br />
<input type="submit" name="submit" />
</form>
It seems like there is a forward slash '/' missing at the end of the URL.
Please put it there and submit the form you should be able to access Fastlink.
"https://node.developer.yodlee.com/authenticate/restserver/"

Grails ajax radio buttons

I'm looking to have two radio groups within a single form. When you select a radio button (product type) form the first group, I'd like to update the second group (quantity) and adjust the price using Ajax. Does Grails offer an Ajax radio solution?
<form>
<div>
Product Type
<input type="radio" name="q1" value="1"/>
<input type="radio" name="q1" value="2"/>
<input type="radio" name="q1" value="3"/>
</div>
<div>
Quantity
<input type="radio" name="q2" value="1"/> ${price}
<input type="radio" name="q2" value="2"/> ${price}
<input type="radio" name="q2" value="3"/> ${price}
<input type="radio" name="q2" value="4"/> ${price}
<input type="radio" name="q2" value="5"/> ${price}
</div>
<input type="submit" name="submit" id="submit" />
</form>
Take a look at the g:formRemote tag:
http://grails.github.io/grails-doc/2.1.0/ref/Tags/formRemote.html

How can I fix character encoding MVC3?

Hello everyone I have added a search engine on my project but when I click the search button some characters are going crazy like ş seems ÅŸ. After that I have added the code as you can see below at Shared cshtml ;
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
Finally I have added this to webconfig file
<system.web>
<globalization culture="tr-TR" uiCulture="tr-TR" fileEncoding="utf-8"
responseEncoding="utf-8" requestEncoding="utf-8" />
But nothing was changed. Could you help me please ?
Here is my search code
<form method="get" action="http://www.google.com.tr/custom" target="google_window">
<input type="hidden" name="domains" value="www.maltepe.bel.tr"></input>
<label for="sbi" style="display: none"></label>
<input type="text" name="q" style="height:14px;width:167px" value="" id="sbi"></input>
<button type="submit" name="sa" value="Arama" id="sbb"></button>
<input type="hidden" name="sitesearch" value="www.maltepe.bel.tr" id="ss1"></input>
<input type="hidden" name="client" value="pub-2231511596197409"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="1809328852"></input>
<input type="hidden" name="ie" value="ISO-8859-9"></input>
<input type="hidden" name="oe" value="ISO-8859-9"></input>
<input type="hidden" name="cof" value="GALT:#E9382F;GL:1;DIV:#CCCCCC;VLC:7E3939;AH:center;BGC:FFFFFF;LBGC:FF3333;ALC:E9382F;LC:E9382F;T:000000;GFNT:7E3939;GIMP:7E3939;FORID:1"></input>
<input type="hidden" name="hl" value="tr"></input>
</form>
Try to change ie and oe value to "UTF-8" see if it is ok.

Programmatically pass a url to an anonymous proxy like http://www.trycatchme.com

I'm using .net httpwebrequest &/or webclient class
How can i Progamatically pass a url to an anonymous proxy like http://www.trycatchme.com and get back a result
<form method="post" action="/index.php">
<input id="address_bar" type="text" name="q" value="http://www." onfocus="this.select()" />
<input id="surf_button" type="image" value="Surf Now" src="images/surfnowbtn.gif" />
<input type="hidden" name="hl[include_form]" value="1" />
<input type="hidden" name="hl[remove_scripts]" value="1" />
<input type="hidden" name="hl[accept_cookies]" value="1" />
<input type="hidden" name="hl[show_images]" value="1" />
<input type="hidden" name="hl[show_referer]" value="1" />
<input type="hidden" name="hl[base64_encode]" value="1" />
<input type="hidden" name="hl[strip_meta]" value="1" />
<input type="hidden" name="hl[session_cookies]" value="1" />
</form>
The HttpWebRequest.Proxy Property might be what you want.

Resources