Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[07:39:43 EDT(-0400)] * heidi_ (n=thesumme@bas5-oshawa95-1176338219.dsl.bell.ca) has joined #fluid-work
[08:24:34 EDT(-0400)] * heidi__ (n=thesumme@70.31.82.237) has joined #fluid-work
[08:25:50 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[08:35:49 EDT(-0400)] * laurel (n=Laurel@142.150.154.178) has joined #fluid-work
[08:41:14 EDT(-0400)] * athena (n=athena@adsl-75-58-122-144.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[08:55:44 EDT(-0400)] * anastasiac (n=team@142.150.154.189) has joined #fluid-work
[09:11:08 EDT(-0400)] * fj4000 (n=Jacob@142.150.154.106) has joined #fluid-work
[09:11:13 EDT(-0400)] * yura (n=yura@142.150.82.114) has joined #fluid-work
[10:01:43 EDT(-0400)] * michelled (n=michelle@142.150.154.101) has joined #fluid-work
[10:31:30 EDT(-0400)] * yura (n=yura@142.150.82.114) has joined #fluid-work
[11:11:34 EDT(-0400)] * jsilvaa (n=jsilva@142.150.82.73) has joined #fluid-work
[11:13:17 EDT(-0400)] * clown (n=clown@142.150.154.101) has joined #fluid-work
[11:14:12 EDT(-0400)] * fj4000 (n=Jacob@142.150.154.106) has joined #fluid-work
[12:13:46 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined #fluid-work
[13:33:48 EDT(-0400)] <heidi__> hey all i have a prob silly javascript question, but want to make sure:
[13:33:53 EDT(-0400)] <heidi__> <script language="javascript" src="include/vitals.js"></script>
[13:33:53 EDT(-0400)] <heidi__>
[13:33:54 EDT(-0400)] <heidi__> <script language="javascript">
[13:34:08 EDT(-0400)] <heidi__> can i share variables between these two scripts?
[13:34:30 EDT(-0400)] <heidi__> i'm guessing not
[13:35:03 EDT(-0400)] <heidi__> (a script in the file using a var from an external/included script)
[13:36:09 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[13:40:11 EDT(-0400)] <athena> hey heidi__ - mFSS is looking pretty cool
[13:40:36 EDT(-0400)] <heidi__> athena - saw you've been using it. right onn
[13:40:51 EDT(-0400)] <athena> yeah, i'll be interested to see where you guys go with it ):
[13:40:52 EDT(-0400)] <athena> (smile)
[13:41:09 EDT(-0400)] <athena> we'll likely have some quirky needs, given that we're coming from a portal environment
[13:41:28 EDT(-0400)] <athena> which means we can't necessarily control the markup of the portlets themselves - just the chrome around them
[13:41:41 EDT(-0400)] <athena> so we'll see how some of the more complex portlets render within the mFSS framework
[13:42:16 EDT(-0400)] <athena> is this going to be specifically only for the iPhone?
[13:43:10 EDT(-0400)] <heidi__> in the grand scheme of things, it's for mobile devices in general. but iphone the focus for round one. fj4000 might have some updates
[13:43:32 EDT(-0400)] <athena> sounds reasonable
[13:44:06 EDT(-0400)] <athena> i think we'll have some challenges with some of the portlet content, but it seems like there's a lot of potential there, and hopefully as more portlets use FSS styles it'll be easier
[13:45:16 EDT(-0400)] <fj4000> hopefully it should be a smooth transition to make fss enabled content mobile-fss friendly
[13:45:33 EDT(-0400)] <athena> that'd be great
[13:46:03 EDT(-0400)] <athena> anyway, you guys are obviously doing great work (smile)
[13:46:15 EDT(-0400)] <fj4000> (smile)
[13:46:44 EDT(-0400)] <fj4000> its an exciting space to be in
[13:46:50 EDT(-0400)] <athena> i'm sure!
[13:47:07 EDT(-0400)] <fj4000> we're also really happy your playing with it
[13:47:31 EDT(-0400)] <fj4000> I hope you can help us improve it
[13:47:53 EDT(-0400)] <athena> well i'll certainly let you know if i have comments
[13:48:26 EDT(-0400)] <athena> i suspect i'll probably wait until you guys have gotten a little further on it to polish up what i have
[13:50:40 EDT(-0400)] <fj4000> are you using the latest material?
[13:50:56 EDT(-0400)] <athena> i think so
[13:51:03 EDT(-0400)] <athena> or at least as of a week or so ago
[13:51:15 EDT(-0400)] <fj4000> oh, a fair bit has changed since a week ago
[13:51:22 EDT(-0400)] <athena> i'll have to check it out (smile)
[13:51:25 EDT(-0400)] <fj4000> under the hood at least (tongue)
[13:51:30 EDT(-0400)] <athena> i've seen some pretty mockups go by on the list
[13:51:55 EDT(-0400)] <fj4000> yes, im in the middle of working working with James on those
[13:52:00 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[13:52:04 EDT(-0400)] <athena> i haven't tried using any transitions and such - it sort of looked like the fx.js file might have some URLs and such hard-coded into it
[13:52:20 EDT(-0400)] <athena> but it at least made the page look all iphone-y
[13:52:22 EDT(-0400)] <fj4000> ah, so there are no hard backed URLs in the system
[13:52:40 EDT(-0400)] <fj4000> all the good stuff has been put into a new file called viewManager.js
[13:52:47 EDT(-0400)] <athena> cool (smile)
[13:52:51 EDT(-0400)] <athena> i'll have to pull in an update
[13:53:02 EDT(-0400)] <athena> wow, yep, lots up updated files
[13:53:03 EDT(-0400)] <fj4000> pls - and let us know what you think!
[13:53:06 EDT(-0400)] <fj4000> yes
[13:53:07 EDT(-0400)] <athena> will do!
[13:53:20 EDT(-0400)] <fj4000> a lot of bitmaps have been replaced with dynamic css graphic data
[13:53:27 EDT(-0400)] <anastasiac> heidi__, in answer to your javascript question: basically, yes, you can share variables between multiple script blocks
[13:53:30 EDT(-0400)] <athena> i'd still love to talk get some resolution on some of the portlet styling issues someday too, though sadly i'm not sure i have much to add to the debate
[13:53:30 EDT(-0400)] <fj4000> so colorizing stuff is now super easy
[13:53:37 EDT(-0400)] <athena> oooh pretty
[13:53:40 EDT(-0400)] <anastasiac> the first block will define the variable, and the second can use it
[13:54:03 EDT(-0400)] <anastasiac> ideally, your variables will be namespaced (smile) so that they don't pollute the global namespace
[13:54:15 EDT(-0400)] <anastasiac> but this happens all the time, essentially
[13:54:34 EDT(-0400)] <anastasiac> In the fluid samples, which load multiple external js files, for example
[13:54:49 EDT(-0400)] <anastasiac> loading Fluid.js will define the fluid namespace, and functions within it
[13:55:03 EDT(-0400)] <anastasiac> those functions are available to functions loaded in other js files
[13:55:11 EDT(-0400)] <anastasiac> does that make sense, heidi__?
[13:55:32 EDT(-0400)] <heidi__> yeah - that's good news! i should look at Fluid.js and see how it's done
[13:57:54 EDT(-0400)] <heidi__> thanks anastasiac
[14:00:04 EDT(-0400)] <heidi__> so i see var fluid is declared at the top - are all other scripts able to use this var? i did this with no luck.
[14:01:14 EDT(-0400)] <heidi__> athena: thanks! i second jacob's thank you for playing with mfss and giving pointers.
[14:01:41 EDT(-0400)] <anastasiac> heidi_, yes, that's the idea... how exactly did you define your namespace, and the things within it that you're trying to use?
[14:02:08 EDT(-0400)] <anastasiac> do you want to paste something into pastebin?
[14:02:17 EDT(-0400)] <anastasiac> http://fluid.pastebin.com/
[14:08:24 EDT(-0400)] <heidi__> i have a .js file that defines some vars, and then am trying to reference them in a <script> tag in the page ... says the var is undefined
[14:08:57 EDT(-0400)] <heidi__> <script language="javascript" src="include/vitals.js"></script>
[14:08:57 EDT(-0400)] <heidi__>
[14:08:58 EDT(-0400)] <heidi__> <script language="javascript">
[14:08:58 EDT(-0400)] <heidi__> if(x == 'test') {
[14:09:46 EDT(-0400)] <heidi__> at the top of vitals.js i have "var x;"
[14:10:39 EDT(-0400)] <heidi__> maybe because i have the x="test"; part inside a function in vitals.js ?
[14:11:08 EDT(-0400)] <heidi__> yes that's it... duh...
[14:12:12 EDT(-0400)] <anastasiac> heidi__, did you fix it?
[14:12:59 EDT(-0400)] <heidi__> if i change it to var x="test" at the top it works, so that helps. ... now i need to pass x to the function somehow? by reference?
[14:13:56 EDT(-0400)] <anastasiac> if x is in the global namespace, your function shoudl be able to reference it
[14:14:52 EDT(-0400)] <heidi__> i have...
[14:14:54 EDT(-0400)] <heidi__> var x;
[14:15:08 EDT(-0400)] <heidi__> $.get("include/workflow.php", { }, function(data){
[14:15:24 EDT(-0400)] <heidi__> if(data) { x="test";
[14:15:33 EDT(-0400)] <heidi__> this doesn't seem to work.
[14:15:59 EDT(-0400)] <heidi__> but i think i'm close. so thanks!
[14:16:15 EDT(-0400)] <anastasiac> I'm having trouble reading what you've pasted... could you paste it (plus a bit more context) into http://fluid.pastebin.com/ ? hit send, then post the resulting URL here
[14:16:59 EDT(-0400)] <heidi__> i think i'm okay now! thanks
[14:17:15 EDT(-0400)] <anastasiac> ah! what was the problem?
[14:17:50 EDT(-0400)] <heidi__> haven't fixed it but trying something...
[14:19:33 EDT(-0400)] <heidi__> yeah no luck. let me try pastebin
[14:22:14 EDT(-0400)] <heidi__> anastasiac: http://fluid.pastebin.com/d91210fe
[14:22:43 EDT(-0400)] <anastasiac> ah, ok
[14:23:16 EDT(-0400)] <heidi__> but if i do at the top var x ="test" it works
[14:23:29 EDT(-0400)] <anastasiac> I think what's happening is that at the time your script block is trying to access x, the function in vital.js has probably not yet executed and therefore not yet assigned a value to x
[14:23:40 EDT(-0400)] <anastasiac> to test this, try assigning a dummy value to x in the var statement
[14:23:43 EDT(-0400)] <anastasiac> to see if I'm right
[14:23:49 EDT(-0400)] <heidi__> yes that works
[14:23:53 EDT(-0400)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined #fluid-work
[14:24:15 EDT(-0400)] <jessm> jamon: ping
[14:24:24 EDT(-0400)] <heidi__> it alerts that dummy value
[14:25:22 EDT(-0400)] <heidi__> so the time it takes to do the ajax call ... is longer than the time it takes to get to the alert.
[14:26:12 EDT(-0400)] <anastasiac> right
[14:27:50 EDT(-0400)] <laurel> jessm: jamon sighted at library barbecue recently, so may not be at his desk
[14:27:58 EDT(-0400)] <jessm> thanks
[14:28:47 EDT(-0400)] <heidi__> is there a way to solve this?
[14:31:05 EDT(-0400)] <heidi__> besides putting a delay on the inline script
[14:32:11 EDT(-0400)] <anastasiac> I think it depends on what you're actually trying to do
[14:32:20 EDT(-0400)] <anastasiac> why two script blocks, for example<
[14:32:36 EDT(-0400)] <anastasiac> ideally, the accessing the variable would be put into the callback function
[14:43:51 EDT(-0400)] <jamon> jessm: pong
[14:45:36 EDT(-0400)] <heidi__> hmm... vitals.js is something i'm hoping to include in all of my html pages... but the variables within it are used in different ways in each page
[14:48:00 EDT(-0400)] <anastasiac> does workflow.php have to be loaded via an asynchronous call?
[14:48:09 EDT(-0400)] <anastasiac> heidi_: ^
[14:48:09 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[14:50:24 EDT(-0400)] <heidi__> yeah. am trying to keep the php very separate from everything else, instead of including throughout the .html files
[14:50:57 EDT(-0400)] <heidi__> but still sort of experimenting with how that can happen
[15:03:41 EDT(-0400)] * michelled (n=michelle@142.150.154.101) has joined #fluid-work
[16:01:08 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[16:18:04 EDT(-0400)] * justin_o (n=jmo@CPE000f6653d93c-CM00223a6ac9e1.cpe.net.cable.rogers.com) has joined #fluid-work
[16:32:38 EDT(-0400)] * everettz (n=chatzill@bas4-ottawa23-1177561371.dsl.bell.ca) has joined #fluid-work
[16:33:03 EDT(-0400)] <everettz> does jquery hide set both display:none and visibility:hidden?
[16:33:22 EDT(-0400)] <everettz> more importantly, what does show set?
[16:57:35 EDT(-0400)] <jessm> jamon: we can just check in tomorrow at the mtg.
[17:19:58 EDT(-0400)] * anastasiac (n=team@142.150.154.189) has left #fluid-work
[18:16:07 EDT(-0400)] * clown (n=clown@142.150.154.101) has left #fluid-work
[20:26:33 EDT(-0400)] * colinclark (n=colin@bas2-toronto09-1176130925.dsl.bell.ca) has joined #fluid-work