Announcement

Collapse
No announcement yet.

custom script in fragment problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    custom script in fragment problem

    hi all

    ive added some script to a brochure page fragment using
    Code:
    !<< >>!
    but when i upload my site, actinic takes out my line breaks, breaking the code.

    any ideas folks?

    loving v8 btw!

    #2
    Provide us with all of the code, will probably be easier to find out the problem.

    Comment


      #3
      cheers lee. its just an asp send mail:

      !!<
      Code:
      <% 'Get the form data 
      
      name = Request.Form("requiredname") 
      senderEmail = Request.Form("requiredemail") 
      subject    = Request.Form("subject") 
      recipient   = "email@address.com" 
      body        = Request.Form("requiredname") & vbcrlf & Request.Form("requiredemail") & vbcrlf & Request.Form("telephone") & vbcrlf & Request.Form("subject") & vbcrlf & Request.Form("comments") 
      
      ' Create the JMail message Object 
      
      set msg = Server.CreateOBject( "JMail.Message" ) 
      
      ' Set logging to true to ease any potential debugging 
      ' And set silent to true as we wish to handle our errors ourself 
      msg.Logging = true
      msg.silent = true ' Enter the sender data
      
      msg.From = senderEmail 
      msg.FromName = name ' Note that as addRecipient is method and not 
      ' a property, we do not use an equals ( = ) sign 
      
      msg.AddRecipient recipient ' The subject of the message 
      msg.Subject = subject ' And the body 
      msg.body = body ' Now send the message, using the indicated mailserver 
      if msg.Send("mail.server.com" ) then 
      Response.write "Done" '
      else 
      Response.write "Not Done" 
      end if 
      ' And we'res been sent. 
      %>
      >!!

      Comment


        #4
        Not the most elegant, but you could add the following in between every line you want to force to a new line:
        >!!
        !!<

        (excepting the very last line of course)

        Comment


          #5
          cheers

          that adds a <br/> inside my asp - it doesn't like that either...

          Comment


            #6
            not so much solved, as avoided:

            I created a new layout variable for my asp page added the code to its header instead. not ideal, but works =)

            Comment


              #7
              ah ok, even better - that script i was trying to add was for a form to email page - ive just seen that actinic generates one anyway called mail_form.html.

              out of interest, how its linked to is mentioned in this thread: http://community.actinic.com/showthr...E+contact+form

              sweeet

              Comment

              Working...
              X