Below is test file I am using. Obviously I am getting Ubiquity.jQuery
- does not exist - any solutions? My main problem - is that i can not
debug inside execute method - especially the jQuery ajax call.
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="webpage-commands" type="text/html" href="">
<title>test debuging Webpage Feed Plugin Example Commands</title>
</head><body>
This page defines a test-wpfp-debug command to find out if firebug can
debug into execute method that
makes an ajax cal to get wpfp-example-preview.html - view the source
for more info.
code of this page to see what they are.
<script src="wpfp-example_files/ubiquity.js"></script>
<script>
Ubiquity.defineVerb({
name: "test-wpfp-debug",
directObject: "food",
previewUrl: "wpfp-example-preview.html",
execute: function(directObj) {
Ubiquity.displayMessage("About to call ajax get to retrieve wpfp-
example.html file.");
Ubiquity.jQuery.ajax({
type: "GET",
url: "wpfp-example.html",
dataType: "html",
error: function() {
Ubiquity.displayMessage( "Error occured." );
},
success: function(directObj) {
Ubiquity.displayMessage ( derectObj );
}
});
}
});
</script>
</body><div style="display: none;" class="commands"><div
class="command"><div class="name">eat</div><div class="direct-
object">food</div><a class="preview" href="https://
ubiquity.mozilla.com/standard-feeds/webpage-feed-plugin/wpfp-example-
preview.html"></a></div></div></html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---