|
No you have to use Javascript for that...
|
|
|
|
|
Yeah, well his validation data may be on the server, in which case AJAX will definitely help him.
What did you think AJAX ran on the client? Please don't confuse the already clueless...
|
|
|
|
|
My mistake i think he want to make client side validation....
|
|
|
|
|
Michel Godfroid wrote: What did you think AJAX ran on the client?
The XmlHttpRequest object (which is often used by Ajax, but not strictly
reqired[an iframe is just as useful]) runs on the client and the server
doesn't require any special coding nesccessarily. It is entirely
possible to make an "ajax" request to www.msn.com and recieve a
response.
Michel Godfroid wrote: Please don't confuse the already clueless...
Sorry to hear about your confusion.
Hoping you get a clue soon ...
|
|
|
|
|
Civic06 wrote: Need to validate some textboxes on the web form after tab out of each textbox.
Use the onblur of the textbox to initiate ajax request.
|
|
|
|
|
Civic06 wrote: Need to validate some textboxes on the web form after tab out of each textbox
Dont understood why you need ajax? Can you explain your requirement a bit.
Better if you use ASP.NET validators that will validate at client side and server side as well
|
|
|
|
|
Brij wrote: Dont understood why you need ajax?
It is a requirement imposed by the title of this thread
|
|
|
|
|
Yes I read But I dont think that its a good idea to have ajax call on server. There must be some other ways also
|
|
|
|
|
Yes of course just as you have said ...
Brij wrote:Better if you use ASP.NET validators that will validate at client side and server side as well
Yes validate before posting on client then
validate on server it must be this way.
|
|
|
|
|
Brij wrote: Dont understood why you need ajax?
It may be because he wants to validate something from server side data. As For Example : When he put User name in textbox and move focus out from the text box, he want to check that, the User name is already exist on DB or Not. This is very common scenarios for any registration form.
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
hi, iam using asp.net with c#
iam having images in page .when i mouseover on any of the image, the image size should be zoom and display in the center of the asp.net page in the same window
can you give example which helps me
|
|
|
|
|
Hi,
Do u prefer doing it using javascript?
Tej Aj,
http://opexsolution.com/forum/
|
|
|
|
|
yes i want to use javascript with asp.net with c#
|
|
|
|
|
Why the same Qs gain and again. It wont help at all.
Have a look
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><script type="text/javascript">
dg=document.getElementById;
</script type="text/javascript">
</head><body>
<a href="http://www.codeproject.com">
<img src="http://www.codeproject.com/favicon.ico" alt="img goes here" width="50px" height="50px"
onmouseover="dg('displayImg').src=this.src;dg('displayCenter').style.visibility='visible'"
onmouseout="dg('displayCenter').style.visibility='hidden'">
</a>
<a href="http://www.yahoo.com">
<img src="http://www.yahoo.com/favicon.ico" alt="img goes here" width="50px" height="50px"
onmouseover="dg('displayImg').src=this.src;dg('displayCenter').style.visibility='visible'"
onmouseout="dg('displayCenter').style.visibility='hidden'">
</a>
<div id='displayCenter' style="position:absolute;top:200px;left:200px;visibility:hidden;"><img src=""
id='displayImg' width='300px' height='300px'></div>
</body></html>
modified on Monday, April 26, 2010 1:30 PM
|
|
|
|
|
Thanks for Code Project Team ........
This Logic Helps A Lot
|
|
|
|
|
developerit wrote: Thanks for Code Project Team ........
Yes, very much so.
developerit wrote: This Logic Helps A Lot
You are most welcome.
|
|
|
|
|
Hi charan,
Check this post for your issue if it is helpful.
http://www.opexsolution.com/forum/viewtopic.php?f=15&t=32
|
|
|
|
|
Hi,
I am using Filezilla Software for uploading web pages. Now I have domain name and their username and password. That uses by me and my friend. Now we want such method that any one changes these ftp username or password from hosting email will b send.
Is that possible through ASP.NET? If yes then How can I get the details?
Is there any other method for that?
Thanks
sjs
|
|
|
|
|
Although it is possible to get a notification when a password is changed it would need to be implemented by the hosting provide, not you.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I try to use it.
I know how to set up, how to initialize,etc.
but I encountered a strange problem.
I can't drag the selection of the code of i writed in the html file.
In the another html file,I copy code from Jcrop's demo, the drag is ok.
the code of I writed and the code of copied are same, I checked several times.
And the resize box Of the Crop selection is not display.
the "Jcrop.css" is referenced right.
Very strange. Why?
Here is the code:
<br />
<HTML><br />
<HEAD><br />
<br />
<TITLE> New Document </TITLE><br />
<br />
<br />
<script type="text/javascript" src="js/jquery.min.js"></script><br />
<script type="text/javascript" src="js/jquery.Jcrop.js"></script><br />
<link type="text/css" href="css/jquery.Jcrop.css" /><br />
<br />
<script type="text/javascript"><br />
<br />
jQuery(window).load(function() {<br />
<br />
var api = $.Jcrop('#cropbox', {<br />
onChange: showPreview,<br />
onSelect: showPreview,<br />
<br />
<br />
setSelect: [0, 0, 120, 120],<br />
<br />
aspectRatio: 1<br />
});<br />
<br />
<br />
api.setOptions({ minSize: [40, 40], maxSize: [120, 120] });<br />
});<br />
<br />
function showPreview(coords) {<br />
<br />
if (parseInt(coords.w) > 0) {<br />
var rx = 100 / coords.w;<br />
var ry = 100 / coords.h;<br />
var realHeight = $("#cropbox").attr("height");<br />
<br />
jQuery('#preview').css({<br />
width: Math.round(rx * 500) + 'px',<br />
height: Math.round(ry * realHeight) + 'px',<br />
marginLeft: '-' + Math.round(rx * coords.x) + 'px',<br />
marginTop: '-' + Math.round(ry * coords.y) + 'px'<br />
});<br />
}<br />
<br />
<br />
}<br />
<br />
function initCut(){<br />
<br />
<br />
<br />
}<br />
</script><br />
</HEAD><br />
<br />
<BODY><br />
<input id="btnBegin" type="button" value="Begin Crop" onclick="initCut();"/><br />
<br />
<div class="article" style="border:thin #FF0000 solid;"><br />
<br />
<div style=" float:left; border:thin; background-color:#FF0000;"><br />
<img id="cropbox" src="images/jane.jpg" style=" width:500px;" /><br />
</div><br />
<br />
<div style=" width:120px; height:120px; overflow:hidden; float:left; margin-left:10px;"><br />
<img id="preview" src="images/jane.jpg" /><br />
</div><br />
<br />
<div style=" clear:both"></div><br />
</div><br />
<br />
</BODY><br />
</HTML><br />
|
|
|
|
|
Following code works for me.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="jquery-1.4.2.js" > </script>
<script type="text/javascript" src="jquery.Jcrop.min.js"></script>
<link href="jquery.Jcrop.css" type="text/css" />
<link href="demos.css" type="text/css" />
</head>
<body>
<div id="outer">
<div class="jcExample">
<div class="article">
<h1>Jcrop - Aspect ratio lock w/ preview pane</h1>
<!-- This is the image we're attaching Jcrop to -->
<table>
<tr>
<td>
<img src="Water_lilies.jpg" id="cropbox" />
</td>
<td>
<div style="width:100px;height:100px;overflow:hidden;">
<img src="Water_lilies.jpg" id="preview" />
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
<script type="text/javascript">
// Remember to invoke within jQuery(window).load(...)
// If you don't, Jcrop may not initialize properly
//alert("hi");
jQuery(window).load(function(){
jQuery('#cropbox').Jcrop({
onChange: showPreview,
onSelect: showPreview,
aspectRatio: 1
});
});
// Our simple event handler, called from onChange and onSelect
// event handlers, as per the Jcrop invocation above
function showPreview(coords)
{
if (parseInt(coords.w) > 0)
{
var rx = 100 / coords.w;
var ry = 100 / coords.h;
jQuery('#preview').css({
width: Math.round(rx * 500) + 'px',
height: Math.round(ry * 370) + 'px',
marginLeft: '-' + Math.round(rx * coords.x) + 'px',
marginTop: '-' + Math.round(ry * coords.y) + 'px'
});
}
}
</script>
</html>
I had followed your instruction and do some modification.
Hope this will help!
Jinal Desai
|
|
|
|
|
Hi,
I have a requirment which goes as follows:
"all email should uses a txt file template to allow Subject and Body to be specified outside the code"
Any help is appreciated,
Thanks,
|
|
|
|
|