The specific problem which is causing that error is that you are submitting the form with no action.
Change the input type of the button to "button" instead of "submit", and move "onsubmit='serch();'" from the form tag to the button (as onclick). i.e.: <form name='formular'> Track: <input type='lastfmtext' name='track' /> Artist: <input type='text' name='artist' /> <input type='submit' value=' go! ' onclick='search();' /> </form> There are probably a few other issues with the code you posted. A better start point might be something like this (not perfect by any means, but it does work): <?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="LastFM" height="350"> <Require feature="wave" /> </ModulePrefs> <Content type="html"> <![CDATA[ <script type="text/javascript" src="http://wave-api.appspot.com/ public/wave.js"></script> <script> var lastfmtext; function init() { if (wave && wave.isInWaveContainer()) { wave.setStateCallback(stateUpdated); } } function stateUpdated() { if(wave.getState().get('lastfmtext') == null) { lastfmtext = ""; lastfmtext += "<form name='formular'>"; lastfmtext += " Track: <input type='lastfmtext' name='track' />"; lastfmtext += " Artist: <input type='text' name='artist' />"; lastfmtext += " <input type=button' value=' go! ' onclick='search ();' />"; lastfmtext += "</form>"; document.getElementById("lastfmgadget").innerHTML = lastfmtext; } else { document.getElementById("lastfmgadget").innerHTML = wave.getState ().get('lastfmtext'); } } function search() { var a = document.forms.formular; var track = a.track.value; var artist = a.artist.value; track = track.replace(/ /gi,"+"); artist = artist.replace(/ /gi,"+"); lastfmtext = ""; lastfmtext += "<form name='formular'>"; lastfmtext += " Track: <input type='text' name='track' value='"+track+"' />"; lastfmtext += " Artist:<input type='text' name='artist' value='"+artist+"' />"; lastfmtext += " <input type='button' value=' go! ' onclick='search ();' />"; lastfmtext += "</form>"; lastfmtext += "<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'>"; lastfmtext += " <param name='movie' value='http://cdn.last.fm/ webclient/s12n/s/53/lfmPlayer.swf' />"; lastfmtext += " <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' />"; lastfmtext += " <param name='allowScriptAccess' value='always' / >"; lastfmtext += " <param name='allowNetworking' value='all' />"; lastfmtext += " <param name='allowFullScreen' value='true' />"; lastfmtext += " <param name='quality' value='high' />"; lastfmtext += " <param name='bgcolor' value='000' />"; lastfmtext += " <param name='wmode' value='transparent' />"; lastfmtext += " <param name='menu' value='true' />"; lastfmtext += "</object><br>Music Player made by Fx"; wave.getState().submitDelta({'lastfmtext': lastfmtext}); } gadgets.util.registerOnLoadHandler(init); </script> <div id="lastfmgadget"></div> ]]> </Content> </Module> On Jan 26, 12:00 am, FX-VISION <felixba...@msn.com> wrote: > 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 google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.