[LP7] Processing LDML within JS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[LP7] Processing LDML within JS

Jonas Rosling
CORRECT - WRONG ENDING

Sorry if this kind of question has been posted earlier. Coulden't find
it in the ListSearch though.

I'v got a problem with processing Lasso code within JavaScript code. My
code looks as bellow:

<SCRIPT LANGUAGE="JavaScript">
               
        <!-- Begin
                function verify() {
                var themessage = "You forgot the following files: \n";
                if (document.form.banner[Loop_Count]_.value=="") {
                themessage = themessage + "\n - Banner [Loop_Count]";
                }
                //alert if fields are empty and cancel form submit
                if (themessage == "You forgot the following files: \n") {
                document.form.submit();
                }
                else {
                alert(themessage);
                return false;
                   }
                }
        //  End -->
               
</script>

Anyone able to help out?

Thanks in advance // Jonas



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [LP7] Processing LDML within JS

Ke Carlton
Lasso will not process within <!--  and -->

Replace the above with: [output:'<!--',-encodenone]  and
[output:'-->',-encodenone]  or just remove them altogether.

ke.

----- Original Message -----
From: "Jonas Rosling" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, May 19, 2005 9:35 AM
Subject: [LP7] Processing LDML within JS


> CORRECT - WRONG ENDING
>
> Sorry if this kind of question has been posted earlier. Coulden't find
> it in the ListSearch though.
>
> I'v got a problem with processing Lasso code within JavaScript code. My
> code looks as bellow:
>
> <SCRIPT LANGUAGE="JavaScript">
>
> <!-- Begin
> function verify() {
> var themessage = "You forgot the following files: \n";
> if (document.form.banner[Loop_Count]_.value=="") {
> themessage = themessage + "\n - Banner [Loop_Count]";
> }
> //alert if fields are empty and cancel form submit
> if (themessage == "You forgot the following files: \n") {
> document.form.submit();
> }
> else {
> alert(themessage);
> return false;
>    }
> }
> //  End -->
>
> </script>
>
> Anyone able to help out?
>
> Thanks in advance // Jonas
>
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Loading...