Now, I KNOW the answer is staring me in the face, but I just can't put my finger on it. SOMEBODY HELP!

Source: http://www.livejournal.com/community/javascript/80251.html

  • touchpad scroll revisited

    Date: 10/22/05 (Mozilla)    Keywords: browser, html

    http://www.livejournal.com/community/mozilla/329996.html

    I need to revisit this issue, that is, firefox/mozilla and the scroll function on my touchpad not working. Like everyone else with this problem, I've tried the about:config, I've downloaded the updated driver for the touchpad, played with the settings on the "mouse" and the touchpad, all to no avail. The function works in absolutely every other program and browser on my computer (including Opera), but I get the little "scroll bar" icon and it refuses to move in firefox, save for once in a great while if I put the cursor directly on the page's scroll bar...

    Any other suggestions?

    Source: http://www.livejournal.com/community/mozilla/332240.html

  • HTML Tags: Complete Index + Commenting Problem?

    Date: 10/23/05 (Java Web)    Keywords: browser, html

    I find it useful to have a list of HTML tags handy. Today for example I used it to find the strike-through tag. I used the list on CDI. Additionally it provides browser and standards compatibility information. Detailed information is one-click away. BTW: Are you WYSIWYG type? Personally even if I use WYSIWYG I tend to [...]

    Source: http://blog.taragana.com/index.php/archive/html-tags-complete-index-commenting-problem/

  • Server-side scripts

    Date: 10/24/05 (Web Development)    Keywords: php, browser, html, java, web

    I want to make server-side scripts, but I have never done anything like this. So, I know very little about this subject.

    I need advice on how to get started. More specifically, I need someone to show me how to make a simple website. And then, I think I can do the rest... I believe I can learn PHP by myself. I already know HTML, JavaScript, C, and some other languages. All I need is someone to show me how to start.

    This is what I need:

    I would like someone to show me step-by-step how to create a simple website which would have three things on it:

    1. some text

    2. an input textbox

    3. a submit button

    This website should do the following: When people visit the website and enter some text and click on submit, the browser should send the text to the server. The server then should save the information in a simple text file, and next time when someone clicks on the refresh button, this text should appear on the website at the top of the page. That's all.

    I would like someone to assist me, to tell me how to create a website like this from scratch from start to finish.

    I don't want to install PHP on my computer. I want to open an account at a remote server and learn how to make this simple website.

    I need advice. Where should I open the account? What kind of language should I use? Should I learn Perl or PHP? Can I write the program in C? So, I have a lot of questions. Please help!

    Source: http://www.livejournal.com/community/webdev/259800.html

  • New to PHP's file functions

    Date: 10/25/05 (PHP Community)    Keywords: php, html, web, apache

    Hi all,

    I'm trying to muddle through a site redesign of my website, and I've hit a stumbling block when it comes to the php file functions.

    When I try to run the following script:



    $string = '';
    $filename = 'test2.php';

    // file_put_contents ($filename, $string); --- Doesn't work on my version of php.

    fopen ($filename, 'w');
    fwrite ($filename, $string);
    fclose ($filename);



    The following happens: the file test.php is created with no data and permissions set at 644. The directory has permissions of 777 for testing purposes. I also get the following errors displayed onscreen:

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/name/public_html/dev/test.php on line 21
    Warning: fclose(): supplied argument is not a valid stream resource in /home/name/public_html/dev/test.php on line 22

    What I want to happen is this: test2.php is created, with the string as the contents.

    I'll build in some validators after I get this part working.

    I'm using PHP Version 4.3.9, on Apache. It's a remote site, so I'm not sure that upgrading my version of php is a viable option.

    Any ideas? Is there something I'm missing?

    Source: http://www.livejournal.com/community/php/357455.html

  • help :(

    Date: 10/26/05 (Javascript Community)    Keywords: browser, html, java

    Hello, I'm new to Javascript and I have an assignment for class in which I'm having trouble checking to see if textboxes are blank and to alert to user with window.alert to tell them to enter information, check to see if certain text boxes are numeric from a certain number range, and to validate the correct format.



    1. Create 2 standard HTML files called assignment5.htm and process.htm. The files should do the following:
    a. assignment5.htm
    i. Should be a form that’s action is set to “process.htm”, method is set to “GET”, with the following named textboxes formatted using a table:
    1. FIRST_NAME
    2. LAST_NAME
    3. AGE
    4. PHONE
    ii. The ONSUBMIT event handler for the form should call a function named ValidateForm(). ValidateForm() should do the following:
    1. Check to ensure FIRST_NAME, LAST_NAME, AGE, and PHONE are not blank.
    2. If any of these textboxes are left blank, display an error message using the alert() function with the name of the item left blank and set focus to that text box using the focus() method of the text box left blank.
    3. Ensure that the AGE text box contains a number between 1 and 150. If the age is not this value, display a message box with describing that an invalid number was entered for age and set focus to this text box.
    4. Use the following regular expression to validate the PHONE text box. If it returns false, display a message box detailing that the phone number is invalid and must be in the format (xxx) xxx-xxxx.

    /^\(?(\d{3})\)?[\.\-\/ ]?(\d{3})[\.\-\/ ]?(\d{4})$/

    5. If all these conditions pass, return true and allow the form to go to process.htm.
    b. process.htm
    i. This page receives the information from the first page via the Querystring (URL). You will pull the information out of the document.location.search property and write the following to the browser:

    Hello . You are years old. Your telephone number is .

    Note: Everything in <> is from the assignment5.htm page.


    c. HINT
    i. Use the split(“&”) method off of the document.location.search string in order to break the search string into an array that has each of the name/value pairs in it.
    ii. You can then use the split(“=”) method on each of the elements returned from above to get at the name/value (element 0 = name, element 1 = value).







      Assignment 5








      

    1. help!!

      Date: 10/17/05 (WebDesign)    Keywords: css, html, database, asp, web

      I'm going freakin' insane here, and it is (of course) because of the different ways IE and Firefox display HTML and CSS.

      Here is my site:

      http://www.shifuimam.com/site.zip

      I can't post links to it, because the only Windows web server I have access to is from my university, and it's password-protected.

      There are three pages in that archive, plus all the includes and whatnot to make them display properly. browse.asp displays fine in IE and Firefox. faq.asp and category.asp, however, shift the content of the page down a bit for no explicable reason. I thought it was because of the tables on those two pages, but when I added a table to another page that was working fine, it displayed without any problems.

      Any help would be greatly, greatly appreciated.

      Oh - the databases are also included so all the stuff displays correctly. I know some of you might tell me to not use Access, and I normally wouldn't, but my teacher in this class requested we use Access databases so that he could see our database structure more easily.

      Thanks in advance for any help provided!!

      x-posted between '[info]'webdesign and '[info]'webdev

      Source: http://www.livejournal.com/community/webdesign/998198.html

    2. I founf the following on a website, with a link to their INTRANET

      Date: 10/17/05 (Code WTF)    Keywords: html

      function passBox() {
      var passwordText = "";
      passwordText = prompt("vul hier het password in ", "type to connect");
      if (passwordText == "personeel only") {
      alert("Correct Password - Click OK To Continue")
      location.href = "personeelspagina.html"
      }

      Source: http://www.livejournal.com/community/code_wtf/17784.html

    3. Media Player Classic

      Date: 10/19/05 (IT Professionals)    Keywords: software, html

      I was at work the other day and complaining about how I wish Media Player hadn't become so froofroo. And I was delighted when my co-worker showed me this:



      http://www.divx-digest.com/software/media_player_classic.html

      It works with all the new codecs and stuff unlike mplayer.exe. And its compact, unlike Media Player.

      Source: http://www.livejournal.com/community/itprofessionals/26694.html

    4. Gmail & Thunderbird

      Date: 10/20/05 (Mozilla)    Keywords: html, web, google

      I didn't know it could be done - have gmail email downloaded into t-bird. I thought they were web only.

      Apparently, I was wrong.

      The instructions are available here:

      http://itly.blogspot.com/2005/02/thunderbird-gmail-configuration.html

      I thought I'd post this, because there are probably others of you who didn't realize this was possible.

      (EDIT)
      Or, as '[info]'ernestsewell has helpfully pointed out, there's official instructions here:

      http://mail.google.com/support/bin/answer.py?ctx=%67mail&hl=en&answer=12103

      I guess this is just to remind people that it's possible then ;).. I think I'd tried it before, and couldn't get it to work. The part I missed was the requirement for SSL.

      Source: http://www.livejournal.com/community/mozilla/331336.html

    5. help!

      Date: 10/20/05 (WebDesign)    Keywords: css, html

      Ive been working on this page for a while. Learned CSS and everything seemed to be working fine. I sent the link to be checked by other people and for some reason my rightcontent div goes to the bottom when i maximize the page (full screen) in IE6! (i usually never do that) but i dont understand why its falling below! help!

      http://ubs.iastate.edu/newdesign/index.html
      http://ubs.iastate.edu/newdesign/ubs.css

      Thanks!

      Niki

      Source: http://www.livejournal.com/community/webdesign/999644.html

    6. I need to choose a host for a big-ass project (newbie with big dreams)

      Date: 10/20/05 (Web Development)    Keywords: html, web, hosting

      So, there is a project I've been hinting at in this space.  I'm close to launching it, and I need help in finally choosing a web hosting service for it.  I need a host that will provide me with a page I can load up with a few links and a moderate number of pictures at first, then some streaming video or .avi movies, say up to ten minutes long, later--not much fancy content, in other words.  I would also embed a LiveJournal community or two in the page.  So, low on graphics, but able to handle very high traffic without crashing, exceeding bandwidth allotments, or costing me a fortune.  Essentially, I want low start-up costs with infinite scalability.  If the New York Times mentioned my site on its front page two days in a row, I would want to be able to handle the slashdot effect no prob.  Some tools to help the beginning htmler would be nice, too.

      (Please don't bother telling me these aren't realistic expectations for a startup website.  I've thought this through thoroughly, and if it all crashes down, I can fall on my face without anyone else's help, thank you.)

      Here are the services that have been recommended to me so far:

      http://www.uplinkearth.com/
      http://dreamhost.com/
      http://www.micfo.com/
      http://www.fatcow.com/fatcow/index.bml

      Any opinions?  Any others I should consider?  Reasons for one site over others would be very helpful, as opposed to just naked suggestions.

      Source: http://www.livejournal.com/community/webdev/259102.html

    7. S.O.S.!!!

      Date: 10/21/05 (WebDesign)    Keywords: html, asp

      I am unfamiliar with asp but somehow i messed up this whole site I just got hired to update. I was working on the top.html include and uploaded it and it messed up the whole fitting together of the page sections. Then I put top.html back the way it was and that didn't work!
      Any ideas?
      Thanks
      http://www.thinmansongs.com

      Source: http://www.livejournal.com/community/webdesign/1000441.html

    8. I need Javascript help....

      Date: 10/21/05 (Javascript Community)    Keywords: rss, html, xml, java, microsoft

      FELLOW NERDS! PLEASE HELP!

      This is what I have, a site loads. It has a news bar on the side (similar to an RSS feed). The news bar calls an XML file for it's info. Javascript loads the XML file on page load, and the span object is suppose to insert the XML data... SUPPOSE TO...

      Here's my XML file (not pretty, but effective):



        October 21, 2005
        Finally got around to uploading the index page and framesets to my new homepage
        October 20, 2005
        Today I worked out the spacing issues for the framesets for the new homepage. Stay tuned for a preview...
        October 20, 2005
        Not much work today other than a personal LiveJournal update...


      And here is the Java script in the head of the HTML page:



      And the HTML to call it:


        

          

        


        

          

          

        


        

          

          

        


        

          

          

        


        

          

          

        

        

          

      
    Contact Information
    First Name:
    Last Name:
    Age:
    Phone:













      Process





    document.write("Hello 'FIRST_NAME' + 'LAST_NAME'. You are 'AGE' years old. Your telephone number is 'PHONE'. ")
      












    Thanks if anyone can help me.

    Source: http://www.livejournal.com/community/javascript/80676.html

  • Email an Attachment through Flash Form?

    Date: 10/26/05 (PHP Community)    Keywords: php, html, java, web

    Hi all...so, I have this Flash presentation to construct for a friend...

    1. he wants the user to submit info registration to a flash form
    2. the resulting page says "thank you, certificate of authentication has been sent"
    3. he wants the jpg of the certificate emailed to the registrant as an attachment.

    Do you know the action script/code to do this? it's only a mock up presentation; we would like to fake it as much as possible.

    Could it be done with this:

    Code:

    on (release) { loadVariables("email.php",'POST'); javascript('alert("Thank you for contacting us.");'); }

    ---------------

    PHP Code for email.php


    $name = $_POST['Name'];
    $email = $_POST['Email'];
    $message = $_POST['Message'];

    $name = stripslashes($name);
    $email = stripslashes($email);
    $message = stripslashes($message);

    $rec_email = "info@yoursite.com";
    $subject = "Online form submission";

    $msg_body .= "Name: $name\n\n";
    $msg_body .= "E-Mail: $email\n\n";
    $msg_body .= "Comments: $message\n\n";
    mail($rec_email, $subject, $msg_body);

    -------------

    And then could a $msg_body be HTML code that embeds the image?

    Or could I possibly skip the PHP and use javascript? If so, could you possibly supply the code?

    What is possibly the best way to do this? Any help is greatly appreciated thanks so much...

    cross-posted to webdesign

    Source: http://www.livejournal.com/community/php/358274.html

  • Email an Attachment through Flash Form?

    Date: 10/26/05 (WebDesign)    Keywords: php, html, java

    Hi all...so, I have this Flash presentation to construct for a friend...

    1. he wants the user to submit info registration to a flash form
    2. the resulting page says "thank you, certificate of authentication has been sent"
    3. he wants the jpg of the certificate emailed to the registrant as an attachment.

    Do you know the action script/code to do this? it's only a mock up presentation; we would like to fake it as much as possible.

    Could it be done with this:

    Code:

    on (release) { loadVariables("email.php",'POST'); javascript('alert("Thank you for contacting us.");'); }

    ---------------

    PHP Code for email.php


    $name = $_POST['Name'];
    $email = $_POST['Email'];
    $message = $_POST['Message'];

    $name = stripslashes($name);
    $email = stripslashes($email);
    $message = stripslashes($message);

    $rec_email = "info@yoursite.com";
    $subject = "Online form submission";

    $msg_body .= "Name: $name\n\n";
    $msg_body .= "E-Mail: $email\n\n";
    $msg_body .= "Comments: $message\n\n";
    mail($rec_email, $subject, $msg_body);

    -------------

    And then could a $msg_body be HTML code that embeds the image?

    Or could I possibly skip the PHP and use javascript? If so, could you possibly supply the code?

    What is possibly the best way to do this? Any help is greatly appreciated thanks so much...

    cross-posted to php

    Source: http://www.livejournal.com/community/webdesign/1004396.html

  • Email an Attachment through Flash Form?

    Date: 10/26/05 (Web Development)    Keywords: php, html, java, web

    Hi all...so, I have this Flash presentation to construct for a friend...

    1. he wants the user to submit info registration to a flash form
    2. the resulting page says "thank you, certificate of authentication has been sent"
    3. he wants the jpg of the certificate emailed to the registrant as an attachment.

    Do you know the action script/code to do this? it's only a mock up presentation; we would like to fake it as much as possible.

    Could it be done with this:

    Code:

    on (release) { loadVariables("email.php",'POST'); javascript('alert("Thank you for contacting us.");'); }

    ---------------

    PHP Code for email.php


    $name = $_POST['Name'];
    $email = $_POST['Email'];
    $message = $_POST['Message'];

    $name = stripslashes($name);
    $email = stripslashes($email);
    $message = stripslashes($message);

    $rec_email = "info@yoursite.com";
    $subject = "Online form submission";

    $msg_body .= "Name: $name\n\n";
    $msg_body .= "E-Mail: $email\n\n";
    $msg_body .= "Comments: $message\n\n";
    mail($rec_email, $subject, $msg_body);

    -------------

    And then could a $msg_body be HTML code that embeds the image?

    Or could I possibly skip the PHP and use javascript? If so, could you possibly supply the code?

    What is possibly the best way to do this? Any help is greatly appreciated thanks so much...

    cross-posted to php & webdesign

    Source: http://www.livejournal.com/community/webdev/261242.html

  • Hey guys, first post

    Date: 10/27/05 (PHP Community)    Keywords: php, browser, html, web, apache

    I just wrote a script, in XHTML, from the book, saved it as predefined.php, and could not get it to show.


    The other day, I installed Apache 2.0 and PHP 5 on my computer.

    I set my Apache up at c:\Apache2 as recommended. I also set C:\php5 as recommended.
    I set up a folder at c:\webdocs, to save my files in.

    I adjusted the httpd file in apache2/apache2/conf , and set Document root to c:/webdocs and Directory to c:/webdocs.

    When I do a simple phpinfo.com script, it runs correctly.

    However, I cannot seem to get my other scripts to work. I type them up, I save them in Notepad as All Files, .php extension.
    I type it directly into my webbrowser (as with phpinfo), ala http://localhost/predefined.php , but its still not working.

    And Apache is constantly running. Its automatic.

    Am I missing something here?



    (running on XP)

    Source: http://www.livejournal.com/community/php/359139.html

  • Posting Code

    Date: 10/27/05 (Web Development)    Keywords: html

    What is the mose effective way of formatting html code so it won't be interpretted when it's posted to LJ?
    something that would convert types brackets to "&lt;" and "&gt;" is what I'm looking for I guess. Sort of like Textile but more for having code show up as text.

    Source: http://www.livejournal.com/community/webdev/261814.html

  • Executing code twice

    Date: 10/30/05 (PHP Community)    Keywords: cms, php, mysql, html, database, sql

    I have come across a problem that is driving me mad. I have a php and MySQL CMS and I have a page that extracts the age content (html) out and plops it into the template file and all is sent back to the user. I have now come to the point when I would like to stop some php amongst the body html that is stored for each id in the database. The problem is how to have it recognised as php and then run.

    So at the moment, I just extract the in from the database and copy it into a field: $body=$row['body'];

    This is then in turn put in the template. I would however like to have this code run and then the result (so the html, plus whatever else has been generated in the middle) is then copied into a field ready for insertion into the template.

    Does anyone know of a way to do this? I have seen ways that are meant to have worked, but as yet have not, but I don’t want to note them down as they may cloud people’s ideas.

    Thanks for any help.

    Source: http://www.livejournal.com/community/php/360920.html

  • Html Hell..

    Date: 10/31/05 (Computer Geeks)    Keywords: html

    Wish i knew html savvy people. Since im a fan of firefox i dislike telling people they have to use internet explorer to view my journals pic. Does anyone know how to fix it so say it shows up in firefox. Id worship you.

    My aim is MuseiRain If you wish to speak privately.

    Source: http://www.livejournal.com/community/computergeeks/807486.html

  • Previous page  ||  Next page


    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home