Backbone js is not loading its Validation Function - backbone.js

I am working on simple application where i am creating new window in which i am loading Backbone.js which is not loading its Validation function don't know why.
Backbone.Validation function is there on main Window from which i am creating new detached window.
Main window png describes Validation is there.
New Detached window shows that validation is not there.
Help me with this please.

Related

UI Bootstrap modal window (service) refreshes page while opening

I am using UI bootstrap modal window to show a form which takes data from a controller and passes on to modal window. But when window pops up, the controller is getting called and all the service calls are being made again, eventually reloading the page.
Can someone help on how to prevent this reloading? Basically activate() function is called again after the modal window is popped up.
Thanks,
-/Sammi
P.S. I am newbie to angular. Please help.
I actually fixed it. Now I created a new directive from Modal window and passed the controller instance to it.
Thanks,
-/Sammi

Opening a Browser window popup in ExtJS 5 MVC application

I am working on an application in which we open all the views in a tabPanel, it was pretty simple to do that.
Now we got a new requirement where we have to open the view in Browser popup window so that it can be dragged to a secondary monitor. Ext.Window will not work.
we have a single page application and not sure how i can open a view in separate browser window.
i have tried the following, but then no JS events works on the new window:
var OpenWindow = window.open('', windowName, 'width=330,height=200,resizable=0');
OpenWindow.document.body.appendChild(divObj);//divObj is a div object in which i rendered the extjs view.
it open the popup but non of the style or js is working.
please help or point some example where it is accomplished.
Thanks in advance.
When opening a new window it doesn't have any information about ExtJS at all. you will need to include extjs into the new windows html. The best way to do this is to create a new popoup index file or page to be called. so say you are using routers properly in extjs say you have a site called http://testsite.com
Then you can in your window being opened create the elements in your current application to load when calling testsite.com/#popup then you just place it into your window.open. If you are managing your calls with something like PHP and using a framework for routing you can set it up the same way and have your javascript and extjs to be called from it as well.
var OpenWindow = window.open('http://testsite.com/#popup', windowName, 'width=330,height=200,resizable=0');
Reccomend creating a router like this: Extjs Routing Guide and from there have the component brought into focus on the page and placed that url into your popup if no backend system is used. Creating a new route in a backend link would be the best way to go, but you will still need to call your extjs applications components into your new page as well.

Modal window using jquery in cake php

I am new babies to cakephp.I need to create the modal window using jquery in cakephp.
So can anybody sugggest me step by step process for that.I mean how to include the jquery library file needed for modal window in cakephp.
And where to create the jquery function for modal window to open using div in particular view page.
I look at the cakephp site but not much help.
So I really appreciate for any advice.
Thanks
Sabbu

Creating Own Controller for ExtJS Tab?

In my app I have a project controller and a tree view in my viewport. The treeview displays a list of projects. In the center of my viewport there is a tab panel. When I select I project in my tree view I want to open a specific tab for the current project. That works fine in my project controller.
To clean my code I want to extract this logic in a new ProjectDetails controller which is responsible for the tab opening and my Tabs form. What will be the right way to do that?
I would create a new controller and instead of opening the tab I would load this new controller, init it and launch it.
But how to put the project as param to the controller and in which method I should open my tab and assigning events to the components? I thought the init method is too early because the components aren't created...
Thanks and regards!

How to integrate a WPF dialog with a WinForms app when a HelpProvider is being used?

I have an existing WinForms app that I'm augmenting with WPF dialogs, using WindowsInteropHelper to handle the parent/child relationship. I've also wired up the ApplicationCommands.Help command to a handler that does this:
System.Windows.Forms.Help.ShowHelp(null, someUrl, someNavigatorContext);
The parent Form also has a HelpProvider which handles F1 for the rest of the application.
My problem is that hitting F1 when the WPF dialog is open shows the help system opening twice! It appears that after the static ShowHelp call, the HelpProvider for the main Form is getting the event and showing help again.

Resources