Hello,
I have a Problem with the Wave Gadget API.
I have a HTML Formular and every time I submit,
It says: No container specified 404 Error.
What went wrong with my code:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="LastFM" height="280">
<Require feature="wave" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<center>
<script language="JavaScript">
text = ""
var text = parseInt(wave.getState().get('text', '0'));
function init() {
if (wave && wave.isInWaveContainer()) {
wave.setStateCallback(stateUpdated);
}}
function stateUpdated() {
if(!wave.getState().get('text')) {
}
else { if(text!=wave.getState().get('text');){
wave.getState().get('text');
document.write(text);}
function serch() {
a = document.formular;
track = a.track.value
artist = a.artist.value
track = track.replace(/ /gi,"+")
artist = artist.replace(/ /gi,"+")
var text= "<center><form name='formular' onsubmit='serch
();'>Track:<input type='text' name='track'>Artist:<input type='text'
name='artist'><input type='submit' value=' go! '></form><br>"
+ "<object type='application/x-shockwave-flash' data='http://
cdn.last.fm/webclient/s12n/s/53/lfmPlayer.swf' codebase='http://
download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,0,0'id='lfmPlayer' name='lfmPlayer'
align='middle'width='300' height='230'><param name='movie'
value='http://cdn.last.fm/webclient/s12n/s/53/lfmPlayer.swf' /><param
name='flashvars' value='lang=de&lfmMode=playlist"
+ "&FOD=true&resourceID=94788084&resname="
+ track
+ "&restype=track&artist="
+ artist
+"&albumArt=http%3A%2F%2Fuserserve-ak.last.fm%2Fserve%2F64s
%2F3866317.jpg&autostart=true' /><param name='allowScriptAccess'
value='always' /><param name='allowNetworking' value='all' /><param
name='allowFullScreen' value='true' /><param name='quality'
value='high' /><param name='bgcolor' value='000' /><param name='wmode'
value='transparent' /><param name='menu' value='true' /></
object><br>Music Player made by Fx</center>"
;
wave.getState().submitDelta({'text': text});
document.write(text);
}
</script>
<form name='formular' onsubmit='serch();'>Track:<input type='text'
name='track'>Artist:<input type='text' name='artist'><input
type='submit' value=' go! '></form>
</center>
]]>
</Content>
</Module>
I hope you can help me.
Fx-vision
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" 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/google-wave-api?hl=en.