|
![](/images/resource/spacer.gif) |
|
ดึง report asp.net โดยใช้ javascript ทำไงคะ นู๋ใช้ php เขียนเวบ app. และใช้ asp.net ทำ report |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
นู๋ใช้ php เขียนเวบ app. และใช้ asp.net ทำ report ทีนี้นู๋ใช้ javascript ทำเป็นเมนู คำถามคือว่านู๋จะดึงค่า paramiter จาก asp.net อย่างไรคะ ประมาณว่านู๋จะทำเป็น link ไปที่ report (asp.net) ใน javascript ทำไงคะ มีตัวอย่างที่ทำไว้ให้ดูนะคะ
menus[4] = new menu(110, "vertical", 0, 0, 0, 0, "white", "orange", "Verdana,Helvetica", 9, "regular", "regular", "#297DAD", "white", 1, "#297DAD", 2, ">>", false, true, false, false, 0, true, 4, 4, "gray");
menus[4].addItem("http://xxx_server/Report/Rep_Computer_01.aspx?Site=$Site_Code", "", 22,"left", "Computer", 0);
menus[4].addItem("#", "", 22, "left", "xxx", 0);
menus[4].addItem("#", "", 22, "left", "xxx", 0);
menus[4].addItem("#", "", 22, "left", "xxx", 0);
menus[4].addItem("#", "", 22, "left", "xxx", 0);
โดยหน้าตา report นู๋จะต้องออกมาดังนี้
Report Site : xxx (หมายถึง site ที่จะเรียก--> ($Site_Code))
เช่น Report Site : Bangkok เป็นต้น
นู๋ลองแล้วค่ะมันแสดงค่า เป็น Report Site : $Fact_Code อ่ะไม่แสดงชื่อ site
ช่วยแนะนำด้วยนะคะ ขอบคุณมากๆ ค่ะ ด่วนเลยนะคะ..มันติดอ่ะ
Tag : - - - -
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
6 มิ.ย. 2549 11:34:20 |
By :
Nan |
View :
2436 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
$Site_Code นี้มานตัวแปร php ไม่ใช่เหรอต้องเขียนในไฟล์ นามสกุล php ลองใช้แบบนี้สิ <? echo $Site_Code ?>
เช่น save ไฟล์นี้เป็นนามสกุล .php แล้วใส่ดังนี้
<?php
echo "str='http://xxx_server/Report/Rep_Computer_01.aspx?Site=$Site_Code'";
?>
menus[4].addItem(str, "", 22,"left", "Computer", 0);
น่าจะใช้ได้นะ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
6 มิ.ย. 2549 16:28:02 |
By :
โจผีนะ |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|