Hi, Upayavira
I add the pipeline match on *.js, but it still can't sovle the
problems. The following is the pipeline.
********************** pipeline ****************
<map:pipeline>
<map:match pattern="**.js">
<map:read type="resource"
src="{fallback:resources/x/{1}.js}"
mime-type="application/x-javascript" >
</map:read>
</map:match>
<map:match pattern="*/authoring/**.html">
<map:read type="resource"
src="{fallback:resources/x/test.html}"
mime-type = "text/html" >
</map:read>
</map:match>
</map:pipeline>
Do you have some idea about this?
Best Regards.
Shengjie
On 8/17/05, Upayavira <[EMAIL PROTECTED]> wrote:
> Have you got a pipeline match on *.js? Otherwise, the browser won't be
> able to find your javascript files.
>
> Regards, Upayavira
>
> ShengJie Xia wrote:
> > Hi,
> >
> > I declare a java script file in the head section of html file and call
> > its function in the body. I use the resource reader in the pipeline to
> > display this page, but the browser warns me object expected on the
> > line of function call.
> >
> > Another problem is that there is an syntax error at the <head> tag
> > when I declare more than one java script files in the head section.
> >
> > The below is the source code.
> >
> > ******************* test.html ****************
> > <html>
> > <head>
> > <title>
> > hello
> > </title>
> >
> > <script language="JavaScript" src="test.js"></script>
> > <!-- <script language="JavaScript" src="test2.js"></script>
> > -->
> >
> > </head>
> > <body>
> >
> > <script>a_msg();</script>
> > </body>
> >
> > </html>
> > ******************* test.js *******************
> > function a_msg(){
> > alert("how are you");
> > document.write("dddddd");
> > }
> >
> > ******************* part of the pipeline *********
> > <map:match pattern="*/authoring/**.html">
> > <map:read type="resource"
> > src = "test.html"
> > mime-type = "text/html" >
> > </map:read>
> > </map:match>
> >
> > Do you know how to solve these problems?
> >
> > Thanks in advance!
> >
> > Shengjie
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]