<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
It probably seems that I am using this list as my first line of
defense, since it's been fairly inactive between my posts! But
honestly, I have spent hours and hours and hours in issue queue, IRC
(including ##javascript #jquery), Google, source code, handbook
pages... I feel like the guy amongst the trees looking for a
forest.<br>
<br>
Part of this is documented at <a
href="http://drupal.org/node/1106358">http://drupal.org/node/1106358</a>,
for background...the last 2 or 3 responses being most applicable.
Basically, I am doing a hook_form_alter and adding a #suffix to the
node edit form body to provide a ctools link beneath the body box
that results in a modal form being loaded during the creation of a
node, if the link is clicked. This works fine, including putting a
form in the modal window inside a table (yes, tabular data).<br>
<br>
The issue is that the contents of the body text area at that point
are needed by my module in order to send back the proper content in
the modal window, and I can't seem to get that information back to
Drupal. I do -have- the data...I get it via js from the CKEDITOR
object with a getdata() call. I suspect there is some way to then
give it to ctools to pass back with its ajax call, but cannot find
an example. What I've tried, in lieu of that, is to add it onto the
url that the link is calling. I discovered that even though ctools
is using a click handler to process the link, "onclick" still works,
executes first, and does not interfere with or prevent ctools from
performing its stuff once finished. So, I changed the link to have
an onclick that simply puts the body text into this.sort, making the
url be appended by ?body=xxxx I can't seem to discover if that's
viable, and if so, what to do at that point, as it doesn't appear to
be in $_GET, $_POST, or available by changing the ctools callback
page arguments from array(1) to array(1,2).<br>
<br>
Jeff<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
<meta name="CREATED" content="0;0">
<meta name="CHANGED" content="0;0">
<em>I am a non sequitur. Beware, the contents were packaged where
peanuts are processed.</em>
<p style="margin-bottom: 0in;"><img
src="cid:part1.07050808.08010901@ayendesigns.com"
name="ayenlogo" align="LEFT" border="0" height="54"
vspace="30" width="36"><font style="font-size: 8pt;" size="1">Ayen
Designs
</font><font face="Times New Roman, serif"><font
style="font-size: 8pt;" size="1"><br>
388
Bullsboro Drive #105 · Newnan, Georgia 30263</font></font>
<br>
<font face="Times New Roman, serif"><font style="font-size:
8pt;" size="1">404-271-9734<br>
Web:<a href="http://ayendesigns.com/">ayendesigns.com</a><br>
Blog:
<a href="http://theaccidentalcoder.com/">theAccidentalCoder.com</a><br>
Drupal:
<a href="http://drupal.org/user/367108">j. ayen green</a>
(367108)<br>
IRQ: j_ayen_green<br>
IM (Yahoo) baalwww (MSN)
<a class="moz-txt-link-abbreviated" href="mailto:baalwww@yahoo.com">baalwww@yahoo.com</a><br>
Skype: ayendesigns | Facebook: ayendesigns |
Twitter: @ayendesigns</font></font></p>
<p style="margin-bottom: 0in;"> <font face="Times New Roman,
serif"><font style="font-size: 8pt;" size="1"><br>
<br>
Ayen
Designs is the computer services division of <img
src="cid:part2.09000203.00090502@ayendesigns.com"
name="acmelogo" align="ABSMIDDLE" border="0" height="31"
width="80"> <br>
</font></font></p>
</div>
</body>
</html>