deisonferley / fullcalendar-asp-net

Automatically exported from code.google.com/p/fullcalendar-asp-net
1 stars 0 forks source link

I want to allow special characters to be entered. #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I changed calendarscript.js to allow special characters. I changed both 
alert messages in calendarscript.js where the checkForSpecialChars() is called.

(checkForSpecialChars(eventToUpdate.description)) {
  alert("Enter characters: A to Z, a to z, 0 to 9, spaces");
2. I'm still receiving the original alert not the alerts I entered. I can't 
find any other location where this alert is referenced.

3. Thanks

What is the expected output? What do you see instead?
I want the ability to add these special characters: !-.&

What version of the product are you using? On what operating system?
1.1 win8

Is there a newer version?

Please provide any additional information below.

Original issue reported on code.google.com by hitg...@gmail.com on 18 Oct 2013 at 8:37

GoogleCodeExporter commented 8 years ago
Resolved...I think code behind was cached and my changes were not being 
reflected.

Original comment by hitg...@gmail.com on 30 Oct 2013 at 9:16

GoogleCodeExporter commented 8 years ago
Resolved...I think code behind was cached and my changes were not being 
reflected.

Original comment by hitg...@gmail.com on 30 Oct 2013 at 9:16

GoogleCodeExporter commented 8 years ago
I've done the following and it still does not save special characters to the 
database.

In calendarscript.js update line 132 to:
    var pattern = /[^A-Za-z0-9,()\. '’-]/;

In Default.aspx.cs update line 112 to:

Please advise

Original comment by area51...@gmail.com on 12 Jan 2015 at 8:35

GoogleCodeExporter commented 8 years ago
Seems I made a slight error in my code, 

Here is the proper fix, 

In calendarscript.js update line 132 to:
    var pattern = /[^A-Za-z0-9,()\. '’-]/;

In Default.aspx.cs update line 112 to:
    return Regex.IsMatch(str, @"^[a-zA-Z0-9,()\. '’-]*$");

Also updated the description max length by doing the following TSQL query:
ALTER TABLE [event] ALTER COLUMN [description] VARCHAR(500)

This will allow as intended.

Original comment by area51...@gmail.com on 12 Jan 2015 at 10:17