Forums

remove "ml=1" from the chrono url

priyanka_zwt 05 Sep, 2011
Hii

I have one issue regarding chronoform Light box URL and here is the code

form.php
<?php
JHTML::_('behavior.modal');
?>

<input type="text" name="url_param" id="url_param" /> 
<a href="index.php?option=com_chronoforms&chronoform=Form&tmpl=component" id="target_link" class="modal" onclick="append_links()" rel="{handler: 'iframe', size: {x: 600, y: 600}}" >Click Your New Link!</a>


<script type="text/javascript"> 
function append_links() { 
  var url_param = document.getElementById('url_param'); 
  var target_link = document.getElementById('target_link'); 
 
  if ( ! url_param.value ) { 
      return false;   
  } 
 
  target_link.href = target_link.href + '&url_param=' + escape(url_param.value); 
} 
</script>


In belove Form
form1.php, in this file pop up box with get the value..
<div class="ccms_form_element cfdiv_text" id="query_container_div"><label>Query</label>
<input type="text" name="url_param" id="url_param" /> 
<input maxlength="150" size="30" class="" title="" label_over="0" hide_label="0" type="text" value="" name="txtData1" id="txtData1"/>
<div class="clear"></div><div id="error-message-input_text_0"></div></div><div class="ccms_form_element cfdiv_text" id="email_container_div"><label>Email</label><input maxlength="150" size="30" class="" title="" label_over="0" hide_label="0" type="text" value="" name="input_text_1" />
<div class="clear"></div><div id=
"error-message-input_text_1"></div></div><div class="ccms_form_element cfdiv_textarea" id="label_text_container_div"><label>Label Text</label><textarea cols="45" rows="12" class="" title="" label_over="0" hide_label="0" type="textarea" name="input_textarea_2"></textarea>
<div class="clear"></div><div id="error-message-input_textarea_2"></div></div>


there shoulb on a href link the form link shoul be open with this link
index.php?option=com_chronoforms&chronoform=Form&tmpl=component&url_param="whatever text of textbox"


but the link is Open with

index.php?option=com_chronoforms&chronoform=Form&tmpl=component&ml=1


here may i know what is "ml=1" and how i remove it... 😟

Thanks in Advance
This topic is locked and no more replies can be posted.