hi,
I have two button(I created with code snippet)
1. button code snippet is (echo '<BUTTON id="print_selected2" name="print_selected2" title="Görev Kağıdı yazdır" class="btn btn-primary" >
<SPAN class="glyphicon glyphicon-print ">
</SPAN>
</BUTTON>'![;)]()
2.button code snippet is (echo '<BUTTON id="print_takipformu" name="print_takipformu" title="Araç İş Güvenliği Takip Formu yazdır" class="btn btn-primary" >
<SPAN class="glyphicon glyphicon-wrench ">
</SPAN>
</BUTTON>'![;)]()
this code list page jscript onload
1.button clicked must be A area code and 2.button clicked must be B area code
but only B area code working, A area code not working.
A area
----------
var submitUrl="gorev_kagidi_print.php";
if(typeof id=="undefined"){id=this.id;}
pageObj=this; m
$("#print_selected2").unbind("click").bind("click",function(e){
var selBoxes = pageObj.getSelBoxes(pageid);
var form=new Runner.form.BasicForm({
standardSubmit:true,
submitUrl:submitUrl,
method:'POST',
target:'_blank',
id:pageObj.id,
baseParams:{"a":'print'},
addElems: pageObj.cloneFormElements(selBoxes)
});
form.submit();
form.destructor();
});
B area code
----------------
var submitUrl="takip_formu_print.php";
if(typeof id=="undefined"){id=this.id;}
pageObj=this;
$("#print_takipformu").unbind("click").bind("click",function(e){
var selBoxes = pageObj.getSelBoxes(pageid);
var form=new Runner.form.BasicForm({
standardSubmit:true,
submitUrl:submitUrl,
method:'POST',
target:'_blank',
id:pageObj.id,
baseParams:{"a":'print'},
addElems: pageObj.cloneFormElements(selBoxes)
});
form.submit();
form.destructor();
});
where is my fault?
Best regards.
I have two button(I created with code snippet)
1. button code snippet is (echo '<BUTTON id="print_selected2" name="print_selected2" title="Görev Kağıdı yazdır" class="btn btn-primary" >
<SPAN class="glyphicon glyphicon-print ">
</SPAN>
</BUTTON>'

2.button code snippet is (echo '<BUTTON id="print_takipformu" name="print_takipformu" title="Araç İş Güvenliği Takip Formu yazdır" class="btn btn-primary" >
<SPAN class="glyphicon glyphicon-wrench ">
</SPAN>
</BUTTON>'

this code list page jscript onload
1.button clicked must be A area code and 2.button clicked must be B area code
but only B area code working, A area code not working.
A area
----------
var submitUrl="gorev_kagidi_print.php";
if(typeof id=="undefined"){id=this.id;}
pageObj=this; m
$("#print_selected2").unbind("click").bind("click",function(e){
var selBoxes = pageObj.getSelBoxes(pageid);
var form=new Runner.form.BasicForm({
standardSubmit:true,
submitUrl:submitUrl,
method:'POST',
target:'_blank',
id:pageObj.id,
baseParams:{"a":'print'},
addElems: pageObj.cloneFormElements(selBoxes)
});
form.submit();
form.destructor();
});
B area code
----------------
var submitUrl="takip_formu_print.php";
if(typeof id=="undefined"){id=this.id;}
pageObj=this;
$("#print_takipformu").unbind("click").bind("click",function(e){
var selBoxes = pageObj.getSelBoxes(pageid);
var form=new Runner.form.BasicForm({
standardSubmit:true,
submitUrl:submitUrl,
method:'POST',
target:'_blank',
id:pageObj.id,
baseParams:{"a":'print'},
addElems: pageObj.cloneFormElements(selBoxes)
});
form.submit();
form.destructor();
});
where is my fault?
Best regards.