CSS Troubles

0 views
Skip to first unread message

cmalune

unread,
Nov 14, 2009, 12:43:29 PM11/14/09
to weblocks
Hey guys,

I'm trying to get started with weblocks but I have a problem relating
to the CSS.

When I create a 2 level deep navigation, and then a composite based on
the menu choices, the composite goes off the right hand side of the
screen. (it displays to the right of the menus rather than below it)

Is there an easy fix for this? Theres so much CSS i can't find the
right attribute. :'(

Thanks

Leslie P. Polzer

unread,
Nov 15, 2009, 4:38:42 AM11/15/09
to weblocks
I'd be glad to help but I can't reproduce it. Are you using -stable or
-dev?

Leslie

cmalune

unread,
Nov 15, 2009, 6:14:11 AM11/15/09
to weblocks
I used clbuild to download weblocks for me, so I'm not sure what
version it fetches, but its supposed to look at the svn repo? The
problem I have is because navigation-body is nested in navigation, and
I have another navigation nested in the first navigation body, when I
change the CSS to navigation body, it affects the nested menu *and*
the content.

Also I have a couple of other questions :)
Have you got an example of what type of function to pass to the render-
isearch? I'm confused as to how to make it work.
Is there a simple example of adding custom javascript to a
presentation? I'm trying to make multiple image uploads as in gmail.

This framework is awesome!!!

Thanks

Leslie P. Polzer

unread,
Nov 16, 2009, 2:09:18 PM11/16/09
to weblocks
On Nov 15, 12:14 pm, cmalune <cmal...@gmail.com> wrote:
> I used clbuild to download weblocks for me, so I'm not sure what
> version it fetches, but its supposed to look at the svn repo?

Ah, you have -stable then.


> The
> problem I have is because navigation-body is nested in navigation, and
> I have another navigation nested in the first navigation body, when I
> change the CSS to navigation body, it affects the nested menu *and*
> the content.

What part of your content exactly is affected?

You could use a more specific selector in the content to override the
one for the navigation body, or make the latter more specific in the
firs tplace.


> Also I have a couple of other questions :)
> Have you got an example of what type of function to pass to the render-
> isearch? I'm confused as to how to make it work.

Try this:

(render-isearch "my-input"
(lambda (input-name input-value &rest args)
(format t "~A=~A~%" input-name input-value)))

> Is there a simple example of adding custom javascript to a
> presentation?

Lots. Check out src/views/types/presentations. Most of the code
there is pretty easy to understand so you could work off that.


> I'm trying to make multiple image uploads as in gmail.

I think nunb might be able to help here.

Are you using Flash or a hidden iframe?

Leslie

Leslie P. Polzer

unread,
Nov 16, 2009, 2:16:43 PM11/16/09
to weblocks
On Nov 16, 8:09 pm, "Leslie P. Polzer" <leslie.pol...@gmx.net> wrote:

> Try this:
>
> (render-isearch "my-input"
>   (lambda (input-name input-value &rest args)
>      (format t "~A=~A~%" input-name input-value)))

Forgot to mention: isearch isn't being used by any component
right now; support for isearch in gridedits is experimental
(search the group for this).

nunb

unread,
Nov 17, 2009, 5:07:31 AM11/17/09
to weblocks
Gmail uses flash for uploads and degrades to dynamically adding
individual (per-file) forms if flash is unavailable.

In the former case, I suggest using YUI's uploader, and probably
scripting the interaction entire in javascript. I have code available
for a lisp+flash file upload if you'd like.

Note that hunchentoot 1.0 may need to be patched to make sense of the
broken way in which Flash-UA does multipart-mime.

In the latter case I would recommend using a widget that dynamically
adds sub-composites. I believe the weblocks form allows for file
uploads, each sub-composite could contain (or be) an instance of
weblocks form. This imho will work out easier than trying to
dynamically add multiple form-fields. Or you can go web 1.0 and always
display a form with 10 blank file fields and let the user ignore the
ones they don't need.

It all depends on what exactly you're trying to achieve.
Reply all
Reply to author
Forward
0 new messages