[Javascript] OT: multiple languages
Flavio Gomes
flavio at economisa.com.br
Wed May 26 10:30:24 CDT 2004
I got a grid in php that is built from a SQL query.. and I needed to put
a form in a field.. result:
==========
$query = "select
id_folder, id_file
'<form name=\"formorder\" action=\"updorder.php\"
style=\"display:inline\"><input type=\"hidden\" name=\"id_folder\"
value=\"'||id_folder||'\"><input type=\"hidden\" name=\"id_file\"
value=\"'||id_file||'\"><input name=\"order\" type=\"text\" size=\"3\"
value=\"'||ordee||'\" onchange=\"submitForm(this.form)\"></form>' as
formordem
from
archive_files
where
id_folder = '$id_folder'
order by id_folder, order, id_file"
==========
Cute, eh?
---
Flavio Gomes
flavio at economisa.com.br
Mike Dougherty wrote:
> It gets especially confusing when you're using one language to
> generate the code for another language: ASP/vbscript to generate
> Javascript, or SQL to generate HTML... I completely sympathize
>
> lcHTML += "<tag onClick=\"alert('test');\" />"
>
> I feel a little guilty writing code like that, because some day
> another developer will have to make sense of it. (although it'll
> probably be ME)
>
>> My bad, you can indeed use single- or double quotes around your
>> attribute values. I'm developing in too many languages at once here,
>> sorry. I'd say you should add the type attribute to your style block,
>> though.
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list