Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. I've been wanting to change my website name for a long time now.  Since I moved, I'm now close to the Great Lakes of North America. So I thought "Great Lakes Web Services".  Opinions?  Thoughts?  I'd obviously shorten it for the actual URL.
  2. ober

    Licences

    Why would you go so low as to consider stealing other's work and passing it off as your own, no matter how much you modify it?
  3. www.whproductions.com/phpfreaks/time is where a live example is.
  4. I'm not sure why you're using the colon after the function call, but maybe this example that I wrote will help: index.php [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>ajax example</title>     <scri pt type="text/javascript" src="update.js"></s cript> </head> <body style="text-align:center;">     <div id="dump">         STUFF         <!-- ajax -->     </div>         <input type="button" name="start" id="start" value="Start Update" onclick="update();" /> </body> </html>[/code] backend.php: [code]<?php echo date("n/j/Y h:i:s A"); ?>[/code] update.js: [code]function createRequestObject() {     if (window.XMLHttpRequest) { // Mozilla, Safari, Opera...         var xmlhttp = new XMLHttpRequest();         if (xmlhttp.overrideMimeType) xmlhttp.overrideMimeType('text/xml');     } else if (window.ActiveXObject) { // IE         try {             var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");         } catch (e) {             try {                 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");             } catch (e) {}         }     }     if (!xmlhttp) {         alert('Giving up. Cannot create an XMLHTTP instance');         return false;     } return xmlhttp; } /* You can get more specific with version information by using parseInt(navigator.appVersion) Which will extract an integer value containing the version of the browser being used.  The variable http will hold our new XMLHttpRequest object. */ var http = createRequestObject(); function update() {     http.abort();     http.open('post', 'backend.php');     http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');     http.send('act=1');     http.onreadystatechange = handleDump;     setTimeout("update()",1000); } function handleDump() { if(http.readyState == 4) //Finished loading the response { var response = http.responseText; document.getElementById('dump').innerHTML = response; } } [/code] Works in IE, FF, Opera.
  5. I'm not sure where to start on this.  If you're a complete noob, go read the tutorials on www.ajaxfreaks.com .  What you need to do is make the larger picture area the container for the updated content.  Then each smaller picture has an onclick event which calls a JavaScript function that will pass data to the server and retrieve the right data from the server and display the bigger picture on the right in the big div. But you have to learn a lot to go from what you have to the AJAX functionality.
  6. I think you're missing the point.  You can't do: <script type="text/javascript" src="whatever.php"></script> That's not legal syntax.  Also, the whole point in using AJAX is to talk to the server without reloading the page.  You can't do that strictly with Javascript.  Also, users don't get an "ActiveX" control warning if you're using the JS call to the object.  You're not actually downloading a control to the user's computer.  You're just using an ActiveX object that is built into the browser.
  7. What is dd.php??  That code doesn't give us much to go on.
  8. ahh... didn't look at your post count.  Yeah, you need at least 15 posts to PM.
  9. I'm going to leave this so someone else might help you, but we have PMs for this.
  10. .... that's a very odd thing to be doing.... and how long did that take you?
  11. Is it possible that 1089059683 is the IP without the periods?
  12. haha!  500 phpfreaks bucks to anyone that can whip up something that'll do that ;)
  13. ober

    CMS question

    The thing I hate about most CMS is the fact that they're all geared toward blogs.  Most of the CMS out there don't provide utilities for managing shopping carts, updating community calendars, building full content pages, or managing users. I'm currently working on my own that will handle all that and more.  I plan to include client billing, stats, style management, and more.  My goal would be to have someone pretty much be able to build a site using my CMS and a config file.
  14. ....wow, you're really helping us out here.  Have you started anything?  Do you know anything about AJAX?  We're not going to code it for you.
  15. By the way, mine works in Opera, FF, and IE for sure.
  16. I don't have time to go picking through it, but I'd imagine it's because of how you're creating the object.  Here's some of my code, feel free to pick through it: [code]function createRequestObject() {     if (window.XMLHttpRequest) { // Mozilla, Safari, Opera...         var xmlhttp = new XMLHttpRequest();         if (xmlhttp.overrideMimeType) xmlhttp.overrideMimeType('text/xml');     } else if (window.ActiveXObject) { // IE         try {             var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");         } catch (e) {             try {                 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");             } catch (e) {}         }     }     if (!xmlhttp) {         alert('Giving up :( Cannot create an XMLHTTP instance');         return false;     } return xmlhttp; } /* You can get more specific with version information by using parseInt(navigator.appVersion) Which will extract an integer value containing the version of the browser being used.  The variable http will hold our new XMLHttpRequest object. */ var http = createRequestObject(); function getNotifications() { var uname = document.getElementById('user').value; var engine = document.getElementById('notify').options[document.getElementById('notify').selectedIndex].value; http.open('post', 'notifyupdate.php'); http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http.send('user='+uname+'&action=insert&notify='+engine); http.onreadystatechange = handleNotes; } function removeNotifications(_boxid) { http.open('post', 'notifyupdate.php'); http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http.send('user='+document.nform.user.value+'&action=delete&id='+_boxid); http.onreadystatechange = handleNotes; } function handleNotes() { if(http.readyState < 4) // loading the response document.getElementById('notes').innerHTML = "Loading..."; if(http.readyState == 4) //Finished loading the response { var response = http.responseText; document.getElementById('notes').innerHTML = response; } }[/code]
  17. It's best to have a go at it and post what you have so we can fix it, instead of us building it from scratch.  We're not here to provide handouts.
  18. They have moderators... and most often your changes will be reverted within minutes if you really get out of hand.
  19. Everything gets agreed to up front.  If you're giving in and doing extra work for no extra compensation, or your agreement is so broad that it doesn't account for additional modifications, then shame on you.
  20. I've never felt compelled to try and edit anything on wiki.
  21. ..... again, you're unclear.  Do you want the images or the functionality?
  22. Can you be a little more clear about what you're trying to accomplish?  Just the action like what they have??
  23. It's nothing more than a absolutely positioned DIV.  It's probably there in the background when the page is loaded and they just show it depending on what you click on the page.  It's pretty easy, actually. Post what you have so far and we can help you.  We can't do it from scratch.
  24. about 15 seconds, but I've seen it before.
  25. Interesting read, all of you.  I wasn't expecting for so many details from so many of you, but it's all good nonetheless. I was still hoping to hear from a few others... Barand for example, and wildteen ;)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.