Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use form value in Qtip
7th March, 08:42
Post: #1
How to use form value in Qtip
Hi,
I want to know how to use form value in qtip. For example say i want to print a form value or sent it to another page as id when mouseover event occurs. Please give me a solution i am in a very urgent need.
Thanks
Somdeb
Find all posts by this user
Quote this message in a reply
8th March, 04:11
Post: #2
RE: How to use form value in Qtip
Your question is a bit too vague and broad for a specific answer, but I can give you some general direction.

You'll need to get the value of the form field you want (using document.getElementById() or a simple jQuery select such as $('#thefield').val()) and display it to screen by setting the contents of another element with the value -- again, easiest with a jQuery command something like: $('#theContainer').html($('#theField').val()); There are many ways to add items to an HTML page though.

Passing the field value to another page really depends on your requirements. If you just want to pass it "behind-the-scenes" when the tooltip displays, you can simply GET or POST it using the AJAX component of qTip (which is really just the jQuery AJAX object).

If you want to actually have it GET or POST to a page and have the browser navigate to the result page, you'll need to either construct a FORM HTML element with the "action" attribute pointing to the page and the form fields as part of the form (or compied/populated from the "master" form) to go to, or construct a URL and append the form values as part of the querystring. You'll then either need to give the user a submit button or link to click or submit or navigate to the link via javascript -- though I'm not sure why you'd do that.

It sounds like you really need some general HTML and Javascript assistance, which is probably better served from a forum specializing in those. If you go that route, just keep in mind that people tend to respond better--and you'll learn more--when you ask for guidance or help rather than saying "give me a solution." Smile

Good luck!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Modal form AJaX submit not working WolfShade 6 655 21st February 04:41
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)