|
 |
|
|
Thread title: My first usefull ajax script! |
 |
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
08-10-2007, 09:15 PM
|
#21
|
Status: R'tard
Join date: Jan 2007
Location: USA
Expertise:
Software:
Posts: 2,959
|
There is no check to see if anything is inputted in the field 
|
|
08-10-2007, 09:20 PM
|
#22
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
Originally Posted by Vizon
There is no check to see if anything is inputted in the field 
|
I know, I have taken the time to find that url validatior I have sitting around my computer yet.
|
|
08-11-2007, 03:09 AM
|
#23
|
Status: Member
Join date: Jul 2007
Location: USA
Expertise:
Software:
Posts: 240
|
Originally Posted by Village Idiot
I know, I have taken the time to find that url validatior I have sitting around my computer yet.
|
As for submitting without JS, just set the action of the form to the PHP page that shortens the URL. Then, in the onsubmit handler of the form, put 'return false'. The onsubmit handler will only fire in a javascript-enabled browser, meaning it'll run AJAX with JS and submit the form normally without.
Nice job so far though 
|
|
08-11-2007, 08:28 AM
|
#24
|
Status: I'm new around here
Join date: Aug 2007
Location:
Expertise:
Software:
Posts: 4
|
Looks good, make it look nicer but so far great job
|
|
09-05-2007, 08:54 AM
|
#25
|
Status: I'm new around here
Join date: Sep 2007
Location:
Expertise:
Software:
Posts: 12
|
Made my url longer  Otherwise, it's working fine.
|
|
12-13-2007, 01:11 PM
|
#26
|
Status: I'm new around here
Join date: Dec 2007
Location:
Expertise:
Software:
Posts: 8
|
I might suggest checking your database to see if a URI has already been entered. If so, just return that link instead of whipping up a new one. Next, some sort of randomly-generated link ID might be good, as right now, I can just go back through every link that people have submitted by decrementing the ID number.
Also, you already know about validation. Cool tool.
|
|
03-21-2008, 02:48 PM
|
#27
|
Status: Junior Member
Join date: Jan 2008
Location:
Expertise:
Software:
Posts: 37
|
|
|
03-22-2008, 02:51 PM
|
#28
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
Um yeah, that would happen, its a 404. The script isnt up anymore, this thread is really old.
|
|
03-30-2008, 07:41 AM
|
#29
|
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
Posts: 2,694
|
Originally Posted by Village Idiot
Um yeah, that would happen, its a 404. The script isnt up anymore, this thread is really old.
|
Hahahaha...
Anyhow Village, just a tip, as you asked for it.
http://www.prototypejs.org/api/event/observe
You can observe certain things from certain elements, and do things with them.
|
|
04-08-2008, 07:58 PM
|
#30
|
Status: Junior Member
Join date: Apr 2008
Location: Orlando Florida
Expertise:
Software:
Posts: 35
|
IM using Firefox and is not work for me!
|
|
|
 |
 |
 |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
|
|