I am trying to create a form that has pay-pal integration as well as a scheduling calendar. The calendar is what is really tripping me up. I want the user to select the date, and then a time, - but I only want certain days/times to be available, somewhat like a airline reservation calendar. Any ideas?
...
Hi,
I'm facing problem as of bellow,
<form name="form_preview" id="form_preview" action="xxxx.php" method="POST" target="iframe_p">
<input type="hidden" name="post_data" id="post_data" value="xxxxxxxx">
</form>
<script language="JavaScript">
document.forms['form_preview'].submit();
</script>
I'm having nes...
I have models like this:
class Person
has_many :phones
...
end
class Phone
belongs_to :person
end
I want to forbid changing phones associated to person when some condition is met. Forbidden field is set to disabled in html form. When I added a custom validation to check it, it caused save error even when phone doesn't change. I...
i have a few choices here:
single page long form and users have to scroll down
multiple pages where you have to click "next . ." for each new page
use some tab ajax interface http://www.noupe.com/javascript/37-great-ajax-css-tab-based-interfaces.html to organize the form inputs but tabs.
any research or best practice here?
...
I have a webservice that I need called, the result of which determines whether or not the user is allowed to submit the form.
Since this call is from javascript and not from code behind is it not reliable? Is there any way the user can get around the check -- by either going in with firebug and enabling the submit button, somehow making...
I'm looking for examples of actual websites (not articles/demos) that use a modal dialog (like a jQuery dialog) to display comment or contact forms, in order to get some ideas of how I might want to implement similar functionality.
I'm having some difficulty finding such sites via search, though.
...
I have a HTML form that truncates the action parameter after the "?" mark - which is NOT the desired behavior I am looking for.
Here is a representative HTML snippet:
<form action="http://spufalcons.com/index.aspx?tab=gymnastics&path=gym">
<input type="submit" value="SPU Gymnastics"/>
</form>
In this case, the submit butto...
Hello,
I have a login form where a user (that is not logged yet) can insert his login and password, after filling these fields the user has to press a submit button.
What i'm trying to do is: Replace the normal submit button for a $html->link with some css styles.
So is there anyway I can use something like this:
<span class = "licit...
The following is a drop down menu I am trying to add to a Zend Form. Currently the value of the form is 0 for Running and 1 for Triathlon. Instead I want the values to be the same as the labels. What am I doing wrong? I checked Google but seems like I am doing it right. I have checked this against another one and they seem to be the ...
Hey I am fairly new to the c# programming language and have enjoyed my experience so far. I normally develop applications in java but a need for the win32 library has lead me to c# so far the languages seem relatively similar. however a problem I am having at the moment is a simple piece of code that can be best explained in this example...
I am using a contact form that was intially on just a couple of pages on mysite. Now we need to have it on all pages.
The form is set up to only accept from whatever pages you define (which would be tedious and would have to include variables such as mysite.com and www.mysite.com) Is there a way to define excepting submission from all pa...
Hi, have a really annoying time developing some code for a set of UserControls that utilize fairly rudimentary inheritance. Basically, they are three different Detail Views which all inherit from a single Base Class which in turn Implements a Single Interface.
Interface IBaseDetailView
Class BaseDetailView : Implements IBaseDetailView...
I am making a very simple app in C# with Visual Studio, so I'm using that Forms package. I need to get access to an image of everything below it, so that I can manipulate the image. How can I do this?
It doesn't have to be real time very much, since I'll probably be polling it not more than say 10fps.
...
I'm not sure if I'm just form building impaired or not thinking about this the right way. I'm attempting to build a form similar to Gmail's 'compose' form that has an AJAX image uploader. I have a portion of code that uploads the image and returns an image ID working fine. Once I receive the image ID back I've tried appending it to my...
What's the quickest or best way to create and submit a form to a remote web server (http) using NSUrlConnection?
I assume I can build the form in Interface Builder, but I'm clueless as to where to go from there, even though I've read several resources on both (including the docs). Just not sure how to put two-and-two together.
...
Given the following models:
class Graph(models.Model):
owner = models.ForeignKey(User)
def __unicode__(self):
return u'%d' % self.id
class Point(models.Model):
graph = models.ForeignKey(Graph)
date = models.DateField(primary_key = True)
abs = models.FloatField(null = True)
avg = models.FloatField(...
Is there a way to add a custom form element to a Magento Adminhtml form without placing the custom element in the lib/Varian folder?
I've tracked down the code that's essentially a Varian_Data_Form_Element_ factory
public function addField($elementId, $type, $config, $after=false)
{
if (isset($this->_types[$type])) {
$class...
What would be the easiest way to allow only letters/numbers in a textbox. We are using JS/jQuery, but don't want to use a validation plugin?
...
I have a situation where I want a set of users (employees) to be able to create a node, but to replace the uid (user ID) with that of the users profile currently displayed.
In other words, I have a block that that calls a form for a content type. If an employee (uid = 20) goes to a clients page (uid =105), and fills out the form, I want...
What my script currently does:
grabs & cleans a $_GET['id']
pulls all pre-existing data from TABLE for that id
displays form populated with any pre-existing data
SUBMIT sends form data to update script, adds all data to TABLE
What I want my script to do:
grabs & cleans a $_GET['id']
pulls all possible (id)'s from TABLE (this I know...