Menu

AJAX! Web 2.0! Other buzzwords!

2009-11-19
2012-11-15
  • Kevin J. Wangler

    Alright, how about making this look a little more modern now? It's starting to look, shall we say, 'dated'. :)  I'm talking some spiffy Web 2.0 site with AJAX and all that jazz. Any plans for this? I was actually going to look at other wish list software (blasphemous, I know) but then I realised that's just Crazy Talk™ right there. I love PHP Gift Registry and I'm not about to blow it up just for the sake of aesthetics. So then I had the brilliant idea to come here and make it a suggestion.

    So, what do you think? Any hope for this?

    /Kevin

     
  • Ryan Walberg

    Ryan Walberg - 2009-11-19

    I'm totally with you.  I completed a J2EE project at work where we used JQuery heavily for AJAX and UI stuff.  I have planned some changes to the phpgiftreg but nothing is committed yet.  It's tough to find time to work on it these days.

     
  • Kevin J. Wangler

    Looking forward to any future work you do on this! :)

    /Kevin

     
  • Kevin J. Wangler

    is a good example, I think. I love the bookmarklet feature, too… similar to what I was wanting for PHPGiftReg and a Firefox extension.

      : http://www.wishlistr.com/

     
  • Kevin J. Wangler

    While I'm at it, how hard would it be to make it work with openID, so users don't have to create accounts specifically for the wishlist?

    /Kevin

     
  • Ryan Walberg

    Ryan Walberg - 2009-11-22

    I just spent an hour and a half replacing the "Gifts I'm asking for" with a jQuery grid that loads, pages and sorts by AJAX.  Then the rest will follow.

    I'll definitely look into creating a bookmarklet.  I can see how that would be really handy!

    As for OpenID, I don't personally know anyone who uses it… it would be popular among SourceForge denizens, to be sure, but grandma?  If I can pull off the effort I'll see what's involved.  SSO is usually a hassle.

    Thanks for the suggestions.

     
  • Kevin J. Wangler

    And just think, I sent my measly donation in *before* I read this! I saw you had, uh, one other donation back in 2004, so this project is clearly raking in the dough for you, huh? I guess (hope) it's a labour of love. ;)

    Excited about the AJAX stuff and the bookmarklet possibility! :) Would much rather see that than a SSO solution, which is low priority. I've seen openID being used more and more just within the last month, so I don't now if it's finally taking off or what, or if I just happen to be hitting sites that are using it. But overall, yeah, it's a low priority.

    Thanks again for all your hard work!

    /Kevin

     
  • Ryan Walberg

    Ryan Walberg - 2009-11-22

    Thanks!  That was very generous of you.  There's nothing like some Web 2.0 to get me excited about this project again.

    Honestly, since the last time I did some serious development on this project, SourceForge has undergone two facelifts and I'm still trying to find my way around!

     
  • Kevin J. Wangler

    Good luck with everything! :)  We use it year-round, since we have family birthdays in almost every month of the year, plus anniversaries, etc. Been using it since September 2006 and we just love it. Even my mom has figured it out. :)

    /Kevin

     
  • Kevin J. Wangler

    So I started work on the bookmarklet, but yeah, I think it's just beyond me at this point. I'll wait for you to make it. I think just the bookmarklet alone would make PHP Gift Registry 100% better and easier to use for people. :)

    /Kevin

     
  • Aaron E.

    Aaron E. - 2009-11-28

    Hey guys. I've started doing quite a bit of AJAX work on this project, but I hadn't heard anything back yet. I'd be happy to contribute to the project in that sense. My work is fairly limited, but I've been moving fetching routines out of the pages and into it's own file. My AJAX and other JS is all prototype based. I'd hoped to have a functioning version by Black Friday, but my Hard Drive took a turn for the worse last week. I just barely got back on my feet (thank goodness for backups)

    In addition to 2.0 stuff, I've been wanting to add a mobile sized set of pages, so people can use the site when actually out and about shopping. Also, my wife complained about the site not being pretty enough :)  So maybe down the line we could throw in some theme support.

     
  • Kevin J. Wangler

    A mobile version is a great (and obvious, yet I hadn't thought of it, haha) idea, as is theme support!

    /Kevin

     
  • Ryan Walberg

    Ryan Walberg - 2009-11-28

    Okay, I am about halfway done doing a rewrite in jQuery with lots of AJAX.  It's themeable using the jQuery ThemeRoller.  Be patient and it will be done soon!

    I want a mobile version too.  It doesn't work well on the Blackberry default browser, you have to use Opera to really get anything out of it.

     
  • Kevin J. Wangler

    Sounds awesome! :)  I'll be able to test the mobile version on the webOS mobile browser (I have a Palm Pre, wife has the Pixi), and my stepdaughters can test it on their iPhone and iPod Touch browser (also based on webkit, same as webOS' browser, but still renders differently).

    Any idea how hard a bookmarklet will be to do? I'm thinking pretty easy for you… since it didn't seem TOO far beyond my 'skills'.

    /Kevin

     
  • Aaron E.

    Aaron E. - 2009-11-28

    If you put the current stuff up, I can help with the transition. I've written with jQuery. I'd like to help!

     
  • Philly Hotshots

    Philly Hotshots - 2009-12-01

    @commonplace - Last year I created a FB Connect for my phpgiftreg site. When I get some free time, I'll package it up and share it.

    @generalpf - I also use Opera Mini to view my website, as the BB browser is terrible.

     
  • Kevin J. Wangler

    phillyhotshots, sounds great!!

    /Kevin

     
  • Chris

    Chris - 2009-12-02

    I second the mobile use.  I have an Android phone which also has a webkit based browser.  I'd also be interested in an Android app so that we could take advantage of barcode scanning, camera, etc.  How hard would it be to add in RPC-XML or something?

     
  • alex

    alex - 2009-12-05

    So we are talking full blow web services? soap or rest……go rest please

     
  • Philly Hotshots

    Philly Hotshots - 2009-12-14

    A few years ago I wanted to do away with "Families" but didn't want everyone to be able to see the complete memberlist when they logged in (there are 50+ Families using my site). Instead I wanted members to be able to search for friends/relatives, and add them that way. My version of phpgiftreg is heavily modified, so I don't know how easy this will be to incorporate into the next release, but I want to throw it out there for anyone willing to play with it and incorporate it into future releases….

    **inserted into index.php**

        <html>
    <head>
    <title></title>
    <style>
    #theForm
    {
    margin:0px;
    }
    #query_results
    {
    border:1px solid #000000;
    width:150px;
    height:100px;
    margin-left:123px;
    overflow:auto;
    visibility:hidden;
    }
    #title
    {
    height:20px;
    border:1px solid #eeeeff;
    font-size:18px;
    font-weight:bold;
    text-align:left;
    }
    #search
    {
    width:152px;
    margin-left:123px;
    height:22px;
    }
    #in1
    {
    border:none;
    width:58px;
    height:22px;
    background:none;
    text-decoration:underline;
    font-size:14px;
    }
    #input_value
    {
    height:22px;
    width:334px;
    padding-left:5px;
    background:#eeeeff;
    float:left;
    }
    #submit_container
    {
    width:60px;
    height:22px;
    text-align:right;
    background:#eeeeff;
    float:left;
    }
    #container
    {
    height:22px;
    background:#eeeeff;
    }
    </style>
    <script>
    function open_xmlhttp_stream()
    {
    var xmlhttp = false;
    try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}catch(e){xmlhttp = false;}}
    if(!xmlhttp && typeof XMLHttpRequest!='undefined'){try{xmlhttp = new XMLHttpRequest();}catch(e){xmlhttp=false;}}
    if(!xmlhttp && window.createRequest){try{xmlhttp = window.createRequest();}catch(e){xmlhttp=false;}}
    return xmlhttp;
    }

    function get_results(v)
    {
    var my_request = open_xmlhttp_stream();
    var url = 'get_results.php?search='+v;
    my_request.open("GET",url,true);
    my_request.onreadystatechange=function()
    {
      if(my_request.readyState==4 && my_request.status==200)
      {
       document.getElementById("query_results").style.visibility="visible";
       document.getElementById("query_results").innerHTML = my_request.responseText;
       if(!document.getElementById("query_results").innerHTML)
       {
        document.getElementById("query_results").style.visibility="hidden";
        }
       document.getElementById("input_value").innerHTML = v;
       }
      }
    my_request.send(null);
    }
    </script>
    </head>
    <body>
    <form id="theForm" action="process_form.php" method="POST">
    <div style="width:400px;border:2px solid #66bbff;">
      <div style="height:30px;background:#66bbff;color:#ffffff;font-size:22px;text-align:center;">Search for People</div>
      <div style="margin-top:10px;">
       <input id="search" type="text" name="search" onkeyup="get_results(this.value);">
       <div id="query_results"></div>
       <div id="title">Name</div>
       <div id="container">
        <div id="input_value"></div>
        <div id="submit_container"><input id="in1" type="submit" value="Request"></div>
       </div>
      </div>
    </div>
    </form>
    </body>
    </html> 

     
  • Philly Hotshots

    Philly Hotshots - 2009-12-14

    Ok, I tried the "Code Sample" button on this site, although can't post it without it executing. Even tried <pre><code> with no luck… 

      : http://www.ubersuite.com/phpgiftreg/searchbox.rar

     
  • Kevin J. Wangler

    Philly, are you sure you rar'd up the correct files? I just looked at them, and I know you said your PHPGiftReg is heavily modified, but that index.php file doesn't seem to have anything to do with PHPGiftReg at all. Or am I completely stupid? (This is entirely possible; don't be afraid to say so.)

    /Kevin

     
  • Philly Hotshots

    Philly Hotshots - 2009-12-21

    I am still running an older version of phpgiftreg, so I only posted the added code for the index.php.

     

Log in to post a comment.