Can we see the xhtml? or a link?
On Dec 9, 11:44 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> How to rewrite this into jquery code ?
> Just getting into that... so i need some example. Thanks.
>
> var upload_button = document.theForm.action_upload;
> var upload_url = "test";
> var append_vars = "";
>
> for (var i=0;i<document.theForm.length;i++)
> {
> current = document.theForm.elements[i];
> var new_vars = "";
> if ((current.type == "text") || (current.type ==
> "hidden"))
> {
> new_vars = current.name + "=" +
> encodeURIComponent(current.value);
> }
> else if( (current.type == "radio") || (current.type
> == "checkbox"))
> {
> if(current.checked)
> {
> new_vars = current.name + "=" +
> encodeURIComponent(current.value);
> }
> }
>
> if (new_vars)
> {
> append_vars += "&" + new_vars.replace(/\./g,
> "%2E");
> }
> }
> up.SetVariable("upload_to", upload_url + append_vars);