Posts by Maurilyn • 121 points
4 posts
-
0
votes1
answer43
viewsA: How to use Jquery in Yesod Haskell
I learned that I should use only 'toWidget' instead of 'toWidgetHead' for the script to load at the bottom of the page and not at the beginning. getShareR :: Handler Html getShareR = do…
-
0
votes1
answer43
viewsQ: How to use Jquery in Yesod Haskell
I am just trying to display a div with the login fields {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-#…
-
8
votes4
answers141141
viewsA: How to redirect the user to another Javascript/jQuery page?
With javascript even: window.location.href = "http://seusite.com"
-
4
votes6
answers636
viewsA: How do you turn the average to red?
Just test if the average is less than 20 before you put it on the screen. if($aluno[$i]["media"] < 20){ echo "<span style=\"color:red\"><b> A media do Aluno e </b></span>"…