Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1001.

Solve : What simple HTML code lets the user go back one page??

Answer»

I want the user to decide to go back one page.
This is a very simple project -  I don't want pages of SCRIPS, CSS and stuff like that.
I put this GIf in the upper left area.

I shows an arrow and the words "Hit go back key".
Now I am thinking the user might click on the images rather tahtn fining the go back key on the browser.
So what is the simple link to go back to the prior page?
It should go up one level and start the FILE called 'index.html'.
(I used to know how to do this. Years ago.)   

?
As far as I'm aware the only way to do this is to USE Javascript for example:
Code: [Select]<a href="javascript:window.history.back()>Go back</a>
or
<a href="#" onclick="window.history.back()">Go back</a>
Thank.
At lest that is a one line SCRIPT. I can handle that. I THINK

1002.

Solve : MySQL server config error?

Answer»

Hello all, I'm trying to set up a server and I've run into the same error multiple times. I have installed the latest MySQL (5.1) and am using the Configure Server program but I get Error 0 when executing the server. I am running Windows XP.

Here is a screenshot:



Here's a what I've tried:
-Uninstall MySQL, Delete any remaining RELATED folders, Remove Registry entries of MySQL Server, reinstall, try to configure again.

Nothing seems to be working for me.

Also I apologize if this is not in the correct area.What port are you setting it up through? The default is 3306, so try changing it to 3307. If you chose a QUICK installation at the start, just go back and select custom installation, and go through the steps (most OPTIONS will be alright) until you come to the ports.i got the same thing because of antivirus software would not let me install the service.  so i choose not to install it as a service, but just run the executable when i need it.Okay then.

Here is something you might like to try THOUGH: XAMPP
It has PHP, MySQL, Perl/CGI, PHPMyAdmin, WebDav, and PLENTY more. It also has a very simple setup.

1003.

Solve : form that creates a file?

Answer»

is there a html code or PHP code that askes for SOMEONES details uing IMPUT boxes then creates a file BASED on the imput so
there is a usename and password input box ans when you click submit it MAKES a .html or .php web file with there details on it such as there usename in the corner

1004.

Solve : Mad WordPress install on 3 cheap websites.?

Answer»

Just now, in the past week, I tried to install a FREE WordPress on cheap web space I got on eBay. Three out of four went crazy.
Yeah, I know. You get what you pay for. 

But here is my question. Is there a trend for webmasters to just throw a bunch of stuff into a web hosting package with no regard as to the authenticity of the software packages

Or , to put it another way, Are they stealing the application passages?

I need to know. Is it me? I have been for awhile, never got very good at it. But never before have I had three failures in one week. Maybe I need to adjust my medicine. 

Thanks...You bought cheap hosting on eBay.

Would you buy home insurance at a garage sale?Just did an ebay search.... I was surprised at how many there are there. I would never have thought to go to ebay to try to get a cheap hosting service.

Btw some of the ones I see have a money back guarantee if not satisfied. Maybe you can get a refund?Yes, and I have done that in some cases.  Sometimes the PRICE is so cheap and the service lats for awhile, it is less bother to just go buy another one.
On problem I have found. Many of this 're-sellers are using a server complex that belongs to a big company that does not isolate the name servers.
Example:
I buy a cheap service and the name servers might be:
ns5.greatscott.de and ns6.greatscott.de
(No the real names, just an example.)

So I abandon the cheap service because I can not even get into the support SYSTEM. So I go buy another very cheap service and they give the name servers as:
ns3.greatscott.de and ns4.greatscott.de

Duh?  Will that work? No, I try to put one of recently  injured domains s on the e server and it gives an error saying that the domain is already in the server. That is not supposed to happen.
The name servers ought to be separate, but they are not. Apparently some  greenhorn site manager tried to merge the names into one big cooking pot. That defeats the whole point of having distinct names servers. And even if the name servers and very, very  unique names, that does not fix the issue if they all USE the same IP address.  Amazing how many use a single IP.

It seems  to me that some rich man who got rich selling chicken wings moved on to go into the server ownership business. He thought he  could use  some of the cooks from the chicken wing business as technicians for his server setup.

Running a server is not the same  t hing as coking chicken wings.   With multiple servers, you should not try to cook every thing in the same pot. With chicken wings, it only affects the taste. With servers you get address conflicts when broken web space is still visible to the DNS.

Really, , I don't know if that is true.  Maybe is was pork rinds and not chicken wings.

Anyway, I went and from three  different vendors, I got a monthly package so I can quit at anytime. I hope they are not all using servers at
  - www.greatscott.de  


I personally don't see the point in using dirt cheap, unknown web hosts.  You can pick up proper hosting from a reputable company for well under $5/mo fairly easily (*censored*, you can even get full VPSs for that) so I really can't see the benefit in trusting a lesser known provider.Camerongray,
You are right. I hare an addition to anything cheap. Just can not RESIST trying something that  much too  cheap.
I think I will try paying a fair price and see if I get a fair service.  UPDATE
It has been a few days.
Just to see, I tried some other bargain offers.
Here is what I find. 

  • The vendor is late to respond with name server information.
  • The vendor wants you to buy hosting a and use a promo code.
  • After the site is working for a few days  and then stops.
  • Tech support sites some lame  excuse for the problem.
  • They continue to sell, but do not resolve the technical issues.
Shall I be specific? Look at this image below.
And there are e others that offer cheap service and claim it is good.


[attachment deleted by admin to conserve space]
1005.

Solve : a JavaScript scroll link randomizer (Is it even possible?)?

Answer»

I'm trying to add a randomizer, of sorts, to my page http://gags4myhag.blogspot.com/2010/03/add-joke.html

I'm doing this with arrays using the links provided by a few comments now, but I'd like to be able to just have the randomizer in the bottom left scroll to a random part of the page instead. I'd also like for visitors to be able to press the randomizer more than once to be taken to random locations within that page. I've ditched the arrays with links idea because the links of comments past page one lead nowhere, and the code would need to be updated too often.

So (finally), how do I create a javascript scroll link that can be clicked time and again with a seemingly random RESULT. I'd like for it to include about 10 different spots (25 pixels down, 50px, etc...)


Is this a start???
Code: [Select]function jumpScroll() {
    window.scroll(0,150); // horizontal and VERTICAL scroll targets
}


<a href="javascript:jumpScroll()">Jump to another place on the page</a>


And here's the code I currently have in place for the Randomizer:
Code: [Select]<div style="display:scroll;position:fixed;bottom:0px;left:0px;">
<script language="JavaScript">
<!--

images = new Array(4);

images[0] = "<a href = 'http://gags4myhag.blogspot.com/2010/03/add-joke.html#IDComment63797934'><img src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' width='200' height='60' onmouseover=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random.gif' onmouseout=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' style='border:none;' alt='Click here to view a Joke Random!'/></a>";


images[1] = "<a href = 'http://gags4myhag.blogspot.com/2010/03/add-joke.html#IDComment63797847'><img src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' width='200' height='60' onmouseover=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random.gif' onmouseout=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' style='border:none;' alt='Click here to view a Joke Random!'/></a>";


images[2] = "<a href = 'http://gags4myhag.blogspot.com/2010/03/add-joke.html#IDComment63797577'><img src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' width='200' height='60' onmouseover=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random.gif' onmouseout=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' style='border:none;' alt='Click here to view a Joke Random!'/></a>";


images[3] = "<a href = 'http://gags4myhag.blogspot.com/2010/03/add-joke.html#IDComment64203837'><img src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' width='200' height='60' onmouseover=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random.gif' onmouseout=this.src='http://i40.photobucket.com/albums/e250/jonsan32/random1.jpg' style='border:none;' alt='Click here to view a Joke Random!'/></a>";


index = Math.floor(Math.random() * images.length);

document.write(images[index]);

// -->
</script></div>

I guess I'd like a combination of these two sets of code, where the page might have to refresh and scroll with an onload property so that a new random link is present and ready to be pressed. If there are any other solutions that might work for me, throw 'em my WAY. I just want people to be able to see random jokes.

PS I'm just now figuring out how much I don't know about this stuff, and I NEED to seriously change the level of HTML experience I claim to have. Sorry. If you'd like any other info, let me know. THANK YOU!I think I can word this FAR more simply (sorry about the previous explanation. I just wanted to avoid not being detailed enough):

Simply stated--->

How do you make a link go to a page, then scroll down to a certain point indicated within the aforementioned link?

Thanks for any help you can provide.Found this script if this helps any
Code: [Select]<script type="text/javascript"><!--
// November 3, 2009, http://www.willmaster.com/
// Copyright 2009 Bontrager Connection, LLC
function AutoScrollOnload() {

// SPECIFY how many pixels from the left
//    and how many down from the top to
//    automatically scroll the page.

var InFromLeft = 0;
var DownFromTop = 364;

// No other customization required.

window.scrollTo(InFromLeft,DownFromTop);
}
function AddOnloadEvent(f) {
if(typeof window.onload != 'function') { window.onload = f; }
else {
   var cache = window.onload;
   window.onload = function() {
      if(cache) { cache(); }
      f();
      };
   }
}
AddOnloadEvent(AutoScrollOnload);
//--></script>

And yes, I am determined :-)

1006.

Solve : What aboutputting .htaccess in my image dirctory??

Answer»

Question about .htaccess
Some of you might know the quick answer.
Long story made short- I had to get another web host.  Bi the provider does not let the PUBLIC see a directory. There  has to be an index.htm file or equivalent in php or other thing. No more directory without an index.

But I like to look in my  image directory and see what  I put is there
Example: Say my domain is www.big-bird.con (It is not, this is just example.) To see a list of my images I could just type.

http://bitg-bird.con/images     {not a link}

And I would see an index of the files in that directory. Next, I could click on a name to see the image.

But now I can not do that. I THINK it has SOMETHING with how they CONFIGURE the server. What is NEEDED is an exception for the images directory. I think that would be a .htaccess problem.
Am I on the right track? What would I do to make the directory visible?
In an .htaccess file in that directory:
Code: [Select]Options +Indexes
Thank you.I w ill try that right now. 

Update: It Works!! amazing!

1007.

Solve : Pagerank Update?

Answer»

There was a pagerank update today! How did your sites get affected?

Mine gained one POINT and is now a PR3  Wha.....?

Pageranks are updated very frequently. It depends on the keywords you're using anyway.Google continuously checks LINKS and re-ranks us (so when our visible PR is updated we don't see a DIFFERENCE in rankings) but we only see an update in PR 5 or 6 times a year. 


Everyone I've talked to has found that their PR was updated this morning.Mine was not updated, where you are CHECKING it?
Maybe the page I'm using is not up-to-date yet.

1008.

Solve : Recomendation: 1&1 Digital Guide?

Answer»

This is a recommendation fora group of tutorials found on the 1and1 website.
But this is not a recommendation for the 1and1 services.  This is only tip for those of you who are LOOKING for the basic information about how to build and market a web site.  Well written information.

It even includes needed materiel for a non-profit organization.

Go to their web site, do not  agree to anything or register or give any information. The information is free and public. look for a tab LABELED:
Digital Guide
or just click on the link:
https://www.1and1.com/digitalguide/
Here is one of the items:
Quote

What is a root server? Definition and mechanics
When you call up a website, the ENTERED domain first needs to be TURNED into an IP address and read out from the browser so that the page can finally appear in the browser. This process is known as name resolution. Here, the root name server or (DNS) root server in the domain name system plays a key role. But what is a root server? And what exactly goes on when they receive requests for translating a domain name into an IP address? [...]  ►
Some other articles:
 • How does content curation work?
 • Gender marketing
 • The 10 most common WordPress problems
 • Captcha: codes, images and puzzles
Check it out. You might FIND what you need.   
An no, I do not work for them. An yes, I have used their products. This is only a recommendation to look at their documentation.


1009.

Solve : Firefox blocks HTML refresh command.?

Answer»

Here is a short version of the HEAD in my HTML code.
Code: [Select]<head>
<META http-equiv="content-type" content="text/html;
charset=windows-1252">
<meta http-equiv="refresh"  content="8;url=./wp">
</head>
Notice the second item is a refresh that will allow 8 seconds. It does not go to another site, it is a relative jump to another directory where PHP  takes over.

Firefox blocks the link, Chrome does not.
What should I do? Give up?
My intent was to TAKE the USER to my WordPress BLOG after a shot view of my front page. Here is a screenshot of the first page.

As you see, Firefox will not allow the jump unless the user allows it.
I RECALL this used to work fine. Why has it changed?
What can I do?
Any Ideas?

1010.

Solve : Weird happenings with Yahoo Hosting?

Answer»

This isn't a design question per se, but I'm wondering if anyone has ever run into this before.  I'm creating a website hand coded in CLASSIC HTML and using Yahoo! Small Business for my hosting.  One one page, I noticed a problem with one of my images, so I fixed the image locally, deleted the image on Yahoo through File Manager and uploaded the new image.  When I reloaded the page, the old image was still SHOWING up.  I REPEATED the process several times to make sure that I wasn't missing something and kept getting the same result.  So as a test, I deleted the image entirely so that the code would have nothing to point to.  I closed my browser, relaunched, checked the file manager to ensure that there was no image named what I had named it and opened the webpage.  That same image was still there.  So the question is, has anyone encounted this "ghost image" problem before, and if so what causes it.  I THOUGHT it might be that the cookie was simply reloading the cached page with the image intact, but wouldn't closing the browser resolve that issue?Did you clear the cache (on the page hold CTRL and press R)?Yeah, I figured it had to be a caching issue. It didn't occur to me at first and I ended  up working around it by RENAMING my image file, but clearing the cache will tell me for sure if that's the issue.

1011.

Solve : how to creat a forum ?.?

Answer»

I really want to know how to create a forum.

Please Explain me..... get a FREE forum. Check out www.proboards.com or freeforums.org and they'll get you started straight away with starting a forum, they build the basics for you and you get working on what you like. Both SERVICES are free so go for it 

That's PROBABLY the easiest but you can get the forum CODING stuff and do it yourself and host the forum on your own website.You need a place to host a website to have an actual forum SYSTEM...

I have my own hosting, held in my basement... but, I use professional hosting as well for a few things.

You can use a service like ProBoards, but, I perfer total control over the entire forum system.

SMF is a free forum system, but you need hosting that has PHP and MySQL.
www.simplemachines.org

1012.

Solve : not able to change the marquee . So need help ASAP?

Answer»

My company has a website. The person who made a website now he is abroad, not in touch with us.
1 )  He has set a marquee in the HOME page. Now my boss want some change in the date which is set in marquee.
But when I am trying to do it through HTML and changing the date . I save it . And then I REFRESH my website. But I am not able to see the change it.
So please help me how do I change the website marquee .
I would also LIKE to inform you that the webdesigner has given me fttp user id and password of the same.

So please give me a  solution how do I change it.

Thanks….
I assune you're just talking about a HTML scrolling text marquee? The tag you're looking for is .Go to your webpage's html code and look for tag. Replace the text inside that tag.ok. Thanks I got the solution as TOLD by you. I did it and i was able to do changes in marquee.

Thanks

1013.

Solve : Get new Domain Name with the PRO suffix.?

Answer» This is about TLD chicness.
COM is the most common, followed by NET and ORG

Instead of buying  domain SUPERGUY.COM one MIGHT e SUPERGUY.PRO  from most of the domain name vendors.

A Bit of History...

Way back in the old days of the Web, when "all of the good domain names were taken" on .com, there was an initial expansion of new TLDs (including .info and .biz, which unfortunately ended up largely misused as junkyards for shady domains). One of the new TLDs in this group (back in 2004) was .Pro.

.Pro was conceived of as what would now be called a "Premium TLD" -- that is, a .pro domain would cost more than a domain on a normal TLD like .com, because it would carry a certain cachet that a normal .com (or .info, or .biz) domain would not. (I remember looking into .pro domains a decade or so ago, and pricing was several hundred US$ a year, or roughly ten times the going rate of a .com domain.)
.Pro domains were supposed to be reserved for "licensed professionals" (think doctors, lawyers, etc.). In fact, registrants were supposed to provide documentation about their licenses as part of the registration process. A few years later (2008), the list of eligible licensed professions was expanded (including Educators, Physical Therapists, CFAs, and many more).

Source:
 https://www.symantec.com/connect/blogs/look-pro-original-premium-tld

Anyway, you can get  one if you think you are a PRO. 
You can get one if you know you are not a PRO. 
Either way,  you have to PAY. It now is  about the same as the COM thing.

I found a vendor who will SELL the first year for about $2 So I bought one. Will I tell you what it is? No, I am a pro and I do not put my PRO domain name here to get cheap publicity. Like a PRO, I will have to pay for the publicity. (After I makes some money.) 

Look around and find a vendor that offers a cheap first year on the less-used TLDs available.

I recommend PRO for anybody.
(No, I do not work for PRO.  I am a PRO.)   I never saw anything but .COM a wise choice for a start up. The only need to buy the alternatives .biz .net .GOV .edu .pro , and all others would be to protect from others using the same domain name as you under an alternate suffix. Back when .biz was available one of my friends was super excited and he went with just whatever his website was .biz and the problem he ran into was that people would remember the site name but not the .biz part for his business. Too many people see a domain name advertised to check out and assume .COM he even had a customer ask him why he went with .biz because I couldnt get to your website so it became a problem for him. He wasnt big enough of a business for Google to find his site and have it in a search engine listing that people arent bothered with manually typing in a URL, and so for the fact that he wasnt known enough to be .biz vs .com and people assume a website domain being as .com he likely had people try to check out his website and give up as for many people are even bothered with having to manually type in anything into the URL bar to go to a website. He wasnt big enough to have a name that you could search engine and find him, he was really too small to run with the .biz as his main domain suffix as well as be didnt buy all suffix's and have redirects of all suffix's to .biz which would have been a solution, but he also didnt have .com as a suffix because the domain name he wanted someone else already owned the .com of and so him advertising was actually probably pushing potential customers to someone elses website whoever owned the .com suffix of the same domain name.

He should have really bought up a domain name and all suffix's of it and just went with .COM which is what 99.9% of people would expect vs .biz     And then with all suffix's owned have them all redirect to .COM

The different suffix's are a way to get more money out of people who want an explicit name as well as a means to give some people a false hope that they wont have troubles using a domain name that someone already owns the .COM suffix of that they can be sneaky and own that name under a different suffix and all will be well, when its likely that they will just be creating more traffic to whomever owns the lease to the .COM suffix. Additionally I have heard stories of alternate suffix same domain names being bought up and held for ransom to bigger businesses where buy this off of us for a large sum of money or we will post bad stuff at your domain name under a different suffix, so big businesses know to buy all suffix's and the minute a new one COMES along like .xxx buy the lease on that too to lock someone from making a naughty site for say the white house's website etc as this was a real problem years ago.  I've just now registered bc-programming.ca.

Topic got me looking at it and it was only 99 cents a year. (or $59 for 5 years? What?)I know this is an old thread but... the new gTLDs are practically useless. They're overpriced, extremely unprofessional, unwieldy and 99% of the time email from them is just spam content from Eastern Europe. I wouldn't go near them, just pick an original company, brand or site name and go with a .com, .net or .org depending on your purposes.
1014.

Solve : Flash OBJECT and EMBED tag (Part one)?

Answer»

Inserting a FLASH (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the TEMPLATE. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I THINK it will be useful to us, so I wrote this article.
This article includes two parts:
1. General introduction to the two tags.
2. Why do we use all the tags above? Is there any tag that can be left out?

1. General introduction to the two tags.

To display Flash correctly on web page, HTML tags which indicate the path of the Flash file is needed in the web page. These HTML tags are OBJECT tag and EMBED tag. OBJECT tag is used for IE on Windows, while EMBED tag is for NETSCAPE Navigator on Windows and Macintosh and IE on Macintosh. IE on Windows play Flash with ActiveX component while other web browsers play Flash with Netscape plug-in technique. The code below is an example used to embed Flash file to web page.
Example HTML Code:
Code: [Select]<OBJECT classid="clasid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
WIDTH="432" HEIGHT="330" id="myMovieName" >
<PARAM NAME="movie" VALUE="myMovieName.swf" />
<PARAM NAME="quality" VALUE="high" />
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="/flash/ myMovieName.swf" quality="high" bgcolor=#FFFFFF WIDTH="432" HEIGHT="330" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>PART 2 "Why do we use all the tags above? Is there any tag that can be left out?" will be continued soon enough:)




No advertising. Also, remove the links in your signature.Why would you copy that and post it here? Seriously, what were you trying to achieve?

1015.

Solve : fixing IE issues for table cell fixed width and mis-alignment?

Answer»

My page http://www.thepoetryofjonsanders.com/ (through blogger.com) works and looks perfectly good in every browser, except for IE. What's the best fix for ensuring the fixed table widths for each cell? And how can I fix the text-alignment as well. I've included all the html I'm using in the linked file below, a suggestion I found but don't understand from some website, and screenshots at the bottom of this post. Thanks in advance!


The html I'm using:
http://s2.sigmirror.com/files/64673_behe9/poetryhtml.txt


Quote

In some browsers you have to explicitly set the column widths for all
columns. It is a good idea to use both width=20 and
style="width:20px" to ensure cross-browser. Also make sure that the
total widths of all columns add up to the width of the table. When
creating a simple table with no rowspan or colspan properties, you can
set the column widths in the first row and save the extra bandwidth of
assigning it to every column in every row.
from http://bytes.com/topic/html-css/answers/95311-fixed-cell-width-table-does-not-work-ie



screenshot of my page in IE (What I do not want)



screenshot of my page in CHROME, Firefox, and Safari (How I want it to look)
Checked out the site in IE and looks LIKE you got it resolved.Actually, I just upgraded my IE and that fixed the width issue. I don't mind the people unwilling to UPGRADE being out of luck, but the alignment is still not the way I'd like it. It's CENTERING within a centered table, when it should be to the left of that centered table. Do I need to add any extra closing or opening tags? Or is that just a limitation of IE? Again, in all the other browsers it's perfect.

Thanks!I took some time and went through your code. Honestly it had a lot of HTML errors, all of which could be causing this issue with earlier browsers. I set your row to 35% 30% 35% widths, which should correct the error and got rid of the several duplicate tags and other errors. Attached is a cleaned up version that should work.

You may also want to consider learning more about CSS so the


[recovering disk space - old attachment deleted by admin]Wow, no human being can GIVE you anything greater than a piece of their time here on earth. Thank you, thank you, thank you.You're welcome.
1016.

Solve : need help for some really simple html?

Answer»

so long story short i'm not the greatest at html, nor am i fluent in it, and i been googling all day getting thrown in circles landing o the same pages over and over and over, it's pretty insane how google over the years keeps getting less useful as a search engine, literally my last search got me to a page of animal picture, completely unrelated to HTML and what i was trying to do and now i'm here.

All I want To do is have and input text box, a BUTTON that's clicked, and the value that was entered into the box is temporary save, and display on screen, it does NOT need to go to a database, it douse not need to be permanently saved to my site, it just needs to sit there look pretty and and get referenced to for other program i am using.

If anyone can point me to a good tutorial ( not just some 3 lines of code that only 1/8 related to what i need to do like w3 school did to me all day) or if you just wanna make it yourself and share, i seriously doubt it would take any time at all for an experience html user. thanks in advance, it will be a late reply im tired its 3 am and im tired of searching.haha guess it not so simple, figured a input box and submit button would be pretty easy guess im wrong . still cant FIND anything on how to do this, i mean i can do an input box, a submit button, just don't know how to set it for a temp variable in html to be referenced to, and agin it doesn't not to be saved to a database, jsut needs to be displayed look pretty andbe able to get the input that was temperately saved There are very simple HTML editors that let you type in something and it is saved in HTML. I like to use Sea Monkey for just plain HTML code.
Here is a reference:
http://ksuweb.kennesaw.edu/~tpowel25/FacultyEResources/SeaMonkeyInst.pdf
A video:
https://www.youtube.com/watch?v=zcaYsG2nYqU
(Ignore the Ad.)
You want to do input?
Very simple HTML input is done with a FORM.
Here is a reference for input types.
https://www.w3schools.com/html/html_form_input_types.asp
Example:
Code: [Select]<form>
  First name:<br>
  <input type="text" name="firstname"><br>
  Last name:<br>
  <input type="text" name="lastname">
</form>
Does that help any? 
What you seek is impossible in just HTML. It requires you to use Javascript as well.

Anyway this is based on this search result from Google:

Code: [Select]<html>
<head>
<script language="javascript">
function runclick()
{
    document.getElementById('resultshow').InnerHTML=textinput.value;
    textinput.value = "";
}
</script>
</head>
<body>
<input type="text" id="textinput"/>
<button onClick="runclick();">Click</button>
<div id="resultshow">Text</div>
</body>
</html>
Quote

All I want To do is have and input text box, a button that's clicked, and the value that was entered into the box is temporary save, and display on screen, it does NOT need to go to a database, it douse not need to be permanently saved to my site, it just needs to sit there look pretty and and get referenced to for other program i am using.
It  would help if the OP can describe  what he wants to do rather than  limit how it is done. He can use a variety of tools, but we have to guess why his program can not get this information? Where is his program? How does his program find data?

If you needs a server side scrip, then he has t use a program that works on the server. Maybe a PHP script.
The OP may have just did a quick look at  w3schools.com and made a quick judgement. Most everything a newbie could want to learn is there in w3schools.com and he doe not like that way of doing something, he needs to just use a template somebody has already built. There are thousands of free templates for almost anything.
Here are 25 CSS  he can study.
http://www.qubesys.com/25-css-form-templates-and-input-styles/

If he can clearly define what he wants to do, there is surely a script that has already been written.
Thanks guys for the information and links, seems i might be able to do what i am looking for i didn't know i would have to use java script to do this, i thought maybe i could do it just in html, and sorry if i was not clear enough on what i want to do, I'm not quite sure how to fully explain it but ill try,

The user Inputs their Team Name, Clicks a submit button, That Will submit that name TEMPORARILY doesn't need to be permanently saved.
Then the API i am using can get that team name, and submit their score to that team name score. everything is already handled by the API, i just can't figure out how to Set a Team Name Temporary for the API to reference so it can submit that score under the correct team name.

This is still unfamiliar to me and thank you for the help, I am definitely gonna check out the sea monkey. I will let you all know what i can come up with, and any further suggestions are still welcome

I may have found what i am looking for, gonna try testing this and see what i can come up with

Code: [Select]<body>
    <input type="text" id="userInput">give me input</input>
    <button id="submitter">Submit</button>
    <div id="output"></div>
    <script>
        var didClickIt = false;
        document.getElementById("submitter").addEventListener("click",function(){
            // same as onclick, keeps the JS and HTML separate
            didClickIt = true;
        });

        setInterval(function(){
            // this is the closest you get to an infinite loop in JavaScript
            if( didClickIt ) {
                didClickIt = false;
                // document.write causes silly problems, do this instead (or better yet, use a library like jQuery to do this stuff for you)
                var o=document.getElementById("output"),v=document.getElementById("userInput").value;
                if(o.textContent!==undefined){
                    o.textContent=v;
                }else{
                    o.innerText=v;
                }
            }
        },500);
    </script>
</body>
</html>
i did try the code below in the try it editor but it doesnt seem to change the text but i wil lgive it a go on my site and see what happens
Code: [Select]<html>
<head>
<script language="javascript">
function runclick()
{
    document.getElementById('resultshow').InnerHTML=textinput.value;
    textinput.value = "";
}
</script>
</head>
<body>
<input type="text" id="textinput"/>
<button onClick="runclick();">Click</button>
<div id="resultshow">Text</div>
</body>
</html>Not to much progress on this so far. It occurred to me I should show the line of code I'm trying to set the user name.

 
Var gamescore = new score.Submit(publicsiteKey, teamName [, options])


I need to set the team name that's what I need to accomplish sorry again for my lack of experience. My experience lies it making the games a content creation.I gave you the wrong code before.

Code: [Select]<!DOCTYPE html>
<html>
<body>

    <p id="demo">Hello</p>
    <button id="btn" type="button">Try it</button>

    <script>
        document.getElementById('btn').onclick = function() {
            document.getElementById('demo').innerHTML = 'Hey There';
        }
    </script>
</body>
</html>

Without knowing exactly what this "API" you are using is, What you have there is literally just the syntax example.

You would need to have a publicsiteKey, a teamName, and the options are, well, OPTIONAL, which is why they are in square brackets.  No idea what the options can be nor what the SiteKey actually is, though it seems like an API Key.

Code: [Select]SiteKey="jhsdkfhjsdhfksdf";
teamName="Some Team";
var gamescore = new score.Submit(SiteKey,teamName);
sorry again for lack of information, i contacted my partner about it, he doesn't feel comfortable letting me post his api code here, why idk it would probably make everything way easier, but me its written in java-script, and what im referencing is a constructor, i started google that and got way lost >.>
but what i do have so far is

Code: [Select]<input type="text" id="userInput"=> give me input</input>
<button onclick="test()">Submit</button>

<!-- add this line for function to write into -->
<p id="demo"></p>   

<script type="text/javascript">
function test(){
    var userInput = document.getElementById("userInput").value;
    document.getElementById("demo").innerHTML = userInput;
}
</script>


<script src="someHTTPSadress"></script>
<script>
var teamName = "testteam"
        var publicsitekey = "as545as45"
    var gamescore = new score.Submit(publicsitekey, teamName ,{
    })
</script>

Now I am just trying to figure out how to set the var teamName = "what i need to set", im reading this right now and probably need to get some sleep its 4:30, https://www.w3schools.com/jsref/prop_text_value.asp



change
Code: [Select]var teamName = "testteam"

to

Code: [Select]var teamName = document.getElementById("userInput").value
well good news is everything is running, without errors. when i just set the user name like var teamName = "SomeName", everything goes through fine and the SomeName shows up on the score sheet. but when i use var teamName = document.getElementId("userInput").value well no team name shows up or score

I'm not sure whats going but i did manage to solve this by useing  var teamName = prompt("Give me input I'm Scary Tarry B");

and everything worked fine, my CONCLUSION on that is maybe that its looping and not setting the variable after i click on submit Code: [Select]<script>
var teamName = "testteam"
        var publicsitekey = "as545as45"
    var gamescore = new score.Submit(publicsitekey, teamName ,{
    })
</script>
This part will run as soon as the document is loaded, so there would never be a value in the textbox. If you want this to happen when the button is clicked it has to be in the button click event. The
1017.

Solve : Web Design & Various Browsers to consider?

Answer»

Quote from: Geek-9pm on April 19, 2009, 04:52:59 PM

Is that because you deny the existence of HTNL?

So then, what is "HTNL"? Quote from: BC_Programmer on April 19, 2009, 11:08:22 PM
Actually, I think blink is PART of HTABAL, or "Hyper Text Annoying Blinking ADVERTISEMENT Language"
Lol...This topic is getting OLD.
1018.

Solve : settting php var to html var, Uncaught SyntaxError: Unexpected token var?

Answer»

hi guys been searching for the past couple DAY trying to figure out whats wrong, if i stick this line of code anywhere outside of the html im running it works fine the variable is set to what it was expected to

VAR userID =

but if i stick it inside my code like below i get an error of Uncaught SyntaxError: Unexpected token var

Code: [Select]script>
 var userID = <?php echo ($stats['displayname']); ?>
    var gamescore = new score.Submit(publicsitekey, teamName , userID{
    })
</script>


when viewing the page pages html after running it looks like this


Code: [Select]var userID = Marmalade var gamescore = new Score.Submit('8VDCBKu05bEAHebtB0pgqWdcEB60B5kA', 'RedTeam', userID{

})

i sure it a syntax issue  where i forgot something in the var, or its not breaking and not reading a new line. but i cant figure it out for the life of me, any help is appreciated,  or just the most simple EASIEST way to set an html var from a php var, WITHOUT the user having to do anything, i have also tried adding a ; after ?> but it just add ; to the user display NAME Code: [Select]var userID = Marmalade

First problem is the lack of a semicolon to terminate the statement. The var afterwards makes no sense to the interpreter because of this, particularly as there is no newline.

But that isn't the only issue. The statement would assign the variable userID to the value of the *variable* Marmalade. I'm going to presume that you want to set the value of userID to the String "Marmalade" here? In that case you need quotes:
Code: [Select]var userID = "<?php echo ($stats['displayname']); ?>";
thanks for they reply, and info.  yes that is what i was trying to do, and it is working, that seems to be my biggest problem is when and where to use certain things.

1019.

Solve : How do I find the url for my facebook site??

Answer»

Hi Everyone,
How is everyone doing? I keep trying to figure out how to find the url for my facebook site? I keep looking all over and haven't figured it out. Like where do I need to click to find out what it is so I can give it to my friends.
I've FOUND my url on other sites like Myspace. That seems to have something that says my url.
I tried asking ONE of my sisters who is using facebook now too and she seemed to think that my url is something I don't want to be giving out, which I don't understand. How can people view a web page without typing out the url?
Thanks,
Amy Hey Amy,

Simply google your Facebook Username (or full name) and there you will see the top link will be your profile, that is the URL to your facebook.I tried but it doesn't seem to be working.
Maybe I'm not doing something right. It comes up with so many different people with my name.
Go here: HTTP://www.facebook.com/ and log in. Then click on the link in the navigation bar the find your profile.I still don't know if I'm doing this right. I don't seem to have anything that says find your profile. Where exactly on the page will this be listed?
Is the navigation bar the address bar? or is it somewhere else? I'm never SURE where all these things are called

Quote from: AmyR7 on April 21, 2009, 03:48:20 PM

I still don't know if I'm doing this right. I don't seem to have anything that says find your profile. Where exactly on the page will this be listed?
Is the navigation bar the address bar? or is it somewhere else? I'm never sure where all these things are called

I'm sorry I don't really know Facebook, but I'm sure once you are logged-in, it can't be that HARD to find... Quote from: AmyR7 on April 21, 2009, 03:48:20 PM
I still don't know if I'm doing this right. I don't seem to have anything that says find your profile. Where exactly on the page will this be listed?
Is the navigation bar the address bar? or is it somewhere else? I'm never sure where all these things are called



When you log in. At the top of the page on the blue menu bar, right click "Profile" and click "Copy link location". Paste it wherever you want...that's your link right there.

Edit: This is you private profile link, not your public one.I think I may have found it.
Does this sound correct? http://www.facebook.com/profile.php?id=1042585713&ref=profile
or is it this one
http://www.facebook.com/people/Amy-Rossing/1042585713

The reason I'm trying to figure it out is so I can give people the url for my site so they can go to it. One of my friends I talk to on Myspace I can't seem to get to her site because every time I try it crashes my computer for some reason, and she has facebook also and she needs to know my url so she can add me to her friends list on facebook.


Both links bring you to the same place. Quote from: kpac on April 24, 2009, 03:19:30 PM
Both links bring you to the same place.

Nope, second one shows you and your friends, first one is a search of you. And it only shows you. Quote from: Google on April 24, 2009, 09:17:59 PM
Nope, second one shows you and your friends, first one is a search of you. And it only shows you.

Logged-in? Same for me...Yea, you're right I was logged in.
1020.

Solve : Cab I have a Talking Avatar on my web site??

Answer» Avatar
Quote
NOUN
1.    a manifestation of a deity or released soul in bodily form on earth...
2.     an incarnation, embodiment, or manifestation of a person or idea:
           "he CHOSE John Stuart Mill as the avatar of the liberal view"
3.     an icon or figure REPRESENTING a particular person in computer games,...

For some time now there have been web sites with talking cartoon characters. These are some kind of CAD cartoons. They might be called "Talking Avatars."

The Google link offers some examples.
https://www.google.com/search?q=talking+avatar+flash&sa=X&tbm=isch&tbo=u&source=univ&ved=0ahUKEwjn0M7Aor_XAhUW5mMKHchYDGkQsAQIQA&biw=853&bih=391

To buy one of this program is, I assume, very pricey. I see there are a few FREE things out there. So, here is my QUESTION.
 Has anybody had any experience with using a free talking cartoon on your own web site recently? What did you use?


1021.

Solve : load text from a form into an image??

Answer»

Ok so i have a website and i have a form box. I can use php. Well I want users to be able to input text into the form and then it CREATES an IMAGE with the text on it and places it in the right place over the image. And i needs to open in a popup window. It doesn't matter whether is in html or php or both. I will obviously need to change the background color and such. Code would be greatly appreciated or EVEN snippets to help me along would be great. I was currently reading a tutorial on how to do something similar but i FOUND out that the things in that tutorial are a LITTLE out dated.I have exactly what you are looking for. Create an Image Using PHPThank you very much!!!!!



 

1022.

Solve : embed css help?

Answer»

No. and are not HTML tags. CSS can only style HTML elements.

Here's what you can do.
Code: [Select]<html>
<head>
  <style type="text/css">
    p#paragraph1 {
      font-size:14px;
      font-family:TIMES NEW roman;
    }
    p#paragraph2 {
      font-size:20px;
      font-family:times new roman;
    }
  </style>
</head>

<body>
  <p id="paragraph1">Some text</p>
  <p id="paragraph2">Some more text</p>
</body>
</html>

In the CSS, p#paragraph1 sets the style for the

HTML element with an id of "paragraph1". You can do this for all HTML elements.what I ment was  the P1   and  P2   tags in the  style code in the  Head Tags   gave  name to  my two  diferant  paragraphs.

And as long as I use the  P1   and  P2   it will know what one get the diferant  font  size and so on  because it is told in the Head Tags??Anybody order a Noose? Quote

And as long as I use the  P1   and  P2   it will know what one get the diferant  font  size and so on  because it is told in the Head Tags??
NO.

Quote
<p1> and <p2> are not HTML tags.
I am talking about  css   not htmle
So.....what does CSS do? Styles HTML elements. If the HTML element does not exist, how can CSS style it?

http://www.w3schools.com/css/ - READ IT from start to finish.I can't read the web pages on the site you just gave me   and I sould have told you this before.
They come up  and  are  moviing very Gerky  and it does not WORK  well.
Do you have onother web site for this  css  but one that is very very  step by step  of the way?http://www.cssbasics.com/are this chapters on the side???

I clicked on the video but you have to payhttp://www.cssbasics.com/introduction-to-css/ - On the RIGHT. When you're finished, go to chapter 2.thanks I see them

1023.

Solve : Javascript - Multiple Users with Multiple Redirects?

Answer»

First, let me say that I know javascript for logins isn't secure, but it's just so people can go to their own PHOTO gallery, it's not like I am storing any sensitive information.
Second, thank you in advance to those who respond, this is driving me nuts :-)

Here is the dilemma, I would like a javascript code that allows multiple users to login.  This would be fine:

function Login(form) {
username = NEW Array("u1","u2","u3","U4","u5","u6","u7","u8","u9","u10");
password = new Array("p1","p2","p3","p4","p5","p6","p7","p8","p9","p10");
page =  new Array ("www.watcomechanical.net/applebees610.html"
if (form.username.value == username[0] && form.password.value == password[0] || form.username.value == username[1] && form.password.value == password[1] || form.username.value == username[2] && form.password.value == password[2] || form.username.value == username[3] && form.password.value == password[3] || form.username.value == username[4] && form.password.value == password[4] || form.username.value == username[5] && form.password.value == password[5] || form.username.value == username[6] && form.password.value == password[6] || form.username.value == username[7] && form.password.value == password[7] || form.username.value == username[8] && form.password.value == password[8] || form.username.value == username[9] && form.password.value == password[9]) {
self.location.href = page;
}
else {
alert("EITHER the username or password you entered is incorrect.\nPlease try again.");
form.username.focus();
}
return true;
}


but the problem is that all users who login go to the same page. I need something like:

user1->gallery1.html
user2->gallery2.html
user3->gallery3.html

is this even possible? I'm still new to coding, I know very little about php and mysql, i would like to get this system implemented until i learn.

Thank you!

1024.

Solve : :( F1 F1 F1-> PHP & Dreamweaver?

Answer»

You MEAN the links on the RIGHT side?

This is the one you WANT.yes, exactly. I have to download all of them ? No, just click on my link above.   oK, I'm really sorry that I coudn't understand  .
Let me DESCRIBE for you step by step what I have done.

After I clicked on 'This is the one you want.' , I downloaded and then extracked it. After that  ?Sorry, I didn't notice this one.

Okay, I probably told you to download the wrong thing, especially when you're just STARTING off with all this stuff.

Download and install XAMPP. This will include everything you need to get going. When you have it installed, get back to me and I'll get your site going.  oh, your reply made me happy. Thank you. I installed it before.

1025.

Solve : banner based on fprotate?

Answer»

I am trying to set up a banner with 6 rotating images in it and I have the following CODE entered into my doc:


 
 
 
 
 
 
 
 


However, the photos do not show up on the webpage http://riverbend-lwva.org/images/photos/index.htm
What am I missing?I'd strongly advise against using a Java applet for this and instead find a Javascript based solution.  Java applets are a significant security vulnerability and most (all?) modern BROWSERS will require the user to explicitly allow Java to run on a given web page.  Many PCs and pretty much all mobile devices will not have Java available to run applets anyway.  While they were somewhat POPULAR many years ago, nowadays it is extremely rare to see Java applets on public facing websites.Is this thing on You Tube like what you are doing?
https://www.youtube.com/watch?v=PN0ZorJpBYc
It is a simple SLIDE show with HTNL and javascript.

1026.

Solve : Advertising A web Site?

Answer»

How do you make it so after you've made a site it pops up when ever you type in a search. Like say I have a site for shoes how do I make it so when somone googles shoes my site shows up.This should enlighten you: Search engine optimization3 tips for you.

1. Make sure the title of your website as keywords that people would be searching for the DESCRIBE your site. Don't make the title bar read 'My Shoe Site' or 'Shoes Deluxe.' Figure out what people would be searching for and take advantage of those keywords.


2. On the landing page, write a good paragraph describng the site, your goal, whatever to catch more keywords. Google pays close attention to the first 500 words of the page, so make that the good stuff. Don't spam it. make it something good.


3. Linkbacks. PROMOTE your site on other sites and FORUMS. DON'T SPAM. Instead, go to fasion sites, or whatever and participate in the community. Make yourself STAND out, and say, "Hey, I own this site about shoes, and would like your feedback on it yadda-yadda." Don't come across as a spammer, make yourself useful!  Excellent information, Griff.

1027.

Solve : Opening two sites with one click (within a div tag)?

Answer» This is how you do it without the div tag:

Code: [SELECT]<a href="http://www.example.org" onclick="window.open('http://www.google.com','newwin');">click me</a>


but this is how I'm trying to do it with a div tag so that my page containing a randomizer refreshes:

Code: [Select]<div align="center">
<SCRIPT language="JavaScript">
<!--
images = new Array(2);

images[0] = "<a href='http://www.HOMEPAGE.com/' onclick='window.open('http://www.RANDOMPAGE1.com','newwin');'>click here to view<br>A RANDOM PAGE</a>"; 

images[1] = "<a href = 'http://www.HOMEPAGE.com/' onclick='window.open('http://www.RANDOMPAGE2.com','newwin');'>click here to view<br>A RANDOM PAGE</a>";


index = Math.floor(Math.random() * images.length);
document.write(images[index]);
// -->
</script></div>


Obviously, the only difference is the single-quote VS. the double-quote, but the array won't work if I add the double-quotation marks. ANY help would be Amazing!!! Thanks!OK, so I've done some more research, and it might have something to do with adding reverse BACKSLASHES??? \\\\\

Am I on the right track? And isn't a reverse backslash just a slash?  :-/ Quote
images[0] = "<a href='http://www.HOMEPAGE.com/' onclick='window.open('http://www.RANDOMPAGE1.com','newwin');'>click here to view
A RANDOM PAGE[/url]"; 

images[1] = "<a href = 'http://www.HOMEPAGE.com/' onclick='window.open('http://www.RANDOMPAGE2.com','newwin');'>click here to view
A RANDOM PAGE[/url]";
Yes, adding a backslash is called an ESCAPE character.

Code: [Select]images[0] = "<a href=\"http://www.HOMEPAGE.com/\" onclick=\"window.open('http://www.RANDOMPAGE1.com','newwin');\">click here to view<br>A RANDOM PAGE</a>"; 

images[1] = "<a href=\"http://www.HOMEPAGE.com/\" onclick=\"window.open('http://www.RANDOMPAGE2.com','newwin');\">click here to view<br>A RANDOM PAGE</a>";
Thank you!No problem.
1028.

Solve : [Flash] Make animation stop after 1 play.?

Answer»

I have Flash CS4...

How do I stop the animation (in a web banner) from running again after one play?

--LiamIt's NOTHING to do with the website. It has to do with the Flash Animation.

When exporting the animation to a SWF, you should be able to set it to stop after completion. Otherwise, you can CREATE a button that, when clicked, will loop back to the beginning.
I'm SURE you can find TUTORIALS online.add a "stop()" statement to the actionscript of  the last FRAME of your animation.Carbon: I knew that, I just wanted to explain what I was doing, just in case =D

BC: How do I get to the ActionScript? (Just got my student's-copy of Adobe Master today)

Liam

EDIT: How do I have it repeat the last 1-5 frames? (in case the last part is an animation I want looped)

EDIT 2: Figured it out, hit F9.

1029.

Solve : this frameset wont work help please?

Answer»

hi IVE GOT this FRAME set that wont wok can i have some HELP please


   
      the brotherhood forum
   
   
      
         http://theidiots.forumlivre.com" />
         
      
   
You don't use the tag when using .

1030.

Solve : Customer Site. Terrible Layout Aid needed?

Answer»

Okay so in case that I have to do the main site for this bussiness and working on a side site still.  I wondered if there wasnt any know code that would give me like a flip calander.  I would look but dont have the time and ATTEMPTING Finals work and such at the time till the second week of May.  Thanks.  Haveing a feeling that its going to have to be in javascript but it dont matter.As I MENTIONED here, I am finding it very hard to read your POSTS recently....   I am looking for a flip calander to put on a site that I may have to do.  The person whom done it, had did very poorly.  I cant look at the moment since I have college work.  I except that it will be some sort of javascript code though.  Kay??? ? Quote from: squall_01 on May 03, 2009, 06:56:29 AM

I cant look at the moment

Isn't "looking" here the same as "looking" on Google? I'll leave that in your very capable hands, Kpac. Not really since I cant do it at the moment ether and compared to asking people who know code and know that it would work against code that may not work.  I say the odds are better. Quote from: Carbon Dudeoxide on May 03, 2009, 07:12:51 AM
I'll leave that in your very capable hands, Kpac.

Thank you.

Quote from: squall_01 on May 03, 2009, 07:16:17 AM
Not really since I cant do it at the moment ether and compared to asking people who know code and know that it would work against code that may not work.  I say the odds are better.

I'm sure you can spare a minute or two, considering you have been on here for quite a while.
http://www.scripts.com/javascript-scripts/calendar-scripts/
http://www.javascriptkit.com/script/cutindex1a.shtml
http://www.dynamicdrive.com/dynamicindex7/index.html
http://www.java-scripts.net/Javascript-Calendars
http://free-javascripts.com/time/calendar.htmlsorry the thing took a while to load.  You couldnt like find any that would show what the code does.  Whats up with the fact that there is a calculator there?  I need a calander that can be modified by simple clicks. Quote from: squall_01 on May 03, 2009, 07:43:43 AM
Whats up with the fact that there is a calculator there?

Sorry, I copied the wrong link.

DynamicDrive shows you what the code does, as far as I know.ah was afraid that you would have taken that differntly oh well.  okay then I have some time know but dont really feel like attempting to TACKLE this.  At least it will be a good start.
1031.

Solve : assigning value= from current web address?

Answer»

I WANT to SET the STRING value in the FORM so it auto fills in the number from the WEB page.

so string2 = string when I submit the form ..


document.write("#" +string2);


http://gaf210.imvustylez.net/gpc/derivedfrom.js">


Strng" value="+string2" style="width:100px;" />
1032.

Solve : Atom Editor - Found this in a new 2017 book purchase as suggested by author?

Answer»

Picked up a Book with gift card I got for christmas titled... "The Gamer's Guide to Coding" by Gordon McComb Copyright 2017 ISBN: 978-1-4549-2234-6

It goes into bringing it all together HTML, CSS, and Javascript but with modern methods and HTML5. All my books I had on the 3 subjects were out of date. So I figured it would be a neat book to get a touch up on my skills and learn some new stuff as well since my books prior to this one were from 2004 and before in print.

The author suggests installing Google Chrome Browser and Atom Editor so that examples in the book are exact to hands on labs etc.

Sharing here the link to Atom Editor in case anyone WANTS to check it out. I like its layout and features. Still getting use to all of its BELLS and whistles. Figured someone might find this interesting so sharing it.

https://atom.io/

The author also has a public domain support site to check out code examples etc. To learn more about the examples though you would need the book to see reasoning behind the code etc. Lots of good stuff read so far, but cant share that because of copyright. http://www.buenacreek.com/I've seen a lot of complaints regarding the Atom editor which stem from it being a "web app"- mostly poor performance characteristics.

Unrelated to the content of the book you mentioned, no doubt, but the name uses a word that annoys me when used "formally" (like in a book title). "Coding".

I'm not sure *why* it annoys me. I don't even know why I think it's wrong because it's not, but, to me, when you write software, or source code, you are programming. "Coding" is what you do in the hospital if your heart stops.


*ahem* carry on....  

Thanks for the laugh BC on the FACT that "coding" in word usage is more like a flatline and title should have been "?scripting?" I guess since HTML + CSS + JS to me is scripting and not full blown programming.   

The only thing I have seen odd with Atom Editor is its installation path by default is in the user profile in the AppData section. Not sure the reasoning behind its path to C:\Users\Gateway\AppData\Local\atom\atom.exe

There are a some other programs that I have that like to install there in AppData too vs Program Files, and I am guessing its purpose is to then be only accessible to the user that installed it since its not installed to all users.

However I dont like programs installed within profiles because it makes for Profile Bloat ( Profiles that are LARGER than needed since the software could be installed outside of a profile an still function propely. )     Certain software I leave be, others when I can specify an alternate path to avoid installation to a user profile I do so.Obviously text editors are the sort of thing that tends to start wars over what is best.  I've used Atom as my primary GUI editor for a couple of years now after moving from SublimeText - I'm pretty happy with it.  Sure it's relatively memory hungry, especially for an editor however my PC is more than powerful enough to run it.  On a decently powerful machine, performance is fine - I'm not one of those people who seems to take pride in using a 9 year old netbook and shuns all software that it won't run

It's definitely great from an extensibility point of view, and being built on web technologies certainly lowers the barrier for entry when it comes to developing plugins.

1033.

Solve : Sapce Images as Backgrounds?

Answer»

Looking for a remarkable background? NASA has a large collection of sspace images taken with the Hubble telescope. Take a look.
https://www.spacetelescope.org/images/viewall/
You could either use such images for your PC wallpaper or maybe decoraet your web site. Of course, if you put an image on your web site be sure to credit the source.


[attachment DELETED by ADMIN to CONSERVE SPACE]You can also "Create" similar images using programs like Space Engine. In addition to known celestial objects, you can create pictures of "fictional" ones generated through procedural generators. It basically "fills in" what we don't know with generated STUFF. I've definitely posted about it before but it is quite an impressive piece of software. The controls and UI are a bit unusual.

Titan and Saturn

Io and Jupiter

Fictional Blue planet system

I suspect the procedural generation doesn't consider things like the Roche Limit. Doesn't prevent the images from being quite cool, though.

A kind of automated Chesley Bonestell?

1952 space station:



1034.

Solve : FTP Site Empty?

Answer»

I use a server to host my website, accessing it via FTP.

Yesterday, when I connected to it, FireFTP (The small FTP client for FIREFOX) that I used showed that there were zero FILES on the server SIDE.  I went to the website to make sure it still worked and it does, I can also "view the source" of any page on the site, however I can't edit anything because nothing shows up when I connect to it using FTP.

I tried typing the URL in directly (ftp:// ...) and using a different FTP client (Filezilla).
Is there something I'm doing incorrectly, or do I somehow not have access to that anymore?

Any help would be greatly appreciated. Quote from: AIBaon on April 26, 2009, 10:06:22 AM

I tried typing the URL in directly (ftp:// ...) and using a different FTP client (Filezilla).

...and?

Are you using the administrator account? Quote from: kpac on April 26, 2009, 01:12:30 PM
...and?

When I used ftp:// ... in the address bar, it just showed that nothing was there, I tried going to a specific folder within the site --"550 Error, the system cannot find the file specified."
Using Filezilla showed the same thing as FireFTP, I was just SHOWING that I tried simple fixes first before coming here for help.

Quote
Are you using the administrator account?

I'm not sure if I'm using an admin account, but it's not anonymous, and the account I use is the only one there is to access it.Anyone?

I'm not sure if this is related or not, but could it be that the domain has expired?
I'm pretty sure we bought it for 5 years, but I'm not in charge of the expenses, is the a side-effect of an expired domain?Sounds very much like something has been changed at the server end - in which case you'll need to contact your host for support.
1035.

Solve : Logging out of a cPanel Folder Password Protection?

Answer»

When you password protect a folder via the CPANEL of a SITE, it asks you to ENTER a user and pass.
Like in the cpanel, how would I log out of this password protected folder (with php) so it asks me to login again?I've done some research on google, but still no luck.I don't think you can - TWO different handles, Apache and PHP, and they use different methods of sessions etc.

Anything here: Link

1036.

Solve : image not showing?

Answer»

I created a web site for a detailing SHOP. When I made the site everything displayed normally in the file I created it in. I posted this site on this free hosting web site and now the logo at the top of the screen is a square with a red dot in it. I know what a BROKEN LINK is but whats the red dot mean and how do I fix it.Also sometimes it just shows where the logo is suppose to be it shows a little box with a broken page why WOULD that be displaying.You'll need to edit the source code of that page and check all paths to the images and files/directories etc.Sounds like you've just UPLOADED the (HTML) page, but not the images used on that page.

1037.

Solve : Inserting the contents of a txt file onto a html file?

Answer»

Hi how would i make it so the contents of a file called Noticebar.txt and inside the file is this peice of html


     hi


How would i INSERT that on my html index PAGE WITHOUT copy and paste. (so it can be updated without looking threw the index file)Add this to your page exactly where you want it to appear:

Code: [Select]<?php INCLUDE(dirname(__FILE__) . "/file.txt"); ?>

1038.

Solve : >>mysql dump

Answer»

>>i know how to DUMP or back up the ENTIRE records of a certain DATABASE in mysql,, but my problem is how to dump a single table, any one can help me? thnxxxplease read the docs of mysqldump
Code: [Select]mysqldump --opt -u root -p databasename tablename > dumpfile
mysql - u root -p cssonline.registration > x:\kolokoyz.sqlIf you want an easy way to BACKUP MySQL databases on a live/production system on some kind of schedule, try mysqlblasy.

1039.

Solve : need to add wildcard certificate to my website from letsencrypt?

Answer» PLEASE help me how to add wildcard certificate to my website.

my website has city based sub domain and i need to add wildcard certificate from letsencrypt. my website has nearly 800 city based sub domain LIKE thanjavur.xookr.in chennai.xookr.in like wise....

i need all the city sub domain to has https://.....

please help me to START with this implementation... a step by step help will be REALLY helpful
1040.

Solve : Rollover Image on Random Browser Refresh?

Answer»

I need to include a rollover image with each link and was wondering where/what I would insert into the coding to do this. Below is the CURRENT coding I'm using. The rollover file name is
Header_0_Rollover.jpg

Any help would be greatly appreciated. If anyone also knows how to SET this same coding so the images display in a particular order, rather than randomly, that would be a big help as well.

Quote

images[0] = "<a href = 'http://www.example.com'target=_blank&GT;<img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'>[/url]";

images[0] = "<a href = 'http://www.example.com'target=_blank><img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'>[/url]";

should be;

Code: [Select]images[2] = "<a href = 'http://www.example.com'target=_blank><img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'>[/url]";

images[0] = "<a href = 'http://www.example.com'target=_blank><img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'>[/url]";
Then replace
Code: [Select]http://www.example.com/Headers/Header_0.jpgwith the URLS of the images.No, it should be:

Code: [Select]images[0] = "<a href = 'http://www.example.com'target=_blank><img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'></a>";
images[1] = "<a href = 'http://www.example.com'target=_blank><img src='http://www.example.com/Headers/Header_0.jpg' alt='XXX'></a>";
1041.

Solve : How do I get a SSL for my web site.?

Answer»

One of my web sites no longer has an SSL and somebody has messed with it.

So I had to moe to a snohter dirfectory on tghe server.
Bu I still think I might need a SSL. I am not sure what happended.

So, how do I getr a SSL for one site?
Letsencrypt.org Quote from: BC_Programmer on January 07, 2018, 01:21:56 AM

Letsencrypt.org

they dont have a CLEAR steps on IMPLEMENTING the ssl....

i too want to implement but have several doubt to start with this.........

i stopped in order not to mess my website....please share any STEP by step PROCEDURE if you knowThank you.
Recently I got another web host and put a new domain on it. A few days later I got a message that my SSL had been updated.
So then it seems that the Web Host Service TAKES care of that automatically. I guess.
Surprisingly, the new Web Host was not very expensive, if fact, it cost less than  some others. So I don't really understand. But anyway, now I have SSL.
1042.

Solve : help with CSS Calendar?

Answer»

I'm working on a HTML/CSS web site for a project. I have to make a calendar using html and style sheets. I have been through my code around 10 times. I have all my files within the same folder. Any help with be night

 Here is one of the css files
Filename:         ccc.css
   Supporting Files: bottom.jpg, bottomleft.jpg, bottomright.jpg, left.jpg
                     tab.jpg, top.jpg, topleft.jpg, topright.jpg, right.jpg


/*
BODY      {font-family: Verdana, Geneva, sans-serif}
#heading   {position: absoulte;top: 0px; left:15px; width:920px;
      border-bottom: 1px soild red; }                                 
#leftColumn   {position: absolute; top: 170px; left:15px; width:280px}
#rightColumn   {position: absolute; top: 170px; left:320px; width:600px}


#heading ul      {list-style-type: none; padding: 0px; margin: 0px;
         height: 20px}
#heading ul li       {float: left; margin: 0px 3px; width:100px; height: 20px;
         text-align: center; background: url(tab.jpg) no-repeat top left}
#heading ul li a   {display: block; width: 100px; font-size: 10px;
         text-decoration: none; color: BLACK}
#heading ul li a:hover   {color: red}

#leftColumn h2      {font-size: 24px; color: red; margin: 0px 0px 10px 0px}
#leftColumn p      {font-size: 10px; padding: 0px; margin: 0px 0px 10px 0px}
#leftColumn p i      {color: red; font-size:normal}

#tlCorner      {background: url(topleft.jpg) no-repeat top left}
#trCorner      {background: url(topright.jpg) no-repeat top right}
#blCorner      {background: url(bottomleft.jpg)no-repeat bottom left}
#brCorner      {background: url(bottomright.jpg)no-repeat bottom right}

#tBorder      {background: url(top.jpg) repeat-x 39px top}
#lBorder      {background: url(left.jpg) repeat-y left}
#rBorder      {background: url(right.jpg) repeat-y right}
#bBorder      {background: url(bottom.jpg) repeat-x bottom}

#boxContent      {padding: 50px}

Here is my other css file

 Filename:         calendar.css
   Supporting Files:

*/
table.calendar      {border-collapse: separate; border-spacing: 5px; front-size: 8px}
table.calendar caption   {caption-side: top; text-align: left; font-size: 16px; letter-spacing: 3px}

table.calendar col      {width:   14%}
table.calendar col.weekends   {background-color: rgb(255, 232, 232}

table.calendar thead TH {color:white; background-color: red; letter-spacing: 5px}
table.calendar thead tr   {height: 5%}
table.calendar thead tr   {height: 19%}

table.calendar thead td      {border: 1px soild gray; vertical-align: top}
table.calendar thead td h3      {font-size: 8px; margin: 0px; padding: 0px}
table.calendar thead td dl   {margin: 0px; padding: 0px}
table.calendar thead td dd   {margin: 0px; padding: 0px}
table.calendar thead td dt   {margin: 0px; padding: 0px}

Here is my calendar code 

   The USA sports Center"
   
   






 
     

   










 
     

Coming in February


         

   February will be another banner month at the USA Events
      Center with a two day performance of the Tony Award winning
      musical, West Side Story by the Broadway Touring Company.
      TICKETS are going fast, so order yours today.



     

Celebrate Valentine's Day with the USA Symphony and
      their special selection of classical music for lovers. The next
      day, exercise your mind by attending the Charles Dickens classic,
      The Mystery of Edwin Drood.



     

Jazz lovers have a lot to celebrate in February with a visit
      from the Jazz Masters on February 10th, and then on February
      21st, enjoy the music of The Duke with an Ellington Tribute
      performed by the Jazz Company of Kansas City.



     

Pins, bottles, plates, and chairs are flying at the USA
      Civic Center in February. The Taiwan Acrobats return with
      another amazing performance. Then, on February 25th, the
Madtown
      Jugglers
get into the act with their unique blend of comedy,
      juggling, and madness.



     

Enjoy a classical BRUNCH every Sunday in February with music
      provided by the Carson Quartet. Seating is limited, so please order
      your table in advance.


   





   
   

   
   

   
SunMonTueWedThuFriSat
26 27 28 29 30 31
                   1
                  
                Taiwan Acrobats
                8 pm
                $16/$24/$36
               
               
2

               
                   Carson Quartet
                   1 pm
                   $8
                  
                  
3
            
4
            

             5


               
                Joey Gallway
                8 pm
                $16/$24/$36
               
               
6
             7
            
             West Side Story
             7 pm
             $24/$36/$64
            
            

              8
             
             West Side Story
             7 pm
             $24/$36/$64
            
            

             9
            
             Carson Quartet
             1 pm
             $8
            
            

             10
            
             Jazz Masters
             8 pm
             $18/$24/$32
            
            
11 12
                13
            
             Harlem Choir
             8 pm
             $18/$24/$32
            
            

                14
            
             USA Symphony
             8 pm
             $18/$24/$32
            
            

                15
            
             Edwin Drood
             8 pm
             $24/$36/$44
            
            

                16
            
             Carson Quartet
             1 pm
             $8
            
            
17 18
             17
            
             The Yearling
             7 pm
             $8/$14/$18
            
            
20
             21
            
             An Ellington Tribute
             8 pm
             $24/$32/$48
            
            

             22
            
             Othello
             8 pm
             $18/$28/$42
            
            

                  23
               
                Carson Quartet
                1 pm
                $8
            
            
24
             25
             Madtown Jugglers
             8 pm
             $12/$16/$20
            
            
26 27
              28
            
             Ralph Williams
             8 pm
             $32/$48/$64
            
            
1

            
            
            






   







Wow... I would rather use PHP and little CSS to calculate the table, tr's, td's, and dates.
1043.

Solve : Need some help with css to fix logo issue on WP site?

Answer»

Hey guys!

I INSERTED an IMAGE as logo in the header section in WP website, but the logo looks LIKE not PLACED the right corner that needed to be,
even I minimized the size then inserted again, but still not DISPLAYED corrected,
I think this issue can be fixed with css code, for resize and locate the object in the specific place,
Kindly some help with this code, highly appreciated with many thanks!

1044.

Solve : Setting up a database...?

Answer»

I'm not even completely sure I know what I'm doing or if this fits into this thread...

I just want to know how hard it is to start a database somewhere on the web, for connectivity with homemade games and stuff. What exactly would I need? Can I just upload a Access DB and have it modified through the program, or would that reveal a vulnerability in the security... I'm pretty new to all the database stuff but I'd like to experiment. If anyone has a great link I'd be thankful.Well, MySQL is the database of the web. Is this for your site you want it? If it is, then you'll probably use MySQL.Well I really just wanted to try out some developing with databases and such. Since my OP I have decided on a new project. I'm starting this website to index local bands, artists, venues, etc. Rather than CREATING hundreds of webpages, I think A DB would be the way to go for this. Anyone provide details about how USEFUL this is, or any other alternatives? I kinda just want something fast, yet easy to learn.

Temporary URL = http://valleymusicspace.webs.com

(I'm planning to PURCHASE a domain when it's finished.)"Easy to learn" is relative.  Very little to do with databases is "easy" in the strict sense of the word.  Well, MS Access is relatively easy, but the trade-off for that is insecurity, lack of resilience, latency sensitively, resource intensiveness and so on.  Don't use MS Access for internet-based projects.

As well as MySQL, web sites are driven by MS SQL, Postgresql, Oracle and a few others.  MySQL is often the database of choice and is not a bad place to start if you are working on a first project.

Using a Content Management System will insulate you from a lot of the hard work involved in database/web design.  All CMSes have a learning curve, but for you, this is probably the easiest ROUTE overall.  Based on the limited information you've supplied, I would suggest using >Drupal<, but this is by no MEANS your only option.Thank you for you reply. I appreciate the advice and I'll give it a try this weekend.Thanks, kpac and Rob!

Makes me think I need to poke around with it, just to see what PHP is like.

1045.

Solve : Can u apply template to existing pages in F.Page2K?

Answer»

This may sound like a stupid QUESTION, but I have a website that I inherited that looks like *censored* and I want to CREATE a TEMPLATE page and apply it to the existing pages.  Reason why....over 100 existing pages.

If this cannot be done will take any advice on how to proceed...I really do not want to have to cut and paste all of this.

Thanks,

Chuck

1046.

Solve : Z-index/ordering elements Assistance?

Answer» HEY all,
I think I have a pretty simple problem, but I just can't seem to work around it. I'm trying to get text and an image to display ontop of a background image. I'm not repeating this background because of the design on the image, so I have it set off to the upper lefthand corner of the window, and set the BODY background to black so the image "bleeds" off.

My ISSUE is that no matter what I do, that background image is always "on top" of my content. May it be another image or text. I looked into using the z-index property through css but that still doesn't work. I'm sure there's some detail I'm missing, but I lack the know-how to FIND it. I appreciate any assistance I receive.

Here is my html code:




text




Here is my external stylesheet (It does infact link to the html file so thats not the issue):

.Logo
    {
    text-align:center;
    margin-top:50px;
    margin-bottom:0px;
    padding:0px;
    z-index: 2;
 }

#background_image {
   POSITION:absolute;
   left:0px;
   top:0px;
   z-index: 1;
}

.Text1 {color: #ffffff}


Make the bg's z-index 2 and the others z-index 1.
1047.

Solve : MySQL Create Table Error?

Answer»

CREATE TABLE users (
user_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
first_name VARCHAR(20) NOT NULL,
last_name VARCHAR(40) NOT NULL,
email VARCHAR(80) NOT NULL,
pass CHAR(40) NOT NULL,
user_level TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
active CHAR(32),
registration_date DATETIME NOT NULL,
PRIMARY KEY (user_id),
UNIQUE KEY (email),
INDEX login (email, pass)
);




ERROR -

CREATE TABLE users(

user_id INT UNSIGNED NOT NULL AUTO_INCREMENT ,
first_name VARCHAR( 20 ) NOT NULL ,
last_name VARCHAR( 40 ) NOT NULL ,
email VARCHAR( 80 ) NOT NULL ,
passCHAR( 40 ) NOT NULL ,
user_level TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 0,
activeCHAR( 32 ) ,
registration_date DATETIME NOT NULL ,
PRIMARY KEY ( user_id ) ,
UNIQUE KEY ( email ) ,
INDEX login( email, pass )
)

MySQL said: 

#1046 - No database selected
Hi
Actually I am not expert in DB, but as I know a little bit about MYSQL, first of all you have to create a database and then start to create a table.Are you using PHP to create these tables, or are you using PHPMyAdmin, ETC.?

http://www.w3schools.com/php/php_mysql_create.aspare you using MySQL database??

after you input the password:
TYPE -> show databases;
and then all the databases will APPEAR, and then you NEED to select one which is your database
type -> use mydatabase;

and then,, that's it,,,, input the query in creating your table.....



Please don't post links to your site
Ok, I fixed it.

Thanks guys!

 
 
 
 
 

1048.

Solve : Why would someone "edit with notepad?"?

Answer»

I notice that when I go to websites and then, while using Internet Explorer, I can click file and there's an option to EDIT with notepad.  I click it and then a whole bunch of code appears.  Again I'm just curious but why would SOMEONE be using this.  It's seem to me that it's a great way to spread ideas for website designs because it SEEMS to me it's so easy to see how other web pages are setup?  Quote

I click it and then a whole bunch of code appears.
That's the HTML behind the web page.

Quote
Again I'm just curious but why would someone be using this.
All web browsers ALLOW you to view the code that makes up a web page.

Quote
It's seem to me that it's a great way to spread ideas for website designs because it seems to me it's so easy to see how other web pages are setup? 
It is and many people take ideas from other websites.Welcome to the internet, Doug.Why can't I use "edit with notepad" to see what this page looks like?  Does it have something to do with Java?  I say that because I notice it says that in the tab before the title appears.  But still, why can't I see the code?

http://stagevu.com/video/vhzzpyioffoh.
What version of Internet Explorer are you using?  If you want to view the code, click on View, Source.I didn't know you could do that!
1049.

Solve : Blogs?

Answer»

I would recommend learning PHP as it would probably bring big improvements to your site and HELP you learn more about web DESIGN. What web sever is your website running on CURRENTLY? I think the hardest bit is probably SETTING up PHP and the database itself.Right now, I am using a family member's SERVER, which I understand might be one of his computers... I'll have to ask...

[glb]Flame[/glb]

1050.

Solve : php pass variables to another php?

Answer»

Well basically here is what I have so far. I have a form where a user inputs things. Then It sends it to a php script which does some work with it. What I want it to do is have a user send enter the stuff in the form, it then gets submited to my script, and my script passes the variables onto another WEBSITE.

Now I already have the variables sent via post to my script. I need them to be sent on to the other website using post too. I have no control over the other website. I just know what variables i have to send. And i do not want the user to have to enter his info all over again just so it gets sent to the other site.

So how can i pass along post variables?

edit:
I may not have written this good so let me know and i will rewrite it.You have no control over the other website? Something "phishy" GOING on here...Actually its not. Its a guys website at my school. He just wants an extra layer of security to where u have to go through my site to get to his. Kinda weird i know but he already has it setup on his side and is reluctant to change it. So I already have everything setup accept this. cookies and all that.

Just telling me how would be appreciated. I promise there is NOTHING fishy at all going on. THe guy will change his site if he absolutely has to but he really doesnt want to so thats why i said i had no control over it.someone has to know...

Please help me if you doI do stuff like this a lot.  Especially where I'm trying to provide SIMILAR inputs to multiple websites simultaneously.  It's a valuable labour-saving device.  Use the PHP cURL library.  Note the cURL can even handle cookies: Code: [Select]curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/cookie.txt');