PDA

View Full Version : Javascript add link to page with text box input and save



lgkauto
03-01-2009, 05:15 AM
This seems to be a tough one as i have not found a solution yet.I need a javascript guru.
I have text box on a page.The user enters a 10 digit number in the box and clicks submit.
The result is a link is added to the same page. ie http://0123456789 .I want to be able to save this data client side and be able to add as many links as possible.It has to be client side and safari complient ...thanks to all that reply

Nile
03-01-2009, 05:17 AM
Do the links have to show up next time you visit the page? And do they have to effect everyone seeing the page? Or just the client?

lgkauto
03-01-2009, 06:08 AM
Yes they have to come up again.Have to be able to save and delete.I was thinking maybe a cookie or mydatabase type setup.This is for a stand alone system client side only.I have a close demo except it only loads and save text in a iframe.
take a look at http://www.how2iphone.mobi/Note_Lock.html and http://www.how2iphone.mobi/datastore.js

Nile
03-01-2009, 06:10 AM
You would need server side stuff... I'm sorry... Unless you wanted to use ActiveX which i know NOTHING about.

lgkauto
03-01-2009, 06:11 AM
pass is Zz

jscheuer1
03-01-2009, 08:08 AM
I was thinking maybe . . . mydatabase type setup . . . client side only

Apples and oranges. All database sorts of things are server side. Besides, you never really answered Nile's question (emphasis added):


Do the links have to show up next time you visit the page? And do they have to effect everyone seeing the page? Or just the client?

lgkauto
03-01-2009, 02:38 PM
sorry about that.i thought i was clear.it's stand alone single machine.not attached to server.it' being compiled into a mobile app.

Nile
03-01-2009, 03:35 PM
Ok. If its only on the client's side, then do you mind showing me what this thing the user adds is going to look like - so I can work on it. :)

lgkauto
03-01-2009, 05:22 PM
Thanks Niles.Take look at the links in the above previous post.

Nile
03-01-2009, 05:23 PM
It says "not supported"...

lgkauto
03-01-2009, 05:53 PM
safari only.If your viewing on explorer or fire fox it won't work

bluewalrus
03-01-2009, 08:18 PM
turning off javascript got me into the page

Nile
03-05-2009, 11:33 PM
I hope you dont think I gave up! I'm still working on it! Gimme a while longer! (please respond to this post so I can know that you're still coming every once and a while and checking, b/c I dont wanna make this code for someone thats not gonna use it!)

phantom
03-09-2009, 04:37 PM
Hi !
Im new here and would have the same result with lgkauto
if he doesn't appear don't matter i'm really waiting of you (Nile)

my problem's is similiar

i have a webpage that i would to add some links (that's already done with DOM)
and then i need to save the link's that be new added to this page (that's my problem)

I hope you will continous this work.. i think it would help me too^^

Cheer up & Thank you
Matt

Ps: Sorry for my bad english...

Nile
03-12-2009, 01:41 AM
Ok, I will continuing making this script. May take a while, thanks phantom.

phantom
10-11-2009, 07:17 PM
Up with a hope of a solution. ;)

i'm being to open a new and my own topic :)