More questions for David

1. Auto close.
I put in the code you suggested, and, after a hell of a lot
of messing around it
came good, and now works. I don't know why I had so much
trouble, or why it
suddenly came good (suspect mismatched braces or types of
quote, but thank you.
Now I've got to put up a Thank you message, wait a second or
two, and then close
the box.
2. IE error box
You wrote:
>No, the warning messages won't be displayed if the IE
error box pops up.
>However, if you enter a series of spaces in the name
field, as described
>in step 14 on page 183, the JavaScript validation will be
fooled, but
>the PHP validation will stop the form from being
processed, and the
>warning message will appear.
more
As I read step 14, it is just one step in testing along the
way. It doesn't
seem to have any relevance to permanently disabling the IE
error box?
3. Text box width. As I only intend to use one feedback form,
I removed your
CSS file specifying the form dimensions, etc. According to
everything I can
find, you can specify the length of a text box in either
characters or pixels.
I currently have:
<input type="text" name="name" id="name" maxlength="30"
<input type="text" name="email" id="email" width="600px"
maxlength="50"
Dreamweaver shows a quite small name box, and a much longer
e-mail box. However
they are both 20 characters long on the actual form.
Maxlength works, but the
box length does not seem to be affected by changes to the
specified values.
4. Text font style in text input box.
I would have thought that the bodystyle text would be used
for the form inputs,
but it isn't, so where is it defined?
5. Form prettification
Can you, for example, put a table inside the form, and then
put the name, etc,
into different cells?
Thank you for all your help.
Clancy

Clancy wrote:
> Now I've got to put up a Thank you message, wait a
second or two, and then close
> the box.
I'm quite willing to provide assistance with problems arising
from my
book, but this goes considerably beyond that.
> As I read step 14, it is just one step in testing along
the way. It doesn't
> seem to have any relevance to permanently disabling the
IE error box?
Yes, it's simply a method of testing.
> <input type="text" name="email" id="email"
width="600px" maxlength="50"
The <input> tag does not have a width attribute. Its
width is controlled
by the size attribute. In Dreamweaver, this is set by
entering a value
into the Char width field. For most web pages, the maximum
should be no
more than about 60.
> I would have thought that the bodystyle text would be
used for the form inputs,
> but it isn't, so where is it defined?
Create a CSS class and apply it to the text fields.
> 5. Form prettification
>
> Can you, for example, put a table inside the form, and
then put the name, etc,
> into different cells?
Yes.
Although these questions have arisen from working through my
book, most
of them are general HTML/CSS/web design issues that would be
more
appropriately addressed to the forum in general. I try to
give a high
level of support to my books, but I hope you understand that
my time
(and knowledge) are not unlimited.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Question for David Powers

    Hi David has helped so much and I have read two books but am
    stuck on one thing.
    You gave me a solution for submitting forms and validating
    with the inserted results returning, and I wrote ages ago saying
    the solution worked. It really did but then stopped. So I have been
    going through the Foundation Dreamweaver book for Dreamweaver 8
    even though I am using Dreamweaver mx 2004.
    I have gone through everything again ( well many times ) and
    I have it working again except that the form will not go anywhere.
    I will insert the code and see if you can tell me why. I
    would really like to understand so that I can continue to make many
    forms and have the correct validation.
    Thank you for your time, and I love the book!

    Thanks David I have had a look on Google and read about all
    the different types of patterns you can use - quite a lot.
    One last question on this subject of email and then I think
    my new directory will be ready (apart from design).
    If I am wanting to send the form above with contents as an
    email to myself on submission, should I place the mail()
    information just above the new location:
    $to = "";
    $subject = "";
    $message = "";
    $headers = "MIME-Version: 1.0\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\n";
    $headers .= "From: ";
    mail($to, $subject, $message, $headers);
    $insertGoTo = "signin.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    $_POST = array();
    ?>
    The email should only fire off when all errors have been
    cleared, but will there be a problem with the braces I have placed
    here.
    I understand the logic of the braces but am I breaking
    Dreamweaver's code too much?
    Hope this makes sense. I was aiming to place the mail() code
    above the error checking but thought it had to make its way past
    that first before sending.
    Thank you so much I am learning something from here everyday.
    It's a great forum.

  • Question for David Powers: specifying CSS

    Each of the pages in your East-West seasons demonstration
    website uses a
    somewhat complex indirect method for specifying the CSS rules
    applying to the
    page.
    The page itself contains the php statement:
    <?php include('style_rules.php'); ?>
    Which invokes style rules.php, which in turn links in
    basic.css, and imports
    bluebells_01.css:
    Style_rules.php------------------------------------------------
    <link href="styles/basic.css" rel="stylesheet"
    type="text/css"
    media="screen" />
    <style type="text/css">
    <!--
    @import url("styles/bluebells_01.css");
    -->
    </style>
    This somewhat complex sequence appears to have exactly the
    same overall effect
    as the two lines:
    <link href="styles/basic.css" rel="stylesheet"
    type="text/css" media="screen" />
    <link href="styles/bluebells_01.css" rel="stylesheet"
    type="text/css"
    media="screen" />
    1. What is the reason for going through this two-step
    process, rather than
    simply linking in the two files?
    2. Why is the second stylesheet imported rather than linked
    in?
    3. I gather that the only function of php in all this is to
    enable the contents
    of style_rules.php to appear in the original file as inline
    code. Is this
    correct?
    Clancy

    Clancy wrote:
    > Each of the pages in your East-West seasons
    demonstration website uses a
    > somewhat complex indirect method for specifying the CSS
    rules applying to the
    > page.
    >
    > The page itself contains the php statement:
    > <?php include('style_rules.php'); ?>
    >
    > Which invokes style rules.php, which in turn links in
    basic.css, and imports
    > bluebells_01.css:
    >
    >
    Style_rules.php------------------------------------------------
    > <link href="styles/basic.css" rel="stylesheet"
    type="text/css"
    > media="screen" />
    > <style type="text/css">
    > <!--
    > @import url("styles/bluebells_01.css");
    > -->
    > </style>
    > ---------------------------------------------------
    > This somewhat complex sequence appears to have exactly
    the same overall effect
    > as the two lines:
    >
    > <link href="styles/basic.css" rel="stylesheet"
    type="text/css" media="screen" />
    > <link href="styles/bluebells_01.css" rel="stylesheet"
    type="text/css"
    > media="screen" />
    >
    > 1. What is the reason for going through this two-step
    process, rather than
    > simply linking in the two files?
    If changes to the style sheet, styles/basic.css are made then
    they would
    update to every page which uses the php 'include'. I'm
    guessing that
    David is NOT using a template based site, which would
    effectively do the
    same thing.
    > 2. Why is the second stylesheet imported rather than
    linked in?
    'import' is used so that Netscape Naviagtor 4 only gets the
    page content
    and no css styling. A lot of css styling is not compatible
    with that
    browser. Its generally accepted for those developers that
    still support
    that browser only the content is good enough to provide.
    > 3. I gather that the only function of php in all this is
    to enable the contents
    > of style_rules.php to appear in the original file as
    inline code. Is this
    > correct?
    No, that answers in the response to your first question..

  • Question for David-Boogie

    Hi David, Haven't written at you for awhile and I didn't want to hijack the thread.... Quick question. In a reply you made to a post with regards to hardware and work flow you made a statement
    " ingest your material at a smaller codec for your editing decisions and relink to a better codec later "
    by relink did you assume reference a movie was used then sequence change from timeline to different codec ?
    can you point me some resources on this topic or even better a quick explanation.... If I understand the post correctly it could really save me quite a bit of time.
    Thanks in advance
    Nava

    ron nava wrote:
    Hi David, Haven't written at you for awhile and I didn't want to hijack the thread.... Quick question. In a reply you made to a post with regards to hardware and work flow you made a statement
    " ingest your material at a smaller codec for your editing decisions and relink to a better codec later "
    by relink did you assume reference a movie was used then sequence change from timeline to different codec ?
    can you point me some resources on this topic or even better a quick explanation.... If I understand the post correctly it could really save me quite a bit of time.
    You can ingest your original footage at a lower resolution or a codec with a lower demand on your hardware and then use Media Manager to recapture your footage at the higher rez. Or you can pull in your camera footage at maximum rez and create proxies at a lower rez and then relink when you're finished editing.
    These are fundamental functions of most NLEs. Media management is one of the features that separates pro versions from the consumer versions.
    bogiesan

  • Video2Brain question for David Powers

    Hi David (and anybody else wanting to read this), I have a number of projects where I am being asked to create mobile apps with HTML5 packaged through phone gap, but I am also being asked to include a CMS for ease of editing. I can create the CMS no problem, and I can create the the mobile app too, but I have no idea of how to marry a native app with a remote database so the app's contents stays up-to-date. I mainly need to pull data, but also insert data on occassions. If I can get the pulling of data to work, that will help me immensely.
    My question to you David is: Do any of your Video2Brain courses cover this kind of subject?
    If anybody else knows of any tutorials on the net, or in books that cover this subject, I'd love to hear about them.
    I am assuming it's not important, but just in case it is, I am using DWCS6, MySQL and PHP
    Thanks.
    Mat

    PhoneGap creates native apps using HTML, CSS, and JavaScript. It does not support PHP or any other server-side technology.
    If you want to communicate with a remote database, you need to use JavaScript to send an Ajax request to the database, which needs to send the response formatted as XML or, preferably, JSON. You then use the success callback function of your Ajax request to display the results. It's also possible to store data on the mobile device using the Web SQL API, which uses JavaScript rather than PHP to communicate with the database.
    My video2brain courses don't go into this level of detail. My book, Adobe Dreamweaver CS5.5 Studio Techniques: Designing and Developing for Mobile with jQuery, HTML5, and CSS3, has a fully worked example of creating a local database on the mobile device using Web SQL, but it doesn't cover accessing a remote database.
    There's an online tutorial by Raymond Camden about synchronizing remote and local databases with a PhoneGap project at http://css.dzone.com/articles/adding-database.
    There's also a very detailed article in the Adobe Developer Connection by Andrew Trice about connecting a PhoneGap app to a database in the cloud at Database.com: http://www.adobe.com/devnet/phonegap/articles/phonegap-apps-powered-by-developercom.html.
    I haven't tested the code in either article, but both authors are very reliable.
    If you don't have any experience of using Ajax, I recommend using jQuery. It makes Ajax communication very simple. On the PHP side, use json_decode() and json_encode() to handle the incoming and outgoing data.

  • 2 more questions for IWEB

    Hi Everyone,
    I have published my site and it's working fine.
    It was so easy!
    Now...as you know the address begins with http://web.mac.com.
    Is there any way to change that so it starts with my name instead?
    I know I can do that if I get hosting soemwhere else...and that I have already.
    I am hoping to switch my hosting to Mac so I can mange my site better.
    question number 2:
    How can I view the HTML code generated by the templetes created in Iweb?
    I was thinking of using the code with another hosting service to see if the results were the same.
    Thanks so much in advanced.
    SH : )
    IMAC G5   Mac OS X (10.4.6)  

    Is there any way to change that so it starts with my
    name instead?
    I know I can do that if I get hosting soemwhere
    else...and that I have already.
    I am hoping to switch my hosting to Mac so I can
    mange my site better.
    All you have to do is to register your own domain name (which I think you already have if you have hosting somewhere else)....and then set up a feature called "Domain Forwarding" to point to the .Mac hosted iWEb URL.
    question number 2:
    How can I view the HTML code generated by the
    templetes created in Iweb?
    I was thinking of using the code with another hosting
    service to see if the results were the same.
    If you want to put your iWeb pages onto another server, just do a "Publish to Folder" in iWeb and select a folder on your desktop somewhere. iWeb will then put all the HTML files required for your site in that folder. You can examine the files there or you can upload the files to your server to see the results online.
    The pages should look identical no matter if you are on .Mac or another 3rd party server. The only difference will be in all the .Mac only features like the slideshow, counters, search, comments, etc. These will not function on a 3rd party non-.Mac server
    PS. Please don't forget to mark replies as either "solved" or "helpful" in order to provide feedback. Thanks.

  • Question for David Powers re file 'quotations.sql'

    It would appear from the first few lines of this file (shown
    below) that it
    first checks if a table "quotations" already exists, and if
    so deletes it. Then
    it creates a new version, and populates it with the following
    data.
    Is this correct?
    Clancy
    -- Table structure for table `quotations`
    DROP TABLE IF EXISTS `quotations`;
    CREATE TABLE `quotations` (
    `quote_id` int(10) unsigned NOT NULL auto_increment,
    `quotation` varchar(255) NOT NULL default '',
    `first_name` varchar(30) NOT NULL default '',
    `family_name` varchar(30) NOT NULL default '',
    PRIMARY KEY (`quote_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -- Dumping data for table `quotations`
    INSERT INTO `quotations` VALUES (1, 'My disability is ......'
    Clancy

    Clancy wrote:
    > I thought so. As the sql file redefines the table, is it
    necessary to define
    > the table at all before running the file?
    The purpose of the preceding section is to teach you how to
    define a
    table. If all you're interested in is copying my table
    structure, feel
    free to do so. However, I believe in the principle of
    teaching a man to
    fish, rather than giving a man a fish.
    > I have been thinking about how to set up a database for
    my photo album, and
    > wondering how to order it. If I have a text file, like
    'quotations.sql', it
    > looks as if the easiest way to change the order of the
    photos is to swap the
    > lines in the text file, and then reload the whole
    database.
    If that's your conclusion, then I'm afraid that you have
    failed to
    understand the fundamental principles of how a database
    works. The order
    in which records are entered is totally irrelevant. You use
    SQL to
    display them in whichever order you require.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Mulder- one more question for ya

    Doing the repair for Safari-will it affect ANYTHING else on the Mac? I fear that doing a reinstall may fudge up stuff on the wifes login. I lose any of that stuff and I'll need a casket.

    Repairing permissions is an important part of regular maintenance, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    An article on troubleshooting Permissions can be found here:
    http://support.apple.com/kb/HT2963
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417

  • Attempting to upload files using the zend _file_transfer system from cs5 training from the source. [was: Question for David Powers]

    I am attempting to upload files using the zend _file_transfer system from cs5 training from the source.
    On trying to upload to a remote server I am having trouble with the destination setting (C:/upload_test) in the example, please could you point me in the right direction for the an example of this setting for a remote file transfer
    Also do I have to construct a connection file to activate a Ftp file transfer?
    David Woolston

    >I am on windows platform
    Who is your host? When you checked your host path in your host control panel, what did it say?
    >i have assumed (may be incorrectly) that the purpose of the exercise was to upload to a remote site (ie my website)
    That is correct.
    >Of course that upload might take place on a computer that does not have DW installed (an internet cafe for example)
    That's irrelevant. DW is just the tool you are using to build your site. The site runs on your hosting accounts servers. This includes the php scripts you are working with.
    >I have uploaded all files necessary for the operation, when i click upload it returns no such directory exits.
    Do you have a url we can check? What destination are you specifying in zend code?
    >This made me suspect that I would need to construct a ftp file transfer connection file to satisfied username, password , connection address etc
    The exercise you are dealing with is using http file transfer. This has nothing to do with FTP. You do not need FTP for this, other than using it to move your source code from your local client to your server.

  • Question for David; was:  PHP process too slow, can I increase timeout?

    You wrote:
    > You can follow the action in PHP. Just add an echo
    command at the end of
    > the loop to display the name of the image that has been
    processed.
    At the time I commented that this did not work for me, but I
    thought it was
    because I was doing all my processing before I opened a page.
    However when I
    thought about it I realised that I had in fact opened a page
    before I started
    processing the files.
    I have just checked it again, and I open the new page, write
    a heading, then
    start copying files, echoing the name of each file as it is
    copied.
    But the result is the same. The heading appears, then there
    is a long pause,
    then all the diagnostics spit out, followed by a 'Fatal
    error: maximum execution
    time exceeded' diagnostic.
    Can I get the diagnostics to appear as they are written, or
    do they always wait
    until the php processing is completed?
    Clancy

    you can use this debug function ... it writes debug statement
    to a log file
    (debug.log) in the same folder as teh script being run. It
    assumes that PHP
    has permission to create a file on your server - but it
    should. This should
    run as the script is processing
    Alex
    function debug_log(){
    // DESCRIPTION: prints variable names and their values in a
    readable
    format within a log file
    // INPUTS: any variables of any type, include string name;
    // ex. debug("var1",$var1,"var6",$var6,...)
    global $debug_file;
    if(is_null($debug_file)){ $debug_file = "debug.log"; }
    $msg = "";
    $tab = " ";
    $arg_list = func_get_args();
    if(empty($arg_list))
    return(false);
    $count = func_num_args();
    for($i = 0; $i < $count; $i+=2){
    $j = $i+1;
    $msg .=
    _debug_format($arg_list[$i],$arg_list[$j])."\n".$tab;
    $file = fopen($debug_file,"a");
    if($file){
    fwrite($file, date('Y-m-d H:i:s')." |
    ".$_SERVER['SCRIPT_NAME'].":\n".$tab.$msg."\n");
    fclose($file);
    return true;
    }else{
    return false;

  • Question for David Powers - Zend Framework

    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.

    Silken_thread wrote:
    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
    Simple. You upload the Zend Framework to your remote server, and point $library to the new location.
    It's covered in Lesson 13 of the book (pages 468-469).

  • Firefox 4b7 does not complete «More Answers from-» action on Formspring.me userpages; previous Firefox (3.6) was able to load more questions and answers

    Even in safe mode, Firefox 4b7 is not able to complete «More Answers from…» action on Formspring.me userpages, it just displays «loading more questions…» for a seemingly endless amount of time. (Firefox 3.6 and any other browser, such as Safari, displays «loading more questions…» for a short period of time when AJAX works, then the questions and answers are actually loaded and displayed.) In order to reproduce, load Firefox 4b7 in Safe Mode, visit www.formspring.me/krylov and click on «More Answers from Konstantin Krylov» (the bottom link). You may try any other user, www.formspring.me/teotmin or www.formspring.me/anandaya for example.

    what a waste of money sending an engineer to "fix a fault" which does not exist.  Precisely.
    In my original BE post to which Tom so helpfully responded, I began:  It seems to me that DLM is an excellent concept with a highly flawed implementation, both technically and administratively.   I think that sending out an engineer to fix an obviously flawed profile is the main example of an adminastrative flaw.  I understand (I can't remember source, maybe Tom again) that they are sometimes relaxing the requirement for a visit before reset.
    Maybe the DLM system is too keen on stability vs speed.  This will keep complaints down from many people: most users won't notice speed too much as long as it is reasonable, but will be upset if their Skype calls and browsing are being interrupted too often.  
    However, it does lead to complaints from people who notice the drops after an incidence (as in your thread that has drawn lots of interest), or who only get 50 instead of 60.  The main technical flaw is that DLM can so easily be confused by drops from loss of power, too much modem recycling, etc, and then takes so long to recover.

  • Thx for the help today - one more question

    Thx for all the help today. My flash works perfect now. One
    more question... I get a frame around my flash when using internet
    explorer and have the mouse over it... why?
    check it out:
    http://www.ardent.se

    search google and this forum for "active content" - been
    front page news for weeks - hundreds of
    discussions, blogs, articles all over the web.
    --> Adobe Certified Expert (ACE)
    --> www.mudbubble.com :: www.keyframer.com
    -->
    http://flashmx2004.com/forums/index.php?
    -->
    http://www.macromedia.com/devnet/flash/articles/animation_guide.html
    -->
    http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
    cjh81 wrote:
    > Thx for all the help today. My flash works perfect now.
    One more question... I
    > get a frame around my flash when using internet explorer
    and have the mouse
    > over it... why?
    >
    > check it out:
    http://www.ardent.se
    >

  • For David Powers - Apache 2.2 and php 5.2. Virtual hosts

    Hi David,
    I have updated to the latest Apache and PHP
    Apache 2.2 and php 5.2. Must easier instal,
    But now I'm setting up Virtual hosts to make it easier to use
    php
    includes and DW templates.
    I have followed instructions on page 86 of above book, but I
    can't
    find the section NameVirtual Host on Apache's httpd.conf and
    it is
    much shorter than 950 lines.
    Malcolm N_
    ~Malcolm N....
    ~

    On Sun, 21 Jan 2007 11:49:47 -0000, "Dave Buchholz"
    <[email protected]> wrote:
    >Malcolm,
    >
    >a different David I know but you will find an updated
    tutorial on the "real"
    >David's site here
    http://foundationphp.com/tutorials/apache22_vhosts.php
    Many thanks David - I had found his revised tutorial on
    installing
    Apache - but I must have missed the bit on virtual hosts.
    That's great - I've not got all my sites working as virtual
    hosts (:-)
    Now to play with relative links / links to php include files
    in
    templates. !!!
    I'm going to try to get headers, footers and nav panels etc
    out of the
    main template(s), and do what Murray has been nagging
    everyone to do
    for ages.....
    I wasn't getting on well with that with before !! - standby
    for more
    questions.
    I had to read two of David's excellent books about three
    times - eh !.
    Malcolm
    ~Malcolm N....
    ~

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

Maybe you are looking for