1. Raw Noobage

    Date: 02/28/06 (Javascript Community)    Keywords: html, asp, java

    I'm very new to Javascript, and am trying to figure out how to do some form validation with an event handler. Don't worry, I'm doing this in my spare time, not for pay. =P



    Whenever a user is finished with a field, I want it to be validated to make sure they haven't broken any rules. If an error comes up, I want to un-hide a hidden div and replace the div's contents with the error message(s). So far I've only entered one aspect of the validation to see if I can get the actual mechanisms of hiding/showing content working, but so far it's no good.

    Here's my code:

        function validateInput(id)
        {
            // get input referred to by id
            var inputField = document.getElementById(id);
            
            // define error messages array
            var errors = new Array();
            
            // get errors div
            var errorsDiv = document.getElementById("javascript_errors");
            
            if (id == 'string')
            {
                var valString = inputField.value;
                if (valString.length == 0)
                {
                    errors['string'] = 'No search string';
                }
            }

            errorsDiv.value = errors.join('

    \n

    ');

            if (errorsDiv.value.length >= 1)
            {
                errorsDiv.style.display = 'block';
            }
        }



    Which is called on the input element via:
    onblur="javascript:validateInput('string');

    And then there's a div I have in the HTML markup itself:





    I'd like to learn how to make this work (if possible) to expand my knowledge of how the language works, but if anyone has a better way of handling this I'd like to know that as well.

    Source: http://community.livejournal.com/javascript/95377.html

  2. What next

    Date: 03/01/06 (HTML Help)    Keywords: html, web

    I have a website for my yarn spinning business, and I think it looks ok. I was hoping some of you HTML gurus could check it out and offer a suggestion on where to go from here. I like the fancy websites I see, with the cool animated intros and such, but I have no idea how this is made, or how to learn it. I know I'm ignorant, but I don't know anyone who's into this stuff. Help!
    http://www.softspotyarns.com

    Source: http://community.livejournal.com/htmlhelp/2268098.html

  3. Ничего лишнего.

    Date: 03/03/06 (Code WTF)    Keywords: html

    http://users.livejournal.com/_winnie/39649.html


    
        for (MSG msg; GetMessage(&msg, 0, 0, 0); TranslateMessage(&msg), DispatchMessage(&msg));
    _Winnie C++ Colorizer



    Извиняюсь, комменты отключил что бы обсуждение не велось в параллельных ветках одновременно.

    Source: http://community.livejournal.com/code_wtf/31349.html

  4. PHP and RSS/RDS?

    Date: 03/07/06 (PHP Community)    Keywords: php, html, web

    Hello, I guess I'll preface my question by stating that I'm as newbie as is gets with PHP. I'm going to type what I'm looking to do below and hopefully I'll be able to funnel my search towards an answer. Thanks so much ahead of time for any help any of you can give me.

    I currently write and keep a blog on and about the Boston Red Sox (SawxBlog.com) and through doing this blog I had an idea. I'd like to create and improve on a site that's similar to the below site:

    http://redsox.feedster.com/

    Basically what I'd like to do is subscribe to every and all Red Sox blogs and feeds (with permission of course) and have them come up linkable, with a only few sentences showing from the post, much like the feedster example above and baseballblogs one below. I'm looking to add a lot more blogs, as well as make the overall appearance more "eye pleasing" along with some original content. Another site that sort of does this is http://baseballblogs.org/.

    From doing a lot of random internet research it seems like the best way for me to accomplish this is via PHP. I found this site that was helpful (to a point) in introducing me to the possibilities of this. 'Option 3' seemed to make the most sense to me, however it still left a lot of questions of mine unanswered.

    What I'm wondering is this:
    - Is PHP the best way for me to make this site?
    - Are there any specific tutorials/sites that would be a good resource for me?

    I have a background in web design and multimedia with basic HTML as my only real coding background (aside from Action Scripting).

    Thanks so much again for any help you're able to give, and sorry this was so long!

    Cheers, Derek



    (X-Posted in WebDev)

    Source: http://community.livejournal.com/php/422408.html

  5. CSS Dropdown Menus

    Date: 03/07/06 (WebDesign)    Keywords: css, html

    Has anyone used the Suckerfish Dropdown menu? I'm trying to create a menu for my personal site, and the drop downs are working.. sort of.. but I can't get them to look right.

    Click here for an example of the menu.


    My HTML:

    < ul id="navmenu" >
    < li>< a href="index1.html">Home


  6. < li>< a href="#">Icons
    < ul>
    < li>Music
    < ul>< li>< a href="#">Amy Lee
    < li>< a href="#">Ashlee Simpson
    < li>< a href="#">Breaking Benjamin
    < li>< a href="#">Carrie Underwood
    < li>< a href="#">My Chemical Romance
    < li>< a href="#">Kurt Cobain
    < li>< a href="#">Disturbed
    < li>< a href="#">Green Day
    < li>< a href="#">Shirley Manson
    < li>< a href="#">Ville Valo/HIM
    < li>Movies
    < ul>< li>< a href="#">Batman Begins
    < li>< a href="#">Cry Baby
    < li>< a href="#">D.E.B.S.
    < li>< a href="#">Empire Records
    < li>< a href="#">Enemy at the Gates
    < li>< a href="#">Ghost
    < li>< a href="#">The Labrynth
    < li>< a href="#">Land of the Dead
    < li>< a href="#">Moulin Rouge
    < li>< a href="#">Resident Evil
    < li>< a href="#">Romy and Michelle
    < li>< a href="#">Return of the King
    < li>< a href="#">Sin City
    < li>< a href="#">Shaun of the Dead
    < li>< a href="#">Team America
    < li>< a href="#">Underworld
    < li>< a href="#">Charlie and the Chocolate Factory
    < li>< a href="#">Wrong Turn
    < li>TV Shows
    < ul>< li>< a href="#">Bones
    < li>< a href="#">Buffy the Vampire Slayer
    < li>< a href="#">Lost
    < li>< a href="#">The L Word
    < li>< a href="#">Supernatural
    < li>Actors
    < ul>< li>< a href="#">Bam Margera
    < li>< a href="#">Brad Pitt
    < li>< a href="#">Bruce Lee
    < li>< a href="#">Eddie Izzard
    < li>< a href="#">Johnny Knoxville
    < li>< a href="#">James Marsters
    < li>Actresses
    < ul>< li>< a href="#">Amber Benson
    < li>< a href="#">Angelina Jolie
    < li>< a href="#">Cameron Richardson
    < li>< a href="#">Jennifer Beals
    < li>< a href="#">Jordanna Brewster
    < li>< a href="#">Julianne Moore
    < li>< a href="#">Keira Knightley
    < li>< a href="#">Misc Icons
    < li>< a href="#">My Personal Icons

    < li>< a href="#">Wallpapers
    < li>< a href="#">Graphics
    < ul>< li>LiveJournal Headers
    < li>Colorbars
    < li>< a href="#">Resources
    < li>< a href="http://www.livejournal.com/users/wikedawsum" target="_blank">LJ
    --------

    CSS:

    #navmenu, #navmenu ul {padding: 0;
    margin: 0;
    list-style: none;
    float: left;
    line-height: 1;
    background: #C2C3BC;
    border: solid #8C856B;
    border-width: 0px 0;
    margin: 0 0 1em 0;}

    #navmenu a {display: block;
    width: 5em;
    color: #52686F;
    text-decoration: none;
    padding: 0.25em 2em;
    font-family: verdana, arial, helvetica;
    font-size: .7em;}

    #navmenu li {float: left;
    width: 5em;
    padding: 0;}

    #navmenu li ul {position: absolute;
    width: 10em;
    left: -999em;
    height: auto;
    font-weight: normal;
    border-width: 0.25em;
    margin: 0;
    font-family: verdana, arial, helvetica;
    color: #52686F;
    font-size: .7em;}

    #navmenu li:hover ul {left: auto;}

    #navmenu li:hover ul, #navmenu li.sfhover ul {left: auto;}

    #navmenu li ul ul {margin: 0 0 0 5em;
    position: absolute;
    width: 15em;
    left: -999em;
    height: auto;
    font-weight: normal;
    border-width: 0.25em;
    font-family: verdana, arial, helvetica;
    color: #52686F;
    font-size: .7em;}

    #navmenu, #navmenu ul {padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1;}

    #navmenu li:hover ul ul, #navmenu li.sfhover ul ul {left: -999em;}

    #navmenu li:hover ul, #navmenu li li:hover ul, #navmenu li.sfhover ul, #navmenu li li.sfhover ul { left: auto; }
    -------


    By viewing the page and the code can anyone tell me where the problem lies? I've done dropdown menus before, just not with CSS. Is there a better way to do it?

    Thanks to everyone in advance. :)

    Source: http://community.livejournal.com/webdesign/1076196.html

  7. Firefox and Desktop Linux

    Date: 03/10/06 (Mozilla)    Keywords: html

    http://rayne-vandunem.livejournal.com/47449.html

    Source: http://community.livejournal.com/mozilla/354309.html

  8. Horizontal scrolling

    Date: 03/10/06 (WebDesign)    Keywords: php, css, html, java, web

    I have a problem with a small 'artistic' website. I want to make it entirely horizontal, but my problem is that the mousewheel does not work for horizontal scrolling.
    Is there any way to get the mouse wheel working on a horizontal scrollbar? HTML, CSS, PHP, JavaScript, anything.
    Thanks so much in advance :)

    Source: http://community.livejournal.com/webdesign/1077671.html

  9. Anyone looking for portfolio work?

    Date: 03/11/06 (WebDesign)    Keywords: css, html, hosting

    Hey guys,

    I know most people here already have their own businesses or get by on freelance - but is anyone looking for portfolio work? I have a non-profit job on my plate, and I just don't have the time for it now. It's a pro-bono job, but something that could be potentially great on a portfolio. Like I said the site is for a non-profit which will be based on typepad. The owner has already bought her domain, and hosting and has a blog through type-pad (completely customizable).

    If anyone is interested please, please give me a shout. If you have your own site, or one or two you have designed before for others it would be great to see so I would know you would be able to do the job. Previous experience with typepad or movable type is a plus! the logo graphic is done. Basically what you would be required to do is just set up the site template, and configure the site for the owner to add content.

    XHTML/CSS designers only. NO tables.

    More information will be provided when I've found someone.

    Thanks.

    Source: http://community.livejournal.com/webdesign/1078292.html

  10. Events: A Introduction to the Model of GUI programing

    Date: 03/11/06 (Javascript Community)    Keywords: software, browser, css, html, xml, asp, java, web, linux, seo, microsoft

    Events: A Introduction to the Model of GUI programing

    Xah Lee, 2005-05

    In Graphical User Interface (GUI) programing, there's the concept of event. For example, moving the mouse, clicking a mouse button, switch to a different window, hitting a key. The software needs to respond to these things. The way it works is that, the programer writes code that draw buttons, menus, windows etc. And the programer write his program so that it knows the mouse position, mouse click, keyboard press, or any other signal from input devices. The programer also writes code so that for example if a mouse click happened, and its position is inside a button, then some function is called as a reaction.


    All this is very tedious and very complex. What happens today is that most of the common tasks for GUI software are already written as a package called framework. That is to say, the codes to draw GUI elements such as windows or buttons or dialogue popups, and the detection of input signals such as button clicking or menu selection or keyboard inputs, are all integrated together as a pre-written set of code. The programer is relieved of writing these tedious code. Instead, he call predefined functions in the framework to deal with many issues related to creating a GUI.

    In such a framework, it is still quite complicated. Such framework often comes in the guise of Operating System Developer's Kit. For example, writing application in Mac OS uses Apple's kit called Cocoa, Carbon, Toolbox, and there's also Microsoft's Foundation Classes (MFC) and Linux has frameworks such as Gnome, and Java offers its own GUI framework called AWK and Swing.

    All these frameworks are incompatible with each other, but the model they use are basically the same. In today's personal computing, one basically have graphical “Windows”, and in it one has “Menus”, and “Buttons”, “Dialogues”. User point or click on these to tell the software to do specific things. For the programer, the way it works in these frameworks is like this:

    In the framework, GUI elements such as Windows, Menus, Buttons are collectively called “widgets”. For each GUI element there is a pre-defined function that draws them. The programer calls these functions to draw them. When a user act on these widgets such as pressing a button, the widget's function will receive a signal. Each widget may be associated with different types of signals. For example, Windows can be dragged or resized, while a button can be clicked, a menu has items to be selected. When a Window is dragged, the corresponding widget function might get a signal that is the positions of beginning and ending coordinates. When a window is closed, the widget function will get a “close” signal. When a button is clicked, that button's widget function will get a “click” signal. When a menu is pulled, that menu's widget function will get a signal of the selected item.

    For each widget-drawing function the programer called, he assigns to it a function called “event handler”. These event handlers are called and are given the signals when user acts on them. For example, when a button is clicked, the button widget function automatically calls its event handler function and gives it “clicked” as argument.

    The programer doesn't have to worry about how the button function knew when it is being pressed. All that is implemented in the framework. The GUI programer today only needs to call these widget function as to design the appearance of the window, where the button shows up, what menu items are there etc, and assign a function (event handler) to each of these functions, so that when these GUI elements are hit, the widge functions call the programer's event handler functions, which do whatever computation the software is actually supposed to do.
    HTML, DOM, JavaScript, and the Browser as a GUI Application Platform

    In writing Web Application using JavaScript, the technologies involved are HTML, DOM, JavaScript, and the Browser.

    The HTML (and related technologies such as XML and CSS) are used to show the GUI widgets and content. DOM ascribes to HTML a standard definition of structural meaning so that it can be manipulated programmatically. And, JavaScript is the language that actually lets the programer program what happens. While the browser, is the underlying engine that ties everything together. It takes care of rendering the HTML, and takes care of knowing all the mouse positions and register all events (user actions) such as keystroks, mouse movement, clicks, menu pulls, window closing etc. It takes care of interpreting the JavaScript code, and will execute them when a event happens.

    Here, the GUI is the browser window and HTML elements (radio checklist, check box list, menu list, text field, button, window pane/frame etc.). The events (user actions) are defined by DOM. They are for example: oncopy, ondrag, onload, onclick, onkeydown, onmouseover. And the actions (event handlers) are JavaScript functions the user writes.

    For example, it may be desired to change the cursor icon to a finger when the mouse is moved over a hyperlink. So, a hyperlink (considered as a widget) has a MouseOver event, and the programer can assign a event handler to it, so when a mouse hovers over a link, that function is called, and the function's code changes the mouse pointer icon to a finger icon.

    For list of events defined by DOM, see for example: http://msdn.microsoft.com/workshop/author/dhtml/reference/events.asp
    Assign Event Handlers to GUI Widgets

    To associate a event handler to a HTML widget, there are two ways. One way is to put the code directly inside the HTML tag, like this:

    Hover Over Me!



    Alternatively, a cleaner way is to give a ID to a HTML element, and in your JavaScript assign a event handler to that ID. This way, your HTML/XML will have a clean structure, while all behavior related code are moved to your JavaScript's source code. Here's how the code would look like:

    Hover Over Me!





    In this example, when mouse hovers over the P tag, the browser sends a signal (called “event”) to the JS engine embedded in the browser, and it calls the doThis function (which is your event handler), and your function do whatever you had it do. (change color, open a window, send email, send form, pop up a dialog... etc.)

    ----
    This post is archived at:
    http://xahlee.org/js/events.html

    Source: http://community.livejournal.com/javascript/96319.html

  11. Form Help

    Date: 03/11/06 (Javascript Community)    Keywords: html, java

    ok anyone who can do html/javascript i NEED your help and i am willing to pay you!!!!

    I need to make a form that has the following in it:

    • A selection list allowing the user to choose a service option.
    • When the user chooses an option, display the corresponding fee in its own text box – format the value as currency.
    • Allow the user to enter the desired number of units (days, people, etc.), on which the fee is based, in another text box.
    • Show the extended price (fee multiplied by the number of units) in another text box (format the value as currency).
    • Create a separate form with input areas for the user’s name, surname, address, province and postal code.
    • Alert the user if any of the required data has not been entered.



    HELP!

    x-posted

    Source: http://community.livejournal.com/javascript/96217.html

  12. validation pb

    Date: 03/12/06 (Web Development)    Keywords: html

    Hi there,
    The following line prevents my page from validating (xhtml 1.1)
    Code :

    [select onChange="location=this.options[this.selectedIndex].value"]

    Is there any way to achieve the same effect and validate ?
    Thx for any advice :)

    Source: http://community.livejournal.com/webdev/305729.html

  13. A Message from the Maintainer

    Date: 03/13/06 (HTML Help)    Keywords: html

    Alright, I've seen way too many asterisks in this community :)

    Definitely use http://transform.mikelikewhoa.com/. It's a tool to transform overrides, html tags, and the like so you can post them without placing asterisks everywhere.

    Source: http://community.livejournal.com/htmlhelp/2272356.html

  14. Processing RTF Files with PHP

    Date: 03/13/06 (PHP Community)    Keywords: php, html

    Has anyone come across some PHP code to process RTF files?

    I'm trying to get a script together to convert an RTF file into HTML for an Intranet site, but seem to be having no luck, and my Googling is not turning up anything :(

    Source: http://community.livejournal.com/php/424835.html

  15. Trouble Viewing QuickTime Movies embedded into PDF

    Date: 03/14/06 (Computer Geeks)    Keywords: software, browser, html, web, google

    Edited for solution

    It's been forever and a day since I've been able to view any of the tutorials from this site -- http://tutorials.stuartlittlephotography.co.uk/

    Apparently I'm not the only one, so he sent out an email the other day --


    Removing White Backgrounds

    Hi There,

    In the past 2 weeks I have been experimenting with different ways of delivering the weekly tutorial, because depending on what computer set up you have, you either get to watch the tutorial or you don't. "I have been listening to your comments you know" :)

    So I have come up with a way of embedding the normal Quicktime video into a pdf and using that pdf as a container for delivery through your browser. The pdf version has been tested with users like yourself this week on Internet Explorer, Mozilla & Safari web browsers and no problems so far.

    Instructions

    You will need to have the latest version of Adobe Acrobat Reader 7. Its free and you can get it by clicking on the link below or copying and pasting the url into your web browser.

    Get Adobe Reader

    Click or Copy & Paste into Browser.
    http://www.adobe.com/products/acrobat/readstep2.html

    Once you have Acrobat installed you can then go to the tutorials page as normal.

    When you click on the "View Here" link, a blank browser page will appear and the pdf will start to download. It is 10.48mb in size and will take about 2.5 min's to download.

    Once you can view the page in the browser you will then be able to "save a copy" to your desktop and view offline for as long as you want.

    Finally, there is an option in Acrobat to change the view in %. The video tutorial is best viewed at 75% rather than the default 100%. If you have any problems then please email me by return.

    This method of pdf delivery has been tested this week, but I am very keen to know what you think of it?

    Removing White Backgrounds

    This episode shows you how to remove a subject from its white background and blend with another image.

    Click or Copy & Paste into Browser.
    http://tutorials.stuartlittlephotography.co.uk/


    I downloaded the tutorial. I have Adobe Acrobat Reader 7 and Quicktime 7 but when I tried to
    view it, I got the error "The media requires an additional player. Please click 'Get Media Player' to download the correct media player. To play the media, you will need to close and restart the application once the player installation is complete." When I click 'Get Media Player' it takes me to the Apple site and I download Itunes and Quicktime 7, which I already have. So, I uninstalled QuickTime 7 and installed 6.5.2. Now I can get past that initial error, but I am back to hearing audio and no video. I get this error "QuickTime is missing software required to perform this operation. Unfortunately, it is not available on the QuickTime server."

    I can't seem to find anything helpful with google. Can someone please help me alleviate my frustration?

    Cheers!!

    The solution
    was so easy once I found out. In Adobe Reader, there is an option to check for new updates. When I clicked this, I received a message that there were no new updates. Googling the right question brought me to an actual Adobe page that had a link to some updates. (Not sure why the program didn't find these). I updated my Adobe Reader to 7.0.5 and now have no troubles viewing the movie.

    I found this solution on this page -- http://www.adobe.com/support/techdocs/331566.html

    Source: http://community.livejournal.com/computergeeks/893193.html

  16. html help

    Date: 03/15/06 (HTML Help)    Keywords: html, web

    I've discovered an old webpage I made in high school (back when I was familar with HTML). The frames are not working like they did when I made it. I must have somehow screwed it up. I wanted the tables to be side by side.

    First Table --- journal
    Second Table --- info/interests
    Third Table --- photos

    Can someone help me?

    vague.pitas.com

    Source: http://community.livejournal.com/htmlhelp/2273594.html

  17. Double Spacing

    Date: 03/17/06 (HTML Help)    Keywords: css, html

    I'm trying to post entries that are coming out of Word, and I need them to be double-spaced. I found this information on how to accomplish this:

    To make your text double-spaced or space-and-a-half, insert the following into the head

    (STYLE TYPE="text/css")
    P { line-height: 150% }
    (/STYLE)

    You have just specified the characteristics for the

    (paragraph) tag. Every time you format text using the (P) tag, it will be 1.5-spaced. To double-space your text, substitute 200% for 150%

    (I do have the <'s and >'s where I put in ()'s above.)

    So I did just that and then inserted my text. Problem is, the text isn't showing. So I added HTML, HEAD, and TITLE tags.

    Now the text shows, but it isn't double-spacing.

    What am I doing wrong?

    Source: http://community.livejournal.com/htmlhelp/2273917.html

  18. Browser Quirks Mode Activation Table

    Date: 03/17/06 (Java Web)    Keywords: browser, css, html

    In order to deal with both old tag soup written to old browser quirks and new standards-compliant pages, Mozilla (and Mozilla-based browsers), Mac IE 5, Windows IE 6, Safari, Opera 7 and Konqueror 3.2 have two main layout modes. In one mode the layout engine attempts to render conforming pages according the CSS and HTML [...]

    Source: http://blog.taragana.com/index.php/archive/browser-quirks-mode-activation-table/

  19. Google Sports a New Table Based Look

    Date: 03/17/06 (Java Web)    Keywords: css, html, google

    Google appeared with a new look today for Indians (google.co.in). It sports a three column look with flexible center content column. It appears to be a limited trial, displaying only in certain regions. It still uses html table for layout. It appears Google has decided not to join the CSS bandwagon or, as I repeatedly stress, [...]

    Source: http://blog.taragana.com/index.php/archive/google-sports-a-new-table-based-look/

  20. HTML Emails

    Date: 03/17/06 (Web Development)    Keywords: software, html

    To send HTML emails, I am currently sending the HTML page via WIndows XP through the "send page by email" option in Internet Explorer.

    I have a client that does not like the fact that you can see anything in the 'attachment' section of the email header. Does anyone know how to send HTML emails in a different / better way? Or do you know if there are any software packages that will help code and set-up more robust and diverse HTML emails?

    I have GoLive & DreamWeaver, is there something built into either of them that will do as I am asking?

    Any help you could offer would be most appreciated, sorry if this is the incorrect place to post this query, I was unsure.

    Source: http://community.livejournal.com/webdev/307844.html

  21. PHP Help

    Date: 03/17/06 (PHP Community)    Keywords: php, html

    Okay, a little back story. For several years now I've had some php queries of story listings. I don't want them run repeatedly, so in addition to this I run a cron job with curl statements like:

    curl http://.../all-stories-num.php -o /home/.../all-stories-num.html

    This has worked beautifully, makes an HTML for each file, and I just run it nightly to account for updates during the day. However, as the site has grown, there number of PHP files has grown to 1010. So I thought I'd consolidate them into a few files passing variables in to differentiate. Then still run a cron of curl statements, except now they'd look like this:

    curl http://.../charbytitle.php?cid=80&letter=W&pageno=1 -o /home/.../ofcw.html

    Well after extensive testing, apparently this won't work, at least not the way I've done it. The curl statement doesn't handle the variables passed in.

    Does anyone have any ideas of how else I could get the same effect? i.e. one HTML for each type of query without having to maintain over a thousand PHP files? Or someway to cache the results for 24 hours if I used the PHP files directly?

    cross-posted to '[info]'php_dev and my journal

    Source: http://community.livejournal.com/php/427596.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