AlejoXPI
2007-Oct-03 07:03 UTC
Ajax.Request works in Xhtml file but no int XUL, someone know why?
this works
-----------------------------------
<html>
<head>
<script src="prototype.js"
type="application/x-javascript"></script>
<script>
function llamar()
{
new Ajax.Request(''proceso.php'',
{
parameters: {company: ''example'', limit: 12}
}
);
}
</script>
</head>
<body>
<div id="zona">
</div>
<input type="button" value="Ajax"
onclick="llamar()" />
</body>
</html>
--------------------------------------------
this don''t works
---------------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/"
type="text/css"?>
<window
id="findfile-window"
title="Find Files"
orient="horizontal"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/
there.is.only.xul">
<script src="prototype.js"
type="application/x-javascript">
</script>
<script>
function llamar()
{
new Ajax.Request(''proceso.php'', {method:
''get'', parameters: {company:
''example'', limit: 12}});
}
</script>
<commandset>
<command id="loginCmd" oncommand="llamar()"/>
</commandset>
<button label="Sign in" command="loginCmd"/>
</window>
--------------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---