Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
84% Quality Score
Upvotes Received
12
Posts with Upvotes
10
Upvoting Members
8
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
~56.1K People Reached
About Me

Hello anyone.i study in SAS school with Diploma in Computer Science and Management Mathematics course.Nice to meet you all and i would like to help each others when having troubles. (:

Interests
Basketball, Computer, Movies, Drama, and so on as well.but now i getting like to programming, it's so…
Favorite Tags
Member Avatar for gahhon

I am using Netbean IDE 8.1 to build the website. I build a very simple website with simple Javascript function, window.alert(). Upon my testing, I put the button triggered function in the javascript but the function is not triggering. If I put the function under the HTML, it does triggered …

Member Avatar for gentlemedia
1
2K
Member Avatar for gahhon

Hi, I'm using NetBeans with Java. I have create a JFrame with some checkboxes and a button to open browser go to the specific URL based on the checkboxes' values. But how do I auto-login/auto fill the username and password textbox then trigger the login button? Please kindly advise. Thanks.

Member Avatar for rproffitt
0
460
Member Avatar for gahhon

Like the title asked, what should i do to change the cursor into custom image when the form is loaded, i've tried so many style by google searching, but still can' work. :/

Member Avatar for Asanka_1
0
2K
Member Avatar for gahhon

Hi guys, I am new to Mobile Development. I do have some Assignment question want to clarify. **Task 3 Create an app. that will make use of 3 icons (from the Icon pack provided). Your app must display all 3 icons below some relevant text. - You must take a …

Member Avatar for annya
0
357
Member Avatar for gahhon

I am not sure what DOM is. But based on my understanding through my lecture slides and online source. By applying DOM approach, which allowing you to create/update/modify the certain HTML elements dymanically. Am I correct?

Member Avatar for ife_1
0
224
Member Avatar for gahhon

<customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>jack@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C2</ID> <FirstName>Ashley</FirstName> <SurName>Rachael</SurName> <Email>ashley@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C3</ID> <FirstName>Vongola</FirstName> <SurName>Steve</SurName> <Email>vongola@hotmail.com</Email> <Password>081292</Password> </customer> </customers> I have a existing xml showing like that. I did some research through net, but they all were talking about one element. For example `<Email>xxx@hotmail.com</Email>` But what …

Member Avatar for cereal
0
405
Member Avatar for gahhon

customer.xml <?xml version="1.0"?> <customers> <customer> <ID>C1</ID> <FirstName>Kah Hon</FirstName> <SurName>Wong</SurName> <Email>gahhon@hotmail.com</Email> <Password>081292</Password> </customer> </customers> login.js var xHRObject = false; if (window.XMLHttpRequest) xHRObject = new XMLHttpRequest(); else if (window.ActiveXObject) xHRObject = new ActiveXObject("Microsoft.XMLHTTP"); function reset() { document.getElementsByName('txtEmail').value = ""; document.getElementsByName('txtPassword').value = ""; } function login() { var email = document.getElementsByName('txtEmail').value; var pass …

Member Avatar for gahhon
0
445
Member Avatar for gahhon

<div class="w3-content w3-section" style="max-width:500px"> <!-- Photos to shows --> <img class="mySlides w3-animate-fading" src="images/couple/Couple_1.jpg" style="width:100%"> <img class="mySlides w3-animate-fading" src="images/couple/Couple_2.jpg" style="width:100%"> </div> <script> var myIndex = 0; carousel(); function carousel() { var i; var x = document.getElementsByClassName("mySlides"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } myIndex++; if …

Member Avatar for pixelsoul
0
479
Member Avatar for gahhon

function email($reqNo){ //Database Configurations $host = "some.url"; $username = "someuser"; $pass = "xxxxxx"; $db = "mydatabase_db"; //Customer Configurations $cName = null; $cEmail = null; $DBConnect = @mysqli_connect($host, $username, $pass, $db) or die ("<p>Unable to connect to the database server.</p>". "<p>Error code ". mysqli_connect_errno().": ". mysqli_connect_error()). "</p>"; $SQLString = "SELECT name, …

Member Avatar for gahhon
0
375
Member Avatar for gahhon

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN? "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Address Book</title> <script type="text/javascript"> function addressBookItem (fname, lname, email) { this.fname = fname; this.lname = lname; this.email = email; } addressBookItem.prototype.write = function() { adrbook = "<tr><td>" + this.fname + "</td><td>" + this.lname + …

Member Avatar for gahhon
0
577
Member Avatar for gahhon

Let's all be examples. I am redirecting from A.php to B.php with a parameter, let's say it ID=1. Therefore, ..../B.php?ID=1 And I wanna hold the value of the ID. Whenever I press a button on B.php, the value ID=1 gone. Any idea of how can I hold that value ? …

Member Avatar for gahhon
0
273
Member Avatar for gahhon

function display_questions() { $lines = file('questions.txt', FILE_IGNORE_NEW_LINES); $count = count($lines); for ($i = 0; $i < $count; $i++) { $newLines = explode(",", $lines[$i]); $no_question = $i + 1; ECHO ('<b>' .$newLines[0]. '</b><br />'); ECHO ('<input type="radio" name="' .$no_question. '" value="' .$newLines[1]. '/>' .$newLines[1]. '<br />'); ECHO ('<input type="radio" name="' .$no_question. …

Member Avatar for gahhon
0
261
Member Avatar for gahhon

In JS i tried something like this, window.onbeforeunload = function() { window.open('http://www.msn.com','_self'); return 'close?'; } but it doesn't redirect the page, but the return statement is displayed. how can i do to archieve redirect a specify page without any alert?

Member Avatar for sunil_17
0
2K
Member Avatar for gahhon

Hello guys, Currently I am developing a simple task of my University exercise. Is using EJB to develop the webpages to allowed end-users to reset their password based on the records in database. Unfortunately, I have some issue during the development, which is whenver I press the "Submit" button, it …

Member Avatar for rproffitt
0
369
Member Avatar for gahhon

#user hl:hover { color: BlueViolet; text-decoration: underline; } <asp:HyperLink ID="hlUsername" runat="server" NavigateUrl="~/Manager/ProfileView.aspx" CssClass="hl" /> While this hyperlink is hovered, the font is underline but font color not changing. Any problem with my code?

Member Avatar for syeda_satwat
0
512
Member Avatar for gahhon

String contentType = request.getContentType(); if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) { DataInputStream in = new DataInputStream(request.getInputStream()); int formDataLength = request.getContentLength(); byte dataBytes[] = new byte[formDataLength]; int byteRead = 0; int totalBytesRead = 0; while (totalBytesRead < formDataLength) { byteRead = in.read(dataBytes, totalBytesRead, formDataLength); totalBytesRead += byteRead; } String …

Member Avatar for gahhon
0
497
Member Avatar for gahhon

Based on my understanding, both are doing the same way which also kind of override the methods. Abstract method is, both childclasses are having the same methods, but different execution code. Interface is, whenever the class implement the interface class, the class must write the execution of all the methods …

Member Avatar for JamesCherrill
0
223
Member Avatar for gahhon

I have a Task class (superclass) which inherited PracticeTest class(childclass). I'd faced question regarding my pass year question. In fact, we are allowed to declared like this Task aTask = new PracticeTest(); But i wonder why we are doing this way? Thanks for advance explanation.

Member Avatar for JamesCherrill
0
204
Member Avatar for gahhon

1. What is the format for the first line of a method? 2. How can you view javadoc for a class? For the (1.) I am totally understand by depending on the developer design of the method. But how am i going to explain this since the tutor won't ask …

Member Avatar for stultuske
0
241
Member Avatar for gahhon

I have facing few problems with my lab questions. and i am using BlueJ software for my lab work. 1. Are two objects equal if their state is the same? And i answered No, however they are still different objects with the same state. But how can i explain it? …

Member Avatar for gahhon
0
195
Member Avatar for divyakrishnan

Hi.. How to get the difference between two dates using C#.NET web application in form of days? If anybody knows plz help me..Itz very urgent.

Member Avatar for AMBIgainathan
0
3K
Member Avatar for gahhon

i am new to the e2glite due to assignment required. Currently using SWI-PROLOG as my coding software, and now i was copy some example code and also downloaded e2glite.jar from e2glite web, after i follow their instructions, i am able to view the java on browsers but i can't able …

Member Avatar for Nimrah
0
316
Member Avatar for gahhon

public class PrintHelper { public PrintHelper() { } public static void PrintWebControl(Control ctrl, string Header, string Date) { Label lblHeader = new Label(); lblHeader.Text = "MSJ Bank Financial - " + Header + " (" + Date + ")<br/><hr/><br/>"; PrintWebControl(ctrl, lblHeader, string.Empty); } //Print Method public static void PrintWebControl(Control ctrl, …

Member Avatar for gahhon
0
131
Member Avatar for gahhon

![170635e49469dbb4197a0bcddafc866d](/attachments/large/3/170635e49469dbb4197a0bcddafc866d.jpg "170635e49469dbb4197a0bcddafc866d") public static void Print(string ElementID, string SecondElementID) { Page page = HttpContext.Current.CurrentHandler as Page; StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("var divID_1 = document.getElementById('" + ElementID + "');"); sb.Append("var divID_2 = document.getElementById('" + SecondElementID + "');"); sb.Append("divID_1.border = 0;"); sb.Append("divID_2.border = 0;"); sb.Append("var prtwin = …

Member Avatar for gahhon
0
129
Member Avatar for gahhon

protected void Page_Load(object sender, EventArgs e) { if (CookieWrapper.Username != null && CookieWrapper.Role == "Member") { hlUsername.Text = CookieWrapper.Username; showProfilePicture(); } else Response.Redirect("~/ErrorPages/401.aspx"); } In this master page Page_Load event i will check whether the cookies values, if false will redirect to the error page. So another words, my child …

Member Avatar for gahhon
0
1K
Member Avatar for gahhon

![454d3e17a16836952cb76f6c54023cc7](/attachments/large/3/454d3e17a16836952cb76f6c54023cc7.jpg "454d3e17a16836952cb76f6c54023cc7") I am trying to create a form something like this, but inside the box container i will let the end-users to do the survery. How to do this? Thanks for in advanced.

Member Avatar for gahhon
0
140
Member Avatar for gahhon

Any guidelines that able to print customize a page with custom header and data passing? I found a solution, but that is print the repeater/gridview without customize the page.. What i need is print a page with customization. ![36e1d0310329124ba8fce2070ac095ff](/attachments/large/3/36e1d0310329124ba8fce2070ac095ff.jpg "36e1d0310329124ba8fce2070ac095ff") The Red Cross indicates to remove while in print preview. …

Member Avatar for gahhon
0
199
Member Avatar for gahhon

ValidationExpression="^.*(?=.{7,})(?=.[a-zA-Z])(?=.*[\d])(?=.*[\W]).*$" This is the expression for the password, 1. At Least 7 2. Alphanumeric required 3. Special Characters But can i check the textbox must not be empty other than using RequireFieldValidator.. Due to i going to apply Ajax ValidatorCallOutExtender, is hardly to display both validator..

Member Avatar for gahhon
0
93
Member Avatar for grafic.web

Hi there, what the best way to add a layout, simply to manage, to my web site asp.net? Are masterpages the best solution? Can i get some example of simple editable layout? Thanks for you help

Member Avatar for harsh9
0
358
Member Avatar for gahhon

I have a repeater in my webpage which containing Buttons as well.. <asp:Repeater ID="rptView" runat="server" OnItemDataBound="rptView_ItemDataBound"> <HeaderTemplate> <table border="0" width="90%"> <tr class="RepeaterHeader"> <th align="center">Date</th> <th align="center">Category</th> <th align="center">Description</th> <th align="center">Amount</th> <th align="center"></th> </tr> </HeaderTemplate> <ItemTemplate> <tr class="RepeaterData"> <td align="center"><%#Eval("CurrentDate") %></td> <td align="center"><%#Eval("Category") %></td> <td align="center"><%#Eval("Description") %></td> <td align="center"><%#Eval("Amount", "{0:C}")%></td> <td …

Member Avatar for |-|x
0
164