Thanks a lot for the Tips i figure it out what i did wrong.
I wasn’t paying attention correctly. In the Example there is a AjaxHeaderFooter
which imports the missing Javascripts
@Override
public void appendToResponse(WOResponse response, WOContext context) {
super.appendToResponse(response, context);
AjaxUtils.addScriptResourceInHead(context, response, "Ajax",
"prototype.js");
}
i just added here the other missing .js
@Override
public void appendToResponse(WOResponse response, WOContext context) {
super.appendToResponse(response, context);
AjaxUtils.addScriptResourceInHead(context, response, "Ajax",
"prototype.js");
AjaxUtils.addScriptResourceInHead(context, response, "Ajax",
"wonder.js");
AjaxUtils.addScriptResourceInHead(context, response, "Ajax",
"modalbox.js");
}
Thanks a lot for helping me figure it out.
regards, Miguel Angerer
> On 27 Jan 2015, at 10:23, Miguel Angerer <[email protected]> wrote:
>
> I was running it on DirectConnection but i changed it now to Apache and the
> problem is still the same.
>
> I will copy the error code right below this massage.
>
> [Error] ReferenceError: Can't find variable: AOD
> eval code (undefined, line 1)
> eval ([native code], line 0)
> (anonymous function) (prototype.js, line 634)
> map ([native code], line 0)
> (anonymous function) (prototype.js, line 1256)
> evalScripts (prototype.js, line 634)
> evalScripts ([native code], line 0)
> (anonymous function) (prototype.js, line 434)
>
> [Error] ReferenceError: Can't find variable: ASB
> onclick (2.0.3.3.5.2.1.0.1.0.1.1.0.0, line 1)
>
> those are the two errors i get when i inspect the SubmitButton.
>
> Thanks a lot for helping me
>
> Regards Miguel Angerer
>> On 23 Jan 2015, at 14:17, Miguel Angerer <[email protected]> wrote:
>>
>> Hello
>>
>> I planed to use one of the Ajax Examples in my Projekt.
>>
>> One of the Bindings for a ModalContainer is called ‘locked' which is
>> optional but i don’t want the modal to close when the user clicks on the
>> outside of the box. The modal can just be closed by pressing the save button
>> that why i put locked = “true”;
>>
>> Now i have the problem that when i start the application the save button
>> doesn’t work at all. When i inspect the elements i get a few errors:
>> Can’t find variable : AOD
>> Can’t find variable : ASB
>>
>> I have all the important Frameworks but i can’t get to the AjaxSubmitButton.
>>
>> If someone knows anything please help me i appreciate it.
>>
>> regards, Miguel Angerer
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]