• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxModalContainer/Dialog with JS resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxModalContainer/Dialog with JS resources


  • Subject: Re: AjaxModalContainer/Dialog with JS resources
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 8 Apr 2009 21:20:16 -0700

Any change that AjaxModalDialog would work for you? I am the guilty party there and can assist. I don't do much with the AMC.


Chuck


On Apr 8, 2009, at 9:08 PM, Greg Hulands wrote:

Hi,
Please forgive all these Ajax problems I'm having - this is my first demo app using the framework and somethings aren't just working. I have an AjaxModalContainer that is activated with an action binding to return the contents. The component that is returned has some ERXJavascript elements in there to load the js files for the component. The problem I'm seeing is that those resources are not getting loaded when the content is being set into the div. There is also a bit of inline javascript in there that relies on the js files being loaded that executes, but fails because the files haven't being loaded.


This happens in both safari and firefox so I'm thinking it is something in the app.

Any ideas?

Thanks,
Greg


This is the component:

<wo:ERXJavaScript filename="js/bespin/dojo/dojo.js" framework="app"/>
<wo:ERXJavaScript filename="js/bespin/bespin/editor/embed.js" framework="app"/>


<div id="editor" style="height:600px; width: 800px;">
<wo:str value = "$probe.script"/>
</div>
<div id="changes">
Greg
</div>

<script type="text/javascript">
var _editorComponent;

function pushToHiddenInput() {
document.getElementById("changes").innerHTML = _editorComponent.getContent();
}
// Loads and configures the objects that the editor needs
_editorComponent = new bespin.editor.Component('editor', {
language: "php",
loadfromdiv: true,
tabmode: true,
set: {
theme: 'white'
}
});
_editorComponent.onchange(pushToHiddenInput);
_editorComponent.theme = bespin.themes.white;
</script>


This is the generated fragment:

<script _componentName = "pulse.app.components.EditInstrument" type="text/javascript" src="/cgi-bin/WebObjects/Pulse.woa/_wr_/ wodata=/Users/ghulands/wowodc/trunk/Pulse/build/Pulse.woa/Contents/ WebServerResources/js/bespin/dojo/dojo.js"></script>
<script type="text/javascript" src="/cgi-bin/WebObjects/Pulse.woa/ _wr_/wodata=/Users/ghulands/wowodc/trunk/Pulse/build/Pulse.woa/ Contents/WebServerResources/js/bespin/bespin/editor/embed.js"></ script>
<div id="editor" style="height:600px; width: 800px;">
</div>
<div id="changes">
Greg
</div>
<script type="text/javascript">
var _editorComponent;
function pushToHiddenInput() {
document.getElementById("changes").innerHTML = _editorComponent.getContent();
}
// Loads and configures the objects that the editor needs
_editorComponent = new bespin.editor.Component('editor', {
language: "php",
loadfromdiv: true,
tabmode: true,
set: {
theme: 'white'
}
});
_editorComponent.onchange(pushToHiddenInput);
_editorComponent.theme = bespin.themes.white;
</script>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: AjaxModalContainer/Dialog with JS resources
      • From: Greg Hulands <email@hidden>
References: 
 >AjaxModalContainer/Dialog with JS resources (From: Greg Hulands <email@hidden>)

  • Prev by Date: AjaxModalContainer/Dialog with JS resources
  • Next by Date: Re: AjaxModalContainer/Dialog with JS resources
  • Previous by thread: AjaxModalContainer/Dialog with JS resources
  • Next by thread: Re: AjaxModalContainer/Dialog with JS resources
  • Index(es):
    • Date
    • Thread