js file loaded without being in the view

General discussion forum for the Zend Server

js file loaded without being in the view

Postby libi4647 on Wed Jan 03, 2018 7:46 pm

Hello guys.
I have this problem.
I need to put some validation in my forms, things like if the date is correct, numbers are correct or bigger and other things. I have successfully made this happend doing in the PHTML file in the view.
but this new application do not use view to show the data to the user.
What I need is to learn how to load JS file without being in the view. someplace like the controller or in the form.
Can someone please help me,
thanks
libi4647
 
Posts: 1
Joined: Wed Jan 03, 2018 7:37 pm

Re: js file loaded without being in the view

Postby andr8558 on Thu Jan 11, 2018 7:41 pm

I believe you would get a better response if you asked this on StackOverflow. Unfortunately the forums over here seem pretty dead these days ...
andr8558
 
Posts: 23
Joined: Thu Jan 11, 2018 5:45 pm

Re: js file loaded without being in the view

Postby alex8643 on Thu Jan 18, 2018 11:35 am

Nice Post Thanks For Sharing!
alex8643
 
Posts: 1
Joined: Thu Jan 18, 2018 11:33 am


Return to Zend Server

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron