<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Career Change</title>
	<atom:link href="http://wallerjamison.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://wallerjamison.com/</link>
	<description>Prepare to Get a Job or Build a Portfolio Career</description>
	<lastBuildDate>Thu, 09 Feb 2023 14:59:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>
	<item>
		<title>Questionnaire</title>
		<link>https://wallerjamison.com/questionnaire/</link>
					<comments>https://wallerjamison.com/questionnaire/#respond</comments>
		
		<dc:creator><![CDATA[Waller]]></dc:creator>
		<pubDate>Sun, 08 Jan 2023 14:58:39 +0000</pubDate>
				<category><![CDATA[survey]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://wallerjamison.com/?p=52366</guid>

					<description><![CDATA[<p>The post <a href="https://wallerjamison.com/questionnaire/">Questionnaire</a> appeared first on <a href="https://wallerjamison.com">Career Change</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="et_pb_section et_pb_section_0 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h2 style="text-align: center;"></h2>
<h1 style="text-align: center;"><strong><span style="color: #000000;">Than</span><span style="color: #000000;">k you for booking a call with me. </span></strong><strong><span style="color: #000000;"></span></strong></h1></div>
			</div>
			</div>
				
				
				
				
			</div><div class="et_pb_row et_pb_row_1">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_1  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_1  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h2 style="text-align: center;"></h2>
<p><span style="color: #000000;"></span></p>
<p><span style="color: #000000;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p>
<p><span style="color: #ffffff;"></span></p></div>
			</div>
			</div>
				
				
				
				
			</div><div class="et_pb_row et_pb_row_2">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_2  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_2  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h2 style="text-align: center;"><strong><span style="color: #000000;"> Please fill in the questionnaire below. This will help me prepare for our chat.</span></strong></h2>
<h2 style="text-align: center;"></h2>
<h2 style="text-align: center;"><strong><span style="color: #000000;">I&#8217;m really looking forward to talking to you soon.</span></strong></h2></div>
			</div><div class="et_pb_module et_pb_text et_pb_text_3  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>        <div class="wp-sjs-plugin" id="surveyContainer-2">
            <div id="surveyElement-2">Survey is loading...</div>
            <div id="surveyResult-2"></div>
        </div>
        <script>
            jQuery.ajax({
                url:  "https://wallerjamison.com/wp-admin/admin-ajax.php?action=SurveyJS_GetSurveyJson",
                type: "POST",
                data: { Id: 2 },
                success: function (data) {
                    var json = {}
                    let theme;
                    if (data.json) {
                        json = JSON.parse(data.json.replace(/\\\"/g, "\"").replace(/\\\\/g, "\\").replace(/\\'/g, "'"));
                    }
                    if (data.theme) {
                        theme = JSON.parse(data.theme.replace(/\\\"/g, "\"").replace(/\\\\/g, "\\").replace(/\\'/g, "'"));
                    } else {
                        theme = null
                    }
                    jQuery(document).ready(()=>{
                        initSurvey2(json, theme);
                    });
                }
            });

            function initSurvey2(json, theme) {
                const survey2 = new Survey.Model(json);
                if (!!theme) {
                    survey2.applyTheme(theme);
                }
                window.survey2 = survey2;               
                survey2                    .onComplete
                    .add(function (sender, options) {
                        options.showSaveInProgress();
                        jQuery.ajax({
                            url:  "https://wallerjamison.com/wp-admin/admin-ajax.php?action=SurveyJS_SaveResult",
                            type: "POST",
                            data: { SurveyId: '2', Json : JSON.stringify(sender.data) },
                            success: function (data) {options.showSaveSuccess();},
                            error: function (xhr) {options.showSaveError(xhr.responseText);}
                        });
                        //document
                        //    .querySelector("#surveyResult-2")
                        //    .innerHTML = "result: " + JSON.stringify(sender.data);
                    });

                survey2.onUploadFiles.add((_, options) => {
                    const formData = new FormData();
                    options.files.forEach((file) => {
                        formData.append(file.name, file);
                    });

                    fetch("https://wallerjamison.com/wp-admin/admin-ajax.php?action=SurveyJS_UploadFiles", {
                        method: "POST",
                        body: formData
                    })
                        .then((response) => response.json())
                        .then((data) => {
                            options.callback(
                                options.files.map((file) => {
                                    return {
                                        file: file,
                                        content: data[file.name]
                                    };
                                })
                            );
                        })
                        .catch((error) => {
                            console.error("Error: ", error);
                            options.callback([], [ 'An error occurred during file upload.' ]);
                        });
                });

                function deleteFile(fileURL, options) {
                    try {
                        const apiUrl = `https://wallerjamison.com/wp-admin/admin-ajax.php?action=SurveyJS_DeleteFile&name=${fileURL}`;
                        fetch(apiUrl);
                    } catch (error) {
                        options.callback("error");
                    }
                }

                survey2.onClearFiles.add((_, options) => {
                    if (!options.value || options.value.length === 0) {
                        options.callback("success");
                        return;
                    }

                    if (!options.fileName && !!options.value) {
                        for (const item of options.value) {
                            deleteFile(item.content, options);
                        }
                    } else {
                        const fileToRemove = options.value.find(
                            (item) => item.name === options.fileName
                        );
                        if (fileToRemove) {
                            deleteFile(fileToRemove.content, options);
                        } else {
                            console.error(`File with name ${options.fileName} is not found`);
                        }
                    }
                    options.callback("success");
                });

                jQuery("#surveyElement-2").Survey({model: survey2/*, css: customCss*/});
            }
        </script>        
        </p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>The post <a href="https://wallerjamison.com/questionnaire/">Questionnaire</a> appeared first on <a href="https://wallerjamison.com">Career Change</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wallerjamison.com/questionnaire/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
