|
hello..
I want my activex component should communicate with server. So what should I do fo this..means can I use activex to javascript communivation or Is there any better way than this?
Plz help.
|
|
|
|
|
Hi,
I have made a very simple ISAPI in C++, which examines the request URL and if a pattern matches, then would modify the URL to an appropriate ASPX page in the web application, reading settings from a plain text file. This perfectly works for Windows 2000 and XP and when I tried to put it in a Windows 2003 box, it took 2 to 3 minutes and only then, the properties dialog was showing 'Green' icon, indicating that the filter was loaded.
But the request is being responded with Bad Request.
I am not using any Raw Sockets except for Preproc Header notification which is very basic. Is'nt it? I have also browsed through the system eventlogs for any error messages but none have been recorded in this direction.
Please help...
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
Hi there,
Do you enable the ISAPI in the Web Service Extensions list? By default, IIS 6 only services the static resources for the security reason.
|
|
|
|
|
Hi all,
I can't figure this out. In IE, when I open a new window, history.length seems to have a value of 0, while it's 1 in Firefox. Can anyone tell me why?
Is there a way to get around this? And if not, is there a way to code safely such that if there is a bug in either IE or Firefox, my code won't break later when the bug is fixed?
Thanks in advance for any help. As you can probably tell, I am not an expert at all this, so please be patient with me.
Al
|
|
|
|
|
I have a javascript date picker on a asp.net web form. What I want is that when the Web form is loaded that if the Ststus field contains the text "Closed" then the datepicker will disappear.
Has anyone any resources or ideas on how to achieve this?
macca
|
|
|
|
|
put this conditional statements on the Page_Load event
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
What code are you talking of SPS.
|
|
|
|
|
macca24 wrote:
What I want is that when the Web form is loaded that if the Ststus field contains the text "Closed" then the datepicker will disappear.
the code that will do the above trick
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
SPS,
The page is blank above, I cannot see any code, can you check the posts you made, as I am unable to view any code you claim to have posted.
macca
|
|
|
|
|
Hi,
can someone recommend a tool to test a web server implementation?
Something to verify that your server implementation is RFC conform and reliable. I found it hard to test all the functionality with existing clients only (used web browsers and download managers). Also the HTTP 1.1 specification was quite hard to read (compared to HTTP 1.0), I would like to test properly. I am not terribly interested in stress and load testing at the moment, but as a first step I am more interested in reliability tests, being RFC conform and build up regresison tests.
Thanks!
|
|
|
|
|
Hello, there,
I'd like to know whether there is a way to get/set caret position in textarea control in Javascript. I tried very hard to seach the Internet and didn't find anything useful. Please help me out.
Here is an example of how I want it to work. Say I have two textarea boxes(TextArea1 and TextArea2) and a button. When the user clicks on the button, the text in the textArea1 is copied to textarea2, textarea1 lose focus and textarea2 will get the focus. All these are very easy to implement. But what I want is the caret in the TextArea2 set to the position of caret position in TextArea1 before the button click.
Please help me.
Thank you very much in advance.
Bin
|
|
|
|
|
|
Can you give me some details? I knew use TextRange too.
|
|
|
|
|
Here's a little example:
<html>
<head>
<script>
function DoTheCopy()
{
var one = document.getElementById("FirstTextArea");
var two = document.getElementById("SecondTextArea");
one.focus(); // so cursor isn't on button just pressed
var range1 = document.selection.createRange();
var range2 = document.body.createTextRange();
range2.moveToElementText(one);
// count distance from start
var startDist = 0;
while (range1.compareEndPoints("StartToStart", range2) > 0)
{
++startDist;
range1.moveStart("character", -1);
}
// count distance from end
var endDist = 0;
while (range1.compareEndPoints("EndToEnd", range2) < 0)
{
++endDist;
range1.moveEnd("character", 1);
}
// duplicate text and selection in second text area
two.value = one.value;
var newRange = two.createTextRange();
newRange.moveStart("character", startDist);
newRange.moveEnd("character", -endDist);
newRange.select();
}
</script>
</head>
<body>
<textarea id="FirstTextArea">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
</textarea>
<button onclick="DoTheCopy()">Copy</button>
<textarea id="SecondTextArea">
</textarea>
</body>
</html>
You must be careful in the forest
Broken glass and rusty nails
If you're to bring back something for us
I have bullets for sale...
|
|
|
|
|
Thank you so much for your excellent code. It is exactly what I want. I have been trying to figure this out for two days. You really saved me. Thanks for your great help.
|
|
|
|
|
I suppose you could save the caret pos, something like this:
var pos = TextArea1.caretPos;<br />
TextArea2.caretPos = pos;
I'm pretty sure this will work, but i'm not completely sure you can do this last step
good luck;)
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images.
Better check it out before the site grows even dumber.
|
|
|
|
|
It is not working in IE. I know to do this in NN is easy, just like one line of code. But in IE, it is something different.
var pos = TextArea1.caretPos;
pos will be "undefined" after this line of code.
Thank you very much.
|
|
|
|
|
Errr , this might seem silly, but have you tried anything like this:
var pos;<br />
pos = TextArea1.caretPos;
or even put var pos somewhere outside your function. I's worth a shot, considering IE's bug consistency..
Another thing, you might try checking out CP's discussion board page source when you're posting stuff, they're also using JS for textarea (or so it seems )
Good luck
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images.
Better check it out before the site grows even dumber.
|
|
|
|
|
Hi dudes,
i have a datagrid with checkbox, and i must read all the itens from it and put in a textbox using javascript...does anybody know how to do that?
Tks!!!
Rogerio Meneghelo Apezzatto
|
|
|
|
|
try to view the source of the HTML page, this will give you a clue on what the ID of the checkBox inside the GRID is.
Then document.all. will do the trick
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
I am using an AJAX component to return an HTML select to the clients browser, inserting it into a div called DivSelect. At the moment, I have put this code in the body onload event. This was just for testing. What I would like to be able to do, is once the DivSelect is generated, to then call my function to load my select control. The reason for this is that my select control has about 100 records, and I would prefer to have my page show to the client quickly, and then inform them that the data is still loading.
So, is there an event I can use to fire this once the DivSelect control has been created on the client? Obviously I dont want any user interaction at this point, otherwise I would have just attached this event to a button.
While the above is performing, I would ideally like my static text in the DivSelect to display "Loading Data" with '.' being added until this gets to 3, then back to 0. Sorry about my explanation of this, I do not know how to describe it. So basically there will be four different text values for this, shown a second apart, eg. 'Loading Data', 'Loading Data .', 'Loading Data ..', 'Loading Data ...' - then back to the first one.
Please can you help me with this, or at least guide me in the right direction.
|
|
|
|
|
Hi there,
As you already know that the div tag does not support the onload event, so you cannot use it. The onreadystatechange event sounds helpful, but the div tag only raises this event when a behaviour is attached. In this case, there are two options come to mind:
+ You can place the script element containing your function right after the end tag of the div element. After the browser loads the div element, it will encounter the script tag and execute it, but you should remember that it does not execute the script if you only place the function definition in the script block.
+ Use the setInterval method to periodically check the existing of the div element, and call your function after it is loaded at the client side.
|
|
|
|
|
could someone tell me how www.wtf.com looks in there browser.
i want the infobar on my site but i first want to confirm that it doesnt screw up the page in different browsers.
i've tested it with ie 7.05 beta, opera 8.02, and firefox 1.04.
btw you can find out how to make that infobar here: http://blog.cs.cityu.edu.hk/users/50307104/ie/
|
|
|
|
|
If by 'infobar' you mean that 'it seems you are not registered' thing, it looks good but is pretty darn irritating. I don't know about other web users, but I really hate when site owners try to convince me I'm gonna die if I don't register with their site. I your site is really kool and offers quality stuff, I'm gonna register, infobar or no infobar..
Nice site though
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images.
Better check it out before the site grows even dumber.
|
|
|
|
|
oops theres a web development board =).
thats not my site i just wanted 2 c wat it looked like in different browsers b4 i use it on my site.
|
|
|
|