Last visit was: It is currently Thu Mar 28, 2024 7:20 am


All times are UTC-05:00




Post new topic Reply to topic  [9 posts ] 
    Author Message
     Post subject:Windows in a web page
    PostPosted:Thu Feb 21, 2008 7:12 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    So, I'm working on a project.
    Yep.

    I've looked at http://cross-browser.com, downloaded their library, and had no idea how to use it. They have a tutorial, but it only covers a couple functions. They basically have horrible support, so I don't want to use them. So, does anyone know how to create movable windows/objects on a web page? I don't know much Javascript. I'm really looking for something in PHP, but I doubt there is something like that. If it has to be javascript then I might be able to cope.

    But yeah, any ideas?

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Fri Feb 22, 2008 4:48 pm 
     

    Joined:Sat Feb 16, 2008 6:39 pm
    Posts:18
    Location:Amsterdam - The Netherlands
    The only option you have is Javascript as it's ( as far as i know ) the only language that has direct control over your browser.

    What you basically have to do is make a DIV and put it on the top (top meaning that it's on top of other parts of the site ), as soon as someone clicks on it, you check what the current X and Y settings of the mouse within that browser window are, and as soon as the mouse moves you convert the X and Y settings to left right top and bottom settings.

    This is a huge pain in the ass, i had a piece of script i used somewhere, it's not mine but i kinda took it without telling anyone :) if you want to i can take a look and find it for you :)

    _________________
    -Dorb

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Sat Feb 23, 2008 3:40 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    @Dorbian: Yeah, thanks, it sounds like what I need. If it wouldn't be too much trouble can you try and find it for me please? Thanks.

    EDIT: Just noticed this, but it seems as though the @ sign looks cooler with this forum theme. :P

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Sun Feb 24, 2008 5:26 pm 
     

    Joined:Sat Feb 16, 2008 6:39 pm
    Posts:18
    Location:Amsterdam - The Netherlands
    Send you a PM with the code, there might be still some ASP code in there but all the parts are in javascript.

    just remove the stuff between <% %> which will remove any ASP coding.

    This should be everything tho, if you need more then give a shout, I'll be glad to give a hand.

    _________________
    -Dorb

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Sun Feb 24, 2008 8:09 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Yeah, thanks a lot! :D

    It's reallly gonna help with the project I'm working on.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Mon Feb 25, 2008 5:19 am 
     

    Joined:Sat Feb 16, 2008 6:39 pm
    Posts:18
    Location:Amsterdam - The Netherlands
    There are some bugs in the system itself, but this is related to Browsers, not to the code.

    For some reason when you move a DIV over a <input> field it will show the input field through the DIV...

    Other then that, i actually put an extra part in there that you can open and close the boxes again, a bit more desktop like :)

    _________________
    -Dorb

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Tue Feb 26, 2008 2:35 pm 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    I highly recommend two Javascript libraries - Prototype and script.aculo.us. You will find that doing stuff like what you want is most easy.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Wed Feb 27, 2008 7:43 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Quote:
    I highly recommend two Javascript libraries - Prototype and script.aculo.us. You will find that doing stuff like what you want is most easy.
    I actually have seen script.aculo.us before and I'm thinking of using it. (In fact, until you mentioned it just now I had forgotten about it :P)

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Windows in a web page
    PostPosted:Thu Feb 28, 2008 3:28 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Thanks to most of you for your help, it should help move the project I'm working on along.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Last edited by eddieringle on Thu Feb 28, 2008 3:37 pm, edited 1 time in total.

    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 13 guests


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova