|
Using client side JS only (i.e. no .NET controls) is it possible to drag from (say) the desktop and drop onto a form/control in the browser. Can anyone point me in the direction of an example if such a thing exists?
Thx++
Jerry
|
|
|
|
|
I don't think this cn be done, except maybe with ActiveX or Java. (not javascript)
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I've a special case, and am not sure what i did is right.
The special case is:
i have this
uri one : http://www.mysite.com/file?a=Hi
and
uri two: http://www.mysite.com/file?a=Hi&b=welcome
how can i exclude the page when the variable b exist in the uri.
what i did is:
******************************************
Disallow: /file/?b
******************************************
and a and b is a variables.
any suggestions please!
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
Hi ALL
I have problem that is my Web project is maked on MDI Idea,I write Javascript code to close all child window if parent window is closed.
so if the user press F5 or click on refresh button on explorer Javascript closed all windows so HOW CAN I PREVENT TO CLOSE WINDOWS WHEN REFRESHED PAGES , AND ONLY WHEN UNLOAD WINDOWS EXECUTE WHEN WINDOWS ARE CLOSES?
THANKS ALL
ALA QUNAIBI

|
|
|
|
|
Hi All,
I have to create a login page in HTML, that will compare the user given data with the Microsoft Active DIrectory / Windows server through php.
I don't know how I can connect with the Microsoft Active DIrectory / Windows server, and also don't know the name of database and fields of the database.
Can you help me out please???
|
|
|
|
|
I have found the answer and I am putting it over here just because if other person will have same type of problem then he can find the sollution.
$ldap_conn = ldap_connect("server_name");
$ldap_bind = @ldap_bind($ldap_conn, "$userId@server_name", "$password")
if(!$ldap_bind)
$returnString = "false";
else
$returnString = "true";
Hope it will be useful for anybody else.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
Hello!
I have large Java application, which is controlled through web-services. Some functions are available for anonymous users, it works ok. Some functions are only for authenticated users. The service expects login credentials in the http request. The following .net code
<br />
using System;<br />
using System.Net;<br />
class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
WebServiceX.SomeAPI api = new WebServiceX.SomeAPI.SomeAPI();<br />
api.Credentials = new NetworkCredential("MyUserName", "MyPassword");<br />
api.PreAuthenticate = true;<br />
api.Url = "http://mysite/myapp/api";<br />
api.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11;<br />
api.someMethod(parameter);<br />
}<br />
}
throws an exception:
System.Web.Services.Protocols.SoapException: java.rmi.RemoteException:<br />
---omitted---: CLQAHDEBUG: Permission Denied<br />
: User anonymous does not have permission ---internal method name---<br />
in System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien<br />
tMessage message, WebResponse response, Stream responseStream, Boolean asyncCall<br />
)<br />
in System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodNa<br />
me, Object[] parameters)<br />
in WebServicesConsumer2.LMSRoster.LMSRosterAPI.unrosterUsers(String[] in0) in<br />
.\WebServicesConsumer2\Web References\LMSRoster\Reference.cs:line 1<br />
31<br />
in WebServicesConsumer2.Program.Main(String[] args) in .\WebService<br />
sConsumer2\Program.cs:line 19
Captured communication packets do not contain any credential data. Why? How to make it work?
|
|
|
|
|
To use the http authentication one has to override the GetWebRequest function and append http authorization header as follows:
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Web.Services.Protocols;<br />
using System.Net;<br />
<br />
namespace WindowsApplication1.WebServiceAPI<br />
{<br />
public class WebServiceAPIAuth : WebServiceAPI<br />
{<br />
public string UserName;<br />
public string Password;<br />
<br />
private string S2Base(string s)<br />
{<br />
byte [] ba;<br />
ba=Encoding.ASCII.GetBytes(s);<br />
return Convert.ToBase64String(ba);<br />
}<br />
<br />
protected override System.Net.WebRequest GetWebRequest(Uri uri)<br />
{<br />
CredentialCache cc = new CredentialCache();<br />
WebRequest wr = base.GetWebRequest(uri);<br />
wr.Headers.Add(HttpRequestHeader.Authorization, "Basic "+S2Base(UserName+':'+Password));<br />
return wr;<br />
}<br />
}<br />
}<br />
|
|
|
|
|
Hi all,
can anyone tell me how I can simulate a clicking on a button (that is instead the user clicking with the mouse, I want to click for him).
more specifically, on the send mail in outlook's new mail window.
BUT it needs to be a "behind the stage" action, so I wont compete with the user on the mouse...(he will win and I'll miss the clicking...).
Thanks
P.S.
I assure you its not for a malware....
lior
|
|
|
|
|
Is this web development? If so it can easily be done with java script.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
not really web development,its a part of a software I'm working on. but I can to embed the script in a HTML body or invoke it.
would like to here your solution anyway...
Thanks.
|
|
|
|
|
If you give the form a name attribute (ie. name="thisForm") then you can call the forms attributes like this:
<br />
thisForm.button1.click();<br />
And that code will click a button with the name name="button1".
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Thans man, but do you know how can I specifically click a button in an applicatio that is not mine? like the outlook's new mail window? how do I know the name of the button (like if I want to click the send button?
thanks again...
|
|
|
|
|
Is the outlook mail window web based?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
its the regular outlook from office2003....
|
|
|
|
|
The why are you posting this in the web development forum?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
couse I want to implement it in a javascript embedded in a HTML Form.
it seemed like the right place.....
|
|
|
|
|
Where will this HTML form be located?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
How can I disable selection of text? I saw that in IE this could be done with setCapture. What about Netscape? Is there some style property that can be used with this purpose?
-- modified at 7:03 Monday 12th February, 2007
|
|
|
|
|
You may find that doing this just irritates people. But the BEST way to do it is put it in an image.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Thanks for your trying.
But if you want to help, then help people sincerely.
All the best for your career.
|
|
|
|
|
Mate I gave you a dead straight answer there. No matter what you try with Javascript people can get around it.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hello, there,
In my current project, I am dealing with table with many many columns. I need to make a table with first several columns fixed. It is like the table in Excel with locked columns. Only the columns after the fixed columns can be scrolled horizontally. It seems very difficult to implement. I could not figure it out.
I am thinking to put two tables together and put them in a div. But it seems difficult to edit everything in a whole row. Because they are actually 2 rows from two tables.
Is there any link or sample code for this kind of table?
Thank you so much in advance.
|
|
|
|
|
How are you currently implementing this?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Thank you for your reply.
I am thinking put the fixed columns in a seperate datagrid and put two datagrids (or tables) together. But it seems it is quite complex to do it, especially the editing part. Is there any easier way to do this?
Thank you very much.
|
|
|
|