CodeChargeMVP
Posts: 473
|
| Posted: 07/08/2010, 3:26 AM |
|
Hello,
I´ve resolve with javascript the code for a very interesting stuff,
imagine than you got a grid with lots of fields,
¿wouldn´t be better got a link button to a new pop-up window
which show a detail from the
actually row grid?
I think so,
so that´s what i´ve resolved i´ll write a tutorial on this post
so everybody could make it work.
This Comes necesarry cause of a bug on the LINK Codecharge Component,
which doesn´t fix with the fuction OpenPop_UpList() created by the Codecharge developers.
When you try using it that compoenent,it goes weird.
Greets.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/09/2010, 3:02 AM |
|
I´ve improved the code made by andy and resolving some small mistakes.
Without his thinking i could´t be able to made this.
TextBox:
Id: whateveranotherdifferentname_{gridname:rowNumber}
Name:Whatevername_
Type: Hidden
Button:
Id: gridnameButton1_{gridname:rowNumber}
Type: Submit
Value: +
Events: OnClick OpenPop_UpList(this);return false;
function OpenPop_UpList(Campo)
{
with(campo)
{
var fieldname = id;
row_id = fieldname.substr(22);
var parametros="here define the parameters window";
var linkhref="thenameofyourpage.php?ParameterName="+
window.document.getElementById("whateveranotherdifferentname_"+row_id).value;
var win=window.open(linkhref,"win",parametros);
win.focus;
}
}
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|