|
Hi,
Is this possible to create charts(Eg: Scatter chart) using the plugin
"Ruby processing"?
Anybody have idea plz?
Thanks & Regards,
Periyasamy.R
|
|
|
|
|
Dear All,
HTTP is a request-response protocol and when the browser sends a request, the Server sends the response. At first the browser sends the GET request and the response is HTTP 200 OK along with HTTP headers and HTML content for the base page.
Then the browser parses the base HTML and makes GET requests for any content it needs to render the page (a separate GET for each object and the response is the object).
Now my intention is to write a program that can store the whole page by only taking the URL of the web page. Please be informed that i dont need to save additional pages. I just want to save the given URL in the correct format, so that the browser can be able to show in correct format later.
I want to build something like wget in linux. But wget cannot save a page very well. In that case whats ur suggestion to do this?
Do you suggest to go through parsing the base html page and then request other objects? Or there is any easy way to use other external library that can do this kind of parsing. I am also considering HTTrack.
Please guide me.
|
|
|
|
|
I've done this in C# for an internal site. Using the WebResponse object, you do a call to the URL and get a string back that's the html of the page. I ran on the assumption that it was xhtml compliant, loaded it into an xmldocument and parsed xml nodes that matched <A> tags to grab the links and saved off the original text in a plain html file while parsing the newly found links.
You have to check for duplicates and it's probably not all that elegant but it let us simulate a normal browser's experience.
Edit-
I know it's not linux but it was how we solved it. During our original search for something we did find blackwidow which does the same thing. I don't know if there's a non windows version but it might be worth a look too. It was free then but that was some time ago.
|
|
|
|
|
How complex are the pages you plan to download? If you want it to grab images that are called from javascript for things like mouseover effects then you are going to have to write a lot more code than if you are just grabbing plain HTML. You may be better off just using the System.Windows.Forms.WebBrowser class and using ShowSaveAsDialog. Otherwise you are going to have to almost write your own browser from scratch.
|
|
|
|
|
I am planning to write this in C++ or Java. Do you know any kind of library that is available as a wrapper? Can anyone give how much I shall be able to get from HTTrack which is a free offline browser utility.
I am worried about handling java scripts.
|
|
|
|
|
i m using jsw player in my website .i m unable to play my
.flv videos in flash player i have used .i have downloaded it from longtailvideo.com
and i have uploaded all files to my host. and paste the code in my page as below
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player-viral.swf','ply','470','320','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
// so.addVariable('file','http://content.longtailvideo.com/videos/flvplayer.flv');
so.addVariable('file','http://www.bigbonenews.net/jazmyn.flv');
so.write('mediaspace');
</script>
The problem is that it does not play my flv videos but it plays flv video of ther site if i remove
comment above code and make comment below code of comment then it plays ther video but it does not play
my video and the video is uploaded there i have given path .but it show file not found though file is there .flv
www.bigbonenews.net/videomedia.asp
is the link where u can check the player i have uploaded and does not play my flv files but play ther files
|
|
|
|
|
What did they say when you asked in the support forum on the longtailvideo website under the support link? Asking that question here is like going to a random orchard and asking why the apples at your grocery store aren't as ripe as you'd like.
|
|
|
|
|
Hiii....
How to synchronize my web calendar (application) to other online calendars such as Google calendar,outlook,Lotus notes,Blackberry Calendar etc....
Urgently need..........
Anyone have idea about this to calendar synchronization...Help me....
Thanks in advance....
Pradeep
|
|
|
|
|
Each one is going to be different. Without knowing how yours works there is no way to answer this question. You need to pick one of the other calendar apps, try to implement the sync and then ask questions when you have a specific problem. No one is going to hand you several weeks worth of coding on a forum.
|
|
|
|
|
Hi All,
I just spent an overwhelming morning trying to read up on how to write a good API to a website's service(s). For example, I want to write an API for my site's search feature that can be used within my site itself and can also be integrated with search functionality on my second website on another domain.
I understand it is a restful api and am trying to find a tutorial other than gen x design that will show me how to write a good internal API that can be extended to be external too.
Anyone faced this before or anticipates to face it in the future? Please help.
--MM
|
|
|
|
|
In this case i would generate an xml file which contains the search data. you can design the structure as you like. if the request is coming from the same domain the do the normal search display
if the request is from another server then use generate an xml as output which could be read by the second sites socket.
you can use the Request uri to get from which site the request is from. and according to the you can have an if condition.
if(REQUEST_URI==same server)query the database and display the result
else generateSearchXML(query)
in the generatesearchxml you set the content type as text/xml and echo the xml...
to create a request you do some thing like this...
"http://site1.com/search.php?q=searchstring" create a socket (fsockopen, file_get_contents) or a socket function according to the programming language
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
hi,
i'm in a trouble to download formview/Gridview as PDF. ie; i have a formview, which is filled with data including unicode & image. when i click a button, the formview should download as pdf. can any one help me to sortout this.
i tried iTextsharp, Pdfclown, etc.. But it will download only Enlgish, not unicode & images.
imp: i want to download the Entire Formview
its urgent my dear. please help me.
Thanks in advance.
|
|
|
|
|
Industry standards and innovation took center stage at MIX10, including Internet Explorer 9 Platform Preview that includes expanded support for HTML5, hardware-accelerated graphics and text, and a new JavaScript engine.
You can get Internet Explorer 9 Platform Preview to evaluate code refreshes about every eight weeks leading up to the beta release. Developers can download the Internet Explorer 9 Platform Preview [^].
More details at Internet Explorer 9 Test Drive Ready for Developers[^]
|
|
|
|
|
Thank you
I like FireFox
|
|
|
|
|
Hi All,
If I were to explain in one line to someone why there was a need to evolve from object oriented
and come up with Component based architecture and then why there was a need to evolve further
and come up with service oriented architecture what would it be?
Technically, CBSE exposes class and SOE exposes schemas and contracts ... not that ... I need
one defining need on why we had to evolve, what would it be?
In one book I read, that SOE was to seperate frequently changing functionality from not frequently
changing functionality, remove tight coupling ... but they in my opinion
can be observed in CBSE also!!!
Regards,
NetQuestions
|
|
|
|
|
Hi.
In lack of better examples, I´ve found this javascript example which shows and hides content in a sliding way. Exactly what need.
You can see the example here:
http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide
And the demo here:
http://www.dhtmlgoodies.com/scripts/show-hide-content-slide/show-hide-content-slide.html
Problem is, because of my text and image layout, I want the hide/reveal text to be in a dedicated cell.
But this example (and all the other examples I´ve found) only works when its in the same cell.
How do i fix this?
Thanks alot!
|
|
|
|
|
|
I prefer 'Spry' JavaScript By Adobe Dreamweaver .. that'll avoid u falling in problems
good luck ..
|
|
|
|
|
Thanks alot, it works 
|
|
|
|
|
Manually implement the stuff that the initShowHideDivs function does. Rather than dynamically having it change the IDs, set the IDs from the outset. Instead of dynamically adding the onclick event, put it in the question divs from the start.
|
|
|
|
|
Hi all,
I have been trying to find this out for 4 days straight, doing all types of research and yet I cannot find it, although it seems like one of the most fundamental things I can think of. I am new to jsps and servlets but not new to java, so please be patient with me
_____________________________________________________
SCENARIO:
1) I have an index.jsp page with a form with 1 field for the user to fill up.
2) I have a bean which I am trying to fill up from the index page itself.
3) I have a servlet that handles the request
_____________________________________________________
INDEX PAGE:
<%@ page import="com.java2s.*"%>
<html>
<body>
<jsp:useBean id="bean" class="com.java2s.bean" scope="session"/>
<jsp:setProperty name="bean" property="*"/>
<FORM METHOD=POST ACTION="MyServlet">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
<P><INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>
_____________________________________________________
BEAN:
package com.java2s;
public class bean {
String username;
public void setUsername( String value )
{
username = value;
}
public String getUsername()
{
return username;
}
}
_____________________________________________________
SERVLET:
package com.java2s;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class MyServlet extends HttpServlet {
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
HttpSession session = request.getSession(true);
bean myBean = (bean)session.getAttribute("bean");
if (myBean == null)
{
myBean = new bean();
myBean.setUsername("FAILED");
}
request.setAttribute("bean", myBean);
request.getRequestDispatcher("test.jsp").forward(request, response);
}
}
____________________________________________________
PROBLEM:
I get the bean in the servlet, that is to say:
bean myBean = (bean)session.getAttribute("bean"); actually returns an object and not null, thats not a problem.
The problem is that the username field is null. I have tried it with radio buttons and numerous other fields and they have all returned null.
If anybody please could help me it would be great. I highly appreciate any time you spend helping me out.
Thanks,
James
|
|
|
|
|
Your code is different in my code...
I cant figure out whats the error in that but
If you want to fill a bean heres some simple codes...
JSP
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="myServlet" method="post">
<input type="text" name="name"/>
<input type="submit"/>
</form>
</body>
</html>
Servlet
package samplePack;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class myServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public myServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
myBean bean = new myBean(request.getParameter("name"));
System.out.println(bean.getName());
}
}
BEAN
package samplePack;
public class myBean {
private String name = null;
public myBean(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
hope this help...
modified on Monday, April 5, 2010 10:54 PM
|
|
|
|
|
I'm a beginner in JSF and I have a sample program made (login and phonebook)
but I'm stock in Session Management can someone please help me...
Thanks...
modified on Monday, April 5, 2010 10:30 PM
|
|
|
|
|
Hi Guys how are u ?
i've a problem with PHP
infact iam new with this Cool lang.
anyway my problem is .. how can i share a variable with multipages
i mean if i made script depent on form just like
it's just a simple
so my question that if i go to myphp.php and put another form code just like up one i'll lose the value of $_POST['mail']
so how can i save it in another variable in another page or wherever ..
please help me 
|
|
|
|
|
The simplest way is to store it in the session.
Take a look at the sessions section[^] of the PHP manual. There are plenty of examples there to look at.
|
|
|
|