Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • javier 64 posts 84 karma points
    Jan 21, 2011 @ 12:02
    javier
    0

    Modify mailTo address 'on the fly'

    Which would be the best way to do this?

    i would like to modify 'mailto' address with URL parameters.

     

    Regards

  • Kim Andersen 1447 posts 2194 karma points MVP
    Jan 21, 2011 @ 12:45
    Kim Andersen
    0

    Hi Javier

    The code that you want to modify, how does that that look? Could you provide us with that code?

    /Kim A

  • javier 64 posts 84 karma points
    Jan 21, 2011 @ 13:23
    javier
    0

    Ok. ill start talking about my problem:

    I have a worldmap with googlemaps on my umbraco website that load a lot of information from a KML file (is a xml with geodata positions, latitude,altitude, icons, some text... and basically it add a lot of google map points to the map of shops and selling points) . This is a great sollution for me, i think that it's awesome :) but it is a little limited on how i show the information, and i can use it. Otherwise my problem is to use the email that comes from KML file, it is simple HTML text between <a>...</a>, so i need to pass an email an a name on the URL calling the form. Form example:

    http://mywebpage.com/PliableForm.aspx?mail=othermail@company.com&name=Shop A-B-C

    How can i tell PliableForm that toAddress is the parameter "mail" on URL?

     

  • Kim Andersen 1447 posts 2194 karma points MVP
    Jan 21, 2011 @ 13:28
    Kim Andersen
    0

    I think I know what you want to do, but can you provide us with the XSLT code that creates all of the functionallity. The place in the code where the mailto: is written.

    If you want to grab a value from a parametre in the URL called 'mail' you can get it like this:

    <xsl:variable name="emailFromUrl" select="umbraco.library:Request('mail')" />

    /Kim A

  • javier 64 posts 84 karma points
    Jan 21, 2011 @ 13:48
    javier
    0

    I'm not explaining very well i think.

    The contact form .aspx with the Pliable form have on URL Pliableform.aspx?mailto=XXX@XXX.COM how to say Pliable that toAddress is this mail when i click SEND on the form.

    the file "pliableForm_table.xslt" don't send toAddress. isn't it?

  • Jon Cuthbert 84 posts 173 karma points
    Jan 21, 2011 @ 20:55
    Jon Cuthbert
    0

    Hi Javier,

    Currently this would not be possible to do. I can send you the source if you want to try to make this work. It would be possible to add the email from the querystring to the json object that is sent to the webservice.

  • javier 64 posts 84 karma points
    Jan 24, 2011 @ 07:56
    javier
    0

    I dont know what to say Jon, i can try it with vs 2010 but, actually my umbraco version is 4.0.4.2 and i'm using your legacy xslt. furthermore i only need a very basic contact form, i need to evaluate if it's easier for me to dev a small user control in .net to send the email.

    Thanks for all, ill tell you if i'm ready to try with source code.

    what do you think?

  • javier 64 posts 84 karma points
    Jan 24, 2011 @ 08:55
    javier
    0

    ok Jon, send me source code, i'll try to modify it. For now is the best sollution i have found for my requirements.

    i dont know if i must update my umbraco installation first. because i dont like so much the legacy version because "table tr-td" system.

     

  • Jon Cuthbert 84 posts 173 karma points
    Jan 24, 2011 @ 16:46
    Jon Cuthbert
    0

    Javier,

    The source code won't help you out with the markup inside the legacy xslt. You be able to change that yourself inside the xslt. Just search for the table and td elements and delete them and change the tr elements to p tags or whatever you want.

    As for the source, where would you like me to send it?

  • javier 64 posts 84 karma points
    Jan 25, 2011 @ 07:29
    javier
    0

    yes i know, if i get modify source code to work with my system i'll modify XSLT version to get a full DIV/class/id/etc... version. I can send you all and get an alternative version for old installations.

    Please, send me a .zip to informatica2@imor.es.

  • javier 64 posts 84 karma points
    Jan 31, 2011 @ 08:41
    javier
    0

    Jon, i have finished all changes. What do you want to recieve. I can send you all archives to be checked.

    Furthermore, i have another quesiton, If i need a file attachment system, what would be the best way?.

  • Jon Cuthbert 84 posts 173 karma points
    Feb 01, 2011 @ 01:33
    Jon Cuthbert
    0

    Thanks, I'll take a look. jon [at] cuth {dot} net.

    I haven't looked into file attachments yet.

Please Sign in or register to post replies

Write your reply to:

Draft