|
|
#1 | |
|
Dethklok Returns!
|
So I've finally got around to really understanding how AJAX works. A few friends and myself are trying to put a little geek squad type company, since there really isn't much around here. Just about every little corner computer shop has failed, but they all lacked some things. In-home service, computer pickup, good marketing, etc. We plan on competing with Geek Squad and Cox Tech Solutions, directly. What they cant compete, Geek Squad and CTS, is the price... Well, anyway, I've been working on for our phone/dispatch agent, is a nice back-end where the agent can enter and retrieve data quickly, which is our goal. The biggest setback, it needs to be web-based because it will be utilized by field techs remotely via air cards on laptops.
So why not minimize loading times, bandwidth, and page refreshing intervals and use AJAX? Yup, so this is my first production web-app that's really going to use it heavily. So far the coding has gone well and it works perfect with FF and IE. Fortunately, I tried to produce the issue with FF pulling AJAX data from cache, which appears to have been fixed. I've modified some server-side content without refreshing the page thus far, I have yet to see FF not pull server-side content from the cache, its modified in real-time, which I am glad to say is exactly what I was hoping for; despite the contrary statements from people saying FF will not pull AJAX data properly, grabbing old data instead of seeking new data. here it is Feedback? |
|
|
|
|
|
|
#2 | |
|
Ngemu Mod
Join Date: Jul 2003
Location: Fresno, CA
Posts: 1,886
|
Your site doesn't load for me. What datatype are you using for the return data? I've been developing AJAX enabled applications for a year or so and have recently started using JSON data for cross scripting data exchange between PHP/Javascript. What are you using for the AJAX functionality? A custom javascript with direct xmlhttp post/get requests or one of the many javascript toolkits with built in functions for AJAX?
__________________
[i7 2600k @4.4ghertz][2x4 GB DDR3 1600][EVGA GTX570 1.280GB SC][EVGA GTX460 physx][Asrock Extreme7 Gen3 Z68][2xSeagate 160 Gb SATA HD raid0][Seagate 250 GB SATA2 HD][Sony Bravia 40' 1080p LCD HDTV][NEC 3520a DVD+-DLw][Windows 7 Ultimate x64][Rosewill 1000w] |
|
|
|
|
|
|
#3 |
|
Dethklok Returns!
|
Oh sorry, I had my ethernet adapter disabled for a while and forgot... Should be working now.
|
|
|
|
|
|
#4 | |
|
.<<o>>.
Join Date: Oct 2004
Location: Finland
Posts: 4,763
|
It's nice and all, but not very inviting. A normal person would immediately be turned off by the dark colors and "scary" look of the page. Imho it looks more like a clan page than a computer help desk..
![]()
__________________
: :Benq FP241W : : Optoma HD80 Projector + 92" Screen : : Genelec 8020B speakers : : Sony MDR-XB700 Headphones : : Razer Lycosa : : Razer Lachesis : : |
|
|
|
|
|
|
#5 | ||
|
Dethklok Returns!
|
Quote:
Quote:
I prefer to make my own stuff, or build from something small like in this case. Sometime in the future I would like to create some modular libraries out of it and make it reusable. |
||
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Mar 2004
Posts: 15,486
|
looks great
![]() yea, i really want to learn more about AJAX. i need to get a book and learn java and XML first. i know quite a bit of PHP and how to work with databases, but if i could learn AJAX i could probably increase my site quality quite a bit. oh one more thing, you have some CSS errors in your page. nothing critical, just an FYI ![]() check out the Web Developer Add On for Firefox. works great. |
|
|
|
|
|
|
#7 |
|
Mahna Mahna
Join Date: Jul 2006
Location: Madison, Wi
Posts: 6,123
|
Looks nice
As soon as I get done configuring Salesforce.com I get to jump into creating some AJAX applications at work, I can't wait ![]()
__________________
|
|
|
|
|
|
#8 | |
|
Dethklok Returns!
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Ngemu Mod
Join Date: Jul 2003
Location: Fresno, CA
Posts: 1,886
|
Quote:
I ended up using the dojotoolkit for my recent projects. The concept of using AJAX for asyncronous post/get is not that hard to implement. It's the data type return that you want and need to use that is the part to consider. I also used a lot of HTML return data as well, but now I've started using JSON data for the data exchange simply because the amount of data being returned was becoming quite large with HTML. And also because newer versions of PHP includes a JSON encoding/decoding extension written in C that is super fast at taking any object in PHP and changing it into a JSON string for echoing back to the javascript.
__________________
[i7 2600k @4.4ghertz][2x4 GB DDR3 1600][EVGA GTX570 1.280GB SC][EVGA GTX460 physx][Asrock Extreme7 Gen3 Z68][2xSeagate 160 Gb SATA HD raid0][Seagate 250 GB SATA2 HD][Sony Bravia 40' 1080p LCD HDTV][NEC 3520a DVD+-DLw][Windows 7 Ultimate x64][Rosewill 1000w] |
|
|
|
|
|
|
#10 | |
|
Dethklok Returns!
|
Quote:
![]() |
|
|
|
|
|
|
#11 | |
|
Meow Mix Kills
Join Date: Aug 2002
Location: END OF DAYS
Posts: 1,228
|
Quote:
__________________
Gaming 5.0 Asus R4 Extreme | Core i7 3930K @ 4.8Ghz Corsair H100 | 16GB G.Skill@1866Mhz | 2xEVGA GTX 580 | Sammy 40" LCD Asus Essence One | OCZ Revo 3 120GB, Revo 3 X2 240GB | HSPC Tech Station | Corsair HX1200 | Windows 7 x64 Storage 2.0 Gigabyte Z68XP-UD3-iSSD | Core i7 2600K @ 4.5Ghz NH-D14 | 16GB G.Skill@1600Mhz | Areca 1880ix-16 RAID HBA Temp Storage - 1.8TB (4x450GB Hitachi 15k RPM SAS) | 18TB (12x3TB Hitachi RAID10) | HSPC Tech Station | Corsair HX620 | Windows 7 x64 |
|
|
|
|
|
|
#12 |
|
Dethklok Returns!
|
Heh, I was just thinking about this a bit earlier. Right now my AJAX handler only spits out some html (element.innerHTML), no DOM... Generated by PHP and thats about it.
I was playing around with the Google Maps API and realized a huge limitation in this method. Maybe you can help me with this.... The ultimate goal here is when a customers information is put in, a google map is created with an automatic route to that address from dispatch will be created. As of now, all it does is center on the map based on the zips lat/long coordinates, which is a plain text property coming from the fxhr.responseText... Let me see how this could work..... User input >> XMLHttpRequest (fxhr) >> PHP Script (Make JSON output in plain text and send to fxhr.responseText) >> js script, parse JSON into DOM >> output to targeted elements via JS. Please tell me if I'm going in the right direction. |
|
|
|
![]() |
| Thread Tools | |
|
|