It is currently Sat May 25, 2013 9:54 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue May 15, 2012 1:52 pm 
 Post subject: HTML/coding help
Offline
User avatar

Joined: Wed Aug 05, 2009 7:45 pm
Posts: 886
Location: Texas
Can somebody help me figure out why this isn't working?

http://julia.t15.org/Madlib1.html

I am trying to make a madlibs javascript thing. I have no idea what is wrong. Keep in mind I'm pretty much a noob at any web coding besides HTML, which I'm good at. So I don't know about PHP and stuff. I used a tutorial to make this.

_________________
Image
Image Image
Mami chibi drawn by Jiino, animated by me. | Sophie sig by Misuzu | My Anime-Planet page
RockRabbit wrote:
but you know, not every image has a source and not every character has a name :3


Top
 Profile  
 
PostPosted: Tue May 15, 2012 4:30 pm 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Sat Mar 17, 2007 9:44 am
Posts: 2791
Location: NoWheRe
From what I have seen, you are not developing in HTML or even in Javascript; you are developing in Java.

First what do this all fit? I will try to make it simple as much as I can ^^;

HTML is a language to format and organize information. ( CSS is what gives the aspect ). Javascript is a language ( generally) to make webpage dynamic ( principally, you click on a button and it doesn't need to reload the page to interact ).

Java is a language to develop software or game, like Minecraft. It can do everything. Right now, you are running a Java applet, that is Java inside your web browser. Consequently, we can't check your code in the .java file. ( .class are not human readable, they are compiled to bytecode ).

Now I'm not sure about what is wrong with your applet? What is the problem? Because I don't see any. I just think that using Java for this is overkill.

_________________
Image
Merun @ Twitter - Doujin Shimbun


Top
 Profile  
 
PostPosted: Tue May 15, 2012 8:23 pm 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Sun May 14, 2006 3:00 pm
Posts: 693
What exactly is not working Julia? I tried it out and the output seems fine.

_________________
Like a Skirt


Top
 Profile  
 
PostPosted: Wed May 16, 2012 4:48 pm 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Wed Aug 05, 2009 7:45 pm
Posts: 886
Location: Texas
I am also not seeing any applet... I wonder if it doesn't show up for certain browsers...

Reason I'm using Java is because that's what the tutorials I read said to do.

_________________
Image
Image Image
Mami chibi drawn by Jiino, animated by me. | Sophie sig by Misuzu | My Anime-Planet page
RockRabbit wrote:
but you know, not every image has a source and not every character has a name :3


Top
 Profile  
 
PostPosted: Wed May 16, 2012 6:31 pm 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Sat Mar 17, 2007 9:44 am
Posts: 2791
Location: NoWheRe
So, the problem is more your browser/OS. Do you have Java installed? ( weird since it should be as you did compile the .java ) Are applet allowed in your web browser? Most common browser should display the applet if Java is installed.

http://java.com/en/download/index.jsp

_________________
Image
Merun @ Twitter - Doujin Shimbun


Top
 Profile  
 
PostPosted: Thu May 17, 2012 12:19 pm 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Wed Aug 05, 2009 7:45 pm
Posts: 886
Location: Texas
I installed that and restarted Chrome but it still doesn't show up. However, it works fine in Firefox, but the input fields are in the wrong order.

I wonder if there is a way to change the applet's appearance, font, etc.

_________________
Image
Image Image
Mami chibi drawn by Jiino, animated by me. | Sophie sig by Misuzu | My Anime-Planet page
RockRabbit wrote:
but you know, not every image has a source and not every character has a name :3


Top
 Profile  
 
PostPosted: Fri May 18, 2012 10:46 am 
 Post subject: Re: HTML/coding help
Offline
User avatar

Joined: Sat Mar 17, 2007 9:44 am
Posts: 2791
Location: NoWheRe
My Chrome is asking permission to run the Applet. You should check if Java is enabled in the option or not.

For, fonts, you can change, but since I haven't done Java Applet for ages, I'm not sure about what Java classes you are using. Giving us the .java would make it simpler to help you. For now, I will based my example on assumption.


If it's a JTextField, then, there is the setFont(Font t) method.

http://docs.oracle.com/javase/6/docs/ap ... Field.html

You must have something like
Code:
//Required import

public class MyClass extends JApplet{
JTextField textField;

public void init(){
textfield=New JTextField();
textfield.setFont(new Font("Times New Roman", Font.PLAIN, 12));
//your code
}
}


Something like this. Just to warn, I didn't test xD.


For the appearance in general.. hmm… you can do a lot of stuff but I don't know what you want.

_________________
Image
Merun @ Twitter - Doujin Shimbun


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
SubLite Theme By Echo -=Designs By Echo=- © 2007-2008 Echo
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group