hyperlink problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

hyperlink problem

Post by valen53 »

i face a hyperlink problem...

first hyperlink

Code: Select all

<script id="Sothink Widgets:AddService1.pgt" type="text/javascript" language="JavaScript1.2">
stm_aix("p1i0","p0i0",&#1111;0,"Add Service","","",-1,-1,0,"AddService.php","_parent","Add Service")
second hyperlink

Code: Select all

<a href="AddService.php" target="_parent">Add 
          New Service</a>
After i submit a service in service page then back to homepage. Then i press the hyperlink to go to the service page again. The second hyperlink is working correctly, The serviceID will increase. But the first hyperlink still keep the last serviceID in the page. It look like never go to DB to get the data again, but the second hyperlink was do it.

anyone can help me ???
Thanks for all
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post by valen53 »

another hyperlink problem again.

main.php

Code: Select all

<select name="select" id="SendTo" onChange="browse(this.form,0)">
<option selected value=0> choose a place</option>
<option value="EditService.php">Inhouse</option>
<option value="return.php">Supplier</option>

Code: Select all

<script language="JavaScript1.2"> 
function browse(form, i) {
var site = form.elements[i].selectedIndex ;
if ( site > 0) {
top.location = form.elements[i].options[site].value }}
</script>
the main.php will post to redirect.php
redirect.php

Code: Select all

<?php header ("Location: $select/" ) ; ?>
The problem occur when i update data in EditService.php then go back main.php. And then i select "Inhouse" to go to EditService.php again. The data in EditService.php was not updated. After press refresh button, the data just updated.

any method can solve this kind of problem ?
It look like redirect to the page but not reload the page.

apologize to my broken english
Post Reply