logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-09-2010, 09:39 PM   #1
oompa_l
 
Join Date: Sep 2010
Posts: 2
Default learning spry

Hi

I ran into a problem where I had two separate aspects of my page working one in jquery, the other with spry and when I tried to make them work together things fell apart. I wasn't completely clear on why they werent working (though I had a guess or two) but I figured it might make sense to go with one or the other and stick with it over the course of the whole page.

So I'm trying to learny spry. It's very similar to the little i learned in jquery but I'm nervous about the syntax, and I'm unsure where to turn to for dumb questions like [these arise as I convert my previous jquery stuff into spry]:

- how would you write $(this) in spry?
- how do you apply a click function to a selector like this,
$(".content-item").click(function(){

there are others, but I have no idea how to find the spry equivalents...

thanks so much!
oompa_l is offline   Reply With Quote
Old 09-10-2010, 06:39 AM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

Except for the Spry functions built in to Dreamweaver, I think most folks would recommend jQuery. There are a lot more folks out there working with and supporting it.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 09-10-2010, 04:10 PM   #3
oompa_l
 
Join Date: Sep 2010
Posts: 2
Default

i appreciate that. I think I agree.

maybe you or someone else can help me then. The problem i was having on my page was that my jquery was operating on elements that were to be filled with spry data elements and i think the reason the page wasn't working was bc the jquery needs to wait until the data has been loaded before beginning. How do you do this?

or alternatively - is there something I should be looking at to do what spry would do with my XML file but in Jquery?
oompa_l is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com