php - Adding anchor tag to javascript URL -


i have php system , use popup lay processing, ie upload image. no problems here , on completing insert , upload go page call underlying page , refresh it:

$callpage="jobsheet_build.php?id=".$_get['id']; echo("<script language=\"javascript\">"); echo("top.location.href = \" ").$callpage.("\";"); echo("</script>");  

ok works fine, in ideal world put reference #images in $callpage end with

$callpage="jobsheet_build.php?id=".$_get['id']."#images"; 

but javascript hangs no matter do.

any ideas appreciated!

@jim have tried set anchor tag echo("top.location.href = \" ").$callpage.("#images\";"); instead of set anchor tag inside variable ?


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -