Alright, now I am downright bewildered on what is happening. I am creating a safari extension called unibar(which is a separate toolbar extension, not a toolbar item), a clone of Chrome's address bar. what I want so far is to at least create a regular address bar, and build from there. Here is my bar.html file, which is connected to t...
Using ruby 1.9.2
if I change
gem 'rails', '3.0.0.rc2'
to
gem 'rails', '3.0.0'
None of my forms render.
My forms all use <%= %> and everything works great in rc2. I don't even get any errors.
<%= form_for(@user) do |f| %>
Not even this text would render.... Its not even hidden on the page.
<% end %>
This is my GEMFILE:
...
I'm trying to compile my first C# application (based on Visual Studio) ... also using Windows Forms for input (from user) and output.
User puts numbers into six text boxes (e.g. 2009 20 02 02:49:35) and then when the 'Convert' button is clicked, the program outputs E1234FB3278DC0 in a different text box.
Not sure if this is relevant bu...
hey has anyone successfully done this, do you have a simple example of this? the goal is to build a frontend to create the form thus the form variables being saved in the database.
do i need to know what fields are being saved /mirror with another table or can one do this in the same table?
...
While writing a server application with a windows form for a GUI a problem appeared. When a form loses focus the process sleep, so any networking will not work unless the form is in focus the whole time. Is there any way of creating a dialog or window that will keep its process running continuously?
I call a function called cServer::Ge...
Hi.
I need to do the following, but I couldn't find any example of similar form validation on the web:
<script type="text/javascript">
function something(){
if the value on the field who is calling this function == 2,4,6 or 8
alert("This number is invalid")
focus in this field.
</script>
Field1 call something()
Fi...
Hi,
I have web form with multiple submit buttons. To determine which button was pressed, each has a different name, like so:
<input type="submit" name="foo" value="Foo Foo">
On the form there are also normal links that act as submit buttons, like so:
<a href="" onclick="parentNode.submit();return false;">
Bar
</a>
My question is h...
I have an HTML order form that collects info and then on submission passes that to a PHP form which sends an email. Then I have the PHP form forwarding to a PHP confirmation page.
I am using the POST method on my HTML form.
I am forwarding to the PHP confirmation page with header() after it sends the email.
Everything is working fine...
I am trying to grab data a user selected from a drop down menu. User either selects view all, option 1, option 2, or option 3. I have a function called getUserCategory that stores the user choice in a variable called $category. I tried getting the value of the function by
doing:
return $category inside the getUserCategory function
and...
I don't understand why the following is not working in Rails 3. I'm getting "undefined local variable or method `custom_message'" error.
validates :to_email, :email_format => { :message => custom_message }
def custom_message
self.to_name + "'s email is not valid"
end
I also tried using :message => :custom_message instead as was sug...
Last couple of months I've been wondering about all these password strength meters on websites. If you use the same password in every of those registration forms, the result on meter is sometimes different. One say "Strong" other say "Normal" and there are probably some that would even say "Weak".
So the question is, what if there would...
I've set up a Request for Callback form that pops-up when a use clicks a button link, using Fancy Box. However, when the form is filled out and 'Submit' is clicked nothing happens.
The contact form is linked with a form action to /success.php. This page has a script that should send an email notification to the site owner and this scrip...
I have a html form with action="script1.php"
In script1 I need write all data to the database and redirect to
script2.php, but I need all parameters posted to script1 to be sent to script2.
mod_rewrite is on
How I can redirect using PHP with all data come through POST ?
if i do like that this disgusting practice but
<SCRIPT LANGUAGE...
I was trying to convert a file from utf-8 to Arabic-1265 encoding using the Encoding APIs in C#, but I faced a strange problem that some characters are not converted correctly such as "لا" in the following statement "ﻣﺣﻣد ﺻﻼ ح عادل" it appears as "ﻣﺣﻣد ﺻ? ح عادل". Some of my friends told me that this is because these characters are from ...
Hi there,
My application has a form with 2 submit buttons:
<input name="rating" class="Show" type="submit" value="Show answer">
<input name="rating" class="Skip" type="submit" value="Skip">
However I noticed some errors in GAE logs:
ValueError: invalid literal for int() with base 10: 'Voir la r\xe9ponse'
ValueError: invalid literal...
Hello all,
I am developing a site for an International Conference. I want the registered users to upload their research papers in pdf format using a form. I have no previous experiences working with a CMS.
...
Using a dropdown menu, I'm to figure out how to activate SQL query without using a form button. Query triggered automatically on user selection.
The code I have so far uses a button to do the queries. (For now only viewing the "View All" --or view specific product type works. The "order by price" high to low, low to high, will be posted...
How to do it?
If I make a http module it only catches .aspx files. Files with other extensions (.js, .htm) are ignored.
Does this have anything to do with IIS?
Strangely enough all extensions are caught on the ASP.net Web Development Server but not when hosted in IIS.
...
I am having a bit of trouble getting these polymorphic associations to work completely. I followed this tutorial www.railscasts.com/episodes/154-polymorphic-association, but that seems to only work if I am path /controller/ID#/comments when making a new post. If I try to render a partial comment form right on /controller/ID# I get this e...
Nearly all our work is "by hand" with some excellent in-house frameworks. However, these are for ERP-style applications and are (sometimes too) complex. Working with more business-critical applications, one focuses on function and not pleasantry.
We have a need to bring up some non-trivial "external-facing" data entry forms. There wi...