I'll add one more thing to this - I also tried using onActivate to
override the data I'm sending, like this:


<script>
var dataToSend = "initialValue";
$('#id_preview_link').cluetip(
{
   ajaxSettings: {dataType:'html',
                  type:'POST',
                  onActivate: function(e) { dataToSend = "zzz"; return
true; },
                  data:{'markup':dataToSend)}
                 }
}
)
</script>

So I'm just trying to override the data sent in the post by setting
dataToSend to "zz". However I still find that the value "initialValue"
is sent in the post, rather than "zzz".  Karl, if you have a second
could you comment?  I'm thinking there must be something obvious I'm
missing here.

Again, the basic thing I am doing is just trying to allow the user to
type into a textarea and then send what they've typed in the cluetip's
post, the above is just my attempt to debug why I can't send the new
value that's in the textarea after the user types into it.

Margie

On Sep 18, 1:58 pm, Margie <margierogin...@gmail.com> wrote:
> I am using the cluetip plugin to show a formatted version of text that
> the user types into a text area.  So I have a <textarea
> id="description">, and as the user types, they can at any time click a
> "preview" button will call cluetip to display the popup.  Here is my
> current cluetip call:
>
> $('#id_preview_link').cluetip(
>  {
>    ajaxSettings: {dataType:'html',
>                   type:'POST',
>                   data:{'markup':$('#id_description')}
>                  }
>  }
> )
>
> When I click my preview button to activate the clutip, the post data
> that is sent is whatever was in #id_description at the type the cluetip
> () code above was executed.  IE, it doesn't post the current value
> that's in #id_description.
>
> Can anyone tell me how to make the activation of the cluetip send the
> current text that is in my #id_description field?
>
> Thanks very much,
>
> Margie

Reply via email to