| | |
Weird feedback form idea ....
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 58
Reputation:
Solved Threads: 1
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.
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
Share files up to 1Gb - FileOP.com
•
•
Join Date: May 2008
Posts: 247
Reputation:
Solved Threads: 19
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.
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
I presume your familiar with javascript,
create a function that runs on the click of a link e.g.
html Syntax (Toggle Plain Text)
<a href="#" onclick="form();">Contact</a> <br/> <span id="Contact"> </span>
javascript Syntax (Toggle Plain Text)
function form() { return false; action = 'process.php'; //Where the form should go form = '<form action="'+action+'" method="post"><textarea style="width: 200px; height: 200px;">Hi</textarea><input type='submit' value="Send" /></form>'; } document.getElementById('Contact').innerHTML = form; }
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 =)
2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: ModalPopupAnimationExtender
- Next Thread: Ajax Animation.GenericAnimationBehavior problem
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart close codes column cookies createrange() css cursor date debugger decimal dependent design dom download dropdown element embed enter error events firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe images index java javascript javascripthelp2020 jawascriptruntimeerror jquery jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseover paypal php player position post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select software sql text textarea toggle unicode variables w3c webservice website window windowofwords windowsxp





