An AJAX request

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
McflysPlace
Forum Newbie
Posts: 5
Joined: Wed Aug 27, 2008 3:59 pm

An AJAX request

Post by McflysPlace »

I haven't the slightest idea how to code in AJAX. I do know that I need it for a particular box I am trying to add to my site.

I need a box in my footer (the whole footer) that takes in an ID number, then takes the number and uses it to load a swf.

.............................................................ID..............................................................................
....................................................[____________].......[Submit]....................................................

User inputs number, then it uses a variable to load http://www.somedomain.com/[ID].swf

The difficult part of this situation is that I need the flash's state to be unchanged when changing page. I wish to make an easy mp3 player to place there so that my visitors can listen to some tunes while playing their favorite games.

Can anyone help me out? I tried to google "how to make a text box in ajax" and I couldn't even figure out how to that part. (I'll take html and php any day)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: An AJAX request

Post by califdon »

Ajax is not a language, it is just Javascript cooperating with PHP, using a built-in Javascript function. That's why your Google search didn't return anything--you don't "make a text box" with Ajax, that's all done in HTML. To learn something about Ajax, I recommend http://w3schools.com/ajax/ajax_intro.asp.
McflysPlace
Forum Newbie
Posts: 5
Joined: Wed Aug 27, 2008 3:59 pm

Re: An AJAX request

Post by McflysPlace »

I swear, you are about the most helpful person ever. I think I'll stop making topics and just PM :mrgreen:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: An AJAX request

Post by califdon »

McflysPlace wrote:I swear, you are about the most helpful person ever. I think I'll stop making topics and just PM :mrgreen:
Oh, please don't do that. We have a tradition here of not responding to PMs because (1) it deprives everyone else who might have a similar question, and (2) it deprives you of getting other opinions.

Don't feel embarrassed about your questions. We all started out knowing nothing and it's only through other people helping when they can that we gain any knowledge, and even the most experienced of us still have areas in which we are ignorant. I would list the areas where I'm ignorant, but I think there's a limit to the length of posts allowed here. :P
McflysPlace
Forum Newbie
Posts: 5
Joined: Wed Aug 27, 2008 3:59 pm

Re: An AJAX request

Post by McflysPlace »

Although that was only a joke, your reply does have a lot to say. I suppose if the ignorant keep asking enough public questions people like you might get a break :wink:
Post Reply