Suppose by navigation I went from 1 st page to 5 page ,so
Write a generic script for coming from any page to the 1st
page and by executing where the page may be it will come to
1st page
Answer Posted / priyesh pandya
To use this code for your navigation all you links are going
to look like this: filethatcodeisin.php?id=page and it will
actually take you to the page which you specified above.
<?php
switch($id) {
default:
include('index.html');
/* the url to your main page*/
break;
case "page1":
/*link id, the "title" what ever you wanna call it*/
include('page1.html');
/*the link id page file, the file it will go to*/
break;
case "page2":
include('page.html');
break;
case "page3":
include('page.html');
break;
case "page4":
include('page.html');
break;
case "page5":
include('page.html');
}
?>
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the special sub-types in vbscript?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
who will create the object?
What are class events?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
What is the use of the recordset object and which statement is used to create such an object?
how to set one column as primary key in QTP and fetch values accordingly
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
What is vbscript procedures?
What is the output of a + b in vbscript if a = 5 and b = 10?
Why is error handling required?
How can you destroy an object in vbscript?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
When to use function procedures and what are its characteristics?