onlick works in some instances…weird
Posted: 26 September 2007 11:51 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

So, I have 4 different uploader templates, depending on the blog (and destination field for the uploaded file). All these uploader templates point to a template called upload_placement

In two of my weblogs, this works just fine, step 1 upload, step 2 place, click and it places and closes the window. But, in two of my weblogs this does not work. It does not place or close the window. Instead of closing the window, it shows the default blog in the little popup window. All 4 are using the same placement template. Not a copy or a duplicate, but the exact same placement template. I cannot figure out why this is not working. Why is the default weblog showing for 2 of the weblogs but not the others? (I’m assuming it’s showing the default weblog as a 404 as I have no page set as a 404).

Here is the code in my placement template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<
head>
<
title>Place File</title>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{javascript}
</head>
<
body>

<
h3>Step 2 of 2Place the image</h3>

{exp:file_upload:upload_confirm field_replace="end"}
<input type='submit' value='Place Image and Close Window' onclick='fileplacer();window.close();' />
{/exp:file_upload:upload_confirm}

</body>
</
html>

Thank you!

Profile
 
 
Posted: 27 September 2007 09:38 PM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Ok, this was a weird one, but it was because the status group was not set. So, the entry was input as closed (did not show in the blog) and it was throwing a 404 instead of placing the image. Oh, also in the path for the image uploads I forgot a trailing slash… so, it is all working now. It had nothing to do with the placement template at all. smile

Profile