Results 1 to 8 of 8
  1. #1

    • Know More Than You Should
    • Offline

    Join Date
    Feb 2005
    Location
    Experiencing Technical Difficulties
    Posts
    2,906

    A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Techincally...

    Technically this is more suited to the Tech Lounge. But maybe someone can help me here, in the MC Lounge, my favorite haunt.

    I'm working on a Widget for Konfabulator. If that last sentence sounded Greek to you disregard it. The point is, I'm working on something in Javascript and I am helplessly stuck.

    What I am working on is a button. Now, this button, when pressed, will do whatever it is the user has set it to do. Now, when the user selects a preference, that string would theoretically contain a String, which is in fact the line of Javascript I want to run, as a function, when the button is pressed.

    Still with me?

    So, here is the code so far:

    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <widget>
    
    
    
    // BigRedButton Widget for Konfabulator by The Ghost Host
    
    // You may freely redistribut and/or edit this code under the GNU Public User Liscense
    // So long as the above credit remains intact, although you can of course add "Based on..."
    
    <preference>
        <name>buttonDo</name>
        <title>Button Action</title>
        <type>popup</type>
        <defaultValue>reloadWidget();</defaultValue>
        <description>What does your button do?</description>
    </preference>
    
    <preference>
        <name>buttonColor</name>
        <title>Button Color</title>
        <type>color</type>
        <defaultValue>null</defaultValue>
        <description>Red not your style? Make your button any color you like!</description>
    </preference>
    
        <debug>on</debug>
    <window title="Big Red Button">
        <name>main_window</name>
        <width>125</width>
        <height>125</height>
        <level>topmost</level>
    
    </window>
    
    <image src="Resources/button_up.png">
        <name>Button</name>
        <onMouseEnter>
                buttonMouseOver = true;
        </onMouseEnter>
    
        <onMouseExit>
                buttonMouseOver = false;
        </onMouseExit>
        <onDragExit>
                buttonMouseOver = false;
        </onDragExit>
        <onMouseDown>
            if (buttonMouseOver = true) { 
                Button.src = "Resources/button_down.png";
            } else {
                Button.src = "Resources/button_up.png";
            }    
        </onMouseDown>
        <onMouseUp>
            if (buttonMouseOver = true) { 
                Button.src = "Resources/button_up.png";
            reloadWidget();
            focusWidget();
            }
        </onMouseUp>
        
    </image>
    
    
    
    <about-box>
    
    </about-box>
    
    <action trigger="onLoad">
        function updateBehavior()
        {
            Button.colorize = preferences.buttonColor.value;
            var buttonAction = preferences.buttonDo.value;
        }
    
        function buttonDo()
        {
            reloadWidget();
        }
        
        updateBehavior();
    </action>
    
    <action trigger="onPreferencesChanged">
        updateBehavior();
    </action>
    
    
    </widget>
    Just throwing this out there on the slim chance that someone can help. Thanks!













  2. #2

    • Like a blade youll stain
    • Offline

    Join Date
    Aug 2005
    Location
    7 hours away from the happiest place on earth....
    Posts
    27

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Uh.........
    She's cold and she's cruel
    But she knows what she's doin'
    She pushed me in the pool
    At our last school reunion
    She laughs at my dreams
    But I dream about her laughter
    Strange as it seems
    She's the one I'm after
    Cause she's bittersweet
    She knocks me off of my feet
    And I can't help myself
    I don't want anyone else
    She's a mystery
    She's too much for me
    But I keep comin' back for more
    She's just the girl I'm lookin' for


  3. #3

    •   
      MiceChat Senior Moderator
    • Jester of Randomness
    • Offline

    Join Date
    Jan 2005
    Location
    Trying to keep it light and fluffy since '05...
    Posts
    65,585
    Blog Entries
    2

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    I dearly wish I could be of some help because if you're working with widgets that means that you are dealing with the most wonderful, most stable OS in the entire world and I salute you. Unfortunatly I haven't done anything with any kind of programing or code since BASIC on an Apple IIe and even my HTML is seriously seriously lacking. But you certainly have my moral support behind you all the way!!




    Help me get more security in Pingvinivlle! Click here!


    Quote Originally Posted by AGhostFromThePast
    all you need to know about the mommy stick is.. out of all the bad things that could happen to you... it's right between wetting yourself and death.

  4. #4

    • Know More Than You Should
    • Offline

    Join Date
    Feb 2005
    Location
    Experiencing Technical Difficulties
    Posts
    2,906

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Quote Originally Posted by penguinsoda
    I dearly wish I could be of some help because if you're working with widgets that means that you are dealing with the most wonderful, most stable OS in the entire world and I salute you. Unfortunatly I haven't done anything with any kind of programing or code since BASIC on an Apple IIe and even my HTML is seriously seriously lacking. But you certainly have my moral support behind you all the way!!
    Noope; I'm working with Konfabulator, the program that, shall we say "inspired" the Mac Dashboard. Nope, I'm happy to say I currently reside on an Hp Pavillion Desktop running good 'ol Windows XP.

    But Konfabulator IS cross platform. And I plan to create a MC Widget in due time...













  5. #5

    •   
      MiceChat Senior Moderator
    • Jester of Randomness
    • Offline

    Join Date
    Jan 2005
    Location
    Trying to keep it light and fluffy since '05...
    Posts
    65,585
    Blog Entries
    2

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Konfabulator is cross platform!!!! Oh my... well even though you are using the "wrong" computer I still stand behind you will all the moral support I can muster!!

    And where did all the smiles go in the advanced reply form?




    Help me get more security in Pingvinivlle! Click here!


    Quote Originally Posted by AGhostFromThePast
    all you need to know about the mommy stick is.. out of all the bad things that could happen to you... it's right between wetting yourself and death.

  6. #6

    • That's Hawt
    • Offline

    Join Date
    Jan 2005
    Location
    Tahoe
    Posts
    6,989

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Quote Originally Posted by penguinsoda
    Konfabulator is cross platform!!!! Oh my... well even though you are using the "wrong" computer I still stand behind you will all the moral support I can muster!!

    And where did all the smiles go in the advanced reply form?
    They're under the smiley button!
    Quote Originally Posted by drunkmom
    this is my first buzzed post in the DMCA -- I'm really in this club because I'm a bitch more than anything. I've only had to hit the backspace 4 (oops, make that 5) times in (now 7) in this (now 9) (now 15) in this post! Damn, now I'm up to 18! Our neighbors were (19) (20) making tequilla sunrises. I thought I couldn't do tequilla (22) anymore but (24) this stuff (26) was good! It started (27) with an s



  7. #7

    •   
      MiceChat Senior Moderator
    • Jester of Randomness
    • Offline

    Join Date
    Jan 2005
    Location
    Trying to keep it light and fluffy since '05...
    Posts
    65,585
    Blog Entries
    2

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Quote Originally Posted by MiceMan
    They're under the smiley button!

    Ah... then it must be an issue with my browser because when I click on the smiley face nothing happens. Pretty much nothing happens when I click on anything in the advanced reply window so I'm thinking its a Safari thing. Yes someday I will download Firefox for my alternate browser.

    Its ok... I can imagine the smilles....




    Help me get more security in Pingvinivlle! Click here!


    Quote Originally Posted by AGhostFromThePast
    all you need to know about the mommy stick is.. out of all the bad things that could happen to you... it's right between wetting yourself and death.

  8. #8

    • That's Hawt
    • Offline

    Join Date
    Jan 2005
    Location
    Tahoe
    Posts
    6,989

    Re: A Desperate Cry for Help in This World We Affectionately Call JavaScript

    Quote Originally Posted by penguinsoda
    Ah... then it must be an issue with my browser because when I click on the smiley face nothing happens. Pretty much nothing happens when I click on anything in the advanced reply window so I'm thinking its a Safari thing. Yes someday I will download Firefox for my alternate browser.

    Its ok... I can imagine the smilles....
    Some imagination huh?

    Quote Originally Posted by drunkmom
    this is my first buzzed post in the DMCA -- I'm really in this club because I'm a bitch more than anything. I've only had to hit the backspace 4 (oops, make that 5) times in (now 7) in this (now 9) (now 15) in this post! Damn, now I'm up to 18! Our neighbors were (19) (20) making tequilla sunrises. I thought I couldn't do tequilla (22) anymore but (24) this stuff (26) was good! It started (27) with an s



Similar Threads

  1. Call of Duty: World at War for the Wii
    By Kritter in forum Disney Interactive and Game Industry Discussion
    Replies: 2
    Last Post: 01-29-2009, 10:12 PM
  2. In Desperate Need Of Minnie Hat!!
    By _blackbeltsrule123 in forum Disney Interactive and Game Industry Discussion
    Replies: 7
    Last Post: 07-21-2007, 04:10 PM
  3. Replies: 17
    Last Post: 06-17-2007, 09:53 AM
  4. Replies: 0
    Last Post: 10-25-2006, 07:59 PM
  5. Desperate Housewives
    By dsnylndmom in forum Gibson Girls
    Replies: 11
    Last Post: 04-01-2005, 11:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •