Weird feedback form idea ....

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2006
Posts: 58
Reputation: desiguru is an unknown quantity at this point 
Solved Threads: 1
desiguru desiguru is offline Offline
Junior Poster in Training

Weird feedback form idea ....

 
0
  #1
Jan 27th, 2009
I want to create a user feedback form something like this:

When a user clicks on a link like:

Send Feedback

The box size 200 X 200 would open right under it where users can provide feedback and in that box when one clicks submit the same box displays like

"The feedback has been submitted"

And then they can click on a button "Close" to close that box. I dont want to open another page for the feedback. Can someone guide me in right direction on how to do this please.
Last edited by desiguru; Jan 27th, 2009 at 3:59 am.
--
Share files up to 1Gb - FileOP.com
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 247
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Weird feedback form idea ....

 
0
  #2
Jan 27th, 2009
This isn't such a crazy idea, its done all the time as a matter of fact.
I presume your familiar with javascript,
create a function that runs on the click of a link e.g.
  1. <a href="#" onclick="form();">Contact</a>
  2. <br/>
  3. <span id="Contact">&nbsp</span>

  1. function form() {
  2. return false;
  3. action = 'process.php'; //Where the form should go
  4. form = '<form action="'+action+'" method="post"><textarea style="width: 200px; height: 200px;">Hi</textarea><input type='submit' value="Send" /></form>';
  5. }
  6. document.getElementById('Contact').innerHTML = form;
  7.  
  8. }
Now you would just need some AJAX to send the data and a similar function to change the contact span to whatever message you want
Regards,
Sam Rudge
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC