I am trying to follow the rules and stay RESTful, but I am running into some problems.
I set my routes so I am sure it is calling the right action, when I run rake routes this comes up:
PUT /admin/settings {:controller=>"admin", :action=>"save_settings"}
So I know my route is correct, and in my *views/admin/settings.html.erb" I hav...
Hey I am very new to Web Programming. I have been learning PHP from the past few days and I am stuck at one thing.
I have a form tag in my code which has two submit buttons to manipulate on the data.
Since I can have only one action definition on my form tag, it can lead me to one page only. (Not very sure)
Now depending on the button ...
hi
does anyone know how to maximize a form from another formin c#
i tried the code below but it wont work
Form1 form1 = new Form1();
form1.WindowState = FormWindowState.Maximized;
any ideas
...
I am planning on making an order form that has
text fields (to gather submitted text based information like names, emails, messages)
link fields (to gather submitted links)
upload buttons (to gather images from a user's hard drive)
I assume I will be using Javascript and Ruby for this but I have a few questions.
how would I activa...
I'm building a site that requires multiple forms for the same model in varying numbers throughout a single page. These forms belong to an object with an id. Currently, since I can't figure out how to change the form ids, I'm stuck with a hole bunch of duplicate ids.
I'm looking for a way to append the object id to the form id so they're...
I know there are multiple ways to select a particular option from a using jQuery:
$select.val("someValue")
$option.attr("selected", "selected")
$select[0].selectedIndex = 1
Assuming you have both the index of the option you wish to be selected and its value, what's the most correct way (from the above, or otherwise) to make it selec...
Is there an API in PHP which allows the user to add records by just filling out an excel-like table instead of having to fill up a usual form-look page. After the user will fill in the fields, the record will auto save the record in the database. I want it to work just like ordinary form with post method in PHP. It will allow the user to...
I've never touched drupal's theming layer before, so I apologize for the basic question. I'm trying to change the default width and height for the input fields used in drupal forms.
Is there a generic template that I need to change? or do I have to find everywhere where there's a form, find its template, and change it. Any tips on how ...
Hi,
I was looking for a fix to stop IE refreshing the page instead of submitting my single line form, when a user hits enter instead of clicking go.
I found this solution, which works well, but I was wondering if anyone could explain why it works?
The solution I used is to add a hidden text input within the form tags, like this
`<fo...
I have a cForms II contact form set up. It works perfectly if I just want the results emailed to myself (default behavior).
I now have a custom PHP file that will take the POST data from the form and submit it to an external database for me. However, when I set the Alternative Form Action page to this PHP page, clicking the Submit butto...
is possible to make stylish for browse button using CSS & Js ???
Thanks in advance
...
hello, I'm working on an old project from an other developer, and can't get something solved ...
I have a form in visual studio 2005 which is resizable. But when I resize at runtime, it only allows me to make it bigger, not smaller. It has nothing to do with minimumsize, because after making it larger, I also can't return to the origina...
How can i assign to one Button multiple actions:
A Timestamp
A href to next page
Assign a numerical value depending on where you clicked.
In Django.
Onclick.
How is that possible?
in Html
in Django Views
And the timestamp needs to be recorded at the users browser (when he clicks) and NOT when it is arriving at the server.
Thank...
When i try the following structure, it does't send id=value
<form action="some.php?id=value" method="get">
<input name="name1" value="value1">
<input type="submit">
</form>
I know that i can send id=value in hidden field, but it's interesting, why it doesn't allow such structure?
Thanks
...
I have a form which submits fine in FF, Opera, Safari, Chrome, and also IE8...
But it wont submit in IE6, or IE7...
I have noticed it is 99% sure that the problem is a too long querystring.
I have many many options...
Now, changing the method to POST is out of the question here, so don't bother asking about this please...
I wonder, is...
Hey guys,
I ran into an interesting issue today when I was working on an application I'm developing. Hopefully someone knows why this is happening / how to adjust my work flow for it!
Background:
I'm writing an application that helps students at universities get in touch with each other. The basic workflow is as follows:
User ...
I'm trynig to come up with a clean and efficient way of handling form input names when dynamically adding more to the POST array.
For example, if I have the following form:
<fieldset>
<input type="text" name="users-0.firstname" />
<input type="text" name="users-0.lastname" />
</fieldset>
I then click an 'addmore' button which d...
I'd like to manage a timetable using Drupal 6, there are several pieces of equipment on which an administrator distributes people who get to use the equipment.
Essentially I want a table of equipment versus day of the week. The plan shows the occupation of all equipment for the whole week.
What makes it more complicated is that the ed...
I have a multi-step form which asks the subscriber to check their details before proceeding with the renewal process.
What I want to do is check if the form has been modified from its pre-filled values (extracted from a Web Service) and then write it to my own local MySQL database. This should only happen if the values have been modifi...
I have a problem with my form querystring being too long.
I plan on solving this problem by simply disabling all un-used form elements before submit.
But I need help on making this js function...
You need to know that I have a js-function which shows sub-categories whenever a main-category is chosen. This happens "onChange" on a drop-l...