Hi guys,
thanks in advance.....
i have one html form .this form has been splitted vertically as 2 parts by using html frames.
one frame for pdf files display,
another frame for excel files display
my task is ,
pdf folder having 100 pdf files.and,file names as 1.pdf,2.pdf,3.pdf.....etc.
excel folder having 100 excel files.file names as 1.xls,2.xls,3.xls.....etc.
In adition to as said earlier,html page also having one submit button under the page.
whenever we open html page .it will shows one side 1.pdf file and other side 1.xls file.
then this form should be replaced with 2.pdf and 2.xls when we click on submit button.
Thanks
Ravi Gaddam
Loading
Nitesh KejriwalPosted Aug 28, 2013, 2:20 AM
In HTML Page -
1. define a hidden variable and load it with value 1
On button click -
1. Get the value of hidden variable
2. Increment it by 1
3. Change the src property of iframe
4. Store the new value in hidden variable
Ravi GaddamPosted Aug 28, 2013, 5:04 AM
Thanks a lot Nitesh Luharuka
Regards
Ravi Gaddam
Nitesh KejriwalPosted Aug 28, 2013, 3:32 AM
Attached is your solution :)
Ravi GaddamPosted Aug 28, 2013, 3:12 AM
I am unable to add that logic to page. if you don`t mine, can you add that logic to attached html form.
thanks in advance..
Regards
Ravi Gaddam
Ravi GaddamPosted Aug 28, 2013, 1:48 AM
entire process of this task should be completed by using html , javascript or ajax..because, this system will be used in above 500 systems.if you use either java or .net related softwares. then we will have to install those softwares in above 500 systems.to avoid installing of all softwares, this system(webpage) should be developed in html , javascript or ajax.
Thanks
Ravi Gaddam
Nitesh KejriwalPosted Aug 27, 2013, 12:13 PM
In ASPX -
1. Mark the iframe as runat="server"
2. Add a hidden variable that stores the current file number
In ASPX.vb/ASPx.cs
1. Get the value of hidden variable
2. Increment it by 1 and set the source of both iframes to the new files.