|
How you are using it for textarea. For me its working fine.
Apurva Kaushal
|
|
|
|
|
its work fine in
[code]
[/code]
i wants to when click on submit button then it doesn't go blank.
sanjeev
|
|
|
|
|
Put it like this:
<Textarea name="vmsg" cols="50" rows="10"><%=vmsg%></textarea>
Apurva Kaushal
|
|
|
|
|
|
Always welcome..
Apurva Kaushal
|
|
|
|
|
hello apurva
one more question i want to know is possble the maximum length of text area within some characters.
sanjeev
|
|
|
|
|
You can check the length of a textarea using javascript.
Apurva Kaushal
|
|
|
|
|
|
There can be two ways one if you want to check whether the use has entered the character more that required then you can check it in a javascript function and then call that function on clickevent of the button (or whenever you want to check).
Second way can be to restrict the user to exceed the max length of the textarea. Because textarea is not having maxlength property for it what you need to do is to create a javascript function and call it on the keypress event of the textarea and then check whether it is exceeding or not. This can be achieved like this.
Here is the javascript function:
<script language="javascript" type="text/javascript">
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
</script>
And here is how you have to use that function:
<textarea name="aa" onkeypress="return imposeMaxLength(this, 15);" ><textarea>
Apurva Kaushal
|
|
|
|
|
hi where is the problems no work was done
[code]
<%If len(errorMsg) > 0 Then
Response.Write " " & errorMsg & " "
End If
%>
Topic Subject : | | Topic Status |
<%If IsEmpty(vtopstatus) or vtopstatus = 1 Then%>
Break Fast News
Breaking News
Burning News
<%Elseif vtopstatus =2 Then%>
Break Fast News
Breaking News
Burning News
<%Elseif vtopstatus = 3 Then%>
Break Fast News
Breaking News
Burning News
<%End If%>
|
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
function goback()
{
window.location = "brvoice.asp"
}
| ( Please Post Message Within 500 Character ) | | Message : | <textarea>
</td> </tr> </table>
[/code]
<div class="ForumSig">sanjeev</div> |
|
|
|
|
|
What is happening? The code is simply not working or are you getting any error? This code will not allow the user to enter more than 15 characters in the textarea. Is it not happening in you page?
idsanjeevjha wrote: <textarea> </blockquote>
Here you have to replace 15 with 500 because in your case user should be able to enter upto 500 characters.
<div class="ForumSig">Apurva Kaushal</div>
|
|
|
|
|
thanks
my mistack is surprizing me like mad i am not close the text area
error is
sanjeev
|
|
|
|
|
Happen some time..
Apurva Kaushal
|
|
|
|
|
Hi All,
I'm creating a webpage, in that it wont reload the image again and again it is possible.
like all my page have header and footer images.
if i go from page 1 to page 2, the already download image should be used.
instead of getting new image....
same for CSS also
plz help me out
With Regards
Amjath
|
|
|
|
|
If you want an area to remain static, you need to put it in a frame. The downside is, your page URL will not change and your pages will not be bookmarkable.
Having said that, I'd expect the images and the CSS to be coming from your cache in any case.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i think some way is there to say always pick from cache,
if not found in cache then only it should get from the serevr....
|
|
|
|
|
I have a website with a popup full screen window. In a normal IE window, if an image loads that's bigger than the screen, IE resizes it and gives me an icon to resize and show scroll bars. My fullscreen popup is not doing that, what can I do to make it ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Works for me (on IE6...)
Are you specifying the image URL directly, or are you perhaps loading a page with an <img> tag? 'Cause, the latter won't do the resizing thing (of course, nothing's stopping you from linking to the image directly from the image).
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
Ah... See, I am not just showing an image, it's full screen, so I am also showing a 'close' link and an img tag, for people who don't know how to close the window. I see the point of difference now. If I want to go fullscreen, and therefore to show a way to close the window, I'm basically hosed, right ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: If I want to go fullscreen, and therefore to show a way to close the window, I'm basically hosed, right ?
Well, no. You just aren't gonna get the default little "maximize" button floating over the image. Personally, i think that UI sucks anyway.
If you want a good way of letting them blow up the image, either overlay a set of zoom controls when they move the mouse over it (fancy-glitzy-fiddly-web2.0ish)
...or just take the easy way out and make clicking the image toggle between scaled and full-sized (presumably you know or can know the actual size of the image, but even if you can't an img tag will automatically display it full-sized in the absence of any specified width and height (attributes or styles) - so use that to your advantage). Throw in a title="click to enlarge" and you'll have a spiffy new Web 1.57-ish UI for zooming your image. And, just maybe, some undesirable hotlinks from porn search engines.
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
*grin* the issue is, I am going full screen, so the image may or may not fit into that area. As it stands, they have clicked a thumbnail and got a full screen image. I think my best bet is to resize my images to always fit in our target resolution ( 1024x768, the resolution of wussies )
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hmm...
So you're not already scaling the image and worried users might need to see more detail? You're just trying to get the image to "fit"?
If you are able to depend on a bit of JS, you can let the browser scale by picking whichever dimension fits... worst (width if clientWidth-imgWidth < clientHeight-imgHeight, else height) and specifying just that dimension as an attribute on the img tag (most browsers seem to understand that scaling proportionally is a good thing).
Alternately, if you can spare the server horsepower, you can use a bit of script to re-write the img src as the window loads, specifying the available space as query params and letting the server scale to exact dimensions. This looks great, since you can use high-quality scaling algorithm and fill whatever size of window you need. For obvious reasons, it does tend to be slower (although you can cache the most common dimensions). And, of course, you need to have a handler for image requests where otherwise you might get away with letting IIS serve them up raw. YMMV.
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
Yeah, the idea of having a httphandler that servers the images had occured to me. We have a bit of js flying around, I may go with that option - thanks.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Response.Write " "
Whats wrong in this code,if asp with JAvasript is using
|
|
|
|
|
s4_sabahatf wrote: Response.Write " "
Err, it's completely pointless?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|