Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - MultiformeIngegno
211
Quote from wanchope on May 1st, 2013, 02:07 PM
One likeable thing about them is that they are using Filzilla server.
What?
212
Off-topic / Re: Installing free cpanel in Amazon Cloud Hosting
« on April 30th, 2013, 03:00 PM »
I use Amazon S3 but never tried EC2. What do they provide?
213
Off-topic / Re: WEDGEHAMMER 40,000
« on April 30th, 2013, 01:19 PM »
Wedge is still open to WIDE db/structure changes. A public beta would reduce space for these changes..
214
Off-topic / Re: Pass text to a url through input form
« on April 29th, 2013, 08:51 PM »
This is turning me mad. I'm sure yesterday this worked just fine... Without me changing anything now the form route is calculated only the SECOND time you fill the form and press ENTER. It's non sense.. <_< The first time it seems the form is submitted to the server (note the ?=... after the url)
http://goo.gl/wr3qi (to try you have to click as always on "calcola il percorso" and then enter an address like "Via Eugenio Checchi, Roma", even though it works also with a starting address from London :D )
Posted: April 29th, 2013, 08:49 PM

EDIT: Uhm, no. Now it's working again. Maybe it was just an old version of the page cached.
215
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 04:32 PM »
Quote from Arantor on April 28th, 2013, 04:30 PM
At the end of the onsubmit event, return false. You don't want the page to be reloaded, so that's the way to do that.

The only reason it didn't get reloaded before is because you're not using input type="submit" which would do that.
Yup! onsubmit="calcRoute();reducemap(); return false" worked. :D
216
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 04:27 PM »
Quote from Arantor on April 28th, 2013, 04:20 PM
Define 'didn't work'
Right! :D
If you go to http://goo.gl/wr3qi (live site), click on "calcola percorso", enter an address (example: "Via Eugenio Checchi, Roma") and push the Vai (Go) button, the route is built. If you enter the address and instead of the button you press ENTER, the page is reloaded.

Now with onsubmit the page is reloaded both if I press ENTER and if I push the Go button: http://ffio.it/map.html
217
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 04:09 PM »
Uhm, I tried with this but didn't work:

   <form onsubmit="calcRoute();reducemap();" id="percorsoform" style="display:none;top:-3px;position:relative">
      <input type="text" id="start" name="start" placeholder="Indirizzo di partenza" style="margin-left:5px;width:200px">
      <input type="submit" value="Vai">
   </form>

http://ffio.it/map.html
218
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 03:29 PM »
The form works properly on every browser if you click the "Go" button (<input type="button">). It doesn't if I fill the input type="text" and press ENTER on my keyboard (or for example push the "Go" button in iOS keyboard). So: it works if I push the input type="button", not if I press ENTER from keyboard. How can I make it work that way too?
219
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 03:22 AM »
Anyway I'm so happy I managed to get this working, take a look at danielamandolini.it/map.html . If you click on "(calcola percorso)" which mean "calculate route" near "Mezzi pubblici" (public transports) and insert an address (for example "Via eugenio checchi, Roma") it shows you the route to an address (in this case an ambulatory) via public transports! :)
The only thing I have to look for this to be perfect is to set the time for the route (of course in the night there are a lot less means). :)
220
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 03:10 AM »
Quote from Arantor on April 28th, 2013, 03:02 AM
Of course it would. Except the 'input' variable that you're 'passing' to calcRoute would just be undefined. Since you're not passing anything to it from the onclick, there's no need to declare that it accepts a parameter ;)

Code: [Select]
function calcRoute() {
  var start = document.getElementById('start').value;
}
Right! Removed the redundant declaration :)
221
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 02:59 AM »
It worked with this:
Code: [Select]
<form>
<input type="text" id="start" name="start">
<input type="button" onclick="calcRoute();" value="Go">
</form>
222
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 02:35 AM »
You mean something like

Code: [Select]
function calcRoute( input ) {
  var start = document.getElementById('start').value;
}

Code: [Select]
<input type="text" id="start">
<input type="submit" value="Go">
223
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 02:26 AM »
Quote from Arantor on April 28th, 2013, 02:24 AM
Call getElementById() on the select, get its value, then call getElementById() on the textbox and set its value to that of the dropdown.
The dropdown can go, it's just there to prove everything works :D
So there's no problem of double-called function. I just need input box to work. :)
224
Off-topic / Re: Pass text to a url through input form
« on April 28th, 2013, 01:45 AM »
Code: [Select]
function calcRoute() {
  var start = document.getElementById('start').value;
 }

    <select id="start" onchange="calcRoute();">
      <option value="Piazza dei cinquecento, Roma">Termini</option>
      <option value="Via Fausto Gullo 58, Roma">Giacomo</option>
      <option value="Via Daniele Manin 72, Roma">Manin</option>
    </select>

Works.

Anyway Instead of a dropdown list I need an input box. How can I pass the value to getElementById with an input box?
I tried something like this but seems plain wrong.. :P

Code: [Select]
<form style="display:inline">
<input type="text" id="start" placeholder="Start address">
<input type="submit" value="Go" onsubmit="calcRoute();">
</form>

Demo: http://ffio.it/test.html
225
Off-topic / Re: Pass text to a url through input form
« on April 27th, 2013, 07:33 PM »
Quote from Arantor on April 27th, 2013, 07:32 PM
That will require JS to do, and offhand I'm not sure how best to do that.
Thanks. :)
Users will have to insert cityname for now. ;)