Development

#2128 (Highlight Visual Effect doesn't work with parameters)

You must first sign up to be able to contribute.

Ticket #2128 (closed defect: duplicate)

Opened 1 year ago

Last modified 1 year ago

Highlight Visual Effect doesn't work with parameters

Reported by: Manuel.Dalla.Lana Assigned to: noel
Priority: minor Milestone: 1.0.8
Component: helpers Version: 1.0.5
Keywords: visual_effect highlight startcolor endcolor Cc:
Qualification:

Description

Passing startcolor and endcolor to the highlight visual effect in Javascript Helper make the form to not call remote function but the form acts as a normal post, with page reload. tested on firefox 2.0.0.6, opera 9, ie 6sp1

here is the php code:

<?php echo form_remote_tag(array(

'url' => '@gotoaction', 'update' => 'the_div_id', 'loading' => "\$('input').value = ", 'complete' => visual_effect('highlight', 'div_to_highlight', array('startcolor' => '#ff99ff', 'endcolor' => '#999999')),

))

?>

this is the generated html+js:

<form onsubmit="new Ajax.Updater('div_to_highlight', '/gotoaction', {asynchronous:true, evalScripts:false, onComplete:function(request, json){new Effect.Highlight('div_to_highlight', {endcolor:#ffffff, startcolor:#00ff00});}, onLoading:function(request, json){$('tag').value = }, parameters:Form.serialize(this)}); return false;" action="/gotoaction" method="post">

Change History

09/11/07 12:07:42 changed by gregoire

  • owner changed from fabien to noel.
  • qualification set to Unreviewed.
  • milestone set to 1.0.8.

09/16/07 17:22:18 changed by fabien

  • status changed from new to closed.
  • resolution set to duplicate.