|
Where you get this idea that I didn't use window.open ? That was the first try.
Simply in the question I tried to give the full picture of my "experiments and research".
And additional question especially to you: did you read my message up to the end?
|
|
|
|
|
var winHndl = window.open("","TestWindow");
winHndl.document.location = "test.asp";
window.open("full_path_url","name of the window");
i was asking why u dun use the "direct" way without having 2 declarations for one thing ... but whatever
Code? Yeah i love it fried together with a glass of wine.
|
|
|
|
|
Sorry, you may beat me, but I cannot understand what one thing and two declarations you're talking about.
May be, it's because of my English, that is permanently under construction.
Thanks anyway.
Regards,
Gennady
|
|
|
|
|
I'd like to add the results of two additional tests:
1. Use the pure html page with .asp extension
2. The same page is loaded not in popup window, but instead of current page:
<br />
document.location = "test.asp";<br />
In both cases the result is the same - blank window with busy cursor.
Regards,
Gennady
My English is permanently under construction. Be patient !!
|
|
|
|
|
Hello,
Does your problem only happens in IE? Or all browsers?
Are you actually using window.open or window.showModalDialog?
I would try adding a break point in code so you could see if the debugger actually goes into the code or does IIS blocks it.
Have you checked what are the IIS log about this page?
|
|
|
|
|
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
|
|
|
|