jekes
Posts: 36
|
Posted: 09/27/2012, 8:05 AM |
|
Hi
I try to get the value of an href link using a custom client code ajax.
Can someone help me please.
Thank's
|
|
|
bannedone
Posts: 273
|
Posted: 09/27/2012, 8:21 AM |
|
Hi
Not sure I understand.
What does ajax have to do with getting an href value???
Am I missing something??
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
jekes
Posts: 36
|
Posted: 09/27/2012, 8:25 AM |
|
I have a grid in an update panel.
I place i link in this grid and I want to get the value of the parameter of the link when i click it.
For the moment i place an hidden record panel and on the refresh event i retrieve the value...
|
|
|
bannedone
Posts: 273
|
Posted: 09/27/2012, 2:50 PM |
|
Hi
Sorry for being so dense.
Now I am even more confused.
What is the "refresh event"??? What is a "Hidden Record Panel"???
Could you be more specific as to what your requirements are here?
Maybe post the code you have already might be helpful in clarifying what you are trying to do.
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
andrewi
Posts: 162
|
Posted: 09/28/2012, 3:18 PM |
|
Hi Jekes,
Do you mean you want to get the value returned by the server when a link is clicked? And you are using Ajax so you can display the returned value to the user? CCS has a way of doing this that could suit such a requirement - search the help for Ajax Autofill.
Andrew
|
|
|
jekes
Posts: 36
|
Posted: 10/02/2012, 1:03 AM |
|
Thank's all for your help.
I put a custom code on the refresh panel which start at the click of the link.
.I get the values with this custom code
var link = sender.href;
var params = link.split('?');
var val_params = params[1].split('&');
for(var k=0; k< val_params.length; k++)
{
var value = val_params[k].split('=');
parameters[value[0]] = value[1];
}
My problem now, the custom code doesn't with a link place in a report panel.
(assign feature on the refresh panel and the link.)
Have someone an idea ?
Thank's
|
|
|
bannedone
Posts: 273
|
Posted: 10/02/2012, 5:01 AM |
|
Hi
Since I still am not to sure what a refresh panel is, try coding your javascript directly without using features.
In other words, modify the html for your link with an onclivk event. that calls your function.
function yourFunction(sender){
your code from above....
}
Then in the link in your report add to the html
onclick="yourFunction(this)"
Just a guess since I really do not know what some on the things you mention are.
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
|