Solved

Javascript inside php echo

Posted on 2011-03-16
3
420 Views
Last Modified: 2012-08-13
Hi all,

I need to insert a javascript refresh page into an echo:

history.go(0) in an echo ?

Anyone please?

Thanks

p.s: I basically need to reload the page by code.
0
Comment
Question by:error77
3 Comments
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 500 total points
ID: 35149382
echo '<script>history.go(0)</script>';

Open in new window

0
 
LVL 4

Expert Comment

by:GeoffHarper
ID: 35149409
Do you mean:

location.reload(true);
0
 

Author Closing Comment

by:error77
ID: 35149469
p.s: true: location.reload(true); and it didn't reload the page but thanks anyway for the suggestion.
The jajvascript works perfect. Thanks :o)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now