User Profile

Collapse

Profile Sidebar

Collapse
wizdom
wizdom
Last Activity: Apr 4 '09, 08:28 AM
Joined: Oct 2 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I was referring to the

    .entry part of the line in:

    Code:
    Line 21: var entries = feed.entry || [];
    I understand tho that it gives me the entry from the feed of course depending on which entry you select. I guess I don't understand how they are using the "entry" function on this....but it may be something I could check out more inside the swfobject code.

    It's minor in the fact that although...
    See more | Go to post

    Leave a comment:


  • As I stated b4, I used the code from the google code link and editted most of it, just about all of it. So there are a few things I didn't understand...

    Code:
    Line 20: var feed = data.feed;
    variable 'feed' is created, then the "data" that was pulled in is passed thru the variable just created?, or will be passed thru??

    I'm not undertanding the line.

    Code:
    Line 21: var entries = feed.entry ||
    ...
    See more | Go to post

    Leave a comment:


  • Yes I'm very glad you noticed that.

    I've recently made a style sheet in an effort to try to remove some of the elements in that link string. After removing that pointer style line from the links, the video thumbnail lost the pointer on hover.

    With that said, I cleaned up the code as best as I could so it doesn't look as bad.

    I'm not sure when you checked, but i made a few changes. And now I feel it may...
    See more | Go to post

    Leave a comment:


  • Took me a lot of time and reading up but I finally got it. I'm not too proud of the very dirty looking code, but it does work pretty well. I went with a "click to see last 5 or previous 5" option ... the code got pretty detailed and long and drawn out so pasting may not help anyone...but the function is in action at dontsnooze.com and you can view source if interested, or send a pst ... but its basically just an overhaul of the google...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    Yes, I know the youtube version is part of the flash, I just used that as an example because it's well known.

    I'm playing with the code a bit and have it down to this:

    http://www.dontsnooze.com/test

    Obviously one long table. I guess what i'll do now is work on getting it at least to a point where it displays the first 5 videos or so, then you will be able to click and show the next 5 videos, while hiding...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    Tried swfobject and its perfect. Took me a few to get a basic understanding and I also used JSON (JavaScript Object Notation) - found a really nice demo from google here: http://gdata.ops.demo.googlepages.co...n_codelab.html

    Posting it because it was hard to find (unless you knew to search for JSON, which I didn't)

    With the javascript stuff I learned from here I was able to tweak the code a bit to get it how I wanted...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    Ok it does work in FF 3.0 for me. i will be looking into that swfobject deal.....Thanks . Thanks again acoder also =] you may notice i am using some of the stuff you showed me with my other issue.
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    I also checked and notice i'm using firefox 2.0.0.20 (using that at work) at home I use the latest IE. I'm Dl'ing FF 3.0.5 now. I will also check out swfobject from acoder because ultimately I would like this to work across all (or most) platforms
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    The link I posted is that exact code that i posted in my last post.

    I want to be able to click the button, and then the video should change without reloading the whole page....right now, the video is not changing.

    Firefox is not giving me any errors for the current code. i did have multiple erros from my first few attempts....
    Now, with that said, I'm thinking i need to use 'ajax' for this.... but Ajax is brand new...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    I thought I did that on my first example but it's not working....can you tell me why this one doesn't work?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL]http://www.w3.org/TR/html4/strict.dtd[/URL]">
    <HTML>
    <HEAD>
    <!-- Switch Video script start -->
    <script type="text/JavaScript">
    function flashSwitch(flashid1,flashid2) {
    document.getElementById(flashid1).value
    ...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    So first I tried changing each ID individually and testing, then i tried putting an ID for each (pasted below), the video is not changing onclick. I actually tried a number of combinations. I guess my problem is (and thats if what I'm trying to do is even possible) i'm not sure where to put the ID. In the object tab? or in the param or embed tags? not sure........Any help/suggestions appreciated..he res some code I tried:

    One of the...
    See more | Go to post

    Leave a comment:


  • wizdom
    replied to javascript and swf object help - Ajax??
    Thank you for the response I really appreciate it....

    I'll give changing the ID's a shot and post the results....

    I'm not very familiar with ajax at all but thats what a few people keep running by me. I should have just came here first.......
    See more | Go to post

    Leave a comment:


  • Thanks again, that did the trick...here's the final:

    Code:
    <script type="text/javascript">
    function Visible(id, expcolid, show) {
    document.getElementById(id).style.display = (show)?"inline":"none";
    document.getElementById(expcolid).src = (show)?"collapse.bmp":"expand.bmp";
    document.getElementById(expcolid).onmouseover = (show)?function () { this.src='collapse-hover.bmp';
    ...
    See more | Go to post

    Leave a comment:


  • wizdom
    started a topic javascript and swf object help - Ajax??

    javascript and swf object help - Ajax??

    I've tried a few things but nothing seems to work, i'm starting to think this isnt possible.

    I basically am looking to have the user click on the video number, then have the video load in its own section on the page. I'm currently using iframes as a work around and have been trying to read up on Ajax as another way around it. Problem is, i think using iframes i'm losing important keywords that would usually be right on the page. i initially...
    See more | Go to post

  • Took me a few to get back to this.....but I'm still intrigued...

    I would like to use the inline boolean.

    I'm trying this code here but it's only working halfway. I'm sure something is up with my "function" bool

    Can I do this....

    Here's my code:

    Code:
     
    <script type="text/javascript">
    function Visible(id, expcolid, show) {
    document.getElementById(id).style.display
    ...
    See more | Go to post

    Leave a comment:


  • hmm nice
    Ok thanks will give that a shot tomorrow....
    See more | Go to post

    Leave a comment:


  • Got it on the 2nd try =) I just used the same syntax for the boolean as I would with php and hoped for the best.

    Would have had it on the first try but I had

    Code:
    if (showorhide = 'show') {
    instead of
    Code:
    if (showorhide == 'show') {
    noob rookie mistake =}

    Here's the code I ended up with and once again I really appreciate all the help. I've learned a lot.

    Code:
    
    
    ...
    See more | Go to post

    Leave a comment:


  • I've been staring at the 2 functions for a little bit now. I'm racking my brain on how I would switch back and forth between both functions, but in one function.

    I think it may have finally sunk in; adding another parameter like


    Code:
    visible(id, expcolid, show-or-hide);
    I guess I would throw an IF statement in to say if the "show-or-hide"
    is either 'show' or 'hide' and just dump...
    See more | Go to post

    Leave a comment:


  • I tried changing the onmouseover and onmouseout lines to functions as acoder showed me with the onclick issue above and it worked =)

    Appreciate all the help, I feel like I knew little to nothing about javascript before and now I feel like I have a much better understanding.

    here's is the final code which works:

    Code:
    	
    <head>
    	<script language="JavaScript">
    function
    ...
    See more | Go to post

    Leave a comment:


  • Acoder, nice man you are the man =) thanks for sticking with me on this one....the new changes worked perfect. I put in a little more effort on the image button and it looks pretty good. I actually tried taking it a step further to get my highlight effect....but i'm not sure I can do what i'm trying to do. Here's my code:

    Code:
    	
    <head>
    	<script language="JavaScript">
    function showVisible(id,
    ...
    See more | Go to post
    Last edited by wizdom; Dec 1 '08, 07:32 PM. Reason: clarification

    Leave a comment:

No activity results to display
Show More
Working...