Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~12.3K People Reached
Favorite Tags
Member Avatar for jamojo

Hi Everyone, I have a javascript function below: function submitUserInfo() { if (myForm.validator.validate()) { var data = $('get-user-info').serialize(true); var params = data; var url = 'http://www.mysite/engine/'; var request = new Ajax.Request(url, { method: 'post', parameters: params, onSuccess: function (transport) { //alert(transport.responseText); $('paywall-img').innerHTML = ''; $('paywall-img').insert(transport.responseText); $('paywall-img').insert('<button class="button close-pw"><span>Cancel</span></button>'); }.bind(this), onFailure: …

Member Avatar for AleMonteiro
0
254
Member Avatar for jamojo

Hi Everyone, Can you please advise regarding DATETIME element. I have a value below: 2013-11-29T00:00:00.000Z but when its committed in the database, the value becomes where it added 8 hours: 2013-11-29T08:00:00.000 The database table field is also DATETIME type. Looking forward with your responses. Thank you

Member Avatar for Paul.Esson
0
97
Member Avatar for jamojo

Hello Everyone, I am trying to compute the subscription next due date. For example, these are the subscription dates: 1/28/13 1/29/13 1/30/13 1/31/13 When I used the php function strtotime( "+1 month", <date> ) the next month due date will be: 1/28/13 due date is 2/28/13 1/29/13 due date is …

Member Avatar for jamojo
0
2K
Member Avatar for jamojo

Hello Everyone, I have a php class like this: class DatabaseObject { protected static $table_name; } Then, when I extended this class, I do this: class User extends DatabaseObject { protected static $table_name = "users"; } However, I am encountering errors "mysql_fetch_array(): supplied argument is not a valid MySQL" because …

Member Avatar for jamojo
0
190
Member Avatar for jamojo

Hello Eveyone, I am validating a html 5 page using w3c validator. However, this error occurred: "Element noindex not allowed as child of element div in this context" Can you please send some idea on how to resolve this? Thanks.

Member Avatar for pritaeas
0
236
Member Avatar for jamojo

Hello Everyone. Can you please advise how can I replace a string from this "[" to "]" this character and replace it with blank string? I believe I will use str_replace but I am having a hard time doing this. The quick brown fox jumped over [caption id="attachment_223" align="alignleft" width="900"] …

Member Avatar for jamojo
0
162
Member Avatar for jamojo

Hello everyone, I am trying to paginate the table below using this plug in. http://neoalchemy.org/tablePagination.html However, I the table did not show properly and I think it still counting the hidden fields. Can you please advise how to solve this or provide an alternative way to do this. Thanks in …

Member Avatar for jamojo
0
132
Member Avatar for jamojo

Hello Everyone, I am encountering errors when browsing the web application. When a single user is login, all in all is fine, inserts and updates command execute fine as well as reading the data. When 2 or more users are log, the application displaying random error messages like the pagers, …

Member Avatar for pritaeas
0
118
Member Avatar for jamojo

Hello Everyone, I am looking for an example on how to upload files in Java only. What I saw recently it requires JSP also. But I only wish to use Java only. Here is an example on what I used, but it seems does not work. Can you please provide …

Member Avatar for NormR1
0
908
Member Avatar for jamojo

Hello everyone, I am trying to play a HTML5 Video using a MP4 file hosted in Amazon S3. I found a file called S3.php and this is the method that I am using public static function getAuthenticatedURL($bucket, $uri, $lifetime, $hostBucket = false, $https = true) { $expires = time() + …

Member Avatar for veedeoo
0
1K
Member Avatar for jamojo

Hello everyone, can you please help me regarding on converting duration to milliseconds. I have a code below working but need to include the hours. I do not know what is the best practice regarding this but please advise. Thanks in advance. list($get_minutes, $get_seconds) = explode(':', '1:27:04'); $minutes = $get_minutes …

Member Avatar for diafol
0
110
Member Avatar for jamojo

Array ( [TIMESTAMP] => 2012%2d05%2d01T17%3a19%3a07Z [CORRELATIONID] => 3aeb192ad6388 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 2764190 [L_ERRORCODE0] => 10527 [L_SHORTMESSAGE0] => Invalid%20Data [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] => Error [AMT] => 10%2e00 [CURRENCYCODE] => GBP ) Hello everyone, Can you please suggest on how to parse responses? It is the …

Member Avatar for diafol
0
176
Member Avatar for jamojo

Hello Everyone, I am using apache POI 3.7. I am trying to replace the value of a table column in a word document (docx). However, what I have done is it keeps appending the value of the current value in the document. But if a table column value is null, …

Member Avatar for jamojo
0
3K
Member Avatar for jamojo

Hello Everyone, Can you please give me some advise on how to validate input or select based on the class used? For example: <input id="name" type="text" class="alphanumeric" value=""> Then for the validation: if input class = "alphanumeric" if !isAlphaNumeric(input.value) alert(Enter valid value);input.focus Before, I used onblur on the input to …

Member Avatar for stbuchok
0
146
Member Avatar for jamojo

Hello Everyone, Below is the html page I created where there is a div container. In the div container, there are 4 divs with textboxes. The div container with is 100%. But when I resize the browser, the 4 divs overlapses. What would I like to do is to have …

Member Avatar for Skorpio07
0
141
Member Avatar for jamojo

Hello Everyone, I created a javascript function to show/hide element id. In the code, the detail row will be show when its header row is clicked and the detail row will be hiiden after the hyperlink is clicked. Can you give any advice on how to show/hide the detail row …

Member Avatar for Airshow
0
2K
Member Avatar for jamojo

Hello Everyone, I created a java code that runs batch files. Then, I deployed the java classes in apache-tomcat-5.5.26. The code worked when I ran the tomcat manually but when I ran the tomcat as a windows service, it did not work. I checked the tomcat log files but apparently …

Member Avatar for ~s.o.s~
0
145
Member Avatar for jamojo

Hellow everyone, I have this Java Method below. I used a link which requires authentication and when I ran this in Eclipse, it worked well. validURL("http://localhost/context/myfile.pdf"); However, when I deployed this in Weblogic, the method returns an error which was " 401Unauthorized". I tried this link but did not work: …

Member Avatar for NormR1
0
102
Member Avatar for jamojo

Hello everyone, I am using the code below. It is working when I used this in Eclipse. What I did is to place the generated keystore from the InstallCert.class ([url]http://blogs.sun.com/andreas/resource/InstallCert.java[/url]) to the latest JRE in the Program Files>Java But when I deployed this class in the Tomcat/Bea its searching I …

Member Avatar for xiaocong
0
438
Member Avatar for jamojo

Hello everyone, I created a Java Class that retrieves files in a specific local drive\folder. Then I was able to retrieve it from the JSP page. Can I ask what is the best approach to create a JSP recordset paging (previous, next, page 1,2,3...) without using the database? For example, …

0
79
Member Avatar for jamojo

Hello Everyone, Can you please give me some thoughts on how to create a folder in http(Ex: [url]http://localhost:8080/site/myfoldertocreate[/url]) instead in a local drive (Ex. C:\MYFOLDER) Here is the current code that I am using. [CODE]public static void createFolder(String Folder){ try{ File f = new File(Folder); if(f.mkdir()) SimpleLog.write(Folder + " Directory …

Member Avatar for jamojo
0
118
Member Avatar for jamojo

Hello Everyone, I am using ths class as my reusable SQL select for my queries in other classes. But when I used this in other classes, it generated me this error: java.sql.SQLException: Network error IOException: Address already in use: connect Can anyone give me some idea or advise on how …

Member Avatar for jamojo
0
178
Member Avatar for jamojo

Hello Everyone, Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible? Any suggestions are greatly appreciated. Looking forward to your replies. Thanks …

Member Avatar for jamojo
0
110
Member Avatar for jamojo

Hello everyone, How can I convert this format using Java? 2009-05-20T18:19:23+08:00 I was able to convert this using the SQL Statement below. select cast('' as xml).value('xs:dateTime('2009-05-20T18:19:23+08:00')', 'datetime'); I would like to know how Java handle this format. Any suggestions are greatly appreciated. Thanks in advance, Jamojo

Member Avatar for masijade
0
156