Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Question about inline

Reply
Thread Tools

Re: Question about inline

 
 
Roy A.
Guest
Posts: n/a
 
      08-27-2009
On 27 Aug, 19:47, sheldonlg <sheldonlg> wrote:
> I want to have a link pass a value from a field on a form. *I can do
> this by having the href call a javascript function. *I was wondering if
> this can be done inline. *The url is
>
> www.slgdev.net/test/links.html
>
> The "Click with function" works and the "Click with inline" doesn't pass
> the value.


Both links works in my browsers. Which browser are you using?

> I have tried many things to get the inline to work, but have
> not had success. *Can it be done inline? *If yes, please tell me how?


Why are you not using a regular form element?

<form id="the_form" action="foo.php" method="get">
Text: <input type="text" name="text" />
<input class="the_link" type="submit" value="Click with button" />
</form>

#the_form { display: inline }
#the_form .the_link { border: none; padding: 0; vertical-align:
baseline }

You could also use javascript with an a element to submit the form:

<a href="foo.php?text=no_javascript" onclick="document.the_form.submit
()">Click with a element</a>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool which expands implicitly inline inline functions tthunder@gmx.de C++ 3 06-16-2005 12:54 AM
To inline or not to inline? Alvin C++ 7 05-06-2005 03:04 PM
Function delcared inline but not defined inline Nish C Programming 4 10-08-2004 03:31 PM
External inline functions calling internal inline functions Daniel Vallstrom C Programming 2 11-21-2003 01:57 PM
inline or not to inline in C++ Abhi C++ 2 07-03-2003 12:07 AM



Advertisments