User Profile

Collapse

Profile Sidebar

Collapse
Purple
Purple
Last Activity: Aug 10 '17, 04:53 PM
Joined: May 4 '07
Location: UK - North West
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Purple
    replied to Javascript and MS Edge behaviour
    in PHP
    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..
    See more | Go to post

    Leave a comment:


  • Purple
    started a topic Javascript and MS Edge behaviour
    in PHP

    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") {
    ...
    See more | Go to post

  • Purple
    replied to this is y i hate frames
    Can you post the code you have so far?
    See more | Go to post

    Leave a comment:


  • Purple
    replied to make pdf with php
    in PHP
    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....
    See more | Go to post

    Leave a comment:


  • Purple
    replied to How to open a new window to print data
    in PHP
    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

    Purple
    See more | Go to post

    Leave 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 ?

    Purple
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Updating records
    in PHP
    Hi xelA

    Can you post your updated code and ideally don't forget the code tags.

    Purple
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Suggest a Book for beginner
    in DB2
    I have moved this to the forum

    MODERATOR
    See more | Go to post

    Leave a comment:


  • I am going to move this post to the Linux forum

    MODERATOR
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Problem string with literals
    in DB2
    Ursx,

    I am going to move this post to the forum because you have posted into the articles.

    MODERATOR
    See more | Go to post

    Leave a comment:


  • Purple
    replied to how to execute runstats in stored procedure
    in DB2
    I have moved this to the forum because you have posted this in the articles section.

    MODERATOR
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Using DFSMS Copy
    in DB2
    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.

    MODERATOR
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Loading Identity Columns
    in DB2
    Hi Bob,

    I am going to move this to the forum because you have posted it in the articles section.

    MODERATOR
    See more | Go to post

    Leave a comment:


  • Purple
    replied to PHP Dynamic Form.
    in PHP
    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'];...
    See more | Go to post

    Leave a comment:


  • Purple
    replied to PHP Dynamic Form.
    in PHP
    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'] <>...
    See more | Go to post

    Leave a comment:


  • Purple
    replied to VB.NET TreeView
    in .NET
    Thanks hariharanmca

    Purple
    See more | Go to post

    Leave a comment:


  • Purple
    replied to PHP Dynamic Form.
    in PHP
    Hi,

    Code:
    function refresh_win()
    {
    	document.[I]formname[/I].submit.click();
    }
    formname needs to be changed to the name of your form
    assumes you have a button called submit - change to name of button if not.

    Regards Purple
    See more | Go to post

    Leave a comment:


  • Purple
    replied to PHP Dynamic Form.
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • Purple
    replied to PHP Dynamic Form.
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • Purple
    replied to Array results are not displayed incorrectly
    in PHP
    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]
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...