User Profile
Collapse
-
I am not getting any script errors, and it still dosn't refresh the frame uppon submit. -
Yes, the form onsubmit does not work. This was one of the first things I tried.Leave a comment:
-
-
Point to style sheet in another directory
How do you point to a style sheet in another directory using the below code i.e.
the directory needed is
codeCode:../style/style.css
Code:<link rel="stylesheet" type="text/css" href="<?php echo (!$style)?'style':$style ?>.css" />
-
Ok, I have found that this does not fix the problem in ie, so I still need to find out what is wrong with the code.Leave a comment:
-
Ok, there is a very simple work around.
The Javascript should work without the showing of the re-reloading as long as it is placed at the top of the body.
However, this may not be suitable for all page types as some may not work correctly if the page has been refreshed twice (although most should) e.g. e-commerce scripts, however it works fine for my website.
If anyone actually figures out what is wrong...Leave a comment:
-
Oops, i forgot to paste that.
The Javascript runs correctly without the php element, however this causes it to refresh twice uppon page load (orginal load and refresh).
This is why I wanted it to execute when the form is submitied.Leave a comment:
-
Refreshing parent on post
I am needing further help following this topic http://bytes.com/topic/javascript/an...on#post3493808
The following code should refresh another frame upon submit of the form, but does not.
...Code:<body> <?php if (isset($_POST['submit'])) { ?> <script type="text/javascript"> window.onload = function() { -
Is this right because it's not working?
style.css
...Code:/* commented backslash hack \*/ html, body{height:100%;} /* end hack */ html,body {margin:0;padding:0} #dname{ min-height:100%; height:auto; * html #dname{height:100%;} body { background-image: url(img.jpg); background-position: left top; background-repeat: no-repeat; background-color:#ffffff;Leave a comment:
-
-
I have relised that curently, the div only reaches the bottom of the visible page in the browser, if the browser where to scroll down, the div would not continue.
So I need the script to make the div reach the bottom of the page instead of just the bottom of the browser window's orginal location on the page.Leave a comment:
-
scable div height 100% javascript?
I have a div which I have set to the height of 100% so it reaches the bottom of the page no matter the size of the browser resolution.
However, when the browser is resized the div no longer reaches the bottom of the page.
How do I set a div's height to 100% and keep it at this even if the browser window is resized?
Thanks. -
It does not refresh when clicked, what have I done wrong?
This is the code in the form frame.
Code:<?php if (isset($var)) { ?> <script type="text/javascript"> $var window.onload = function() { parent.frameName.document.location.reload(); } </script> <?php } ?>Leave a comment:
-
The only problem I have is that it makes the target frame a bit jumpy when it loads as it has to load twice the first time round (initial load, and refresh).
So is it possible to only run the script when the button is submitted?
I have tried the following but it did not work.
Code:<input type="submit" value="Go" onSubmit="parent.framename.document.location.reload();">
Leave a comment:
-
Thank you very much.
Thats the one.. nearly, as this runs the whole page in a loop :P
I just added
So the whole code readsCode:framename.document.
Once again, thank you very much for your help, I do appreciate it. :)Code:window.onload = function() { parent.framename.document.location.reload(); }Leave a comment:
-
-
just 1 other frame would do, but either. If its possible to reload the whole page then i'd prefer that.Leave a comment:
-
I tried targeting it with _Parent but it just loaded the same frame in the frame that was suppost to refresh.Leave a comment:
-
Yes, I don't want my visitors to have to manualy do that.
I was thinking of putting js into my cookie.php which is what the form is linked to.
But don't know what to add?Leave a comment:
-
I have the same problem as I want to make the submit button refresh.
I have 3 frames on my page and need the page to refresh after a submit button is pressed for its changes to take effect (change style sheet)
However using
<input type="submit" onSubmit="windo w.location.relo ad();" value="Go">just submits and does not refresh.
I am using the ht...Leave a comment:
No activity results to display
Show More
Leave a comment: