CodeCanyon

Posts by RyanDavies

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

Oh I see, this should do it

$(window).load(function(){
  $('#my_form input[rel=map]').change(function() {
    var new_text = '';
    $('#my_form input[rel=map]').each(function() {
        var this_text = $.trim($(this).val()).replace(' ', '+');
        if(new_text && this_text) {
            new_text += '+';
        }
        new_text += this_text;
    });
    $('.latlng').val(new_text);
});
  });
Then on the map specific parts of the form, put a
<input rel="map" type="text" /> 

or some other rel tag

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

Edit:

Just seen the google maps stuff, I missed that, obviously more drunk than i thought. Auto updating live google map is fairly straight forward, My knowledge of google maps is a bit lacking, but my co developer at work is pretty clued up on it. I will quiz him tomorrow and get something knocked up for you.

i might be missing the point here, but :


function pop_map_string() {

var add_number       = document.getElementById('street_number_div').value;
var add_name          = document.getElementById('street_name_div').value;
var add_suburb        = document.getElementById('suburb_div').value;
var add_postcode     = document.getElementById('postcode_div').value;
var add_state           = document.getElementById('state_div').value;

var map_string = "";

if(add_number != "" ) { map_string += add_number + "+"; }
if(add_name != "" ) { map_string += add_name + "+"; }
if(add_suburb != "" ) { map_string += add_suburb + "+"; }
if(add_postcode != "" ) { map_string += add_postcode + "+"; }
if(add_state != "" ) { map_string += add_state; }

document.getElementById('map_string_div').value = map_string;

}

Horrendously inefficient, partly cos I am a little bit drunk, but thats a way you could do it, run that function on an onblur or on keyup on every input, if that works it can be condensed by using an array etc, but that should do what you are asking for.

And if i have missed the point, blame the booze, not me :P

Ryan

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says
I know a plasterer ;)

lol, that made me giggle

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

which toggle function is this? My Javascript is not as good as i would like it to be, but the only compiled functions I am aware of / knowledgable in are jquerys, and i dont think that is one of them?

DO you have a link to the page, cos I could probably see whats going on better if I can see the markup

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

No worries

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

if you are using show() or slideToggle etc on the avatar_form div, then it seems odd that it is not showing.

what happens if you put a $(’#cropbox’).show(); on your toggle button?

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

well done! :)

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

Hi,

yeah does not look too difficult, I have grabbed these two links for you, they should serve as a good starting point for you :)

http://www.1stwebdesigner.com/tutorials/create-sleek-sliding-boxes-jquery/

http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/

102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says
102 posts
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
RyanDavies says

google url ( refering url )

google.co.uk/#hl=en&source=hp&biw=1920&bih=916&
q=transfer+ncb+to+australia+from+uk&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=2681f0dd6d9da3e6

I imagine they just strip the search term from the url, and plug it into the search box.

by
by
by
by
by