Hi,
I have been working on those materials and I came to a solution. But still there's a problem.
This is details.rb file
` dialog = UI::WebDialog.new("Details", true, "", 410, 875, 1030, 0, true)
dialog.add_action_callback("pass_data"){|dialog,htmlpage|
java = "set_details(#{@name.inspect},#{@description.inspect})"
dialog.execute_script(java)
}
dialog.set_file 'C:\Program Files\Google\Google SketchUp 8\Plugins\set_id\details.html'
dialog.show()`
This is details.html file
<html>
<head>
<script>
function callRuby(htmlpage) {
query = 'skp:pass_data@' + htmlpage;
window.location.href = query;
document.write(query);}
function set_details(a,b){
document.write(a);
document.write(b);}
</script>
</head>
<body onload="callRuby('pull_selection_count');">
</body>
</html>
only "skp:pass_data@pull_selection_count" is the result on the webdialog box.
What i want is to display the values of the Ruby variables name and description.
Do you have any ideas for fixing this?
Thank you in advance.