This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

two action in one button click, one after another  RSS feed

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have four files
*try.html   
*index.php  // mysql data to json format conversion
*in.html    //d3 design
*data.json   // json for d3

try.html


i want to do two actions in one button click (one after another)
first  index.php should load and write json into the data.json file
second the json file should be used in the in.html

index.php


in.html


in try.html file i tried to do two actions at a time,but onlu the index.php file runs and get the result into data.json..
no action in in.html file..
can anyone tell me where it goes wrong???
 
Ranch Hand
Posts: 139
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use syntax as this way at the button onclick event.
 
surya preethaaa
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply...
i used like this

only the d3 file run and show data.json file not found
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!