I still need to learn JQuery, but I would also have to learn Prototype if I used it.
Anyway, I want to show or hide some <div> based on if someone entered data in a property of my domain. So while editing that domain. Basically they are going to put a URL to an image, and I want to show that image on the page after they have entered it.
What is my best approach? OK, I changed the subject, let me update the subject line.
Mark Spritzler wrote:I still need to learn JQuery, but I would also have to learn Prototype if I used it.
"It" Grails, or "it" jQuery? I think Grails supports a couple of different JS libs, but I don't recall that jQuery was one of them. There's a plugin, though:
Mark Spritzler wrote:I still need to learn JQuery, but I would also have to learn Prototype if I used it.
"It" Grails, or "it" jQuery? I think Grails supports a couple of different JS libs, but I don't recall that jQuery was one of them. There's a plugin, though:
Well, it's support via the plugin. So if you install the plugin and make a couple of config mods, all the grails ajaxy tags will use jQuery instead of Prototype (the default). And that's really all the support is.
Mark Spritzler wrote:I still need to learn JQuery, but I would also have to learn Prototype if I used it.
"It" Grails, or "it" jQuery? I think Grails supports a couple of different JS libs, but I don't recall that jQuery was one of them. There's a plugin, though:
Well, it's support via the plugin. So if you install the plugin and make a couple of config mods, all the grails ajaxy tags will use jQuery instead of Prototype (the default). And that's really all the support is.
So this takes it back to being a Grails question. The original question was about those config mods, what they mean, is it worth jumping through those hoops, or is it just 2 mods and then automatically you can use the jQuery type code you posted?
And technically, you only need the Config.groovy addition if you want the Grails remote taglibs to use jquery. Personally, I never use those tags, so all I need is to source in the jquery js file, which is what the <g:javascript /> is for.
Gregg Bolinger wrote:And technically, you only need the Config.groovy addition if you want the Grails remote taglibs to use jquery. Personally, I never use those tags, so all I need is to source in the jquery js file, which is what the <g:javascript /> is for.
Thanks, and I assume if I just put that in my main.gsp layout, then all the pages will get that.
Things have been going really well too.
Mark
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Grails and jQuery: how to get image to show that the user just typed in the URL to