form

HTML - Which form element caused submit

Hi, I'm debugging a weird problem with two simlar search forms - when user types some search criteria in a text box and hits enter, one form returns results and another just reloads. And it happens only in IE - FF treats both forms as expected. I suspect that hitting enter is triggering onclick for one of the search buttons in one case ...

Passing dynamic form settings into jQuery AJAX on page load

I have a jQuery AJAX data grid that loads a list of elements from a database. On the page are radio buttons that allow the user to filter the results. These trigger an onClick function that then refreshes the AJAX. This all works fine. Now I need to pre-define the radio settings dynamically in the PHP code and have the AJAX load these ...

One click to trigger several search forms?

Hello, I have 1 main search form with a submit button and several secondary search forms with submit buttons. What I would like to do is when I enter text and click on the submit button of the main search form, the same text gets copied in all of the secondary search forms and all the submit buttons of the secondary search forms get au...

jQuery doesn't work in .html() return

Hello all, I'm totally newbie on JQuery, I checked docs.jquery, searched on google, asked to friends, and still couldn't find the solution :( I've a DIV with id=EMail. It includes a paragraph (<p>Please enter email...</p>) and a form (<form></form>). When visitor enters his/her email address to form input, and presses "Send" button, JQu...

How to disable all <input > inside a form with jQuery?

<form id="target"> .... </form> ...

Close windows or tabs on a button click

Hello, I have a tab open in my browser which runs my web site. Upon clicking on a button, my site is going to open other windows or tabs with different URLs in each. <form action="search.php" method="get"> <input type="text" name="item" size="30" style="font-size:140%" id="item"> <input type="submit" value="Search All" style="f...

Closing windows that were opened by search query

Hello, Please go to http://musicalinstrumentsfinder.com/search.php The top search box is a super search box if you will in that whatever text you type in it will automatically be put in the individual search boxes below. Also, upon clicking the "Search All" button, it will automatically simulate a click on all the individual search box...

Mark mandatory fields on form, if not filled with valid value

hi there, if you create a new dataset, mandatory fields which are not set yet are marked with a wiggly red line. it seems, that only string-values ( or several fields, but at least no integers ) are marked this way. if integer-references are used ( 1-based ), the regarding fields are filled with 0 per default which causes the red lin...

Troubles with html-forms.

Hi guys, I have index.php: <form action="update_db.php" method="post"> <?php require_once 'modules/' . $currentModule . '.php'; ?> </form> modules/*some_module*.php ... <input type="submit" /> ... update_db.php: @extract( $_POST ); print_r( $_POST ); After loading index.php i see need form. But duri...

form object inside of ajaxForm error callback

I'm trying to access my form object inside of ajaxForm's error method: $('#foo').ajaxForm({ error: function(){ // where's my $('#foo') object? } }); error can take 3 params, but none of them are the form object, also this returns the url, but again no form. Any suggestions? ...

including form by user action

i have a page containing a form and directs to another page (page2) asusual. Page 2 have a edit button that must include the entire previous page into a div in page2(initially it has none).How to do this with javascript? ...

Docking a form to another form panel

Is it possible to dock a form1 to a panel contained in another form2? I'm launching form1 with ShowDialog from a form2 event. ...

In IE8 enter key in a form does not work

I have a problem that in IE8 the enter does not work to submit a form. I have generated a test page to expose this problem. It seems that displaying the form in the onLoad function disables results that the enter button does not trigger a submit anymore. Is this a bug in IE8 or is it some security issue? The code to reproduce this is: ...

Rails form with three models and namespace

Banging my head against this one for a long time. On Rails 2.3.2, Ruby 1.9.1. Trying to use one form to create three objects that have these relations: class Person has_one :goat end class Goat belongs_to :person has_many :kids end class Goat::Kid belongs_to :goat end Here's a summary of the schema: Person first_name l...

consume a wcf duplex service in windows form

I have a wcf duplex service with work fine in silverlight. but the same service want to consume in windows forms. how it possible. my code as folow:- EndpointAddress address; address = new EndpointAddress("http://server08:2508/JakayaChatService"); CustomBinding binding = new CustomBinding( new Pol...

How can i see what variables are sent from flash to a php script?

Hello i was wandering how i could see what variables my flash sends to my php sccript. Is that possible? Maybe an extension or something else? i don`t know if my flash is sending any variables. My problem is that i have a flash wich i can`t change and i the flash has a form. in that form the variables are sent to a php script.. we had t...

CSS selector for a checked radio button's label

Is it possible to apply a css(3) style to a label of a checked radio button? I have the following markup: <input type="radio" id="rad" name="radio"/> <label for="rad">A Label</label> What I was hoping is that label:checked { font-weight: bold; } would do something, but alas it does not (as I expected). Is there a selector that c...

Add an "empty" option to a ChoiceField based on model datas

Hello, I'm defining a ChoiceField based on a model's datas. field = forms.ChoiceField(choices=[[r.id, r.name] for r in Model.objects.all()]) However I'd like to prepend my options with an empty one to select "no" objects. But I can't find a nice way to prepend that. All my tests like : field = forms.ChoiceField(choices=[[0, '------...

Forwarding javascript attribute events to different handler/type

I'm currently trying to set up a web page for a touch screen computer, and have noticed that (with my fat fingers) that onclick events are really hard to trigger, as the surface area of my finger generally causes the cursor to move while I "click". The solution I want to use is forwarding onmousedown events to onclick. How can I make t...

Upload files outside of webroot

Hello. I'm developing a shopping system where shopmanager should be able to upload files to the system. Those files can the be sold for a fee and should only be accesible through providing a purchase code. The whole purchase code and uploading thing is working fine. Just have to block the direct access to the file. Questions: How ca...