0
function label_parameter(id,ind)
{
var clicked_row = id;
alert(clicked_row);
}

is it possible to pass the value of clicked_row to an object in html??
thanks thanks..^^

Edited by xuexue: n/a

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by phpbeginners
0

this is a new one sir..did u replied? i did not saw your post..

0
ok put this javascrip code between your header <head></head>

<script language="javascript">
<!--
function attach_file( p_script_url ) {
	script = document.createElement( 'script' );
	script.src = p_script_url;
	document.getElementsByTagName( 'head' )[0].appendChild( script );
}
</script>

create a file that we are going to attach.
let say myidfile.php

myidfile.php

put these codes inside the myidfile.php
<?php
session_start();
//setcookie(session_name(), $_COOKIE[session_name()], time()+300, '/');
header( 'Content-Type: text/javascript' );
$ClickID = $_GET['myid']; //Name
echo "my php id".$ClickID;
?>
//combination of php and javascript
alert("is it cool?"+<?=$ClickID;?>);

****************************

//how to use the javascript code attach_file(p_script_url);

function label_parameter(id,ind)
{
var clicked_row = id;
attach_file( 'myidfile.php?myid=' + clicked_row );
}

goodluck!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.