User Profile

Collapse

Profile Sidebar

Collapse
Sebarry
Sebarry
Last Activity: Nov 15 '08, 10:18 AM
Joined: Jul 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sebarry
    replied to PHP post without CURL
    in PHP
    Hi,

    No sorry. I had them in my previous attempt. Just added the following to the top of the script.

    Code:
    error_reporting(E_ALL);
    ini_set( 'display_errors', '1' );
    echo "Hello";
    And it's not even printing the hello. This script is available at: http://www.theresoluti onsplanner.co.u k/newtest.php.

    Thanks,

    Sean
    See more | Go to post

    Leave a comment:


  • Sebarry
    replied to PHP post without CURL
    in PHP
    I've put in echo statements and var_dump and I'm not getting any output without commenting out all the post code. I've tried different code and I'm still not getting any output. Not sure why.

    Code:
    <?php
    
    /*
    ** The function:
    */
     
    function PostRequest($url, $referer, $_data) {
     
        // convert variables array to string:
        $data = array();    
        while(list($n,$v)
    ...
    See more | Go to post
    Last edited by Atli; Oct 28 '08, 06:52 PM. Reason: Replaced real URL and email with example values.

    Leave a comment:


  • Sebarry
    started a topic PHP post without CURL
    in PHP

    PHP post without CURL

    Hi,

    I'm using the following code to perform a post request from PHP. It works fine on a server running PHP 5, but not on a server running PHP 4. I've tried switching error reporting on but it's not giving any output.

    Code:
    error_reporting(E_ALL);
    ini_set('display_errors', true);
    
    //CALL FUNCTION, AND PRINT OUT SERVERS RESPONSE
    echo do_post_request('http://www.example.com/form.php?form=7',
    ...
    See more | Go to post
    Last edited by Atli; Oct 27 '08, 09:12 PM. Reason: Replaced real URL with example.com

  • Sebarry
    replied to Draggable DIV to scroll window
    Hi,

    Apologies for being unclear. The problem is I can determine how much the small box has been dragged and therefore how much I need the window to scroll but whether I use window.scrollBy or window.scrollTo the scrolling is quite clunky.

    Here's my code so far:

    Code:
    if (browser.isIE) 
    {
        x = window.event.clientX + document.documentElement.scrollLeft
          + document.body.scrollLeft;
    ...
    See more | Go to post

    Leave a comment:


  • Sebarry
    started a topic Draggable DIV to scroll window

    Draggable DIV to scroll window

    Hi,

    I have been assigned the daunting task of applying coordinate movements of a draggable div with a small box to the scrolling of the current window. Basically the small box represents the viewable content of the website and the draggable div represents the cursor. As the draggable div is moved around the confines of the small box the current window should scroll to a proportional position. Thus if the user drags the div to the top...
    See more | Go to post

  • Sebarry
    started a topic Special Characters show as squares

    Special Characters show as squares

    Hi,

    I have the following XML file which looks fine rendered in a browser but when its read by a SWF as a news ticker I get all these weird squares appearing. Any ideas?

    Code:
    <?xml version="1.0"?>
    <ticker>
    <topic>
    <text><![CDATA[<font size="12px" color="#624A9E"><b>LANSINOH JETZT IN BERLIN </b></font><br /><font
    ...
    See more | Go to post

  • Sebarry
    started a topic Encode German characters in XML
    in PHP

    Encode German characters in XML

    Hi,

    I'm doing some work for a German website. They want to be able to type in characters for which there are HTML entities like
    Code:
    &Uuml; &uuml; &auml;
    . The plain text should be stored in a database so it can be later retrieved and read into an XML file. The XML file is read by a Flash file to create a news ticker.

    Unfortunately the ticker is displaying some characters incorrectly. I thought that you would need...
    See more | Go to post

  • Sebarry
    started a topic Multi-coloured text

    Multi-coloured text

    Hi,

    I'm a complete flash newbie. I'm looking to read some text in from a database into a dynamic text field but I want each character to be in a different colour, how do I go about doing this? Do I have to create a text field per character?

    Regards,

    Sean
    See more | Go to post

  • Sebarry
    started a topic Javascript file upload

    Javascript file upload

    Hi,

    I'm using the following code from
    Code:
    the-stickman.com
    to create a file upload list in Javascript. I want to modify it so that the file element is only added if the user has provided a description for the file in a HTML form, but I'm not sure where I need to put the check in. Also it doesn't seem to work in Firefox, only IE, but I can't see what code is not compatible with IE.

    Code:
    function MultiSelector( list_target,
    ...
    See more | Go to post

  • Sebarry
    started a topic html_entity_decode when reading from a database
    in PHP

    html_entity_decode when reading from a database

    Hi,

    I'm trying to read the results of a database query into an XML document but it's only read so far and stopping. The XML document is as follows:

    [CODE=xml]
    <?xml version="1.0" encoding="utf-8"?>

    <night>

    <name>Poontan g</name>

    <homePageSummar y>Launches 26th November</homePageSummary >

    <whatsOnPageSum mary>Every...
    See more | Go to post
    Last edited by pbmods; Nov 26 '07, 04:07 PM. Reason: Fixed CODE tags.

  • Sebarry
    started a topic Javascript DOM create input fields

    Javascript DOM create input fields

    Hi,

    I use the following code to create a couple of input fields at run-time. It works fine in Firefox but it doesn't do anything in Internet Explorer and no errors are given. The DOM created elements are appended to a div called appendTo.

    Code:
    var className = "";
    			
    if( window.ActiveXObject )
        className = "className";
    else
        className = "class";
    ...
    See more | Go to post

  • Sebarry
    replied to reCAPTCHA PHP to stop spam
    in PHP
    Hi Thanks, yes my code is as follows. I'm using Smarty with PHP.

    At the top of the PHP file:

    Code:
    require_once('includes/recaptcha-php-1.9/recaptchalib.php');
    
    $privatekey = "6LeYowAAAAAAAMiylx8fE5Hs85ZfX7KraUler1gi";
    $publickey = "6LeYowAAAAAAAFLqbuAe3Byvu98D0EQAZuyvSVH2"; // you got this from the signup page
    $smarty->assign( 'recaptcha', recaptcha_get_html( $publickey
    ...
    See more | Go to post

    Leave a comment:


  • Sebarry
    started a topic reCAPTCHA PHP to stop spam
    in PHP

    reCAPTCHA PHP to stop spam

    Hi,

    Has anyone used this successfully in PHP to prevent spam mails sent from HTML forms? I've added it to a form of mine and it seems a bit hit and miss. I incorrectly enter the captcha and it correctly says its incorrect. I try again with another incorrect response and it accepts it?

    Am I doing something wrong or is there a problem with reCAPTCHA?

    Thanks,

    Sean
    See more | Go to post

  • Sebarry
    started a topic Javascript file upload

    Javascript file upload

    Hi,

    Is there any way using a Ajax.Request object that a file can be uploaded from within Javascript. I have PHP but I don't want to navigate away from the HTML page back to PHP to upload the file. I have an HTML form that allows a user to create a page with images and text. I want them to be able to preview how the page will look whilst they are completing the form. I know how to use PHP to upload files through $_FILES.
    ...
    See more | Go to post

  • Sebarry
    started a topic document.createHTMLDocument

    document.createHTMLDocument

    Hi,

    I've been searching for documentation on document.create HTMLDocument and I can't tell how well supported it is. I need to be able to create a new HTML document in Javascript and have that code work in IE and Firefox. What should I be doing?

    Thanks,

    Sean
    See more | Go to post

  • Hi,

    This is the class that is used by the text that is not being styled.

    Code:
    .black11pxplain {
    	font-family:Arial, Helvetica, sans-serif;
    	font-size:11px;
    	line-height:14px;
    	color:#000000;
    	text-align:left;
    }
    It's included from an external file:

    Code:
    <link href="includes/main_styles.css" rel="stylesheet" type="text/css"
    ...
    See more | Go to post

    Leave a comment:


  • It's a bit difficult to supply the code as it's being developed internally. The code works fine on Firefox but in IE its not using the stylesheet. If I copied everything that has been generated, the generated source of the document into another HTML page it renders fine. So no changes to the code result in a perfect page when it is created in advance. It's only when the same content is created using the DOM that it doesn't render properly....
    See more | Go to post

    Leave a comment:


  • No it still doesn't work. When I supply
    Code:
    '&nbsp'
    to createTextNode in the generated source it's shown as
    Code:
    <td>&amp;nbsp;</td>
    ...
    See more | Go to post

    Leave a comment:


  • DOM created content in IE not respecting stylesheet

    Hi,

    I've got a Javascript function to create some DOM content. The content is created fine in both IE and FireFox except that it FireFox it has styled the content according to the linked stylesheet, but in IE it has not.

    Any ideas?

    Regards,

    Sean
    See more | Go to post

  • Hi,

    I was being a complete hipster doffus with the post because that's what I was doing anyway. What I've got is:

    Code:
    row = document.createElement( "tr" );
    column = document.createElement( "td" );
    var columnText = document.createTextNode('&nbsp;');
    column.appendChild( columnText );
    row.appendChild( column );
    	
    var theTable = document.getElementById('articleContents');
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...