Home  »  Travel Tracker JS Removal Help Page

Travel Tracker JS Removal Help Page

Tags:  

Please find the highlighted javascript snippets (red color) and replace it with the equivalent new snippets with out javascript (green color) below.

1. Make Travel Request - Travel_Request (Form)

onadd - onload

old snippet
input.Add_New_Travelling_Purpose = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Travelling_Purposes','_blank','resizable=0,width=405,height= 140,left=' + ((window.screen.width - 405) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Travelling Purpose</a></div>";
input.Add_New_Country = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Countries','_blank','resizable=0,width=375,height= 140,left=' + ((window.screen.width - 375) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Country</a></div>";

new snippet
input.Add_New_Travelling_Purpose = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Travelling_Purposes?zc_LoadIn=dialog&zc_NextUrl=Form:Travel_Request'>Add New Travelling Purpose</a></div>");
input.Add_New_Country = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Countries?zc_LoadIn=dialog&zc_NextUrl=Form:Travel_Request'>Add New Country</a></div>");

onedit - onload
old snippet
input.Add_New_Travelling_Purpose = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Travelling_Purposes','_blank','resizable=0,width=405,height= 140,left=' + ((window.screen.width - 405) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Travelling Purpose</a></div>";
input.Add_New_Country = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Countries','_blank','resizable=0,width=375,height= 140,left=' + ((window.screen.width - 375) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Country</a></div>";

new snippet
input.Add_New_Travelling_Purpose = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Travelling_Purposes?zc_LoadIn=dialog&zc_NextUrl=Form:Travel_Request'>Add New Travelling Purpose</a></div>");
input.Add_New_Country = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Countries?zc_LoadIn=dialog&zc_NextUrl=Form:Travel_Request'>Add New Country</a></div>");

2. Make Visa Request - Visa_Processing (Form)

onadd - onload
old snippet
input.Add_New_Country = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Countries','_blank','resizable=0,width=375,height= 140,left=' + ((window.screen.width - 375) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Country</a></div>";

new snippet
input.Add_New_Country = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Countries?zc_LoadIn=dialog&zc_NextUrl=Form:Visa_Processing'>Add New Country</a></div>");

old snippet
input.Title = (((("<font color='#003300'><b>Hi " + zoho.loginuser + ", please fill your  <a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/" + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Passport_Details','_blank','resizable=0,width=510,height= 470,left=' + ((window.screen.width - 510) / 2) + ',top='+   ((window.screen.height - 470) / 2)+'')\">Passport Details</a>  first then proceed to fill your travel details.</b></font>";

new snippet
input.Title = "<font color='#003300'><b>Hi " + zoho.loginuser + ", please fill your  <a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Passport_Details?zc_LoadIn=dialog&zc_NextUrl=Form:Visa_Processing'>Passport Details</a>  first then proceed to fill your travel details.</b></font>";

onedit - onload
old snippet
input.Add_New_Country = ((((("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='javascript:void(0);' onclick=\"window.open('/") + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/Countries','_blank','resizable=0,width=375,height= 140,left=' + ((window.screen.width - 375) / 2) + ',top='+   ((window.screen.height - 140) / 2)+'')\">Add New Country</a></div>";

new snippet
input.Add_New_Country = ("<div style='width: 57%;font-size:12px;' align='right'><a style='color:#0000FF;text-decoration:underline;font-weight:bold;' href='#Form:Countries?zc_LoadIn=dialog&zc_NextUrl=Form:Visa_Processing'>Add New Country</a></div>");

3. Approve Request - Approve_Request (Form)

Cancel -  OnClick
old snippet
openUrl("javascript:window.close();", "same window");

new snippet
openUrl("#Script:page.back", "same window");

4. Close Request - Close_Request (Form)

Close - OnClick
old snippet
openUrl("javascript:window.location.reload();", "same window");

new snippet
openUrl("#Script:page.back", "same window");

Cancel - OnClick
old snippet
openUrl("javascript:window.close();", "same window");

new snippet
openUrl("#Script:page.back", "same window");

5. Reject Requeset - Reject_Request (Form)

Reject - OnClick
old snippet
openUrl("javascript:window.location.reload();", "same window", "height=100,width=100");

new snippet
openUrl("#Script:page.back", "same window");

Cancel - OnClick
old snippet
openUrl("javascript:window.close();", "same window");

new snippet
openUrl("#Script:page.back", "same window");

In the Below Forms you just need to remove the highlighted red color snippets. There is no need to write any new scripts.

6. Fill Passport Info - Passport_Detatils (Form)

onadd - onsuccess
openUrl("javascript:window.close();window.opener.location.reload();", "same window");

7. Country Name - Countries (Form)

onadd - onsuccess
openUrl("javascript:window.close();window.opener.location.href=window.opener.location+\"?Country=" + input.Country_Name + "\";", "same window");

8. Travelling Purposes - Travelling_Purposes (Form)

onadd - onsuccess
openUrl("javascript:window.close();window.opener.location.reload();", "same window");

Post a comment

Your Name or E-mail ID (mandatory)

Note: Your comment will be published after approval of the owner.





 RSS of this page