mardi 31 mars 2015

Google Chrome Autofill - How to disable

I have a page to search for a address, which uses the info typed by the user to get the desired address.


Lately chrome has been showing the autofill option in the address field. I've search throughout the web and couldnt really see a workaround that would work. I've tried autocomplete="off" but with no luck


Is there any efficient way to prevent google chrome not only store form information but also use the autofill feature ?


I want to do this on client side (HTML)


Best Regards, Rui duarte


How to fill a PDF/A-1 in Java

I've got a pdf/a-1 form which I have to fill in Java.


The problem is, it works perfectly fine with normal pdf but not with pdf/a-1.


Using a normal pdf form, I display the form fields and implement an HashMap from which I generate myself an fdf file.


Then I import my fdf file into the normal pdf form using pdftk.exe and it works fine.


Using the pdf/a-1 form, I can't display fields and If I try to import an fdf file, it doesn't fill the form.


I don't know if there is a simple method which can fill a pdf/a-1 form or if I should use some mechanisms to make my pdf/a-1 fillable?


I've tried pdfbox and itext but didn't really find anything.


Hope you could help.


Best regards.


collapse inline form bootstrap

i've added a inline-form to my page, in the main area,


the form is a bit to wide, i would like that it collapse at 991px,


but the rest of the page can collapse at 767px


i understand it can be done with mediaquery but not sure on what to code.


i'm stuck here! what can i do?


i copied the inline form originally from a navbar of a file, the button is working fine.


it look like this:



<div class="text-center">
<button
class="btn btn-default form-toggle"
type="button"
data-toggle="collapse"
data-target="#collapseExample"
aria-expanded="false"
aria-controls="collapseExample">
<span class="sr-only">Toggle navigation</span>
Reservations
</button>
</div>

<div id="collapseExample" class="navbar-collapse collapse">

<div class="text-center ">

<form class="form-inline navbar-form" name="bookerform" action="---" method="GET" target="_self">
<div class="form-group">hidden elements</div>
<div class="form-group">arrivo</div>
<div class="form-group">partenza</div>
<div class="form-group text-left"> Numero N</div>
<div class="form-group text-left"> Numero A</div>
<div class="form-group text-left"> Numero B</div>
<div class="form-group"> button check</div>
</form>

</div>

</div>



<!-- Form end -->

TokenMismatchException on different workstations

Laravel 5 Website:


When my co-workers submit forms on the website, they are getting the error: tokenmismatchexception


My co-workers are both running on Mac-os and using Mamp to host the website.


I myself am running on Windows 7 64bit and using Xamp. I have never run into this error myself.


We all are using source-tree and they have the exact same project as me. Completely unedited. They've tried deleting and cloning it again but still the same problem.


This question is quite vague but I'd appreciate if someone could give some insight on what to look into for possible solutions.


Passing form object to another method

Im trying to pass a form object from the method that creates it to one that will show it and set a few properties on it, instead of having the smae code in each button event. Im getting the error "Argument 1: cannot convert from 'ref RWCStatTracker.Fixture.FRMAddFixture' to 'ref System.Windows.Forms.Form'" and "The best overloaded method match for 'RWCStatTracker.Form1.showForm(ref System.Windows.Forms.Form)' has some invalid arguments" These are occuring on line 70 in the button click event where it has showForm(ref frm);



public void addToolStripMenuItem3_Click(object sender, EventArgs e)
{
RWCStatTracker.Fixture.FRMAddFixture frm = new RWCStatTracker.Fixture.FRMAddFixture();
showForm(ref frm);
}

public void showForm(ref Form frm)
{
frm.TopLevel = false; //set it's TopLevel to false

Controls.Add(frm); //and add it to the parent Form
frm.Show(); //finally display it

frm.BringToFront(); //use this it there are Controls over your form.
}


I've found many articles on google but none are really achieving what im trying to achieve


Any ideas how I can make this work?


Typo3 powermail optin redirect

My static form works like a charm. But when I try to use the optin, the redirect breaks. The redirect is to the same page where the form is send from and additionally my form is hidden an the optinmessage is shown. I want to achive, that I am redirected to a special id and that my form is shown again without the message. Here my code. It´s a static code which I place at the footer, because this form is on every page.



lib.newsletterform < tt_content.list.20.powermail_pi1
lib.newsletterform {
settings.setup {
thx.redirect = {$page.pages.newsletter.thankyou}
receiver {
email = {$page.newsletter.receiver.email}
name = {$page.newsletter.receiver.name}
subject = {$page.newsletter.receiver.subject}
}
sender {
email = {$page.newsletter.sender.email}
name = {$page.newsletter.sender.name}
senderName = {$page.newsletter.sender.senderName}
senderEmail = {$page.newsletter.sender.senderEmail}
subject = {$page.newsletter.sender.subject}
}
main {
# newsletterform
form = 1
optin = 1
pid = 37
}
}
view {
# set new template for footer layout
templateRootPath >
templateRootPaths >
templateRootPaths {
10 = packages/Sites/page/Resources/Private/plugins/powermail/TemplatesFooter/
}
}
}

How to POST form data from within a table to PHP

I currently have a Timesheet form I am creating for the employees at my work and I am stuck at getting the input values to post correctly. I have a database set up but right now, I can't even get the values to show in a .php page. Here is a sample from my current table:



<html>
<form method="POST" form action="result.php">
<table>
<tr><td><b>Day of Week</td><td><b>Week 1 Hours</td><td><b>Week 2 Hours</td> <td>
<tr><td>Monday</td><td>
<input type="text" name="Monday" size="3" maxlength="4" value="" onkeypress="return inputLimiter(event,'Numbers')">
<input type="checkbox" tabindex="-1" name="Stime1">Sick?<input type="checkbox" tabindex="-1" name="Vac1">Vacation?</td>
<td><input type="text" name="Monday2" size="3" maxlength="4" value="" onkeypress="return inputLimiter(event,'Numbers')">
<input type="checkbox" tabindex="-1" name="Stime2">Sick?<input type="checkbox" tabindex="-1" name="Vac2">Vacation?</td></tr>
</table>
<input type="submit" value="submit">
</html>


This pattern continues for each day of the week. And then when I try to view the results of the post I couldn't get anything to work. I resorted to trying:



<html>
<?php var_dump ($_POST);
?>
</html>


All I get is a blank page, and if I view source it just shows the php code used. It's late here so I must be too tired and missing something but I just can't figure it out. Any and all help is much appreciated.


Thanks!