|
Hi, Dominic !
Thanks.
We solved the problem with the help of MS support.
Using the debugdiag tool DebugDiag[^] we've found that one of asp pages loaded into the hidden frame (for debug purposes) filled out all available worker threads, executing the same one-time function more and more.
This happened, as far as I could understand, after updating the SQL client on the server.
Didn't understand the whole story yet.
Regards,
Gennady
My English is permanently under construction. Be patient !!
|
|
|
|
|
Hi,
I've to call a dll from my classic asp page.
In VB6 application, it has been loaded like that
Declare Sub functionName Lib "dllName.dll" (ByVal k As String, ByVal i As String)
If I would like to use that dll in classic asp, how can it be done?
Thanks in advance,
Mann Khine
|
|
|
|
|
This[^] may help.
If you want to do thbis on a publicly hosted server, you will need to get the server admin to install the dll for you - whether or not they will do this depoends on your host...
|
|
|
|
|
vb6 uhhh
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi!
In my application the web pages are consisting of various different sections.
I am using AJAX update panel in one of the sections of my web page to do a partial postback and I am setting the values of the controls in this section.
Now when I re-direct to another page if the user clicks the back button
then the state of the controls in the section of the Page that was earlier set using AJAX is lost.
Is there some way I could overcome this.
Any help would be appreciated.
|
|
|
|
|
Hello there!
I have a very small and hopefully simple query regarding JavaScript for loops and the '<' symbol that has been bugging me now for a couple of days.
Below is my JavaScript function that is being called by a submit button:
<script type="text/JavaScript">
function createTestArray()
{
for (i = 0; i < 5; i ++)
{
alert("Hello");
}
}
</script>
I have replaced the '<' symbol with the appropriate code (<) because it was causing errors but I still get an error saying:
Expected ')'
in the area where the '<' should be.
Does anyone have any ideas why this may be happening or of any ways around this?
Thanks!
Grzegorz
|
|
|
|
|
I'm not sure i follow - you do actually need the less-than operator, <, not the HTML entity <. If you're worried about it being interpreted incorrectly, wrap your script in CDATA tags:
<script type="text/javascript">
function createTestArray()
{
for (var i = 0; i < 5; i ++)
{
alert("Hello");
}
}
</script> Note that you should also declare your loop counter (as shown - var i ...) to avoid relying on an automatic global variable.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Thanks very much for your reply,
I did try this and it didnt work either, its extremely puzzling. I wonder whether its because this particular peice of Javascript is within an XSLT file.
I have got round the problem by using <xsl:for-each xmlns:xsl="#unknown"> instead which has made things more complicated and other problems have arisen.
If you know of any other reasons why this may be happening than thank you in advance!
Grzegorz
|
|
|
|
|
gokninski wrote: I wonder whether its because this particular peice of Javascript is within an XSLT file.
Yes, it is. I would have expected the CDATA trick to allow you to use < in the XSLT without causing problems, but it wouldn't surprise me much if it's being converted during output anyway. I suggest you avoid including any JS in the XSLT that you aren't generating on the fly with XSLT - your life will be much, much easier.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
I try to, thank you very much for your help!
Grzegorz
|
|
|
|
|
For other peoples information when using < symbol with XSLT and Javascript, be aware of CSS stylesheets causing a problem.
I had a:
above my Javascript and JavaScript was throwing up errors when it got to < which was within an if statement.
I now import my CSS styles from an external XSL file and I dont have the problem anymore!
Grzegorz
|
|
|
|
|
hi...
sdfasdf
hemant
By:
Hemant Thaker
|
|
|
|
|
I want to block user from copying data from the page. I have used javascript that block the right click of the user so he will not able use right click menu to copy and past data.
But user can still copy data by using keybord keys "Ctrl + C" to copy it. Or they can save the page from file menu.
Is there any technique to stops these two things. So i can block user from copying data.
Regards,
Kiran Sajanikar
Software Engineer
Pune, India.
|
|
|
|
|
No; JavaScript is run inside a sandbox and so the browser has control over what it does. JavaScript therefore cannot control any part of the browser, as it's run inside this protected environment. Without knowing what your project entails I cannot really comment much on it, but if you stop your users from copy + paste, what about print screen or just typing up the text manually?
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
While typing this thread I was also thinking that if I stop users from copy + paste, still they can use print screen or just they can type up the text manually. So I thought there could be some solution for it.
Kiran Sajanikar
Software Engineer
Pune, India
|
|
|
|
|
What has left your network is ultimately not under your control any more. That's a fact.
There will always be a way of circumvent your safety measures. Whether it's by using a cache or simply taking a photo of the screen or connecting a taperecorder to the line out.
I wish this fact someday will get through to the legal peacounters in the media industry.
|
|
|
|
|
make sure they dun have a monitor
Code? Yeah i love it fried together with a glass of wine.
|
|
|
|
|
Hi!
There may be a way around your copy and paste shortcut problem. I'm not sure about cross-browser compatibility but try enclosing your text in paragraph tags with the UNSELECTABLE attribute set to 'On' like this:
<HTML>
<HEAD>
</HEAD>
<BODY>
<P UNSELECTABLE="On">
Test Paragraph
</P>
</BODY>
</HTML>
(Tested in IE 8 But it will probably work on earlier versions too)
Of course people will be able to get around this in some way or another but hey, it can't hurt can it?
Hope This Helps!
MrWolfy
|
|
|
|
|
Hay, Thanks for help.
I tried this code, but it dosn't work with ie7.
Hope we will find onther code for it.
Kiran Sajanikar
Software Engineer
Pune, India
|
|
|
|
|
In the please add this following and check the result
....
...
Kingsleen.J
|
|
|
|
|
Hi all.
I'm having a slight problem to which I can't seem to find a solution on Google (obv because I'm not searching right) so I thought you might point me towards a link with a solution.
I have a textbox. Using Javascript, whenever the user enters a key, javascript iterates through a predefined array and returns a list of matching items in a Div. The result is :
<div><ul><li>item 1</li>......<li>item n</li></ul></div>
Then the user can click on one of the items and the selected option is automatically inserted into the textbox.
So far so good.
But, how is it possible to let the user use the cursor keys on his/her keyboard to select an option? :/ I have no idea how can this be done but I'm sure it can be.
Could someone direct me to a tutorial on this? Coz I'm sure it wouldn't make sense to give the code here (sure it will be too long).
Thanks a lot for any help provided.
PS: I'm using ASP VB but I can translate from PHP and .NET code if need be. I'm sure this is purely Javascript but still
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
take the following as an example
<script>
var cur_elem = -1;
function resetElements(prt,cls,omit) {
for(i=0;i<=prt.childNodes.length -1; i++){
if(i != omit) {
prt.childNodes[i].className = cls;
}
}
}
function dosomething(e) {
var code;
if (!e) var e = window.event;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
target_elem = (!document.all) ? document.getElementById("testId") : document.all["testId"];
if(code == 38) {
if(cur_elem >= 1) cur_elem -=1;
target_elem.childNodes[cur_elem].className = "over";
resetElements(target_elem,"normal", cur_elem);
target_elem.className = "activeList";
document.getElementById("notice").innerHTML = "Up:" + cur_elem + " .::. Element content:" + target_elem.childNodes[cur_elem].innerHTML + " .::. Total elements:" + target_elem.childNodes.length;
} else if(code==40) {
if(cur_elem <= target_elem.childNodes.length-2) cur_elem +=1;
target_elem.childNodes[cur_elem].className = "over";
resetElements(target_elem,"normal", cur_elem);
target_elem.className = "activeList";
document.getElementById("notice").innerHTML = "Down:" + cur_elem + " .::. Element content:" + target_elem.childNodes[cur_elem].innerHTML + " .::. Total elements:" + target_elem.childNodes.length;
}
}
</script>
with defined styles like
<style>
.normal {
background-color:#ffffff;
display:block;
}
.over {
background-color:#990000;
display:block;
}
.activeList {display:block}
ul.def {display:none;}
</style>
and with the following html:
<pre><input type="text" name="random" id="random" onkeydown="dosomething(event);" />
<ul id="testId" name="testId" class="def">
<li>some value</li><li>some value 2</li><li>some value 3</li><li>some value 4</li><li>some value 5</li><li>some value 6</li></ul>
<div id="notice">[empty]</div>
</body></pre>
be aware of the fact that the <li> elements MUST have no space between because of sum reason i dun understand(spaces are treated are child elements of the UL element in FF and opera.)
This is a basic example ... further enhancements are up to you.
Code? Yeah i love it fried together with a glass of wine.
|
|
|
|
|
sweet ... thanks for the detailed reply man
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
hi, i am doing an educational project, and i copied all the ASP.net file into my wwwRoot folder,and when i browse any pages using http://localhost/login.aspx, the page was opened, but could not coonect with SQL server.
so, what will be the Connecting string !! plz help,
|
|
|
|
|