Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-13-2006, 02:00 AM   #1
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
Who here can code AJAX?

can you? email me with some details on you and your work
thx
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:02 AM   #2
djscrib
Confirmed User
 
Join Date: Mar 2004
Posts: 147
if you have any specific ajax questions i might be able to help, i'm bored and can't sleep so might has well do something productive in this thread.
__________________
Vidlock DRM Service - Add DRM to your website today
http://www.vidlock.com

Coming Soon - Vidpass
djscrib is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:04 AM   #3
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
i can code a little bit php which is it
i have no questions as I got zero clue
i need someone able to code for me
my current guy isn't ajax compliant
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:09 AM   #4
djscrib
Confirmed User
 
Join Date: Mar 2004
Posts: 147
Here's the thing about AJAX, it's not a language, it's a fancy acronym for shit you can do if you know javascript.

If you know javascript and XML, then all you do is have to learn the syntax for the XMLHttpRequest object and you're off to the races. On the server side, make special PHP scripts that output xml instead of formatted html.

So long story short, if your guy is any good at javascript/dhtml he can figure out Ajax in a couple days. If not, consider a new guy.
__________________
Vidlock DRM Service - Add DRM to your website today
http://www.vidlock.com

Coming Soon - Vidpass
djscrib is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:13 AM   #5
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
awesome information
thanks a lot for taking the time to enlighten me
didnt know that
appreciated
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:14 AM   #6
djscrib
Confirmed User
 
Join Date: Mar 2004
Posts: 147
The other thing to consider is what do you want to use Ajax for specifically and spec that out first. 90% of ajax implementations are someone who just wanted to use it for something and it winds up breaking the back button, making the UI worse, and not working for half of visitors.

a couple common uses though

extended information via a rollover popup(see netflix)

form submission without changing pages (gmail)

for any adult site the rollover popup is probably the most useful. For example popping up a full size image of a thumbnail if the person hovers over it.
__________________
Vidlock DRM Service - Add DRM to your website today
http://www.vidlock.com

Coming Soon - Vidpass
djscrib is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:18 AM   #7
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
hehe
got me there
i like your way of thinking
I might hit you up on ICQ in the near future and pay you back in some way
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:24 AM   #8
djscrib
Confirmed User
 
Join Date: Mar 2004
Posts: 147

Quote:
Originally Posted by Trax
awesome information
thanks a lot for taking the time to enlighten me
didnt know that
appreciated
Ok let's try this. Below code will call a server script if the user hovers over a thumbnail image for longer than .5 seconds. If the server script returns data in the format

<data>
<description>My Description</description>
<thumbnail>http://www.image.com/image.jpg</thumbnail>
</data>

the code will parse this xml, and then display a floating popup window
with the description text and the new image.

The code is slightly pseudo-code.

--How to do a rollover poup.

<div id="popup" style="position:absolute;visibilitydden;">
<img id="popup_img">
</div>

That is a div element that is intially invisible


<span onMouseOver="ShowDesc();" onMouseOut="ClearDesc();">
<img src="thumbnail">
</span>

This is a thumbnail image, if the user mouses over it we want to pop up the full size picture and description if they hover the mouse for more than .5 seconds.

<script>
var popTimer = null;

//kill the timer to cancel any pending popup events
function ClearDesc()
{
window.clearTimeout(popTimer);
}

//call the function ShowThumb in .5 seconds, if the user
//does a mouseout it effectively kills the timer. This mimics a
//"hover" event so that you don't do a popup if the user is flicking
//his mouse over the thumbnail
function ShowDesc()
{
popTimer = window.setTimeout("DownloadThumb();",500);
}

var xmlRequest = null;//our xml http request object
function DownloadThumb()
{
//create the xml object, set the callback, send it
xmlRequest = new ActiveXObject("XMLHTTPRequest");
xmlHttp.onreadystatechange = stateChangeHandler;
xmlHttp.open("GET","get_info.php?id=45",true);
xmlHttp.send();
}

//this function is called when the http request returns
function stateChangeHandler()
{
//readyState of 4 or 'complete' represents that data has been returned
if (xmlHttp.readyState hahahaha 4 || xmlHttp.readyState hahahaha 'complete'){
//Gather the results from the callback
//parse the xml
if(xmlHttp.status hahahaha 200)
{
try
{
var desc = xmlHttp.responseText;
//var root = desc.documentElement;

var parser = xmlHttp.responseXML;
var parser = new ActiveXObject("Microsoft.XMLDOM");
var loaded = parser.loadXML(desc);
var desc = parser.getElementsByTagName("Description")[0].firstChild.data;
var thumb = parser.getElementsByTagName("Thumbnail")[0].firstChild.data;

popup.innerText = desc;

popup_img.src = thumb;
}
catch(e)
{
}
}
}
}
</script>
__________________
Vidlock DRM Service - Add DRM to your website today
http://www.vidlock.com

Coming Soon - Vidpass
djscrib is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:27 AM   #9
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
youre too good for gfy
run while you can lol
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:36 AM   #10
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
lol get out of here!
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 02:39 AM   #11
djscrib
Confirmed User
 
Join Date: Mar 2004
Posts: 147
You're webmasters for christ sake doesn't anyone code?

Or are your web programmers all chained to rusty desks in the basement pecking away feverishly at the keyboard fearful of another lashing.

Hrm, actually that's not a bad idea for my team now that I think about it.
__________________
Vidlock DRM Service - Add DRM to your website today
http://www.vidlock.com

Coming Soon - Vidpass
djscrib is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 03:00 AM   #12
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
I am a professional html coder
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2006, 03:27 AM   #13
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
Quote:
Originally Posted by djscrib
You're webmasters for christ sake doesn't anyone code?

Or are your web programmers all chained to rusty desks in the basement pecking away feverishly at the keyboard fearful of another lashing.

Hrm, actually that's not a bad idea for my team now that I think about it.
there's about 3-4 of us here on gfy who know php thoroughly. including you and i. my usage of xmlhttp has been limited, but i've found some pretty unique behind the scenes uses for it.
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.