Home › Forums › Guriddo jqGrid JS › Help › how to pass the row’s id to Ajaxify
Hello Tony
I used to use this code with my old ajax code
jQuery(“#dsEdit”).click( function() {
hi again..
just wanted to up this post
any idea is appreciated
thanks
I do not test but it could be:
$('#dsEdit').ajaxify({
Sorry It
thanks a lot YamilBracho
I'll try it right now
when i past the code you gave me..
the grid doesn't want to appeare anymore..
i really do appreciate your help..
but the problem is still there..
anyone could help me out?
thanks again
Do you check if the parameter are been passed ?
everything is working fine
but once i add this lines
function getDsId() {
Hello,
What are all the parameters of ajaxify?
Can you add a function to the link parameter?
What you mean with grid does not work?
Regards
Tony
hi Tony
“What are all the parameters of ajaxify?”
| Option | Value | Default | Note |
| event | blur, focus, load, resize, scroll, unload, click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, error | click | |
| link | string | false | link to the page that are going to be loaded (instead of href) |
| target | jQuery selector | body | you can use any method of jquery selection: #id, .class, element … |
| method | string ( GET, POST, PUT, DELETE) | GET | (PUT, DELETE are not supported by all browsers) |
| tagToload | jQuery selector | false | See examples about this option. |
| loading_image | string | /ajaxify/loading.gif | Path to the loading image |
| loadHash | boolean | false | See examples about this option. |
| params | string | ajax=true | you may need to check if the visitor loaded this page via ajax or not. |
| timeout | number | false | in ms. there is a bug in this option on linux servers |
| contentType | string | application/x-www-form-urlencoded | it depends on loaded data. don’t change it if you dont know what it is. |
| dataType | string | html | |
| cache | boolean | false | control the browser to cache data or not. |
| username | string | false | A usename to be used in response to an HTTP access authentication request. |
| password | string | false | A password to be used in response to an HTTP access authentication request. |
| onStart | function | false | A pre-callback to modify the XMLHttpRequest object before it is sent |
| onError | function | false | A function to be called if the request fails. |
| onSuccess | function | false | A function to be called if the request succeeds |
| onComplete | function | false | A function to be called when the request finishes (after success and error callbacks are executed) |
more info: http://max.jsrhost.com/ajaxify-jquery-plugin/
“Can you add a function to the link parameter?”
I'm not that expert with ajaxify or js.
“What you mean with grid does not work?”
the grid is working fine till i add this function in between
function getDsId() {
Hello,
You should add this function within
jQuery(document).ready(function(){…
Regards
Tony
do you mean like this?
jQuery(document).ready(function(){
hi again guys, the reason of making jqGrid doesn't work at all when i add that function was the “” because when i copy it i just paste it into the file without noticing it changed..
anyway. now the problem is everything works fine exept ajaxify, because it seems that its being called once the page is loaded not once i click the link.
i mean. because of
link: '?option=modify&oper=edit&id='+ getDsId(),
so ajaxify calls getDsId() once the page is loaded so i made this code.. and it works, the only problem is the ajaxify doesn't work from the first click so i have to click twice
one click to select the row
and two click on edit link
and here is the code..
jQuery(document).ready(function(){
It seems that row selecting event occurs first than Click on the link and it makes sense because you have to select the row first to populate the selrow property.
Maybe doing some hacking in the selectRow event could do what you want to do…
HTH
but i think selectRow is working fine and so ajaxify..
my only problem i don't know how to combine them together
if anyone expert with javascript, please help me out
thanks a lot guys
please check this out http://max.jsrhost.com/2008/10/03/ajaxify-support/#comment-36
it could be helpful to you.. so you can get a clear vision on the problem..
please.. guys.. i don't know what to do…
thanks a lot
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top