ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Email and URL's with a SAEF - Javascript Problem?

July 22, 2010 8:17am

Subscribe [4]
  • #1 / Jul 22, 2010 8:17am

    Liam Spencer

    37 posts

    Hi,

    I’m using SAEF’s to submit email addresses and website URL’s to a weblog, but they seem to be submitting to the weblog with tags such as a span and anchor tags. Here is a similar snippet of code I found on another thread which I seem to be getting:

    <span>.(JavaScript must be enabled to view this email address)</span>

    I have set the weblog preferences to not automatically append URL and emails. I have tried pretty much everything suggested in all the similar threads but my problem seems to be that these tags are created when the data is inserted, as I can still see the tags when I look at the data directly in the database.

    My SAEF is contained in a jQuery Accordion, and I feel this may be the problem. The only problem I have is that the jQuery plugin is fundamental to the design and I need this to work!

    Any suggestions as to how I can fix this would be so much appreciated. I’m using Expression Engine build 1.6.9.

    Thanks.

  • #2 / Jul 22, 2010 6:55pm

    Brandon Jones

    5500 posts

    Hi Liam,

    That output is created by EE’s encode tag - is that in your SAEF at all?

  • #3 / Jul 22, 2010 7:46pm

    Liam Spencer

    37 posts

    Hi Brandon,

    Thank you for your response. Yes it is being used as it seemed to help with the image upload my SAEF does (with LG File).

    I’ll remove the tag when I’m in the office tomorrow morning and see if the problem is solved without affecting the file upload.

    Thanks again, so close to the end of this project and this has been causing a headache. I’ll be back in touch!

  • #4 / Jul 23, 2010 1:28am

    John Henry Donovan

    12339 posts

    Liam,

    no problems. Let us know how you get on.

  • #5 / Jul 23, 2010 5:17am

    Liam Spencer

    37 posts

    Hi guys,

    I made a mistake, the encode tag is not used at all in the SAEF. I do however have the Simple SAEF Enctype (v.0.0.1) extension, and disabling this has solved this particular problem, but now my image upload does not work. The following statement is thrown which I believe is because it now no longer has a multipart/form-data type.

    Is their a simple solution I am missing that can get both to co exist without me banging my head against a wall?!

    MySQL ERROR:
    
    Error Number: 1054
    
    Description: Unknown column 'field_id_20_img' in 'field list'
    
    Query: UPDATE `exp_weblog_data` SET `weblog_id` = '10', `field_id_22` = 'Test', `field_id_23` 
    = 'John', `field_id_24` = 'User', `field_id_21` = 'Scotland', `field_id_25` = 'Test', 
    `field_id_29` = 'Test Business', `field_id_26` = 'web', `field_id_27` = 'test', 
    `field_id_94` = 'test', `field_id_95` = 'www.facebook.com', `field_id_20_img` = 'Array', 
    `field_id_28` = 'This is a test.', `field_id_20_img_0` = 'face2.jpg', `field_id_20_img_1` = '' 
    WHERE entry_id = '1012'
  • #6 / Jul 23, 2010 6:28am

    Liam Spencer

    37 posts

    Hi guys,

    It appears that adding enctype=“multi” to my SAEF tag that deals with the email address has fixed the problem. Thanks for identifying the problem, you’ve been a great help.

  • #7 / Jul 23, 2010 10:00am

    Ingmar

    29245 posts

    Very glad to hear it. Please post again in case there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases