Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~8K People Reached
Favorite Tags
Member Avatar for softDeveloper

Hi everybody! I´ve used jdk to generate my certificate with the following command: keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: import javax.mail.* and import javax.mail.internet.* # and MimeMessage and Multipart. #. …

Member Avatar for stultuske
0
221
Member Avatar for surya55

Hi everyone, consider below code: interface i{ void test(); } class A implements i{ void test(){//code goes here} } class B implements i{ void test(){//code goes here} } here,we can implement method straightaway in class itself, without using interface like, class A{ void test(){//code goes here} } why we want …

Member Avatar for ~s.o.s~
1
229
Member Avatar for softDeveloper

Hi everybody! I´ve used jdk to generate my certificate with the following command: > keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: # import javax.mail.* # and # import javax.mail.internet.* # and …

0
154
Member Avatar for softDeveloper

Hi, I'm submitting a html file in a form enctype=multipart/form-data file item to the server: at the server: <%@ page language="java" contentType="text/html; charset=utf-8"%><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> DiskFileUpload fu = new DiskFileUpload(); fu.setSizeMax(5000000); List fileItems = fu.parseRequest(request); Iterator itr = fileItems.iterator(); while(itr.hasNext()) { FileItem fi = (FileItem)itr.next(); if(!fi.isFormField()) { text=fi.getString(); } …

0
88
Member Avatar for softDeveloper

Hi, I'm making login in my site which has a database, and I check if the user exists in the data base. However, If I navigate through the web pages of the site, or if I type the url other than the beginning page, I can get to the site. …

Member Avatar for Taywin
0
97
Member Avatar for softDeveloper

Hi! I am trying to wrap some html paragraphs inside a div element: <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> I want to have this when I select this text from an iframe with window.getSelection(): <div> <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> </div> and, in case I select 2 paragraphs and …

Member Avatar for ko ko
0
121
Member Avatar for softDeveloper

Hi, I want to get all the elements (span, paragraphs, div, etc.) that hold text inside, but just text. e.g.: If I had : <p>this is a paragraph</p> <p><div>this is a paragraph with a div inside</div></p> <div>this is a div</div> <span>this is a span <span>with a span</span>inside</span> So I would …

Member Avatar for ko ko
0
74
Member Avatar for softDeveloper

Hi! Do you know how to get elements which text is selected my mouse? e.g.: Several paragraphs in a html file. You select text with your mouse, and you get all "p" elements which have parts of the selected text. Regards

Member Avatar for pritaeas
0
68
Member Avatar for softDeveloper

Hi! Does anyone know how to upload a file, say in a form, with input type="file". But what I want is to display the uploaded file in an iframe in the same page. Best Regards

Member Avatar for Travus
0
615
Member Avatar for softDeveloper

Hi all, Is there a way to upload a text file to an iframe and then instead of getting an iframe with an horizontal scroll bar, getting the text width resized to iframe's width? Best Regards,

0
72
Member Avatar for softDeveloper

Hi all, I found this code : http://www.magic-dev.com/drag-drop-multiple-items.htm It works perfectly. However, if I pass these elements by ajax to a javaserverpage,they will be displayed, but won't either be dragged or dropped even If I have all the droppable and draggable functions and jquery libraries in the destination page, it …

Member Avatar for Airshow
0
167
Member Avatar for softDeveloper

Dear All, Please suppose that I have this line of code, and that my selection range goes from div element with id=1, starting at '2', to div element with id='2', ending at '8'. `<div id='1'>1`2`3</div>456<div id='2'>7`8`9</div>`. I'm using chrome, I would like to get the position of the cursor inside …

Member Avatar for patocardo
0
178
Member Avatar for softDeveloper

Hi all, I have a table 'table 1' which has a primary key. Now I want to create two other tables with a composite key in each one, composed by primary key and a foreign key both referencing table 1 's primary key. However I can only do it with …

Member Avatar for softDeveloper
0
167
Member Avatar for softDeveloper

Hi all, I'm checking for primality in BigInteger type. I'm using isProbablePrime with certainty 15. I would like to know how to test if a BigInteger is really a prime number. Thanks in advance.

Member Avatar for softDeveloper
0
280
Member Avatar for softDeveloper

Hi all, In my web application I load data from MySQL database into an iframe. Sometimes files bigger than 1 Mb. I make some changes on the file, and afterwards I send it back to the database. The issue is that with this code below I can't send files bigger …

Member Avatar for peter_budo
0
101
Member Avatar for softDeveloper

HI all, I want to get the contents of an iframe with jquery doing this code [CODE] for(var i=0;frames.length;i++){ if(self.parent.frames[i].getSelection().toString()!=""){ var bdy = $(self.parent.frames[i].name).contents().find("body"); alert('iframe:'+ bdy.html()); } } [/CODE] Is there a better way of doing this? My goal is getting the iframes selection create a range, extracting its contents, …

0
68
Member Avatar for softDeveloper

Hi all, I'm using google chrome as client of my web application. If I open it with mozilla or ie it won't work 100% all application features. Does anybody know the differences concerning iframes and document selection for example in the following lines of code: [CODE] self.parent.iframe[i].getSelection().getRangeAt(0); map = document.createElement("map"); …

Member Avatar for stbuchok
0
135
Member Avatar for softDeveloper

Hi all, I'm using scrollintoview to scroll to the element but it's very quick, do you know anything like this but smooth?

Member Avatar for Troy III
0
153
Member Avatar for softDeveloper

Hi all, I want to upload a file the way input type=file does, but I want to upload it as a client to a remote server. Any ideas please?

Member Avatar for softDeveloper
0
119
Member Avatar for softDeveloper

How to get the parent node for all selections? this just give one selection out of 4 iframes: [CODE] self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML; [/CODE]

0
84
Member Avatar for softDeveloper

Hi all, how can we replace the getSelection HTML in an iframe? I want to getSelection() and the replace selection's html with simple text.

Member Avatar for softDeveloper
0
163
Member Avatar for softDeveloper

I'm getting xmlHttp.readyState 1 when sending these parameters and it only happens when parameter 'text' is very big. [CODE] var url="replaceText4.jsp"; url=url+"version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text; xmlHttp.open("POST",url,true); xmlHttp.send(url); [/CODE] Could you help me on this?

Member Avatar for softDeveloper
0
139
Member Avatar for softDeveloper

Hi all, I want to send big amounts of data, like a very big text with 3 Mb from an iframe to a database. For this I send the text from javascript side to JSP and from here to MySQL. When the text is big like this the text is …

Member Avatar for softDeveloper
0
127
Member Avatar for softDeveloper

Hi all, I have Text in MySQL utf 8 and an iframe displaying this text, and the page content is utf8. Does anybody know why the iframe caret position doesn't match with MySQL position when there are line breaks, and how to fix it? Regards

Member Avatar for softDeveloper
0
108
Member Avatar for softDeveloper

Hi all, I have a text file saved as utf8 without BOM. I loaded it into MysQL database. An iframe is loaded with this data from MySQL. I need the caret position in the iframe in order to perform operations in the database. Everytime there's a new line the positions …

Member Avatar for smantscheff
0
150
Member Avatar for softDeveloper

Hi All, I'm selecting text from an iframe using getSelection(). It reads everything but the tabs '\t'.

Member Avatar for softDeveloper
0
141
Member Avatar for softDeveloper

Hi all, I'm trying to get the caret position of an iframe. I tried several ways, based on this example: [url]http://stackoverflow.com/questions/8664504/designmode-iframe-get-cursor-position[/url] Anyway I try I allways get the start position of the selected text added with 19. I'm not getting why?

0
80
Member Avatar for softDeveloper

Hi All! I'm trying to call a method defined in a jsp that is in my webcontent web application. I placed [CODE] <%@include file="method.jsp"%>[/CODE] in the jsp from where I want to call the method. I get an exception saying: [CODE]org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred …

Member Avatar for stultuske
0
291
Member Avatar for softDeveloper

Hi All! I'm trying to read ms word documents stored in my dataBase in a BLOB column. However, concerning the encodings there are issues with characters. My web application can read the ms word documents the to an iframe with POIFSFileSystem without problems. [CODE] File docFile = null; [COLOR="Green"]WordExtractor[/COLOR] docExtractor …

0
81
Member Avatar for softDeveloper

Dear All, I have a database with two columns, to keep several files of text with lots of text lines in each text: ----------------------- |---name -|- Text---| ----------------------- I want the column |-name-| to be a primary key, and to upload the text file I'm using the command: [CODE] LOAD …

Member Avatar for softDeveloper
0
173