Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
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
~57.9K 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

145 Posted Topics

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
481
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
363
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
230
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
412
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
453
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
484
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
380
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
610
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
290
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
268
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
390
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
516
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
502
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
227
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
208
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
247
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
206
Member Avatar for divyakrishnan

## Doubting ## Can i use `DateTime different = date1 - date2;` instead of using `TimeSpan` data type?

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
325
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
136
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
134
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
146
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
204
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
101
Member Avatar for grafic.web

Like JorgeM said, Master is the easiest to manage page layout instead of manage each of them. You could download the HTML Markup code / view from those free HTML templates sources, then you just simply apply into your master page.

Member Avatar for harsh9
0
395
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
176
Member Avatar for gahhon

<script type="text/javascript"> $(document).ready(function () { var e = document.getElementById("ddlCategory"); var value = e.options[e.selectedIndex].text; if(value == "Others") { $('#Other').show(); } else { $('#Other').hide(); } }); </script> <table> <tr> <td><asp:Label runat="server" Text="Category: " /></td> <td><asp:DropDownList ID="ddlCategory" runat="server" ClientIDMode="Static" /></td> </tr> <tr id="Other" style="display:none"> <td><asp:Label runat="server" Text="Others: " /></td> <td><asp:TextBox ID="txtOthers" runat="server" /></td> …

Member Avatar for gahhon
0
118
Member Avatar for gahhon

Any idea to doing this? i tried many solution through google, it still can't solve my problem I want fixed(*Freezed*) header, and data only shown 5 items.. Thanks for in advanced.

Member Avatar for gahhon
0
115
Member Avatar for gahhon

<system.web> <customErrors mode="On" defaultRedirect="/ErrorPages/404.aspx" redirectMode="ResponseRedirect"> <error statusCode="404" redirect="/ErrorPages/404.aspx"/> <error statusCode="401" redirect="/ErrorPages/401.aspx"/> </customErrors> </system.web> Inside my web.config i have thise configuration, but will them redirect to specifiy statusCode rather than doing in code behind. Let's said the user is not allowed to go into the Manager side, will this automatically redirect …

Member Avatar for JorgeM
0
154
Member Avatar for mherz
Member Avatar for gahhon

public static void Confirmation(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type=\"text/javascript\">var confirmation=this.document.getElementById('hfConfirmation'); if(confirm('" + cleanMessage + "'))confirmation.value='Yes' else return confirmation.value='No';</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the …

Member Avatar for gahhon
0
326
Member Avatar for gahhon

![ae11c10b62ad1537f03030637438cc85](/attachments/large/3/ae11c10b62ad1537f03030637438cc85.jpg "ae11c10b62ad1537f03030637438cc85") protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) setDropDownList(); bcChart.Series["Series1"].Points.DataBindXY(getDate(), getAmount()); bcChart.Series["Series1"].LegendText = "#VALX - RM #VALY{N2}"; } As you can see my bar graph is displaying 2 items, but how come the legend only show one items and i can't display the legend text as i …

Member Avatar for gahhon
0
196
Member Avatar for gahhon

[Click Here](http://forums.asp.net/t/1872263.aspx) I want do the same thing as this link posted. But i don't have any idea how can i start or do with it. :/

Member Avatar for JorgeM
0
1K
Member Avatar for gahhon

protected string getEmailAddr() { SqlConnection conGet = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdGet = new SqlCommand("SELECT Email FROM Member WHERE Username=@username", conGet); cmdGet.Parameters.AddWithValue("@username", strUsername); conGet.Open(); SqlDataReader dtrGet = cmdGet.ExecuteReader(); if (dtrGet.Read()) return dtrGet[0].ToString(); else return null; dtrGet.Close(); conGet.Close(); } `dtrGet.Close();` Occured the Unreachable Code Detected with Green Colour Underline. How can i …

Member Avatar for pritaeas
0
202
Member Avatar for gahhon

I have a page which allow user to login. Once they are login, a cookie will create with a value and redirect the user to specify pages.. And a master page will be load. Inside the master page will retrieve the cookie value and display if the cookie value not …

Member Avatar for gahhon
0
1K
Member Avatar for gahhon

Is that any way/tricks that able to validate the end-users choosen date is not greater than today?

Member Avatar for gahhon
0
68
Member Avatar for gahhon

Let's say my HTML markup have these div id <div id="div1"> //Contents </div> <div id="div2"> //Contents </div> And i am trying to response redirect to some page which focusing on a specific div id in the code behind.. any tricks would be archieve this? Due to my webpage is applying …

Member Avatar for gahhon
0
1K
Member Avatar for gahhon

![2674d0acdc10dfedc0936567f2209b57](/attachments/large/3/2674d0acdc10dfedc0936567f2209b57.jpg "2674d0acdc10dfedc0936567f2209b57") As you can see my ajax calender positioning is not below of the textbox of "Date of Birth". This webpage is consist Javascript which applied scrolling animation by clicking each of the sub menu at the left instead of post back. Here is my asp.net code <asp:ToolkitScriptManager ID="ToolkitScriptManager1" …

Member Avatar for JorgeM
0
182
Member Avatar for grafic.web

[View](http://www.daniweb.com/web-development/aspnet/threads/464247/calender-control) Please review my previous thread. Might help you. :)

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

I am using SQL Database, In my example of my webpage, i got `FileUpload` & `Image` & `Button` Controls. i wanna to know any tutorials or tricks from code behind that able to upload the image file into my sql database and how to display the image in my Image …

Member Avatar for gahhon
0
217
Member Avatar for gahhon

#HTML Markup <table> <tr> <td><asp:Label runat="server" Text="Subject: " /></td> <td><asp:TextBox ID="txtSubject" runat="server" /> <asp:RequiredFieldValidator runat="server" ErrorMessage=" *" ControlToValidate="txtSubject" Font-Size="10pt" ForeColor="Red" /> </td> </tr> <tr></tr><tr></tr><tr></tr> <tr> <td><asp:Label runat="server" Text="Messages: " /></td> <td><asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Height="100px" Width="18em" /> <asp:RequiredFieldValidator runat="server" ErrorMessage=" *" ControlToValidate="txtMessage" Font-Size="10pt" ForeColor="Red" /> </td> </tr> <tr></tr><tr></tr><tr></tr> <tr> <td><asp:Button …

Member Avatar for gahhon
0
303
Member Avatar for gahhon

protected int getRowCount() { int RowCount = 0; SqlConnection conRowCount = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdRowCount = new SqlCommand("SELECT Category FROM MonthlyBudget WHERE (Username=@username AND CurrentMonth=@current) GROUP BY Category", conRowCount); cmdRowCount.Parameters.AddWithValue("@username", Master.getUsername); for (int i = 0; i < intMonth.Length; i++) { cmdRowCount.Parameters.AddWithValue("@current", Convert.ToDateTime("1/" + intMonth[i] + "/" + ddlYear.SelectedItem.Text)); conRowCount.Open(); …

Member Avatar for gahhon
0
173
Member Avatar for gahhon

![1c1818c0424f995161e5d67c0832ee62](/attachments/large/3/1c1818c0424f995161e5d67c0832ee62.jpg "1c1818c0424f995161e5d67c0832ee62") i want to create a dynamic data by showing the particular category details. Example, if i mouse hover the area of clothes/the word of clothes, it pop out a new small window that showing another pie chart, how can i archieve that? or showing the details in the …

Member Avatar for gahhon
0
185
Member Avatar for gahhon

My webpage is allow to scroll up and down but not left and right. Assume my webpage left is contain something and right is used to display the some information. Of curse, the information might be extremly long but how can i to auto break to new line instead of …

Member Avatar for gahhon
0
213
Member Avatar for gahhon

i am using MYSQL as my database. Due to i have multiple selection of categories one of them is `Others` Once the user selected the `Others` it will shown a textbox which let the user to input a new category. But now i have problem is how can i add …

Member Avatar for gahhon
0
185
Member Avatar for gahhon

![732d22f08a80a7b16757c3d9f59f5454](/attachments/large/3/732d22f08a80a7b16757c3d9f59f5454.jpg "732d22f08a80a7b16757c3d9f59f5454") Recently i'm just created a new gmail account just for my project purpose. But when i performing there is a feedback from end-users.. the email address of the sender is my new gmail account? According to MailMessage `MailMessage(SENDER, RECEIVER)` am i right? but how come i am can't …

Member Avatar for gahhon
0
132

The End.