thanks, i will try as far as I can.

Robin Haswell schrieb:
Your PHP-built list has quotes in it which is breaking the JS.
Try:
'\''.str_replace("'", "\\'", $rezept_vorgabe[$i]).'\''

there are no ' in $rezept_vorgabe[$i]. i add the in the loop(PHP), see
        for ($i=0;$i<$ende;$i++) {
                echo "'".$region_vorgabe[$i]."'";
        }

Also you know you can loop through an array with http://www.php.net/foreach ?


yes, but this won't solve my problem with comma (,) the at the end...

You should use the JavaScript console in Firefox 1.5, it alerts you to errors like this.

I have used it for a long time. The error "missing ] after element list" is out of it.

I discovered your error by using a syntax highlighting editor such as Gvim (http://www.vim.org).

I'm using Dreamweaver, so my syntax highlighting works well.

--
mailto:[EMAIL PROTECTED]
0179 7923088
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to