|
Jeez, here I am working my fingers to the bone, nose to the grindstone, etc., etc., and you expect me to READ THE CODE???
And whaddaya mean Context is king? I didn't vote for him!
My other signature is witty and insightful.
|
|
|
|
|
Hi,
I have a simple validation of drop down list, making sure the user has selected either "yes" or "no". There are 3 of these dropdownlist, with values of "yes" and "no".
Based on if yes is answered, user needs to fill in two text boxes.
All this validation is performed using javascript.
while this works fine when test, now that the site is live, having some issues, where in the user is able to submit the form without filling in the dropdownlist!! I am trying to debug this, except it is consistently working for me. Totally lost. Any ideas please???
|
|
|
|
|
Need HTML codes as well as JS validation code to provide solution
|
|
|
|
|
What happens if the user has Javascript disabled, by using something like NoScript or browser preferences?
|
|
|
|
|
Good answer! 5+
Nowadays everybody seems to take javascript availability in a browser for granted. If base functionality of ones website does rely on javascript one has to make sure to check for it since, as you have already mentioned, the user might have disabled it.
Cheers!
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
I have tried that option, dis-abled scripting on the browser. the web site is not funcational at all. it is just froze.
|
|
|
|
|
vanikanc wrote: the web site is not funcational at all. it is just froze
That could depend on the browser being used.
|
|
|
|
|
Is there a way to escape the execution of javascript? Using IE7.0 and having scripting enabled?
Only thing new with this is this application is set up on a bran new server, which has https enabled. Do we need something set up on server for javascript to execute properly?
modified 30-Sep-11 12:49pm.
|
|
|
|
|
hi,
You can use both client as well as server side validation to perform your task..
First check user allowed javascript or not if yes then don't need to worry else you need to perform server side validation...........
Thanks & Regards
Arya1685
“You are not only responsible for what you say, but also for what you do not say”
|
|
|
|
|
The reason is you didnt use return statement. a simple example for your understanding.
<SCRIPT>
function Validate()
{
if validation failed
return false;
else return true;
}
</SCRIPT>
<form >
<input name=a>
<input name=b>
<input name='submit' type='submit' onClick="return Validate()">
</form>
|
|
|
|
|
Can anyone let me know why do we generally see a message which says: "IE needs to resend the info you've previously submitted. Retry Cancel"
How can I prevent IE from showing this message? I am using javascript code
i.e., window.location.reload(true) to reload an existing web form.
|
|
|
|
|
Hi,
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/ca14147e-1e50-4ade-a647-5b0721f01470/
|
|
|
|
|
I believe you are using back button which is with the web browser. This is not a Internet Explorer problem. If you wish user to go back to previous page then dont use web-browsers back button cause data will be lost... provide smarter solution to go back
|
|
|
|
|
Hi,
Some users prefer to use the browser's back button
|
|
|
|
|
Hello I have regex expression that is work in asp.net for finding link
SET objRegex = NEW regexp
objRegex.Pattern = "(\b(?:(?:https?|ftp|file)://|www\.|ftp\.)(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[A-Z0-9+&@#/%=~_|$]))"
Now i want to use this expression in javascript. how can i write ?
I tried with this but not working.
var re = new RegExp(/\b(/?:(/?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[A-Z0-9+&@#/%=~_|$])/g);
Is there any Converter available for this?
“Before you start some work, always ask yourself three questions - Why am I doing it, What the results might be and Will I be successful. Only when you think deeply and find satisfactory answers to these questions, go ahead.”
-Chanakya
Thanks
Adit
|
|
|
|
|
The forward slashes are causing your problems because they're telling the interpreter that it's the end of the expression since they're not escaped. Converting your expression from the original into the javascript should only require a copy/paste and manually escaping the pattern's forward slashes. Ie, (?:https?|ftp|file)://|www\.|ftp\.) becomes (?:https?|ftp|file):\/\/|www\.|ftp\.)
Here's a Regex reference for javascript that can help you convert your expression:
http://www.w3schools.com/jsref/jsref_obj_regexp.asp[^]
Also, there's a regular expression forum on here:
http://www.codeproject.com/Forums/1580841/Regular-Expressions.aspx[^]
They will probably give you more help about regex syntax problems than the javascript forum.
|
|
|
|
|
Good Day All
i am creating Textboxes at Runtime with something like this
Dim cnt As New TextBox
cnt.ID = "cont_" & x
If multiline Then
cnt.TextMode = TextBoxMode.MultiLine
End If
These are dynamically created fields. so what i want to do is to use this following JQuery on this textbox
$(document).ready(function()
{
$("#contentbox").keyup(function()
{
var box=$(this).val();
var main = box.length *100;
var value= (main / 145);
var count= 145 - box.length;
if(box.length <= 145)
{
$('#count').html(count);
$('#bar').animate({"width": value+'%',}, 1);
}
return false;
});
});
and what this function does it count the number of Characters that have been typed in a Textbox. so i am displaying the remaining characters. So that is working fine on my example because the Element is known at Early Binding. Now my question is what if the textbox is created dynamically ?
contentbox
this is the name of the Textbox in my example.
hOW do we use a J Query in Dynamically created Textbox.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
You can use something like this:
$("#" + "<%= cnt.ClientID %>").keyup(function() { });
You will have to ensure you have access to "cnt" from that scope. Or store the value in ClientID in a variable that you then use on the page.
Somebody in an online forum wrote: INTJs never really joke. They make a point. The joke is just a gift wrapper.
|
|
|
|
|
Instead of ID get the textbox using Class.
give the class of textbox for example let i give a class name 'contentbox'
cnt.cssClass = "contentbox"
and in javascript
$(".contentbox").keyup(function()
|
|
|
|
|
Thank you very much , that did the Trick
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Thanks
|
|
|
|
|
how to write the time set image code.......
|
|
|
|
|
Hi,
Can someone please explain me what those lines are doing?
document.getElementById("form1").target="FormName";
document.getElementById("txtLabel").value="SendingFile";
document.getElementById("form1").submit();
document.getElementById("form1").target="_self";
document.getElementById("txtLabel").value="";
iframeAttach.document.getElementById("txtAttached").value="";
Thanks
|
|
|
|
|
It is using the getElementById()[^] method to access several element on the HTML page and setting their properties and calling their methods.
0100000101101110011001000111001011101001
|
|
|
|
|
Hi all,
I just want to know that is Google API v2 is Free or not?
Where we can use this API as a free and as a paid service?
Maulik Dusara
Sr. Sofware Engineer
I love it when a plan comes together
|
|
|
|