Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
A newbie question about curly-bang and compiler
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pointer  
View profile  
 More options May 8, 9:52 am
From: pointer <chen...@gmail.com>
Date: Fri, 8 May 2009 06:52:23 -0700 (PDT)
Local: Fri, May 8 2009 9:52 am
Subject: A newbie question about curly-bang and compiler
Hi i'm newcomer to flapjax. it's very interesting for me, but i
encounter a problem when getting my hands into it.

i have been following flapjax tutorial page and tried to make a sample
page with some curly-bang syntax like {! timerB(100) !}. but it doesnt
work in my browsers even though there's <script type="text/javascript"
src="lib/flapjax/flapjax.js"></script> in html head. (im sure path and
filename are correct)

however, i found a way it works. if i add loader function, function
loader(){    insertDomB(timerB(100), 'timer');      }  and load it
when html body initiates, it's working perfectly. i'm curious why i
cannot directly use curly-bang statements in html code. it always
display plain text. i think it may have something to do with compiler,
but.. where's flapjax compiler and how to make it compile flapjax
code?

thanks for any tips in advance.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options May 8, 9:57 am
From: Arjun Guha <arjun.g...@gmail.com>
Date: Fri, 8 May 2009 09:57:51 -0400
Local: Fri, May 8 2009 9:57 am
Subject: Re: [Flapjax: 401] A newbie question about curly-bang and compiler
Hello,

{! !} ought to work direcly in HTML without insertDomB.  Can you send
us the full HTML for your program?  We should be able to spot your
problem (or our bug) quickly.  Here's an inline use of timerB that
works on the web compiler:

<html>
<head>
<title>Flapjax Demo: Where is the Mouse?</title>
<link rel="stylesheet" href="/demo.css"/>
</head>

<body>

<p>The mouse coordinates are
&lt; {! timerB(1000) !} &gt;
</p>

</body>

</html>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pointer  
View profile  
 More options May 8, 10:19 am
From: pointer <chen...@gmail.com>
Date: Fri, 8 May 2009 07:19:13 -0700 (PDT)
Local: Fri, May 8 2009 10:19 am
Subject: Re: A newbie question about curly-bang and compiler
Hi there,

thanks for prompt reply! here is my sample full html code:

<html>
    <head>
        <script type="text/javascript" src="./flapjax.js">
        </script>
        <title>Flapjax Demo: Time 1</title>
    </head>
    <body>
        <p>
            The time is {! timerB(1000) !}.
        </p>
    </body>
</html>

I think it's supposed to work. flapjax.js just downloaded from flapjax
site, and i copied it to html file directory. but it always shows
plain text {! timerB(1000) !} no matter in FF or IE.

Thanks for your time!

On May 8, 3:57 pm, Arjun Guha <arjun.g...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options May 9, 9:27 am
From: Arjun Guha <arjun.g...@gmail.com>
Date: Sat, 9 May 2009 09:27:20 -0400
Local: Sat, May 9 2009 9:27 am
Subject: Re: [Flapjax: 403] Re: A newbie question about curly-bang and compiler

> I think it's supposed to work. flapjax.js just downloaded from flapjax
> site, and i copied it to html file directory. but it always shows
> plain text {! timerB(1000) !} no matter in FF or IE.

{! !} is a feature of the Flapjax compiler.  If you want {! !} to
work, you have to let our compiler process your HTML.  You can use the
compiler directly from your browser:

www.flapjax-lang.org/try

Alternatively, if you want to use the compiler locally, you can
install it from source:

http://groups.google.com/group/flapjax/browse_thread/thread/555975244...

Arjun


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google