|
|
You'll need to use Flash to urgently access your webcam.
|
|
|
|
|
hi
i have a form which contain three iframe like:-iframe1, iframe2 & iframe3.
i am click on iframe1 one content and want to get iframe2. how can i do this using javascript.
|
|
|
|
|
Hi. I'm creating a web site that requiring the user to enter some information and I want to put a ErrorProvider like guide in the text box of my website so that I wont get null input into my database.
Usually, I can do this in the Window form by just using the validation in the text box, but it when I tried it into the web form the code won't work. Can you give some alternative code in the web form?
by the way, I'm using a the VS 2008 web development.
Thanks in advance.
|
|
|
|
|
|
on hovering a link or menu i want to retrieve data from database related to that link and display the details in a div control. which ajax control that i want to use to implement this. urgent.
thanks
|
|
|
|
|
I remember seeing an article in CodeProject that emulates Google Suggest. But guess what i'm too lazy to search for it .
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
No one cares if it is urgent. Read the forum guidelines.
Blog link to be reinstated at a later date.
|
|
|
|
|
leckey wrote: Read the forum guidelines.
Chris is missing the guidelines at the top of this forum.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I suggest you to use JavaScript AJAX.
Fire a JavaScript function on mouse over. Make a server call using Get/Post method and fetch response from Server.
Display the Details in Div tag. You need not to use any control for implementation.
function ajax_CreateXMLHttpRequest()
{
var xmlHttpRequest = null;
if (window.XMLHttpRequest)
{
xmlHttpRequest = new XMLHttpRequest();
}
else if (typeof ActiveXObject != "undefined")
{
xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlHttpRequest;
}
function ajax_MakeAnAJAXGetCall()
{
var dtDate = new Date();
var tURL= "";
tURL = "functions_AJAX.aspx?<argumentlist>"
ajaxObj = ajax_CreateXMLHttpRequest();
if (ajaxObj != null)
{
var URL = tURL;
ajaxObj.open("GET", URL, true);
ajaxObj.onreadystatechange = ajax_CallBack;
ajaxObj.send(null);
}
return false;
}
function ajax_CallBack()
{
if (ajaxObj.readyState == 4)
{
if (ajaxObj.status == 200)
{
var ajaxResponse = ajaxObj.responseText;
}
}
}
</argumentlist>
Make a call to function ajax_MakeAnAJAXGetCall on mouse over event.
|
|
|
|
|
I have a page that processes xml files. After processing, it then should move the files to a different location - thats not working now.
It uploads the files fine, processes them - but doesn't move. The message says: "Unable to find the specified file".
The code I am using is:
file.MoveTo(@"D:\MyArchive\badfiles\" + file.Name);
Here file is FileInfo object. The directory where I am trying to move it is a shared location, and the user have write permission.
Any idea why its failing?
Thanks.
Ekjon
|
|
|
|
|
Ekjon wrote: Any idea why its failing?
No. You hold all the cards in this game. You have access to the machine - verify that the destination path is valid, that the source file hasn't been processed and moved by a different thread, and that you aren't holding on to handles to the file from previous operations.
Then write a tiny program that does only what is necessary to reproduce the problem. Chances are, it'll work, and you can expand it to the point where it does all you need (or it breaks, thereby making it obvious to you where the problem lies...); if not, post the code and someone here may be able to help you.
Oh, and when you do, ask in the C# or .NET forum. This one is for web dev questions.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hello Shog,
Thanks for your response. It is in fact a web application and the file needs to be processed then moved from the user input from the web. So I posted it here.
The paths are valid, definitely - otherwise I wouldn't ask for help.
Now - the prcessing and moving by a different thread? Not sure about that. I am using an XmlReader and after first round of reading - closing the reader. So when I read it next time, that works fine - but only doesn't move. I used same type of code from a Windows app, and moved the files fine.
Anyway, let me know if you can think of any other issue.
Thanks again.
|
|
|
|
|
Ekjon wrote: So when I read it next time, that works fine - but only doesn't move.
My best guess then, is that you have read access to the XML file but not delete access. Again, reduce your code until it works - eliminate any code reading from the file, any code that might be writing to the file, leaving only the move. If it works, then you have something holding onto a handle under normal operation. Otherwise, it's probably a permissions issue.
---- 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, I found it.
modified on Monday, October 27, 2008 5:23 PM
|
|
|
|
|
Hi,
I have an image, and I am trying to add a border around my image. The distance from the image to the border must be 5 pixels. My code is not working, not sure why.
Here is my HTML:
<img src="Images/sub_category_1.jpg" class="grey" />
Here is my style:
img .grey
{
padding: 5px; margin: 5px;
border: solid 1px #000;
}
What am I doing wrong?
Thanks
Brendan
|
|
|
|
|
I guess you should use
.grey
{
padding: 5px; margin: 5px;
border: solid 1px #000;
}
<img src="Images/sub_category_1.jpg" class="grey" />
|
|
|
|
|
This[^] should help.
Cheers,
Drew.
|
|
|
|
|
Hi,
I am working on a custom rich-text editor using contentEditable. When the return key is pressed I am preventing the default action, and inserting a line break tag to ensure that the browser doesn't create a paragraph element.
In IE I have this working great, but in Chrome, Safari, and FF the selection doesn't appear to update correctly. The break tag is inserted, but the input caret does not move. For test purposes I have replaced the break with a horizontal rule. Upon pressing enter, the caret should move after the HR element, but it doesn't.
<html>
<head>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
window.onload = function(event) {
document.observe('keydown', doc_keydown.bindAsEventListener(document));
}
function charCode(event) {
return typeof event.which !== 'undefined' ? event.which : event.keyCode;
}
function doc_keydown(event) {
var range;
var code = charCode(event);
switch (code) {
case 13: // return
if (document.selection) { // IE
range = document.selection.createRange();
range.pasteHTML("<hr />");
range.moveEnd("character", 1);
range.moveStart("character", 1);
range.collapse(false);
}
else { // FF, Google Chrome
range = window.getSelection().getRangeAt(0);
range.deleteContents();
var newNode = new Element("hr");
range.insertNode(newNode);
range.setStartAfter(newNode); // Doesn't work from here down.
range.setEndAfter(newNode);
range.collapse(false);
}
break;
default:
return true;
}
event.stop();
return false;
}</script>
</head>
<body>
<div contentEditable="true" style="border: solid 2px black; padding: 6px">
Some initial text - Edit Me!
</div>
</body>
</html>
Many thanks,
Lea Hayes
<div class="ForumMod">modified on Friday, October 24, 2008 6:39 AM</div>
|
|
|
|
|
Hello
I have worked on the same error earlier, but unfortunatly there is no way you can disable the keypress event in Firefox, Safari, etc. You can capture KeyPress events but they can only be controlled in IE.
I am sorry, i cannot help you on this topic.
|
|
|
|
|
I want to validate my conent with client side javascirpt regular expressions. words should not occur more than one time. ex ("one two one") here one comes more than one times, how to validate this using client side javascirpt regular expressions?
and another, "one" should not come after the term "only".ex "only one",
how to validate this using client side javascirpt regular expressions?
Known is a drop , Unknown is an Ocean
|
|
|
|
|
|
That is a good site. Don't forget about the Expresso tool found on this site.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Please give me the details about delegates and specify how to use in C# Console programs.
|
|
|
|
|
Please refer to
http://www.codeproject.com/KB/cs/Delegates_in_C_.aspx
In MSDN Refer
http://msdn.microsoft.com/en-us/library/ms173171(VS.80).aspx
|
|
|
|