|
Here is a small test for all those hardcore JavaScript programmers. Is it possible to drag'n'drop a text/image element (eg. A or IMG tag) from one (I)FRAME to another (I)FRAME. This is easy & possible with IE's proprietary ondrag events. However the question is, is there a work-around using standard W3C/Firefox onmousedown, onmouseup, etc. events only?
For an example of drag'n'dropping from one FRAME to another (using IE's events) see:
http://www.tardis.ed.ac.uk/~afsweb/dndp/default2.html
You can download all the files at:
http://www.tardis.ed.ac.uk/~afsweb/dndp/dndp.rar
|
|
|
|
|
Have you used Google's personalized homepage? You can drag and drop on that page to move around your modules as ou wish. I've always meant to View Source and see if they used javascript or what...you might check it out and see how they did it...
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
So it's official, Mozilla Firefox cannot and will never be able to do drag'n'drop across (I)FRAMEs - just like MS IE. Drag'n'drop ability is a must for Web Applications that want to be similar to native Windows Applications based on Multiple-Document Interface and letting users drag'n'drop from one child window to another.
|
|
|
|
|
I bet this can happen with AJAX. I haven't devled into the AJAX world yet but I plan too soon. As far as I can tell, AJAX allows desktop-like interfaces in web applications.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
I have a calendar and when i click the week number the whole week should be selected and also when i click the month the whole month should be selected and the month scheduler should come up while the day and the week scheduler greys out.Any one at a time like the google calendar.
|
|
|
|
|
Hi all,
Is there any way to find out which server has responded to the client request out of all the servers in an Application Center cluster.
Awaiting reply
Ramesh.Kanjinghat
|
|
|
|
|
Hi!
I'm calling a personal web service from a c# app and when the web service tries to save a file I get this exception:
'System.Web.Services.Protocols.SoapException' at system.web.services.dll
Additional info: System.Web.Services.Protocols.SoapException: The server can't process the request. ---> System.UnauthorizedAccessException: Access denied to the path.
The path that it tells me actually exists as is. I've tried to move it, change things in web.config (tried the "imperonate" option) but I can't make it work.
I'm actually accessing the web service on localhost and still crashes.
Need help, please.
Thanx in advance for any.
|
|
|
|
|
It sounds like you have a permission issue.
Try giving a write permission to your ASPNET account (or whatever account you're running your web service as) on the folder you want to save the file to.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
|
If you're using Windows as your OS you can open Windows Explorer, right-click on the folder you want to save the file and choose Properties. Go to the Security Tab, and then add ASPNET (or the account running your web service) and give it a Write permission.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
There is no security tab O_o?
|
|
|
|
|
If there's no security tab, under your Windows Explorer > Tools > Folder Options choose View Tab, and untick Use Simple File Sharing.
The Security Tab will then appear.
Hope that helps
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
Yep! It now works.
Thank you!
|
|
|
|
|
Is it possible to simulate text input into a html form using Javascript, and then simulate clicking a button on the form?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
It is possible to simulate text input using Javascript.
You can use setTimeout('functionName()', timeInMillisecond); to introduce a delay in entering the text (call the function to write the text in a letter-by-letter basis, use counter).
To raise a button click event, you can use document.getElementById('buttonId').click();
If what you meant is to move the mouse cursor around then I don't think it can be done.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
Well sorta...but not like you would in SDK...
You could in javascript, concatenate current text with the simulated character...
document.forms.myform.myinput.value+="a"
Something like that...as far as emulating an actual keystroke or sending a WM_KEYDOWN message to the window...I don't think so...
As for your other question...
Yes, Javascript has a click()
Something like:
document.forms.myform.mybutton.click()
This I eblieve fires the onclick handler for the given element
You could also submit a form using:
document.forms.myform.mybutton.submit()
This I believe fires the onsubmit() and sends the FORM to the URL set in the action attribute...
This code isn't tested and may be off (missing objects, etc) but you get the idea...
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Yes, kind of, if the Javascript is in the same page, or in a page on the same website. You can't do it to a page from a different website.
---
b { font-weight: normal; }
|
|
|
|
|
Hello
I have a webservice exposing various methods. I also have a win application (Click-once) that uses the webservice methods.
I would like to prevent any other access to the webservice so no other user\client can invoke the methods. I do not want to manualy check this on the server side but would more like to have a strong name signing between the webservice and the windows application.
Any one can help on this ?
Gilad.
|
|
|
|
|
you can use another web service and web methods for authentication.
now anytime anyone use your web methods you can check authentication.
|
|
|
|
|
Hi
This is my second option. I wouldn't want users that *DO* have authorazation to use the WebService to use it without the specific application that I give them. I want the users to be able to use the webservice ONLY with the special application I provide.
Gilad.
|
|
|
|
|
Hi everyone!
I know that there is a possibility to find out the route from one host to another for outcome pakcets. Is there a possibility to find out the route of income packets? If such possibility exists, please give some ideas how to find out this route.
Thanks.
|
|
|
|
|
Hi all,
Currently i am working with Microsoft Aplication server.
I have two servers devxyx and devabcinstalled with Application center with NLB enabled.
I have created a cluster with these to servers as members where
devxyzis the cluster controller.
The internet name for the cluster is 'testClusterAC'.
I have added web application 'TestWebApp' to this cluster.
Now my problem is that how to access this web site from another system?
What will be the url of the application?
How can i test the load balancing when a request from client reaches the cluster?
awaiting for replies,
Advanced ThanX
Ramesh.Kanjinghat
-- modified at 0:51 Tuesday 27th June, 2006
|
|
|
|
|
Hi,
I have two functions; one is in C# and the other one is in javascipt.
There is a need for me to call the C# function inside the javascipt function.
How can I achieve this? (please give an example using either C# or VB.NET)
|
|
|
|
|
To the best of my knowledge, you cannot call a server side function from client side script (i.e. Javascript).
I think there is only way to achieve this, i.e. use AJAX.
|
|
|
|
|
Not strictly true - put a hidden button on the form (Width="0" NOT Visible="false" cos this will prevent it being rendered), then get the javascript to click the button using document.getElementById('myButton').click();
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|