Reply to Re: php / JS / DOM question

Your name:

Reply:


Posted by Al on 12/29/05 23:58

jonathan wrote:
> I know that this is more of a Javascript / DOM question but I cannot
> for the life of me figure this out:
>
> I have this form:
>
> <form name="query_form">
> <input type="text" name="q"></input>
> <input type="button" onclick="drawImg('A',document.forms
> ['query_form'].elements['q']);" value="Search"></input>
> </form>
>
> When the user clicks on the button, I want the text that is in input
> elment 'q' to be sent to the Javascript function drawImg but when I
> debug it via alerts, it appears to be NULL. Looking at the examples
> online, I feel like this should work. Does anybody know why this might
> not be working correctly?
>
> -jonathan

You need to ask in the JAVASCRIPT newsgroup. This is not a php question.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация