473,395 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

catch previous url

Hi
I want help on my project It has a table which visible on click and It has 2 button send, and cancle. Send button redirect second page and return with status "Y" in this ok after sending a message second table is visible which has Ok button. Now my Problem is that I want when button Ok is click url remove status "y" from IT.
How Is it Possible??????????????????/
Just to give example first url is
www.xyz.com?prodId=20&colorID=30&size=20 after redirect it come like this
www.xyz.com?prodId=20&colorID=30&size=20&Statys="Y "

I want when I click Ok it catch first URl.
Sep 30 '08 #1
4 1818
DrBunchman
979 Expert 512MB
You can't remove anything from the URL but you can redirect to the first URL which will have the same effect. Either use Javascript in the buttons onclick event or set the target of the form that contains the Ok button to the first URL.

Dr B
Sep 30 '08 #2
Hi
I have a program which redirect same url with status ' Y '
and display a message now my proble is That I want when user click Ok button it remove only 'Y' from Url For detail I give u a Example
suppose I have tow page
First page is like
http://bytes.com/forum/newthread.asp?do=newthread&f=151
its action on other page
http://bytes.com/forum/newthread.php...f=151&Status=Y
and It show a table which visible a table which has a button Ok
i want when use click button ok tabel visible property is hidden
I use to call javascript function

Expand|Select|Wrap|Line Numbers
  1. function  divHid()
  2. {
  3. document.getElementById('div1').style.visibility='Hidden';
  4. }
Its working Ok
but I want to catch First page url also because url is still
http://bytes.com/forum/newthread.php...f=151&Status=Y
like this
How to remove status=Y form URl or
catch first page url that is
http://bytes.com/forum/newthread.php?do=newthread&f=151

Plz guide me
u can mail me on my mail Id
(e-Mail address removed by DrBunchman)
Thanks and Redirect
Ragni
Oct 4 '08 #3
You can't remove anything from the URL but you can redirect to the first URL which will have the same effect. Either use Javascript in the buttons onclick event or set the target of the form that contains the Ok button to the first URL.

Dr B
thanks for reply but page is not redirect
i use javascript code
Expand|Select|Wrap|Line Numbers
  1. function  divHid()
  2. {
  3. document.getElementById('div1').style.visibility='Hidden';
  4. //    myUrl="purchase/productdetail_EMail.asp?cgmain=" & mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId
  5. //alert(purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
  6. //document.getElementById('div1').action=("purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
  7.  
  8. }
all comented line I use but not redirect page
I also use
<%Response.Redirect (myUrl)%>
in Javascript function divHid()
but button stop working how to redirect that page
Oct 4 '08 #4
DrBunchman
979 Expert 512MB
Ragni,

Please don't double post your questions - it is against the rules laid out in the Posting Guidelines and I have merged your other thread on this topic with this one. Also please don't print your email address in your posts - it is for your own protection against spamming.

You can use a javascript redirect in your function if you wish to change the URL of the page like this:

Expand|Select|Wrap|Line Numbers
  1. window.location.href="http://www.whatever.com/";
However i'm not sure that is exactly what you want. Having the 'Y' in the querystring is triggering some kind of action on the page - is that correct? Why do you then want to remove it?

Dr B
Oct 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Gary.Hu | last post by:
I was trying to catch the Arithmetic exception, unsuccessfully. try{ int a = 0, b = 9; b = b / a; }catch(...){ cout << "arithmetic exception was catched!" << endl; } After ran the program,...
37
by: clintonG | last post by:
Has somebody written any guidelines regarding how to determine when try-catch blocks should be used and where their use would or could be considered superfluous? <%= Clinton Gallagher...
13
by: Benny | last post by:
Hi, I have something like this: try { // some code } catch // note - i am catching everything now {
23
by: VB Programmer | last post by:
Variable scope doesn't make sense to me when it comes to Try Catch Finally. Example: In order to close/dispose a db connection you have to dim the connection outside of the Try Catch Finally...
1
by: Jason Zhou | last post by:
Hi, I have a question on how to get the previous url in custom error file. Here is what I am doing: If someone visit my website with a wrong file name or wrong directory name, IIS will...
2
by: Jason Zhou | last post by:
Hi, I have a question on how to get the previous url in custom error file. Here is what I am doing: If someone visit my website with a wrong file name or wrong directory name, IIS will...
9
by: Michael MacDonald | last post by:
Does someone have a good site I can visit or explain the use of Try" and Catch foe exception/error handling. What is the logic behind this command and maybe an example would be great!!!! Mike_Mac...
32
by: cj | last post by:
Another wish of mine. I wish there was a way in the Try Catch structure to say if there wasn't an error to do something. Like an else statement. Try Catch Else Finally. Also because I...
3
by: Michael C | last post by:
I'm writing an app on the PDA using C# with .net 1.1. It is all working well except in some cases a try catch is simply ignored and a totally different error is returned. I've got code like below...
7
by: junw2000 | last post by:
class A { public: A() { try { p = new int; //Other lines that may throw exception. }
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.