Displaying 1 result from an estimated 1 matches for "page_title_befor".
Did you mean:
page_title_before
2007 Jun 19
1
javascript_tag replacing whitespaces w/ '%20'
...een
changed then a confirm box will ask if the user wants to have the title
changed. The problem is if the person hits cancel, all white spaces
in the title get replaced w/ ''%20''.
Here''s the code I was using:
<%=javascript_tag( "function confirmSubmit(){ var page_title_before=
''#{u @page.title}'';
var page_title_on_submit =
escape($(''page_title'').value);
if( page_title_before !=
page_title_on_submit ){...