Ok - update, I found the issue..
There was an issue with my handling of a button in the HTML.
I had set the type to submit rather than button..
User Profile
Collapse
-
Javascript and MS Edge behaviour
I have the following Javascript function to manage the edit of a field on a bootstrap modal web page. It works fine with Chrome but Edge does a page reload after completion which closes the modal.
Any thoughts on why this is happening? Suggestions to stop it?
...Code:function edit(element) { if (document.getElementById(element + "-glyph").className == "glyphicon glyphicon-pencil") { -
-
Hi,
Can you be more specfic about the problem, post some sample of the code you are using and the problem you are having.
Purple....Leave a comment:
-
Hi ghjk,
Do you want this to launch in a new browser window or within the same ? Is the user hitting a print button ?
Regards
PurpleLeave a comment:
-
Hi you are quite right, you could do this with either javascript or PHP (with some javascript),
Coding in a language you are comfortable would be a good idea, which do you know ?
PurpleLeave a comment:
-
Hi xelA
Can you post your updated code and ideally don't forget the code tags.
PurpleLeave a comment:
-
-
-
Ursx,
I am going to move this post to the forum because you have posted into the articles.
MODERATORLeave a comment:
-
I have moved this to the forum because you have posted this in the articles section.
MODERATORLeave a comment:
-
Hi aagarwal29 and welcome to TSDN,
I am moving this from the articles to the forum where our experts will be able to assist you further.
MODERATORLeave a comment:
-
Hi Bob,
I am going to move this to the forum because you have posted it in the articles section.
MODERATORLeave a comment:
-
Hi,
as with all of these things, there are a number of ways to achieve this..
simplest is prob using sessions so :
[PHP]<?php
session_start() ; // this needs to be executed before anything is sent to the browser - including any white space
if (!isset$_SESSIO N['form_vars']) session_registe r('form_vars');
if(!empty($_POS T['variable']) $_SESSION['form_vars']['variable'] = $_POST['variable'];...Leave a comment:
-
Hi ezb,
you do this by building code block which run based on which post values are set
so :
[PHP]<?php
if (isset($_POST['first_select']) and $_POST['first_select'] <> "default value" and !isset($_POST['second_select']) ) {
//
do the code to build the second select
//
}
elseif(isset($_ POST['first_select']) and $_POST['first_select'] <>...Leave a comment:
-
-
Hi,
formname needs to be changed to the name of your formCode:function refresh_win() { document.[I]formname[/I].submit.click(); }
assumes you have a button called submit - change to name of button if not.
Regards PurpleLeave a comment:
-
oh and, please use code tags when posting code, no matter how small..
MODERATOR
I can't change your post cause I don't moderate this forum, I am sure one of the php mods will get on this...Leave a comment:
-
Hi ezb,
the onChange event is client side, you need to be in JavaScript
[PHP]<select name="product" size="1" onChange="javas cript:refresh_w in();">
<?php
echo "<option value=$id> $info</option>";
?>[/PHP]
with a javascript function called refresh_win() which presses a submit button on the screen - you will need the form to post...Leave a comment:
-
Hi,
I have run your script with the following output:
...Code:y_options for year 2005 Array ( [0] => stdClass Object ( [y_title] => 2005 [y_value] => ?month=August&year=2005 [selected] => ) ) y_options for year 2006 Array ( [0] => stdClass Object ( [y_title] => 2006 [y_value] => ?month=August&year=2006 [selected] => ) [1] => stdClass Object ( [y_title] => 2006 [y_value]
Leave a comment:
No activity results to display
Show More
Leave a comment: