Re: Waiting for localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/08/2015 01:40 AM, Karl DeSaulniers wrote:
Ethan,
Open a new window (window.open) inside itself (_self)?
Try window.location for opening a url inside the same window.
Use windlow.open to open a new window (ie: pop-up window).

Also, I would take at least a month and learn basic html and javascript before proceeding.
You're running into newbie problems that could be eradicated with 30days of training.
If you're feeling really frisky, throw 30 more days on top for php.

Just saying, if you want life to be easier.. :)

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 8, 2015, at 12:29 AM, Ethan Rosenberg <erosenberg@xxxxxxxxxxxxxxxxxxxx> wrote:

window.open("HandleWeight.php","_self")


Karl -

Thank you.

OK here is the code-

<?php

		echo "Hello<br />";
?>
		<script type="text/javascript">
		<!--
		window.location.assign("end.php")
		//-->\
		</script>

 What works in the JavaScript call is window.location.assign  Works perfectly
---------
In the database program ...

		$sql7 = "select WeightFlag from Food where PLU = $upc"; //If WeightFlag is 1
		//the item has to be weighed and HandleWeight should be called
		
		$result7 = mysqli_query($cxn, $sql7);
		$row7 = mysqli_fetch_row($result7);					
						
		if($row7[0] == 1)
		{
?>
			<script type="text/javascript">
			<!--
			window.location.assign("HandleWeight.php")
			//-->\
			</script>
<?php
		}

hangs "waiting for localhost" and the connection times out.


TIA

Ethan




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux