|
|
Do you have a certificate? Even if your host sets up the server to respond to https for your site, if you don't have an SSL cert then your users will get errors when they go to the https site.
|
|
|
|
|
hy ,
i have a requirment in which i have to open a drop down on enter evnt using java script.i can open it using alt+keydown but i dont know how to fire the event on enter event
Thanks & Regards,
Raghvendra Panda
|
|
|
|
|
I don't know if this can be done directly but I have a work around for this.
Here is a sample code. You need to edit a few things to work for your requirement.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Auto-expand SELECT</title>
<script language="JavaScript">
function ExpandSelect( intSize ) {
document.getElementById('MySelect').size=intSize;
}
</script>
<style>
.blocker {
position: absolute;
margin-top: -4px;
border: 1px solid #000000;
padding: 5px 5px;
background: #FFFFCC no-repeat -10px 5px;
}
</style>
</head>
<body>
<b>Please choose a number:</b>
<div class="blocker">
<select onFocus="ExpandSelect(7);" onBlur="ExpandSelect(1);"
onChange="ExpandSelect(1);" name="MySelect" size="1" id="MySelect">
<option value="1" selected>One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
<option value="6">Six</option>
<option value="7">Seven</option>
</select>
</div>
<p> The select box should float over this text
</body>
</html>
But it's not on Enter click.
Does the drop down open up if you press enter anytime/anywhere in the form - in that case call the function on load of the body.
Does the drop down open up if you press enter when the focus is on some control - in that case call the function on key down event of that control.
In both cases, you need to check if 'Enter click' was pressed or not.
That is done using:
if(event.keyCode==13) { }
Another important thing is you need to know the size of the drop-down list.
Do some edits as instructed and you will be able to do what you want.
Hope it helps!
..Go Green..
|
|
|
|
|
Use the jquery frame work.
trigger the click event on that select box.
search in google as jquery trigger
it is very simple to include.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Following code will track the enter event on combobox, I do not know
how to expand combobox.
<script language="JavaScript">
function onenter()
{
var evt=window.event;
var Ucode=evt.keyCode? evt.keyCode : evt.charCode
if(Ucode==13)
alert("enter tracked");
}
</script>
<select onkeypress="onenter();">
<option value="1" selected>One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
<option value="6">Six</option>
<option value="7">Seven</option>
</select>
Hope this will help!
Jinal Desai
|
|
|
|
|
Hallo!
I have such code in to the .htaccess file:
RewriteEngine on<br />
RewriteBase /<br />
<br />
RewriteCond %{REQUEST_URI} /one1<br />
RewriteRule ^[^.]*$ for_one.php [L]<br />
<br />
RewriteCond %{REQUEST_URI} /two2<br />
RewriteRule .* for_two.php [L]
Here every thing works as it should be:
test.ru/one1 => for_one.php
test.ru/two2 => for_two.php
But when I exclude second RewriteCond every thing breakes:
I call /one1 it return me for_two.php
RewriteEngine on<br />
RewriteBase /<br />
<br />
<br />
RewriteCond %{REQUEST_URI} /one1<br />
RewriteRule ^[^.]*$ for_one.php [L]<br />
<br />
RewriteRule .* for_two.php [L]
test.ru/one1 => for_two.php
Nevertheless it must work: first RewriteCond is true and there is [L] flag after RewriteRule, so the Rewriting process must stop!
Why [L] flag dose not work?
Why the rewriting process dose not stop?
Here is text from apache manual:
Stop the rewriting process here and don't apply any more rewrite rules. This corresponds to the Perl last command or the break command in C. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. Remember, however, that if the RewriteRule generates an internal redirect (which frequently occurs when rewriting in a per-directory context), this will reinject the request and will cause processing to be repeated starting from the first RewriteRule.
Maybe here Internal-Redirection happened? but what is this, and how it could happend? I did not call Redirect flag [R].
Or internal Redirection is alway when using .htacess files?....
|
|
|
|
|
Hi guys,
I'm currently experiencing a strange phenomenon.
I have a user-control which allows the user to add data into a list on clicking on the OK Button.
On the page where I use this control all works fine.
However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control.
The control is shown but when I click on the OK button no event is trigger, nothing happens?
I have put a break point in the PageLoad of the user-control, but it doesn't event get there.
It seems like that the event if any is missing at all, althought that the html (client-side) code is the same.
Does anyone have a thought, or knows a reason why this could happen?
Thx,
Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
I think i have miss post this question
I will post it under the ASP.Net forum
Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
can you provide more detail ??
Like what type of control you are using, custom control, user control, etc.....
And what exactly you want on second page that is not happened after you copy
control and code from first page. (Which is working on first page)
Jinal Desai
|
|
|
|
|
Thanks for the reaction.
I'm using controls designed by DevXpress, so i did a search on there forums as well. While there I stumble onto a similar problem. The problem could lay in a databinding control which could prevent events from firing.
This second page exists out of a tab control with 4 pages. When I remove the 2 last pages the control starts working. So my best guess is that one off the bindings onto those pages misbehave.
Thanks anyway
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
Got it working.
Image name was different by a capital letter!
I have a css that reads like this...
div.boxedtext2
{
border-right:navy thin solid;
padding-right:25px;
border-top:navy thin solid;
padding-left:25px;
float:left;
padding-bottom:25px;
margin:0px 25px 15px 0px;
border-left:navy thin solid;
padding-top:25px;
border-bottom:navy thin solid;
width:848px;
height:300px;
background-color:#ffd0fc;
background-image: url('images/tardis.jpg');
background-repeat: no-repeat;
background-position: center center
}
.onmouse:hover
{
background-image:url('images/tardis2.jpg');
}
.onmouse
{
}
I am calling it under <div class="boxedtext2 onmouse">
I am getting the first image on first appearance, but not the second image on mouse over.
Why?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
modified on Monday, April 26, 2010 5:56 PM
|
|
|
|
|
Good that you got it sorted. Did any of those PDF's I sent you help, or did they muddy the water? And did you download that "TopStyle Lite" application I recommended? If not, go get it from here http://topstyle.en.softonic.com/download[^] It helps you visualize styles without the webpage getting in-the-way.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I sent them to my home machine, but not had a chance to look at them too hard, but I have a long weekend coming up in which to get some serious learning done.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi,
I have an asp page that I want to connect with WCF Service
Can someone guide me how can I connect and call the service?
<%
Dim soapServer
soapServer = "https://XXXXXX.YYYYYY.com/ZZZZZZZZ/20100201/ABC.svc"
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", soapServer, False,"USERNAME","PASSWORD"
xmlhttp.setRequestHeader "SOAPAction", POST & " " & soapServer & " HTTP/1.1"
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
Response.Write "About to call WCF Web Service from Classic ASP..."
xmlhttp.send()
Response.Write "<br>Finished calling Web Service."
Response.Write "<br>Status = " & "<font color='red'>" & xmlhttp.statusText & "</font>"
Response.Write "<br>ResponseText = " & xmlhttp.responseText
%>
I got Status = Bad Request Result when I ran the asp page .
I don't have idea whether my creadetial get pass or fail or do I properly connect with WCF service or not ?
Can any one help me in this matter?
modified on Monday, April 26, 2010 3:20 PM
|
|
|
|
|
It seems you want to pass the client's network credentials in your call to the service. See this[^] article.
/ravi
|
|
|
|
|
|
We have a 32-bit library written and compiled in Borland Delphi. This library is referenced by various other projects including a WCF Web Service hosted in IIS. The web service is compiled using the x86 option and everything works fine on a 32-bit machine. However, on our 64-bit server the service fails when calling into the 32-bit Delphi library. Does anyone know why .NET code compiled with 32-bit option would still fail while calling a non-.NET 32-bit library on a 64-bit machine?
|
|
|
|
|
In IIS7 and higher, you'll need to run the calling app in a 32-bit application pool.
Note that if your server is running in a cluster configuration, this will not work, if I remember well.
|
|
|
|
|
Thanks for the reply Michel. We have indeed set it to run in the 32-bit application pool and are not running in a cluster configuration...and we are still miffed as to why its not working.
|
|
|
|
|
Bummer. Makes me as miffed as you...
|
|
|
|
|
Heap corruption! Apparently there is a flag called HeapEnableTerminationOnCorruption that was not previously enabled by default. As a new feature in Windows Vista, the IIS worker process terminates when the heap corruption is detected. So, it only APPEARED to be working in our stand-alone apps and on our 32-bit Windows XP machines, when in actuality it was simply ignoring the error.
To fix the problem we changed our code for calling into the Delphi libraries to use IntPtrs and pass data back using out parameters. For example:
public string CallDLL(string sTest)
{
string s = "";
IntPtr p1 = Marshal.StringToHGlobalAnsi(sTest);
s = Marshal.PtrToStringAnsi(p1);
if (p1 != IntPtr.Zero)
{
Class1.TestDLL(out p1);
s = Marshal.PtrToStringAnsi(p1);
}
Marshal.FreeCoTaskMem(p1);
return s;
}
Hope this helps anyone with the same issue.
|
|
|
|
|
Great! Nice to hear something back from someone when a solution is found. Thanks for sharing that.
|
|
|
|
|
hi:
I want to turn a Firefox Add-On I'm having developed [almost done] into a similar IE Extension; can you help with that? If so, pls e-mail me.
pls let me know,
Marshall
|
|
|
|
|
Wrong site. Try rentacoder.com
Bob
Ashfield Consultants Ltd
|
|
|
|