I'm using 2.x. I ran the update after I downloaded the package a few
months ago. Offhand I don't know the specific patch level.
The basic capability starts with a dialog that allows the user to
search. The application_controller() calls the
systemselection_controller() which provides the dialog, responds to
the form submission, and changes the window.location with respective
parameters. On the appropriate history event the
application_controller() then calls the systemselection_controller()
to perform the search and display results.
jQuery.Controller.extend('applicationController',
/* @Static */
{
onDocument: true
},
'history.index subscribe': function() {
window.location = '#application/systemsearch';
},
'history.application.systemsearch subscribe':
function(eventMsg,eventVals) {
if(!this.isAppSetup) { this.setup(); }
if(!$("#systemselection").length) {
$('#application').append('<div id="systemselection"
title="System Selection"></div>');
$('#systemselection').systemselection_controller();
} else { $("#systemselection").dialog('destroy'); }
$('#systemselection').html(this.view('systemselection/init'));
$('#systemselection').dialog({draggable: false, resizable: false,
closeOnEscape: false});
},
'history.application.systemselection subscribe':
function(eventMsg,eventVals) {
if(!this.isAppSetup) { this.setup(); }
if(!$("#systemselection").length) {
$('#application').append('<div id="systemselection"
title="System Selection"></div>');
$('#systemselection').systemselection_controller();
}
$('#systemselection').dialog('destroy');
$('#systemselection').controller().systemsearch(eventVals);
}
});
On Sep 24, 10:10 am, Justin Meyer <
justinbme...@gmail.com> wrote:
> Which version? Can you share some sample code?
>
> Sent from my iPhone
>
> On Sep 24, 2010, at 8:36 AM, frog3 <
falconluv...@gmail.com> wrote:
>
>
>
> > I've implemented controller/history in my application. I have one
> > document controller [onDocument: true] that handles all history
> > events, delegating action as appropriate to element controllers. What
> > I've come to find is that history works fine on my machine, whether
> > FireFox or IE 7. Yet on other machines using IE 7 the hash will change
> > but the content will not update unless a refresh is forced. In IE 8 it
> > only seems to work if in compatibility view. The forum here has a few
> > posts regarding a problem like this but no details regarding the cause
> > or solution.
>
> > --
> > You received this message because you are subscribed to the Google Groups "JavaScriptMVC" group.
> > To post to this group, send email to
javasc...@googlegroups.com.
> > To unsubscribe from this group, send email to
javascriptmv...@googlegroups.com.
> > For more options, visit this group athttp://
groups.google.com/group/javascriptmvc?hl=en.- Hide quoted text -